1181 lines
31 KiB
Smali
1181 lines
31 KiB
Smali
.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 public 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 public 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 public 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 public 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 public static final PROPNAME_BOUNDS:Ljava/lang/String; = "android:changeBounds:bounds"
|
|
|
|
.field public static final PROPNAME_CLIP:Ljava/lang/String; = "android:changeBounds:clip"
|
|
|
|
.field public static final PROPNAME_PARENT:Ljava/lang/String; = "android:changeBounds:parent"
|
|
|
|
.field public static final PROPNAME_WINDOW_X:Ljava/lang/String; = "android:changeBounds:windowX"
|
|
|
|
.field public static final PROPNAME_WINDOW_Y:Ljava/lang/String; = "android:changeBounds:windowY"
|
|
|
|
.field public 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 public 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 public static sRectEvaluator:Landroidx/transition/RectEvaluator;
|
|
|
|
.field public static final sTransitionProperties:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public mReparent:Z
|
|
|
|
.field public mResizeClip:Z
|
|
|
|
.field public mTempLocation:[I
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const-string v0, "android:changeBounds:bounds"
|
|
|
|
const-string v1, "android:changeBounds:clip"
|
|
|
|
const-string v2, "android:changeBounds:parent"
|
|
|
|
const-string v3, "android:changeBounds:windowX"
|
|
|
|
const-string v4, "android:changeBounds:windowY"
|
|
|
|
filled-new-array {v0, v1, v2, v3, v4}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/transition/ChangeBounds;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/transition/ChangeBounds;->setResizeClip(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private captureValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 7
|
|
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
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
|
|
|
|
: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
|
|
|
|
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"
|
|
|
|
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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;
|
|
|
|
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 v1, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-static {v0}, Landroidx/core/view/ViewCompat;->getClipBounds(Landroid/view/View;)Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android:changeBounds:clip"
|
|
|
|
invoke-interface {p1, v1, 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 3
|
|
|
|
iget-boolean v0, p0, Landroidx/transition/ChangeBounds;->mReparent:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-virtual {p0, p1, v1}, Landroidx/transition/Transition;->getMatchedTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-object p1, v0, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
if-ne p2, p1, :cond_0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public captureEndValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 0
|
|
.param p1 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
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
|
|
.param p1 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
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
|
|
.param p1 # Landroid/view/ViewGroup;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
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
|
|
|
|
:cond_0
|
|
iget-object v3, v0, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
iget-object v4, v1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v5, "android:changeBounds:parent"
|
|
|
|
invoke-interface {v3, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/view/ViewGroup;
|
|
|
|
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
|
|
|
|
:cond_1
|
|
iget-object v9, v1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-direct {v8, v3, v4}, Landroidx/transition/ChangeBounds;->parentMatches(Landroid/view/View;Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_17
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
iget v6, v3, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v7, v5, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v11, v3, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v12, v5, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v13, v3, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v14, v5, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v3, v3, Landroid/graphics/Rect;->bottom:I
|
|
|
|
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
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
move-object/from16 p2, v0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
if-nez v9, :cond_10
|
|
|
|
move-object/from16 v9, v16
|
|
|
|
invoke-static {v9, v6, v11, v13, v3}, Landroidx/transition/ViewUtils;->setLeftTopRightBottom(Landroid/view/View;IIII)V
|
|
|
|
if-ne v1, v0, :cond_d
|
|
|
|
if-ne v5, v10, :cond_c
|
|
|
|
if-ne v2, v4, :cond_c
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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_c
|
|
new-instance v1, Landroidx/transition/ChangeBounds$ViewBounds;
|
|
|
|
invoke-direct {v1, v9}, Landroidx/transition/ChangeBounds$ViewBounds;-><init>(Landroid/view/View;)V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
:cond_e
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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_f
|
|
:goto_3
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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
|
|
|
|
invoke-static {v5, v10}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v2, v4}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v1, v6
|
|
|
|
add-int/2addr v3, v11
|
|
|
|
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
|
|
|
|
:cond_12
|
|
:goto_4
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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 p2, :cond_13
|
|
|
|
new-instance v1, Landroid/graphics/Rect;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v1, v3, v3, v5, v2}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_13
|
|
const/4 v3, 0x0
|
|
|
|
move-object/from16 v1, p2
|
|
|
|
:goto_6
|
|
if-nez p1, :cond_14
|
|
|
|
new-instance v2, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v2, v3, v3, v10, v4}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
goto :goto_7
|
|
|
|
:cond_14
|
|
move-object/from16 v2, p1
|
|
|
|
:goto_7
|
|
invoke-virtual {v1, v2}, Landroid/graphics/Rect;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_15
|
|
|
|
invoke-static {v9, v1}, Landroidx/core/view/ViewCompat;->setClipBounds(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
sget-object v4, Landroidx/transition/ChangeBounds;->sRectEvaluator:Landroidx/transition/RectEvaluator;
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
aput-object v1, v0, v3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const-string v1, "clipBounds"
|
|
|
|
invoke-static {v9, v1, v4, v0}, Landroid/animation/ObjectAnimator;->ofObject(Ljava/lang/Object;Ljava/lang/String;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v10
|
|
|
|
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
|
|
|
|
goto :goto_8
|
|
|
|
:cond_15
|
|
const/4 v10, 0x0
|
|
|
|
:goto_8
|
|
invoke-static {v11, v10}, Landroidx/transition/TransitionUtils;->mergeAnimators(Landroid/animation/Animator;Landroid/animation/Animator;)Landroid/animation/Animator;
|
|
|
|
move-result-object v0
|
|
|
|
: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
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v1, v2}, Landroidx/transition/ViewGroupUtils;->suppressLayout(Landroid/view/ViewGroup;Z)V
|
|
|
|
new-instance v2, Landroidx/transition/ChangeBounds$9;
|
|
|
|
invoke-direct {v2, v8, v1}, Landroidx/transition/ChangeBounds$9;-><init>(Landroidx/transition/ChangeBounds;Landroid/view/ViewGroup;)V
|
|
|
|
invoke-virtual {v8, v2}, Landroidx/transition/Transition;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
|
|
|
|
:cond_16
|
|
return-object v0
|
|
|
|
: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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
invoke-virtual {v5, v4}, Landroid/view/ViewGroup;->getLocationInWindow([I)V
|
|
|
|
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
|
|
|
|
new-instance v6, Landroid/graphics/Canvas;
|
|
|
|
invoke-direct {v6, v4}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
invoke-virtual {v9, v6}, Landroid/view/View;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
new-instance v6, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
invoke-direct {v6, v4}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
invoke-static {v9}, Landroidx/transition/ViewUtils;->getTransitionAlpha(Landroid/view/View;)F
|
|
|
|
move-result v7
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v9, v4}, Landroidx/transition/ViewUtils;->setTransitionAlpha(Landroid/view/View;F)V
|
|
|
|
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
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/transition/Transition;->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 v12, 0x1
|
|
|
|
aget v13, v10, v12
|
|
|
|
sub-int/2addr v0, v13
|
|
|
|
int-to-float v0, v0
|
|
|
|
aget v13, v10, v11
|
|
|
|
sub-int/2addr v3, v13
|
|
|
|
int-to-float v3, v3
|
|
|
|
aget v10, v10, v12
|
|
|
|
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;
|
|
|
|
invoke-static {v1, v0}, Landroidx/transition/PropertyValuesHolderUtils;->ofPointF(Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v12, [Landroid/animation/PropertyValuesHolder;
|
|
|
|
aput-object v0, v1, v11
|
|
|
|
invoke-static {v6, v1}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v10
|
|
|
|
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 1
|
|
|
|
iget-boolean v0, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTransitionProperties()[Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Landroidx/transition/ChangeBounds;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setResizeClip(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/transition/ChangeBounds;->mResizeClip:Z
|
|
|
|
return-void
|
|
.end method
|