Rabbit-R1/original r1/smali/smali_classes2/androidx/transition/ChangeBounds.smali

1245 lines
31 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public Landroidx/transition/ChangeBounds;
.super Landroidx/transition/Transition;
.source "ChangeBounds.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/transition/ChangeBounds$ViewBounds;
}
.end annotation
# static fields
.field private static final BOTTOM_RIGHT_ONLY_PROPERTY:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroid/view/View;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
.field private static final BOTTOM_RIGHT_PROPERTY:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroidx/transition/ChangeBounds$ViewBounds;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
.field private static final DRAWABLE_ORIGIN_PROPERTY:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroid/graphics/drawable/Drawable;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
.field private static final POSITION_PROPERTY:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroid/view/View;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
.field private static final PROPNAME_BOUNDS:Ljava/lang/String; = "android:changeBounds:bounds"
.field private static final PROPNAME_CLIP:Ljava/lang/String; = "android:changeBounds:clip"
.field private static final PROPNAME_PARENT:Ljava/lang/String; = "android:changeBounds:parent"
.field private static final PROPNAME_WINDOW_X:Ljava/lang/String; = "android:changeBounds:windowX"
.field private static final PROPNAME_WINDOW_Y:Ljava/lang/String; = "android:changeBounds:windowY"
.field private static final TOP_LEFT_ONLY_PROPERTY:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroid/view/View;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
.field private static final TOP_LEFT_PROPERTY:Landroid/util/Property;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/Property<",
"Landroidx/transition/ChangeBounds$ViewBounds;",
"Landroid/graphics/PointF;",
">;"
}
.end annotation
.end field
.field private static sRectEvaluator:Landroidx/transition/RectEvaluator;
.field private static final sTransitionProperties:[Ljava/lang/String;
# instance fields
.field private mReparent:Z
.field private mResizeClip:Z
.field private mTempLocation:[I
# direct methods
.method static constructor <clinit>()V
.locals 5
const-string v0, "android:changeBounds:windowX"
const-string v1, "android:changeBounds:windowY"
const-string v2, "android:changeBounds:bounds"
const-string v3, "android:changeBounds:clip"
const-string v4, "android:changeBounds:parent"
.line 61
filled-new-array {v2, v3, v4, v0, v1}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Landroidx/transition/ChangeBounds;->sTransitionProperties:[Ljava/lang/String;
.line 69
new-instance v0, Landroidx/transition/ChangeBounds$1;
const-class v1, Landroid/graphics/PointF;
const-string v2, "boundsOrigin"
invoke-direct {v0, v1, v2}, Landroidx/transition/ChangeBounds$1;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
sput-object v0, Landroidx/transition/ChangeBounds;->DRAWABLE_ORIGIN_PROPERTY:Landroid/util/Property;
.line 87
new-instance v0, Landroidx/transition/ChangeBounds$2;
const-class v1, Landroid/graphics/PointF;
const-string v2, "topLeft"
invoke-direct {v0, v1, v2}, Landroidx/transition/ChangeBounds$2;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
sput-object v0, Landroidx/transition/ChangeBounds;->TOP_LEFT_PROPERTY:Landroid/util/Property;
.line 100
new-instance v0, Landroidx/transition/ChangeBounds$3;
const-class v1, Landroid/graphics/PointF;
const-string v3, "bottomRight"
invoke-direct {v0, v1, v3}, Landroidx/transition/ChangeBounds$3;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
sput-object v0, Landroidx/transition/ChangeBounds;->BOTTOM_RIGHT_PROPERTY:Landroid/util/Property;
.line 113
new-instance v0, Landroidx/transition/ChangeBounds$4;
const-class v1, Landroid/graphics/PointF;
invoke-direct {v0, v1, v3}, Landroidx/transition/ChangeBounds$4;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
sput-object v0, Landroidx/transition/ChangeBounds;->BOTTOM_RIGHT_ONLY_PROPERTY:Landroid/util/Property;
.line 130
new-instance v0, Landroidx/transition/ChangeBounds$5;
const-class v1, Landroid/graphics/PointF;
invoke-direct {v0, v1, v2}, Landroidx/transition/ChangeBounds$5;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
sput-object v0, Landroidx/transition/ChangeBounds;->TOP_LEFT_ONLY_PROPERTY:Landroid/util/Property;
.line 147
new-instance v0, Landroidx/transition/ChangeBounds$6;
const-class v1, Landroid/graphics/PointF;
const-string v2, "position"
invoke-direct {v0, v1, v2}, Landroidx/transition/ChangeBounds$6;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
sput-object v0, Landroidx/transition/ChangeBounds;->POSITION_PROPERTY:Landroid/util/Property;
.line 168
new-instance v0, Landroidx/transition/RectEvaluator;
invoke-direct {v0}, Landroidx/transition/RectEvaluator;-><init>()V
sput-object v0, Landroidx/transition/ChangeBounds;->sRectEvaluator:Landroidx/transition/RectEvaluator;
return-void
.end method
.method public constructor <init>()V
.locals 1
.line 170
invoke-direct {p0}, Landroidx/transition/Transition;-><init>()V
const/4 v0, 0x2
new-array v0, v0, [I
iput-object v0, p0, Landroidx/transition/ChangeBounds;->mTempLocation:[I
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
iput-boolean v0, p0, Landroidx/transition/ChangeBounds;->mReparent:Z
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 2
.line 176
invoke-direct {p0, p1, p2}, Landroidx/transition/Transition;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
const/4 v0, 0x2
new-array v0, v0, [I
iput-object v0, p0, Landroidx/transition/ChangeBounds;->mTempLocation:[I
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
iput-boolean v0, p0, Landroidx/transition/ChangeBounds;->mReparent:Z
.line 178
sget-object v1, Landroidx/transition/Styleable;->CHANGE_BOUNDS:[I
invoke-virtual {p1, p2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p1
.line 179
check-cast p2, Landroid/content/res/XmlResourceParser;
const-string v1, "resizeClip"
invoke-static {p1, p2, v1, v0, v0}, Landroidx/core/content/res/TypedArrayUtils;->getNamedBoolean(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;IZ)Z
move-result p2
.line 181
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
.line 182
invoke-virtual {p0, p2}, Landroidx/transition/ChangeBounds;->setResizeClip(Z)V
return-void
.end method
.method private captureValues(Landroidx/transition/TransitionValues;)V
.locals 7
.line 220
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
.line 222
invoke-static {v0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
move-result v1
if-nez v1, :cond_0
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
move-result v1
if-nez v1, :cond_0
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
move-result v1
if-eqz v1, :cond_2
.line 223
:cond_0
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
new-instance v2, Landroid/graphics/Rect;
invoke-virtual {v0}, Landroid/view/View;->getLeft()I
move-result v3
invoke-virtual {v0}, Landroid/view/View;->getTop()I
move-result v4
.line 224
invoke-virtual {v0}, Landroid/view/View;->getRight()I
move-result v5
invoke-virtual {v0}, Landroid/view/View;->getBottom()I
move-result v6
invoke-direct {v2, v3, v4, v5, v6}, Landroid/graphics/Rect;-><init>(IIII)V
const-string v3, "android:changeBounds:bounds"
.line 223
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 225
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
iget-object v2, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
invoke-virtual {v2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v2
const-string v3, "android:changeBounds:parent"
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-boolean v1, p0, Landroidx/transition/ChangeBounds;->mReparent:Z
if-eqz v1, :cond_1
.line 227
iget-object v1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
iget-object v2, p0, Landroidx/transition/ChangeBounds;->mTempLocation:[I
invoke-virtual {v1, v2}, Landroid/view/View;->getLocationInWindow([I)V
.line 228
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
iget-object v2, p0, Landroidx/transition/ChangeBounds;->mTempLocation:[I
const/4 v3, 0x0
aget v2, v2, v3
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const-string v3, "android:changeBounds:windowX"
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 229
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
iget-object v2, p0, Landroidx/transition/ChangeBounds;->mTempLocation:[I
const/4 v3, 0x1
aget v2, v2, v3
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const-string v3, "android:changeBounds:windowY"
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_1
iget-boolean p0, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
if-eqz p0, :cond_2
.line 232
iget-object p0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string p1, "android:changeBounds:clip"
invoke-static {v0}, Landroidx/core/view/ViewCompat;->getClipBounds(Landroid/view/View;)Landroid/graphics/Rect;
move-result-object v0
invoke-interface {p0, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_2
return-void
.end method
.method private parentMatches(Landroid/view/View;Landroid/view/View;)Z
.locals 2
iget-boolean v0, p0, Landroidx/transition/ChangeBounds;->mReparent:Z
const/4 v1, 0x1
if-eqz v0, :cond_2
.line 250
invoke-virtual {p0, p1, v1}, Landroidx/transition/ChangeBounds;->getMatchedTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
move-result-object p0
const/4 v0, 0x0
if-nez p0, :cond_1
if-ne p1, p2, :cond_0
goto :goto_0
:cond_0
move v1, v0
goto :goto_0
.line 254
:cond_1
iget-object p0, p0, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
if-ne p2, p0, :cond_0
:cond_2
:goto_0
return v1
.end method
# virtual methods
.method public captureEndValues(Landroidx/transition/TransitionValues;)V
.locals 0
.line 244
invoke-direct {p0, p1}, Landroidx/transition/ChangeBounds;->captureValues(Landroidx/transition/TransitionValues;)V
return-void
.end method
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
.locals 0
.line 239
invoke-direct {p0, p1}, Landroidx/transition/ChangeBounds;->captureValues(Landroidx/transition/TransitionValues;)V
return-void
.end method
.method public createAnimator(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
.locals 18
move-object/from16 v8, p0
move-object/from16 v0, p2
move-object/from16 v1, p3
if-eqz v0, :cond_1b
if-nez v1, :cond_0
goto/16 :goto_c
.line 267
:cond_0
iget-object v3, v0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
.line 268
iget-object v4, v1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v5, "android:changeBounds:parent"
.line 269
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/view/ViewGroup;
.line 270
invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/view/ViewGroup;
if-eqz v3, :cond_1a
if-nez v4, :cond_1
goto/16 :goto_b
.line 274
:cond_1
iget-object v9, v1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
.line 275
invoke-direct {v8, v3, v4}, Landroidx/transition/ChangeBounds;->parentMatches(Landroid/view/View;Landroid/view/View;)Z
move-result v3
if-eqz v3, :cond_17
.line 276
iget-object v3, v0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v5, "android:changeBounds:bounds"
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Landroid/graphics/Rect;
.line 277
iget-object v6, v1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
invoke-interface {v6, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Landroid/graphics/Rect;
.line 278
iget v6, v3, Landroid/graphics/Rect;->left:I
.line 279
iget v7, v5, Landroid/graphics/Rect;->left:I
.line 280
iget v11, v3, Landroid/graphics/Rect;->top:I
.line 281
iget v12, v5, Landroid/graphics/Rect;->top:I
.line 282
iget v13, v3, Landroid/graphics/Rect;->right:I
.line 283
iget v14, v5, Landroid/graphics/Rect;->right:I
.line 284
iget v3, v3, Landroid/graphics/Rect;->bottom:I
.line 285
iget v15, v5, Landroid/graphics/Rect;->bottom:I
sub-int v5, v13, v6
sub-int v2, v3, v11
sub-int v10, v14, v7
sub-int v4, v15, v12
.line 290
iget-object v0, v0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
move-object/from16 v16, v9
const-string v9, "android:changeBounds:clip"
invoke-interface {v0, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/graphics/Rect;
.line 291
iget-object v1, v1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
invoke-interface {v1, v9}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
move-object v9, v1
check-cast v9, Landroid/graphics/Rect;
if-eqz v5, :cond_2
if-nez v2, :cond_3
:cond_2
if-eqz v10, :cond_7
if-eqz v4, :cond_7
:cond_3
if-ne v6, v7, :cond_5
if-eq v11, v12, :cond_4
goto :goto_0
:cond_4
const/4 v1, 0x0
goto :goto_1
:cond_5
:goto_0
const/4 v1, 0x1
:goto_1
if-ne v13, v14, :cond_6
if-eq v3, v15, :cond_8
:cond_6
add-int/lit8 v1, v1, 0x1
goto :goto_2
:cond_7
const/4 v1, 0x0
:cond_8
:goto_2
if-eqz v0, :cond_9
.line 297
invoke-virtual {v0, v9}, Landroid/graphics/Rect;->equals(Ljava/lang/Object;)Z
move-result v17
if-eqz v17, :cond_a
:cond_9
if-nez v0, :cond_b
if-eqz v9, :cond_b
:cond_a
add-int/lit8 v1, v1, 0x1
:cond_b
if-lez v1, :cond_18
move-object/from16 p1, v9
iget-boolean v9, v8, Landroidx/transition/ChangeBounds;->mResizeClip:Z
if-nez v9, :cond_10
move-object/from16 v9, v16
.line 304
invoke-static {v9, v6, v11, v13, v3}, Landroidx/transition/ViewUtils;->setLeftTopRightBottom(Landroid/view/View;IIII)V
const/4 v0, 0x2
if-ne v1, v0, :cond_d
if-ne v5, v10, :cond_c
if-ne v2, v4, :cond_c
.line 308
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v0
int-to-float v1, v6
int-to-float v2, v11
int-to-float v3, v7
int-to-float v4, v12
invoke-virtual {v0, v1, v2, v3, v4}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v0
sget-object v1, Landroidx/transition/ChangeBounds;->POSITION_PROPERTY:Landroid/util/Property;
.line 310
invoke-static {v9, v1, v0}, Landroidx/transition/ObjectAnimatorUtils;->ofPointF(Ljava/lang/Object;Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;
move-result-object v0
goto/16 :goto_9
.line 313
:cond_c
new-instance v1, Landroidx/transition/ChangeBounds$ViewBounds;
invoke-direct {v1, v9}, Landroidx/transition/ChangeBounds$ViewBounds;-><init>(Landroid/view/View;)V
.line 314
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v2
int-to-float v4, v6
int-to-float v5, v11
int-to-float v6, v7
int-to-float v7, v12
invoke-virtual {v2, v4, v5, v6, v7}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v2
sget-object v4, Landroidx/transition/ChangeBounds;->TOP_LEFT_PROPERTY:Landroid/util/Property;
.line 317
invoke-static {v1, v4, v2}, Landroidx/transition/ObjectAnimatorUtils;->ofPointF(Ljava/lang/Object;Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;
move-result-object v2
.line 319
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v4
int-to-float v5, v13
int-to-float v3, v3
int-to-float v6, v14
int-to-float v7, v15
invoke-virtual {v4, v5, v3, v6, v7}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v3
sget-object v4, Landroidx/transition/ChangeBounds;->BOTTOM_RIGHT_PROPERTY:Landroid/util/Property;
.line 321
invoke-static {v1, v4, v3}, Landroidx/transition/ObjectAnimatorUtils;->ofPointF(Ljava/lang/Object;Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;
move-result-object v3
.line 323
new-instance v4, Landroid/animation/AnimatorSet;
invoke-direct {v4}, Landroid/animation/AnimatorSet;-><init>()V
new-array v0, v0, [Landroid/animation/Animator;
const/4 v5, 0x0
.line 324
aput-object v2, v0, v5
const/4 v2, 0x1
aput-object v3, v0, v2
invoke-virtual {v4, v0}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
.line 326
new-instance v0, Landroidx/transition/ChangeBounds$7;
invoke-direct {v0, v8, v1}, Landroidx/transition/ChangeBounds$7;-><init>(Landroidx/transition/ChangeBounds;Landroidx/transition/ChangeBounds$ViewBounds;)V
invoke-virtual {v4, v0}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
move-object v0, v4
goto/16 :goto_9
:cond_d
if-ne v6, v7, :cond_f
if-eq v11, v12, :cond_e
goto :goto_3
.line 339
:cond_e
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v0
int-to-float v1, v13
int-to-float v2, v3
int-to-float v3, v14
int-to-float v4, v15
invoke-virtual {v0, v1, v2, v3, v4}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v0
sget-object v1, Landroidx/transition/ChangeBounds;->BOTTOM_RIGHT_ONLY_PROPERTY:Landroid/util/Property;
.line 341
invoke-static {v9, v1, v0}, Landroidx/transition/ObjectAnimatorUtils;->ofPointF(Ljava/lang/Object;Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;
move-result-object v0
goto/16 :goto_9
.line 334
:cond_f
:goto_3
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v0
int-to-float v1, v6
int-to-float v2, v11
int-to-float v3, v7
int-to-float v4, v12
invoke-virtual {v0, v1, v2, v3, v4}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v0
sget-object v1, Landroidx/transition/ChangeBounds;->TOP_LEFT_ONLY_PROPERTY:Landroid/util/Property;
.line 336
invoke-static {v9, v1, v0}, Landroidx/transition/ObjectAnimatorUtils;->ofPointF(Ljava/lang/Object;Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;
move-result-object v0
goto/16 :goto_9
:cond_10
move-object/from16 v9, v16
.line 345
invoke-static {v5, v10}, Ljava/lang/Math;->max(II)I
move-result v1
.line 346
invoke-static {v2, v4}, Ljava/lang/Math;->max(II)I
move-result v3
add-int/2addr v1, v6
add-int/2addr v3, v11
.line 348
invoke-static {v9, v6, v11, v1, v3}, Landroidx/transition/ViewUtils;->setLeftTopRightBottom(Landroid/view/View;IIII)V
if-ne v6, v7, :cond_12
if-eq v11, v12, :cond_11
goto :goto_4
:cond_11
const/4 v11, 0x0
goto :goto_5
.line 353
:cond_12
:goto_4
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v1
int-to-float v3, v6
int-to-float v6, v11
int-to-float v11, v7
int-to-float v13, v12
invoke-virtual {v1, v3, v6, v11, v13}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v1
sget-object v3, Landroidx/transition/ChangeBounds;->POSITION_PROPERTY:Landroid/util/Property;
.line 355
invoke-static {v9, v3, v1}, Landroidx/transition/ObjectAnimatorUtils;->ofPointF(Ljava/lang/Object;Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;
move-result-object v1
move-object v11, v1
:goto_5
if-nez v0, :cond_13
.line 360
new-instance v0, Landroid/graphics/Rect;
const/4 v1, 0x0
invoke-direct {v0, v1, v1, v5, v2}, Landroid/graphics/Rect;-><init>(IIII)V
goto :goto_6
:cond_13
const/4 v1, 0x0
:goto_6
if-nez p1, :cond_14
.line 363
new-instance v2, Landroid/graphics/Rect;
invoke-direct {v2, v1, v1, v10, v4}, Landroid/graphics/Rect;-><init>(IIII)V
goto :goto_7
:cond_14
move-object/from16 v2, p1
.line 366
:goto_7
invoke-virtual {v0, v2}, Landroid/graphics/Rect;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_15
.line 367
invoke-static {v9, v0}, Landroidx/core/view/ViewCompat;->setClipBounds(Landroid/view/View;Landroid/graphics/Rect;)V
sget-object v1, Landroidx/transition/ChangeBounds;->sRectEvaluator:Landroidx/transition/RectEvaluator;
.line 368
filled-new-array {v0, v2}, [Ljava/lang/Object;
move-result-object v0
const-string v2, "clipBounds"
invoke-static {v9, v2, v1, v0}, Landroid/animation/ObjectAnimator;->ofObject(Ljava/lang/Object;Ljava/lang/String;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/ObjectAnimator;
move-result-object v10
.line 370
new-instance v13, Landroidx/transition/ChangeBounds$8;
move-object v0, v13
move-object/from16 v1, p0
move-object v2, v9
move-object/from16 v3, p1
move v4, v7
move v5, v12
move v6, v14
move v7, v15
invoke-direct/range {v0 .. v7}, Landroidx/transition/ChangeBounds$8;-><init>(Landroidx/transition/ChangeBounds;Landroid/view/View;Landroid/graphics/Rect;IIII)V
invoke-virtual {v10, v13}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
move-object v2, v10
goto :goto_8
:cond_15
const/4 v2, 0x0
.line 388
:goto_8
invoke-static {v11, v2}, Landroidx/transition/TransitionUtils;->mergeAnimators(Landroid/animation/Animator;Landroid/animation/Animator;)Landroid/animation/Animator;
move-result-object v0
.line 391
:goto_9
invoke-virtual {v9}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v1
instance-of v1, v1, Landroid/view/ViewGroup;
if-eqz v1, :cond_16
.line 392
invoke-virtual {v9}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
move-result-object v1
check-cast v1, Landroid/view/ViewGroup;
const/4 v2, 0x1
.line 393
invoke-static {v1, v2}, Landroidx/transition/ViewGroupUtils;->suppressLayout(Landroid/view/ViewGroup;Z)V
.line 394
new-instance v2, Landroidx/transition/ChangeBounds$9;
invoke-direct {v2, v8, v1}, Landroidx/transition/ChangeBounds$9;-><init>(Landroidx/transition/ChangeBounds;Landroid/view/ViewGroup;)V
.line 421
invoke-virtual {v8, v2}, Landroidx/transition/ChangeBounds;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
:cond_16
return-object v0
.line 426
:cond_17
iget-object v2, v0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v3, "android:changeBounds:windowX"
invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
.line 427
iget-object v0, v0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v4, "android:changeBounds:windowY"
invoke-interface {v0, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
.line 428
iget-object v5, v1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
invoke-interface {v5, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Integer;
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
.line 429
iget-object v1, v1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
invoke-interface {v1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v1
if-ne v2, v3, :cond_19
if-eq v0, v1, :cond_18
goto :goto_a
:cond_18
const/4 v0, 0x0
return-object v0
:cond_19
:goto_a
iget-object v4, v8, Landroidx/transition/ChangeBounds;->mTempLocation:[I
move-object/from16 v5, p1
.line 432
invoke-virtual {v5, v4}, Landroid/view/ViewGroup;->getLocationInWindow([I)V
.line 433
invoke-virtual {v9}, Landroid/view/View;->getWidth()I
move-result v4
invoke-virtual {v9}, Landroid/view/View;->getHeight()I
move-result v6
sget-object v7, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
invoke-static {v4, v6, v7}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
move-result-object v4
.line 435
new-instance v6, Landroid/graphics/Canvas;
invoke-direct {v6, v4}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
.line 436
invoke-virtual {v9, v6}, Landroid/view/View;->draw(Landroid/graphics/Canvas;)V
.line 437
new-instance v6, Landroid/graphics/drawable/BitmapDrawable;
invoke-direct {v6, v4}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
.line 439
invoke-static {v9}, Landroidx/transition/ViewUtils;->getTransitionAlpha(Landroid/view/View;)F
move-result v7
const/4 v4, 0x0
.line 440
invoke-static {v9, v4}, Landroidx/transition/ViewUtils;->setTransitionAlpha(Landroid/view/View;F)V
.line 441
invoke-static/range {p1 .. p1}, Landroidx/transition/ViewUtils;->getOverlay(Landroid/view/View;)Landroidx/transition/ViewOverlayImpl;
move-result-object v4
invoke-interface {v4, v6}, Landroidx/transition/ViewOverlayImpl;->add(Landroid/graphics/drawable/Drawable;)V
.line 442
invoke-virtual/range {p0 .. p0}, Landroidx/transition/ChangeBounds;->getPathMotion()Landroidx/transition/PathMotion;
move-result-object v4
iget-object v10, v8, Landroidx/transition/ChangeBounds;->mTempLocation:[I
const/4 v11, 0x0
aget v12, v10, v11
sub-int/2addr v2, v12
int-to-float v2, v2
const/4 v11, 0x1
aget v10, v10, v11
sub-int/2addr v0, v10
int-to-float v0, v0
sub-int/2addr v3, v12
int-to-float v3, v3
sub-int/2addr v1, v10
int-to-float v1, v1
invoke-virtual {v4, v2, v0, v3, v1}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
move-result-object v0
sget-object v1, Landroidx/transition/ChangeBounds;->DRAWABLE_ORIGIN_PROPERTY:Landroid/util/Property;
.line 445
invoke-static {v1, v0}, Landroidx/transition/PropertyValuesHolderUtils;->ofPointF(Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;
move-result-object v0
new-array v1, v11, [Landroid/animation/PropertyValuesHolder;
const/4 v2, 0x0
aput-object v0, v1, v2
.line 447
invoke-static {v6, v1}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;
move-result-object v10
.line 448
new-instance v11, Landroidx/transition/ChangeBounds$10;
move-object v0, v11
move-object/from16 v1, p0
move-object/from16 v2, p1
move-object v3, v6
move-object v4, v9
move v5, v7
invoke-direct/range {v0 .. v5}, Landroidx/transition/ChangeBounds$10;-><init>(Landroidx/transition/ChangeBounds;Landroid/view/ViewGroup;Landroid/graphics/drawable/BitmapDrawable;Landroid/view/View;F)V
invoke-virtual {v10, v11}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
return-object v10
:cond_1a
:goto_b
const/4 v0, 0x0
return-object v0
:cond_1b
:goto_c
const/4 v0, 0x0
return-object v0
.end method
.method public getResizeClip()Z
.locals 0
iget-boolean p0, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
return p0
.end method
.method public getTransitionProperties()[Ljava/lang/String;
.locals 0
sget-object p0, Landroidx/transition/ChangeBounds;->sTransitionProperties:[Ljava/lang/String;
return-object p0
.end method
.method public setResizeClip(Z)V
.locals 0
iput-boolean p1, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
return-void
.end method