mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
151 lines
3 KiB
Smali
151 lines
3 KiB
Smali
.class Landroidx/transition/RectEvaluator;
|
|
.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
|
|
.field private mRect:Landroid/graphics/Rect;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Landroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
.line 52
|
|
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;
|
|
.locals 5
|
|
|
|
.line 75
|
|
iget v0, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v1, p3, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v2, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float/2addr v1, p1
|
|
|
|
float-to-int v1, v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
.line 76
|
|
iget v1, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v2, p3, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v3, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float/2addr v2, p1
|
|
|
|
float-to-int v2, v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
.line 77
|
|
iget v2, p2, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v3, p3, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v4, p2, Landroid/graphics/Rect;->right:I
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
int-to-float v3, v3
|
|
|
|
mul-float/2addr v3, p1
|
|
|
|
float-to-int v3, v3
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
.line 78
|
|
iget v3, p2, Landroid/graphics/Rect;->bottom:I
|
|
|
|
iget p3, p3, Landroid/graphics/Rect;->bottom:I
|
|
|
|
iget p2, p2, Landroid/graphics/Rect;->bottom:I
|
|
|
|
sub-int/2addr p3, p2
|
|
|
|
int-to-float p2, p3
|
|
|
|
mul-float/2addr p2, p1
|
|
|
|
float-to-int p1, p2
|
|
|
|
add-int/2addr v3, p1
|
|
|
|
iget-object p1, p0, Landroidx/transition/RectEvaluator;->mRect:Landroid/graphics/Rect;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 80
|
|
new-instance p0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {p0, v0, v1, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
return-object p0
|
|
|
|
.line 82
|
|
:cond_0
|
|
invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
iget-object p0, p0, Landroidx/transition/RectEvaluator;->mRect:Landroid/graphics/Rect;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic evaluate(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 25
|
|
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 p0
|
|
|
|
return-object p0
|
|
.end method
|