929 lines
27 KiB
Smali
929 lines
27 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 public 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 public static final PROPNAME_INTERMEDIATE_MATRIX:Ljava/lang/String; = "android:changeTransform:intermediateMatrix"
|
|
|
|
.field public static final PROPNAME_INTERMEDIATE_PARENT_MATRIX:Ljava/lang/String; = "android:changeTransform:intermediateParentMatrix"
|
|
|
|
.field public static final PROPNAME_MATRIX:Ljava/lang/String; = "android:changeTransform:matrix"
|
|
|
|
.field public static final PROPNAME_PARENT:Ljava/lang/String; = "android:changeTransform:parent"
|
|
|
|
.field public static final PROPNAME_PARENT_MATRIX:Ljava/lang/String; = "android:changeTransform:parentMatrix"
|
|
|
|
.field public static final PROPNAME_TRANSFORMS:Ljava/lang/String; = "android:changeTransform:transforms"
|
|
|
|
.field public static final SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
.field public 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 public static final sTransitionProperties:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public mReparent:Z
|
|
|
|
.field public mTempMatrix:Landroid/graphics/Matrix;
|
|
|
|
.field public mUseOverlay:Z
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-string v0, "android:changeTransform:matrix"
|
|
|
|
const-string v1, "android:changeTransform:transforms"
|
|
|
|
const-string v2, "android:changeTransform:parentMatrix"
|
|
|
|
filled-new-array {v0, v1, v2}, [Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Landroidx/transition/ChangeTransform;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
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;
|
|
|
|
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;
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private captureValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v2, 0x8
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "android:changeTransform:parent"
|
|
|
|
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v1, Landroidx/transition/ChangeTransform$Transforms;
|
|
|
|
invoke-direct {v1, v0}, Landroidx/transition/ChangeTransform$Transforms;-><init>(Landroid/view/View;)V
|
|
|
|
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;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Matrix;->isIdentity()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
: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
|
|
|
|
: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 v1, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
new-instance v1, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v1}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/ViewGroup;
|
|
|
|
invoke-static {v2, v1}, Landroidx/transition/ViewUtils;->transformMatrixToGlobal(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getScrollX()I
|
|
|
|
move-result v3
|
|
|
|
neg-int v3, v3
|
|
|
|
int-to-float v3, v3
|
|
|
|
invoke-virtual {v2}, Landroid/view/ViewGroup;->getScrollY()I
|
|
|
|
move-result v2
|
|
|
|
neg-int v2, v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
invoke-virtual {v1, v3, v2}, Landroid/graphics/Matrix;->preTranslate(FF)Z
|
|
|
|
iget-object v2, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v3, "android:changeTransform:parentMatrix"
|
|
|
|
invoke-interface {v2, v3, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object v1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
sget v2, Landroidx/transition/R$id;->transition_transform:I
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "android:changeTransform:intermediateMatrix"
|
|
|
|
invoke-interface {v1, v3, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
sget v1, Landroidx/transition/R$id;->parent_matrix:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "android:changeTransform:intermediateParentMatrix"
|
|
|
|
invoke-interface {p1, v1, v0}, 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
|
|
|
|
iget-object v0, p3, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
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;
|
|
|
|
new-instance v2, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v2, v1}, Landroid/graphics/Matrix;-><init>(Landroid/graphics/Matrix;)V
|
|
|
|
invoke-static {p1, v2}, Landroidx/transition/ViewUtils;->transformMatrixToLocal(Landroid/view/View;Landroid/graphics/Matrix;)V
|
|
|
|
invoke-static {v0, p1, v2}, Landroidx/transition/GhostViewUtils;->addGhost(Landroid/view/View;Landroid/view/ViewGroup;Landroid/graphics/Matrix;)Landroidx/transition/GhostViewImpl;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
: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/GhostViewImpl;->reserveEndViewTransition(Landroid/view/ViewGroup;Landroid/view/View;)V
|
|
|
|
move-object v1, p0
|
|
|
|
:goto_0
|
|
iget-object v2, v1, Landroidx/transition/Transition;->mParent:Landroidx/transition/TransitionSet;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v2, Landroidx/transition/ChangeTransform$GhostListener;
|
|
|
|
invoke-direct {v2, v0, p1}, Landroidx/transition/ChangeTransform$GhostListener;-><init>(Landroid/view/View;Landroidx/transition/GhostViewImpl;)V
|
|
|
|
invoke-virtual {v1, v2}, Landroidx/transition/Transition;->addListener(Landroidx/transition/Transition$TransitionListener;)Landroidx/transition/Transition;
|
|
|
|
sget-boolean p1, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object p1, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
iget-object p2, p3, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
if-eq p1, p2, :cond_2
|
|
|
|
const/4 p2, 0x0
|
|
|
|
invoke-static {p1, p2}, Landroidx/transition/ViewUtils;->setTransitionAlpha(Landroid/view/View;F)V
|
|
|
|
:cond_2
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
invoke-static {v0, p1}, 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
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
sget-object p1, Landroidx/transition/MatrixUtils;->IDENTITY_MATRIX:Landroid/graphics/Matrix;
|
|
|
|
:cond_0
|
|
if-nez v0, :cond_1
|
|
|
|
sget-object v0, Landroidx/transition/MatrixUtils;->IDENTITY_MATRIX:Landroid/graphics/Matrix;
|
|
|
|
:cond_1
|
|
move-object v4, v0
|
|
|
|
invoke-virtual {p1, v4}, Landroid/graphics/Matrix;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
: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;
|
|
|
|
iget-object v5, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-static {v5}, Landroidx/transition/ChangeTransform;->setIdentityTransforms(Landroid/view/View;)V
|
|
|
|
const/16 p2, 0x9
|
|
|
|
new-array v0, p2, [F
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
new-array p1, p2, [F
|
|
|
|
invoke-virtual {v4, p1}, Landroid/graphics/Matrix;->getValues([F)V
|
|
|
|
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;
|
|
|
|
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
|
|
|
|
invoke-virtual {p0}, Landroidx/transition/Transition;->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;
|
|
|
|
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
|
|
|
|
invoke-static {v7, p2}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object p1
|
|
|
|
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
|
|
|
|
invoke-virtual {p1, p2}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
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
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/transition/Transition;->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/Transition;->isValidTarget(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, v1}, Landroidx/transition/Transition;->getMatchedTransitionValues(Landroid/view/View;Z)Landroidx/transition/TransitionValues;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
if-ne p2, p1, :cond_2
|
|
|
|
:goto_0
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
:goto_1
|
|
if-ne p1, p2, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_2
|
|
return v2
|
|
.end method
|
|
|
|
.method public 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
|
|
|
|
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 4
|
|
|
|
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;
|
|
|
|
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 p2, p0, Landroidx/transition/ChangeTransform;->mTempMatrix:Landroid/graphics/Matrix;
|
|
|
|
invoke-virtual {p2}, Landroid/graphics/Matrix;->reset()V
|
|
|
|
invoke-virtual {v0, p2}, Landroid/graphics/Matrix;->invert(Landroid/graphics/Matrix;)Z
|
|
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v2, "android:changeTransform:matrix"
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/Matrix;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
iget-object v3, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
invoke-interface {v3, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
: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;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Matrix;->postConcat(Landroid/graphics/Matrix;)Z
|
|
|
|
invoke-virtual {v0, p2}, Landroid/graphics/Matrix;->postConcat(Landroid/graphics/Matrix;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setTransforms(Landroid/view/View;FFFFFFFF)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setTranslationX(F)V
|
|
|
|
invoke-virtual {p0, p2}, Landroid/view/View;->setTranslationY(F)V
|
|
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->setTranslationZ(Landroid/view/View;F)V
|
|
|
|
invoke-virtual {p0, p4}, Landroid/view/View;->setScaleX(F)V
|
|
|
|
invoke-virtual {p0, p5}, Landroid/view/View;->setScaleY(F)V
|
|
|
|
invoke-virtual {p0, p6}, Landroid/view/View;->setRotationX(F)V
|
|
|
|
invoke-virtual {p0, p7}, Landroid/view/View;->setRotationY(F)V
|
|
|
|
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
|
|
.param p1 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1}, Landroidx/transition/ChangeTransform;->captureValues(Landroidx/transition/TransitionValues;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/transition/TransitionValues;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1}, Landroidx/transition/ChangeTransform;->captureValues(Landroidx/transition/TransitionValues;)V
|
|
|
|
sget-boolean v0, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/ViewGroup;
|
|
|
|
iget-object p1, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, 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
|
|
.param p1 # Landroid/view/ViewGroup;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
if-eqz p3, :cond_7
|
|
|
|
iget-object v0, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v1, "android:changeTransform:parent"
|
|
|
|
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;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
: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;
|
|
|
|
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
|
|
|
|
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
|
|
|
|
: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
|
|
|
|
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;
|
|
|
|
:cond_2
|
|
iget-object v2, p2, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
|
|
|
|
const-string v3, "android:changeTransform:intermediateParentMatrix"
|
|
|
|
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
|
|
|
|
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
|
|
|
|
invoke-direct {p0, p2, p3}, Landroidx/transition/ChangeTransform;->setMatricesForParent(Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)V
|
|
|
|
: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
|
|
|
|
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 p1, Landroidx/transition/ChangeTransform;->SUPPORTS_VIEW_REMOVAL_SUPPRESSION:Z
|
|
|
|
if-nez p1, :cond_6
|
|
|
|
iget-object p1, p2, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->endViewTransition(Landroid/view/View;)V
|
|
|
|
:cond_6
|
|
:goto_1
|
|
return-object v2
|
|
|
|
:cond_7
|
|
:goto_2
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getReparent()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/transition/ChangeTransform;->mReparent:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getReparentWithOverlay()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/transition/ChangeTransform;->mUseOverlay:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getTransitionProperties()[Ljava/lang/String;
|
|
.locals 1
|
|
|
|
sget-object v0, Landroidx/transition/ChangeTransform;->sTransitionProperties:[Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.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
|