mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
1019 lines
28 KiB
Smali
1019 lines
28 KiB
Smali
.class public Landroidx/transition/ChangeTransform;
|
|
.super Landroidx/transition/Transition;
|
|
.source "ChangeTransform.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/transition/ChangeTransform$PathAnimatorMatrix;,
|
|
Landroidx/transition/ChangeTransform$GhostListener;,
|
|
Landroidx/transition/ChangeTransform$Transforms;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final NON_TRANSLATIONS_PROPERTY:Landroid/util/Property;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/util/Property<",
|
|
"Landroidx/transition/ChangeTransform$PathAnimatorMatrix;",
|
|
"[F>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final PROPNAME_INTERMEDIATE_MATRIX:Ljava/lang/String; = "android:changeTransform:intermediateMatrix"
|
|
|
|
.field private static final PROPNAME_INTERMEDIATE_PARENT_MATRIX:Ljava/lang/String; = "android:changeTransform:intermediateParentMatrix"
|
|
|
|
.field private static final PROPNAME_MATRIX:Ljava/lang/String; = "android:changeTransform:matrix"
|
|
|
|
.field private static final PROPNAME_PARENT:Ljava/lang/String; = "android:changeTransform:parent"
|
|
|
|
.field private static final PROPNAME_PARENT_MATRIX:Ljava/lang/String; = "android:changeTransform:parentMatrix"
|
|
|
|
.field private static final PROPNAME_TRANSFORMS:Ljava/lang/String; = "android:changeTransform:transforms"
|
|
|
|
.field private static final SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
.field private static final TRANSLATIONS_PROPERTY:Landroid/util/Property;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/util/Property<",
|
|
"Landroidx/transition/ChangeTransform$PathAnimatorMatrix;",
|
|
"Landroid/graphics/PointF;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final sTransitionProperties:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field private mReparent:Z
|
|
|
|
.field private mTempMatrix:Landroid/graphics/Matrix;
|
|
|
|
.field mUseOverlay:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-string v0, "android:changeTransform:transforms"
|
|
|
|
const-string v1, "android:changeTransform:parentMatrix"
|
|
|
|
const-string v2, "android:changeTransform:matrix"
|
|
|
|
.line 61
|
|
filled-new-array {v2, v0, v1}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/transition/ChangeTransform;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
.line 70
|
|
new-instance v0, Landroidx/transition/ChangeTransform$1;
|
|
|
|
const-class v1, [F
|
|
|
|
const-string v2, "nonTranslations"
|
|
|
|
invoke-direct {v0, v1, v2}, Landroidx/transition/ChangeTransform$1;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
|
|
|
|
sput-object v0, Landroidx/transition/ChangeTransform;->NON_TRANSLATIONS_PROPERTY:Landroid/util/Property;
|
|
|
|
.line 86
|
|
new-instance v0, Landroidx/transition/ChangeTransform$2;
|
|
|
|
const-class v1, Landroid/graphics/PointF;
|
|
|
|
const-string v2, "translations"
|
|
|
|
invoke-direct {v0, v1, v2}, Landroidx/transition/ChangeTransform$2;-><init>(Ljava/lang/Class;Ljava/lang/String;)V
|
|
|
|
sput-object v0, Landroidx/transition/ChangeTransform;->TRANSLATIONS_PROPERTY:Landroid/util/Property;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
sput-boolean v0, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 109
|
|
invoke-direct {p0}, Landroidx/transition/Transition;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
.line 107
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/transition/ChangeTransform;->mTempMatrix:Landroid/graphics/Matrix;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 3
|
|
|
|
.line 115
|
|
invoke-direct {p0, p1, p2}, Landroidx/transition/Transition;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
iput-boolean v0, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
.line 107
|
|
new-instance v1, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v1}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iput-object v1, p0, Landroidx/transition/ChangeTransform;->mTempMatrix:Landroid/graphics/Matrix;
|
|
|
|
.line 116
|
|
sget-object v1, Landroidx/transition/Styleable;->CHANGE_TRANSFORM:[I
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object p1
|
|
|
|
.line 117
|
|
check-cast p2, Lorg/xmlpull/v1/XmlPullParser;
|
|
|
|
const-string v1, "reparentWithOverlay"
|
|
|
|
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 v1
|
|
|
|
iput-boolean v1, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
const-string v1, "reparent"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 119
|
|
invoke-static {p1, p2, v1, v2, v0}, Landroidx/core/content/res/TypedArrayUtils;->getNamedBoolean(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;IZ)Z
|
|
|
|
move-result p2
|
|
|
|
iput-boolean p2, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
.line 121
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private captureValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 4
|
|
|
|
.line 199
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
.line 200
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x8
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 203
|
|
:cond_0
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:changeTransform:parent"
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v1, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 204
|
|
new-instance v1, Landroidx/transition/ChangeTransform$Transforms;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/transition/ChangeTransform$Transforms;-><init>(Landroid/view/View;)V
|
|
|
|
.line 205
|
|
iget-object v2, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v3, "android:changeTransform:transforms"
|
|
|
|
invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 206
|
|
invoke-virtual {v0}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 207
|
|
invoke-virtual {v1}, Landroid/graphics/Matrix;->isIdentity()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
.line 210
|
|
:cond_1
|
|
new-instance v2, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v2, v1}, Landroid/graphics/Matrix;-><init>(Landroid/graphics/Matrix;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v2, 0x0
|
|
|
|
.line 212
|
|
:goto_1
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v3, "android:changeTransform:matrix"
|
|
|
|
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-boolean p0, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
.line 214
|
|
new-instance p0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {p0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
.line 215
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
.line 216
|
|
invoke-static {v1, p0}, Landroidx/transition/ViewUtils;->transformMatrixToGlobal(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
|
|
.line 217
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getScrollX()I
|
|
|
|
move-result v2
|
|
|
|
neg-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getScrollY()I
|
|
|
|
move-result v1
|
|
|
|
neg-int v1, v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p0, v2, v1}, Landroid/graphics/Matrix;->preTranslate(FF)Z
|
|
|
|
.line 218
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:changeTransform:parentMatrix"
|
|
|
|
invoke-interface {v1, v2, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 219
|
|
iget-object p0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
sget v1, Landroidx/transition/R$id;->transition_transform:I
|
|
|
|
.line 220
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "android:changeTransform:intermediateMatrix"
|
|
|
|
.line 219
|
|
invoke-interface {p0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 221
|
|
iget-object p0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
sget p1, Landroidx/transition/R$id;->parent_matrix:I
|
|
|
|
.line 222
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "android:changeTransform:intermediateParentMatrix"
|
|
|
|
.line 221
|
|
invoke-interface {p0, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private createGhostView(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)V
|
|
.locals 3
|
|
|
|
.line 392
|
|
iget-object v0, p3, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
.line 394
|
|
iget-object v1, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:changeTransform:parentMatrix"
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/graphics/Matrix;
|
|
|
|
.line 395
|
|
new-instance v2, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v2, v1}, Landroid/graphics/Matrix;-><init>(Landroid/graphics/Matrix;)V
|
|
|
|
.line 396
|
|
invoke-static {p1, v2}, Landroidx/transition/ViewUtils;->transformMatrixToLocal(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
|
|
.line 398
|
|
invoke-static {v0, p1, v2}, Landroidx/transition/GhostViewUtils;->addGhost(Landroid/view/View;Landroid/view/ViewGroup;Landroid/graphics/Matrix;)Landroidx/transition/GhostView;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 403
|
|
:cond_0
|
|
iget-object v1, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:changeTransform:parent"
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
iget-object v2, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-interface {p1, v1, v2}, Landroidx/transition/GhostView;->reserveEndViewTransition(Landroid/view/ViewGroup;Landroid/view/View;)V
|
|
|
|
.line 407
|
|
:goto_0
|
|
iget-object v1, p0, Landroidx/transition/Transition;->mParent:Landroidx/transition/TransitionSet;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 408
|
|
iget-object p0, p0, Landroidx/transition/Transition;->mParent:Landroidx/transition/TransitionSet;
|
|
|
|
goto :goto_0
|
|
|
|
.line 411
|
|
:cond_1
|
|
new-instance v1, Landroidx/transition/ChangeTransform$GhostListener;
|
|
|
|
invoke-direct {v1, v0, p1}, Landroidx/transition/ChangeTransform$GhostListener;-><init>(Landroid/view/View;Landroidx/transition/GhostView;)V
|
|
|
|
.line 412
|
|
invoke-virtual {p0, v1}, Landroidx/transition/Transition;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
|
|
|
|
sget-boolean p0, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
.line 417
|
|
iget-object p0, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
iget-object p1, p3, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
if-eq p0, p1, :cond_2
|
|
|
|
.line 418
|
|
iget-object p0, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-static {p0, p1}, Landroidx/transition/ViewUtils;->setTransitionAlpha(Landroid/view/View;F)V
|
|
|
|
:cond_2
|
|
const/high16 p0, 0x3f800000 # 1.0f
|
|
|
|
.line 420
|
|
invoke-static {v0, p0}, Landroidx/transition/ViewUtils;->setTransitionAlpha(Landroid/view/View;F)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private createTransformAnimator(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;Z)Landroid/animation/ObjectAnimator;
|
|
.locals 12
|
|
|
|
.line 290
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v0, "android:changeTransform:matrix"
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/graphics/Matrix;
|
|
|
|
.line 291
|
|
iget-object v1, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/Matrix;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 294
|
|
sget-object p1, Landroidx/transition/MatrixUtils;->IDENTITY_MATRIX:Landroid/graphics/Matrix;
|
|
|
|
:cond_0
|
|
if-nez v0, :cond_1
|
|
|
|
.line 298
|
|
sget-object v0, Landroidx/transition/MatrixUtils;->IDENTITY_MATRIX:Landroid/graphics/Matrix;
|
|
|
|
:cond_1
|
|
move-object v4, v0
|
|
|
|
.line 301
|
|
invoke-virtual {p1, v4}, Landroid/graphics/Matrix;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 305
|
|
:cond_2
|
|
iget-object v0, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v1, "android:changeTransform:transforms"
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v6, v0
|
|
|
|
check-cast v6, Landroidx/transition/ChangeTransform$Transforms;
|
|
|
|
.line 308
|
|
iget-object v5, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
.line 309
|
|
invoke-static {v5}, Landroidx/transition/ChangeTransform;->setIdentityTransforms(Landroid/view/View;)V
|
|
|
|
const/16 p2, 0x9
|
|
|
|
new-array v0, p2, [F
|
|
|
|
.line 312
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
new-array p1, p2, [F
|
|
|
|
.line 314
|
|
invoke-virtual {v4, p1}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
.line 315
|
|
new-instance v7, Landroidx/transition/ChangeTransform$PathAnimatorMatrix;
|
|
|
|
invoke-direct {v7, v5, v0}, Landroidx/transition/ChangeTransform$PathAnimatorMatrix;-><init>(Landroid/view/View;[F)V
|
|
|
|
sget-object v1, Landroidx/transition/ChangeTransform;->NON_TRANSLATIONS_PROPERTY:Landroid/util/Property;
|
|
|
|
.line 318
|
|
new-instance v2, Landroidx/transition/FloatArrayEvaluator;
|
|
|
|
new-array p2, p2, [F
|
|
|
|
invoke-direct {v2, p2}, Landroidx/transition/FloatArrayEvaluator;-><init>([F)V
|
|
|
|
const/4 p2, 0x2
|
|
|
|
new-array v3, p2, [[F
|
|
|
|
const/4 v8, 0x0
|
|
|
|
aput-object v0, v3, v8
|
|
|
|
const/4 v9, 0x1
|
|
|
|
aput-object p1, v3, v9
|
|
|
|
invoke-static {v1, v2, v3}, Landroid/animation/PropertyValuesHolder;->ofObject(Landroid/util/Property;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/PropertyValuesHolder;
|
|
|
|
move-result-object v1
|
|
|
|
.line 321
|
|
invoke-virtual {p0}, Landroidx/transition/ChangeTransform;->getPathMotion()Landroidx/transition/PathMotion;
|
|
|
|
move-result-object v2
|
|
|
|
aget v3, v0, p2
|
|
|
|
const/4 v10, 0x5
|
|
|
|
aget v0, v0, v10
|
|
|
|
aget v11, p1, p2
|
|
|
|
aget p1, p1, v10
|
|
|
|
invoke-virtual {v2, v3, v0, v11, p1}, Landroidx/transition/PathMotion;->getPath(FFFF)Landroid/graphics/Path;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Landroidx/transition/ChangeTransform;->TRANSLATIONS_PROPERTY:Landroid/util/Property;
|
|
|
|
.line 324
|
|
invoke-static {v0, p1}, Landroidx/transition/PropertyValuesHolderUtils;->ofPointF(Landroid/util/Property;Landroid/graphics/Path;)Landroid/animation/PropertyValuesHolder;
|
|
|
|
move-result-object p1
|
|
|
|
new-array p2, p2, [Landroid/animation/PropertyValuesHolder;
|
|
|
|
aput-object v1, p2, v8
|
|
|
|
aput-object p1, p2, v9
|
|
|
|
.line 326
|
|
invoke-static {v7, p2}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object p1
|
|
|
|
.line 331
|
|
new-instance p2, Landroidx/transition/ChangeTransform$3;
|
|
|
|
move-object v1, p2
|
|
|
|
move-object v2, p0
|
|
|
|
move v3, p3
|
|
|
|
invoke-direct/range {v1 .. v7}, Landroidx/transition/ChangeTransform$3;-><init>(Landroidx/transition/ChangeTransform;ZLandroid/graphics/Matrix;Landroid/view/View;Landroidx/transition/ChangeTransform$Transforms;Landroidx/transition/ChangeTransform$PathAnimatorMatrix;)V
|
|
|
|
.line 372
|
|
invoke-virtual {p1, p2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 373
|
|
invoke-static {p1, p2}, Landroidx/transition/AnimatorUtils;->addPauseListener(Landroid/animation/Animator;Landroid/animation/AnimatorListenerAdapter;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private parentsMatch(Landroid/view/ViewGroup;Landroid/view/ViewGroup;)Z
|
|
.locals 3
|
|
|
|
.line 379
|
|
invoke-virtual {p0, p1}, Landroidx/transition/ChangeTransform;->isValidTarget(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0, p2}, Landroidx/transition/ChangeTransform;->isValidTarget(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 382
|
|
:cond_0
|
|
invoke-virtual {p0, p1, v1}, Landroidx/transition/ChangeTransform;->getMatchedTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_3
|
|
|
|
.line 384
|
|
iget-object p0, p0, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
if-ne p2, p0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-ne p1, p2, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
move v2, v1
|
|
|
|
:cond_3
|
|
return v2
|
|
.end method
|
|
|
|
.method static setIdentityTransforms(Landroid/view/View;)V
|
|
.locals 9
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/high16 v4, 0x3f800000 # 1.0f
|
|
|
|
const/high16 v5, 0x3f800000 # 1.0f
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
.line 445
|
|
invoke-static/range {v0 .. v8}, Landroidx/transition/ChangeTransform;->setTransforms(Landroid/view/View;FFFFFFFF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setMatricesForParent(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)V
|
|
.locals 3
|
|
|
|
.line 425
|
|
iget-object v0, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v1, "android:changeTransform:parentMatrix"
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/Matrix;
|
|
|
|
.line 426
|
|
iget-object p2, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
sget v2, Landroidx/transition/R$id;->parent_matrix:I
|
|
|
|
invoke-virtual {p2, v2, v0}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
iget-object p0, p0, Landroidx/transition/ChangeTransform;->mTempMatrix:Landroid/graphics/Matrix;
|
|
|
|
.line 429
|
|
invoke-virtual {p0}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
.line 430
|
|
invoke-virtual {v0, p0}, Landroid/graphics/Matrix;->invert(Landroid/graphics/Matrix;)Z
|
|
|
|
.line 432
|
|
iget-object p2, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v0, "android:changeTransform:matrix"
|
|
|
|
invoke-interface {p2, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroid/graphics/Matrix;
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 434
|
|
new-instance p2, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {p2}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
.line 435
|
|
iget-object v2, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v2, v0, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 438
|
|
:cond_0
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/graphics/Matrix;
|
|
|
|
.line 439
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Matrix;->postConcat(Landroid/graphics/Matrix;)Z
|
|
|
|
.line 440
|
|
invoke-virtual {p2, p0}, Landroid/graphics/Matrix;->postConcat(Landroid/graphics/Matrix;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static setTransforms(Landroid/view/View;FFFFFFFF)V
|
|
.locals 0
|
|
|
|
.line 452
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
.line 453
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
.line 454
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->setTranslationZ(Landroid/view/View;F)V
|
|
|
|
.line 455
|
|
invoke-virtual {p0, p4}, Landroid/view/View;->setScaleX(F)V
|
|
|
|
.line 456
|
|
invoke-virtual {p0, p5}, Landroid/view/View;->setScaleY(F)V
|
|
|
|
.line 457
|
|
invoke-virtual {p0, p6}, Landroid/view/View;->setRotationX(F)V
|
|
|
|
.line 458
|
|
invoke-virtual {p0, p7}, Landroid/view/View;->setRotationY(F)V
|
|
|
|
.line 459
|
|
invoke-virtual {p0, p8}, Landroid/view/View;->setRotation(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public captureEndValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 0
|
|
|
|
.line 240
|
|
invoke-direct {p0, p1}, Landroidx/transition/ChangeTransform;->captureValues(Landroidx/transition/TransitionValues;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 0
|
|
|
|
.line 228
|
|
invoke-direct {p0, p1}, Landroidx/transition/ChangeTransform;->captureValues(Landroidx/transition/TransitionValues;)V
|
|
|
|
sget-boolean p0, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
.line 233
|
|
iget-object p0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->startViewTransition(Landroid/view/View;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public createAnimator(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
|
|
.locals 5
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
if-eqz p3, :cond_7
|
|
|
|
.line 248
|
|
iget-object v0, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v1, "android:changeTransform:parent"
|
|
|
|
.line 249
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
iget-object v0, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
.line 250
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
.line 254
|
|
:cond_0
|
|
iget-object v0, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
.line 255
|
|
iget-object v2, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
iget-boolean v2, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 256
|
|
invoke-direct {p0, v0, v1}, Landroidx/transition/ChangeTransform;->parentsMatch(Landroid/view/ViewGroup;Landroid/view/ViewGroup;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
.line 258
|
|
:goto_0
|
|
iget-object v2, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v3, "android:changeTransform:intermediateMatrix"
|
|
|
|
invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/graphics/Matrix;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 260
|
|
iget-object v3, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v4, "android:changeTransform:matrix"
|
|
|
|
invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 263
|
|
:cond_2
|
|
iget-object v2, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v3, "android:changeTransform:intermediateParentMatrix"
|
|
|
|
.line 264
|
|
invoke-interface {v2, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/graphics/Matrix;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 266
|
|
iget-object v3, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v4, "android:changeTransform:parentMatrix"
|
|
|
|
invoke-interface {v3, v4, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_3
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 271
|
|
invoke-direct {p0, p2, p3}, Landroidx/transition/ChangeTransform;->setMatricesForParent(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)V
|
|
|
|
.line 275
|
|
:cond_4
|
|
invoke-direct {p0, p2, p3, v1}, Landroidx/transition/ChangeTransform;->createTransformAnimator(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;Z)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-boolean v1, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 279
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/transition/ChangeTransform;->createGhostView(Landroid/view/ViewGroup;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
sget-boolean p0, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
if-nez p0, :cond_6
|
|
|
|
.line 282
|
|
iget-object p0, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->endViewTransition(Landroid/view/View;)V
|
|
|
|
:cond_6
|
|
:goto_1
|
|
return-object v2
|
|
|
|
:cond_7
|
|
:goto_2
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getReparent()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getReparentWithOverlay()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getTransitionProperties()[Ljava/lang/String;
|
|
.locals 0
|
|
|
|
sget-object p0, Landroidx/transition/ChangeTransform;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public setReparent(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setReparentWithOverlay(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
return-void
|
|
.end method
|