apkfuckery/com.discord/smali/androidx/transition/ChangeBounds$1.smali

124 lines
3.4 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Landroidx/transition/ChangeBounds$1;
2019-07-24 11:27:29 +00:00
.super Landroid/util/Property;
.source "ChangeBounds.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/transition/ChangeBounds;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x9
2019-07-24 11:27:29 +00:00
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroid/graphics/drawable/Drawable;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mBounds: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>(Ljava/lang/Class;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0, p1, p2}, Landroid/util/Property;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
new-instance p1, Landroid/graphics/Rect;
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
iput-object p1, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public get(Landroid/graphics/drawable/Drawable;)Landroid/graphics/PointF;
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->copyBounds(Landroid/graphics/Rect;)V
new-instance p1, Landroid/graphics/PointF;
iget-object v0, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
2019-12-06 03:29:40 +00:00
iget v1, v0, Landroid/graphics/Rect;->left:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
int-to-float v1, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget v0, v0, Landroid/graphics/Rect;->top:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
int-to-float v0, v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v1, v0}, Landroid/graphics/PointF;-><init>(FF)V
2019-07-24 11:27:29 +00:00
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public bridge synthetic get(Ljava/lang/Object;)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
.locals 0
check-cast p1, Landroid/graphics/drawable/Drawable;
invoke-virtual {p0, p1}, Landroidx/transition/ChangeBounds$1;->get(Landroid/graphics/drawable/Drawable;)Landroid/graphics/PointF;
move-result-object p1
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public set(Landroid/graphics/drawable/Drawable;Landroid/graphics/PointF;)V
2019-07-24 11:27:29 +00:00
.locals 2
iget-object v0, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->copyBounds(Landroid/graphics/Rect;)V
iget-object v0, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
iget v1, p2, Landroid/graphics/PointF;->x:F
invoke-static {v1}, Ljava/lang/Math;->round(F)I
move-result v1
iget p2, p2, Landroid/graphics/PointF;->y:F
invoke-static {p2}, Ljava/lang/Math;->round(F)I
move-result p2
invoke-virtual {v0, v1, p2}, Landroid/graphics/Rect;->offsetTo(II)V
iget-object p2, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
invoke-virtual {p1, p2}, Landroid/graphics/drawable/Drawable;->setBounds(Landroid/graphics/Rect;)V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public bridge synthetic set(Ljava/lang/Object;Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
.locals 0
check-cast p1, Landroid/graphics/drawable/Drawable;
check-cast p2, Landroid/graphics/PointF;
invoke-virtual {p0, p1, p2}, Landroidx/transition/ChangeBounds$1;->set(Landroid/graphics/drawable/Drawable;Landroid/graphics/PointF;)V
return-void
.end method