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

126 lines
3.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Landroidx/transition/ChangeBounds$1;
.super Landroid/util/Property;
2019-02-04 20:29:01 +00:00
.source "ChangeBounds.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/transition/ChangeBounds;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroid/graphics/drawable/Drawable;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
# instance fields
.field private mBounds:Landroid/graphics/Rect;
# direct methods
.method constructor <init>(Ljava/lang/Class;Ljava/lang/String;)V
.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
.method public final get(Landroid/graphics/drawable/Drawable;)Landroid/graphics/PointF;
.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;
iget v0, v0, Landroid/graphics/Rect;->left:I
int-to-float v0, v0
iget-object v1, p0, Landroidx/transition/ChangeBounds$1;->mBounds:Landroid/graphics/Rect;
iget v1, v1, Landroid/graphics/Rect;->top:I
int-to-float v1, v1
invoke-direct {p1, v0, v1}, Landroid/graphics/PointF;-><init>(FF)V
return-object p1
.end method
.method public final bridge synthetic get(Ljava/lang/Object;)Ljava/lang/Object;
.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
.method public final set(Landroid/graphics/drawable/Drawable;Landroid/graphics/PointF;)V
.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
.method public final bridge synthetic set(Ljava/lang/Object;Ljava/lang/Object;)V
.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