123 lines
3.4 KiB
Smali
123 lines
3.4 KiB
Smali
.class public final Landroidx/transition/ChangeBounds$1;
|
|
.super Landroid/util/Property;
|
|
.source "ChangeBounds.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/transition/ChangeBounds;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
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 public mBounds:Landroid/graphics/Rect;
|
|
|
|
|
|
# direct methods
|
|
.method public 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 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 v1, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->top:I
|
|
|
|
int-to-float v0, v0
|
|
|
|
invoke-direct {p1, v1, v0}, Landroid/graphics/PointF;-><init>(FF)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public 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 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 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
|