apkfuckery/com.discord/smali/androidx/transition/RectEvaluator.smali

135 lines
2.7 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/transition/RectEvaluator;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "RectEvaluator.java"
# interfaces
.implements Landroid/animation/TypeEvaluator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroid/animation/TypeEvaluator<",
"Landroid/graphics/Rect;",
">;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mRect:Landroid/graphics/Rect;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroid/graphics/Rect;)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/transition/RectEvaluator;->mRect:Landroid/graphics/Rect;
return-void
.end method
# virtual methods
.method public evaluate(FLandroid/graphics/Rect;Landroid/graphics/Rect;)Landroid/graphics/Rect;
2019-12-06 03:29:40 +00:00
.locals 4
2019-07-24 11:27:29 +00:00
iget v0, p2, Landroid/graphics/Rect;->left:I
iget v1, p3, Landroid/graphics/Rect;->left:I
2019-12-06 03:29:40 +00:00
sub-int/2addr v1, v0
2019-07-24 11:27:29 +00:00
int-to-float v1, v1
mul-float v1, v1, p1
float-to-int v1, v1
add-int/2addr v0, v1
iget v1, p2, Landroid/graphics/Rect;->top:I
iget v2, p3, Landroid/graphics/Rect;->top:I
2019-12-06 03:29:40 +00:00
sub-int/2addr v2, v1
2019-07-24 11:27:29 +00:00
int-to-float v2, v2
mul-float v2, v2, p1
float-to-int v2, v2
add-int/2addr v1, v2
iget v2, p2, Landroid/graphics/Rect;->right:I
iget v3, p3, Landroid/graphics/Rect;->right:I
2019-12-06 03:29:40 +00:00
sub-int/2addr v3, v2
2019-07-24 11:27:29 +00:00
int-to-float v3, v3
mul-float v3, v3, p1
float-to-int v3, v3
add-int/2addr v2, v3
2019-12-06 03:29:40 +00:00
iget p2, p2, Landroid/graphics/Rect;->bottom:I
2019-07-24 11:27:29 +00:00
iget p3, p3, Landroid/graphics/Rect;->bottom:I
sub-int/2addr p3, p2
2019-12-06 03:29:40 +00:00
int-to-float p3, p3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
mul-float p3, p3, p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
float-to-int p1, p3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-int/2addr p2, p1
2019-07-24 11:27:29 +00:00
iget-object p1, p0, Landroidx/transition/RectEvaluator;->mRect:Landroid/graphics/Rect;
if-nez p1, :cond_0
new-instance p1, Landroid/graphics/Rect;
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v0, v1, v2, p2}, Landroid/graphics/Rect;-><init>(IIII)V
2019-07-24 11:27:29 +00:00
return-object p1
:cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v0, v1, v2, p2}, Landroid/graphics/Rect;->set(IIII)V
2019-07-24 11:27:29 +00:00
iget-object p1, p0, Landroidx/transition/RectEvaluator;->mRect:Landroid/graphics/Rect;
return-object p1
.end method
.method public bridge synthetic evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p2, Landroid/graphics/Rect;
check-cast p3, Landroid/graphics/Rect;
invoke-virtual {p0, p1, p2, p3}, Landroidx/transition/RectEvaluator;->evaluate(FLandroid/graphics/Rect;Landroid/graphics/Rect;)Landroid/graphics/Rect;
move-result-object p1
return-object p1
.end method