143 lines
3.5 KiB
Smali
143 lines
3.5 KiB
Smali
|
.class Landroidx/transition/ChangeBounds$ViewBounds;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ChangeBounds.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Landroidx/transition/ChangeBounds;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x8
|
||
|
name = "ViewBounds"
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private mBottom:I
|
||
|
|
||
|
.field private mBottomRightCalls:I
|
||
|
|
||
|
.field private mLeft:I
|
||
|
|
||
|
.field private mRight:I
|
||
|
|
||
|
.field private mTop:I
|
||
|
|
||
|
.field private mTopLeftCalls:I
|
||
|
|
||
|
.field private mView:Landroid/view/View;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroid/view/View;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mView:Landroid/view/View;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private setLeftTopRightBottom()V
|
||
|
.locals 5
|
||
|
|
||
|
iget-object v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mView:Landroid/view/View;
|
||
|
|
||
|
iget v1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mLeft:I
|
||
|
|
||
|
iget v2, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTop:I
|
||
|
|
||
|
iget v3, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mRight:I
|
||
|
|
||
|
iget v4, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottom:I
|
||
|
|
||
|
invoke-static {v0, v1, v2, v3, v4}, Landroidx/transition/ViewUtils;->setLeftTopRightBottom(Landroid/view/View;IIII)V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method setBottomRight(Landroid/graphics/PointF;)V
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p1, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mRight:I
|
||
|
|
||
|
iget p1, p1, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottom:I
|
||
|
|
||
|
iget p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
|
||
|
|
||
|
add-int/lit8 p1, p1, 0x1
|
||
|
|
||
|
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
|
||
|
|
||
|
iget p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
|
||
|
|
||
|
iget v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
|
||
|
|
||
|
if-ne p1, v0, :cond_0
|
||
|
|
||
|
invoke-direct {p0}, Landroidx/transition/ChangeBounds$ViewBounds;->setLeftTopRightBottom()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method setTopLeft(Landroid/graphics/PointF;)V
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p1, Landroid/graphics/PointF;->x:F
|
||
|
|
||
|
invoke-static {v0}, Ljava/lang/Math;->round(F)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mLeft:I
|
||
|
|
||
|
iget p1, p1, Landroid/graphics/PointF;->y:F
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTop:I
|
||
|
|
||
|
iget p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
|
||
|
|
||
|
add-int/lit8 p1, p1, 0x1
|
||
|
|
||
|
iput p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
|
||
|
|
||
|
iget p1, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mTopLeftCalls:I
|
||
|
|
||
|
iget v0, p0, Landroidx/transition/ChangeBounds$ViewBounds;->mBottomRightCalls:I
|
||
|
|
||
|
if-ne p1, v0, :cond_0
|
||
|
|
||
|
invoke-direct {p0}, Landroidx/transition/ChangeBounds$ViewBounds;->setLeftTopRightBottom()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|