2019-02-04 20:08:30 +00:00
|
|
|
.class public Landroidx/transition/SidePropagation;
|
|
|
|
.super Landroidx/transition/VisibilityPropagation;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "SidePropagation.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private mPropagationSpeed:F
|
|
|
|
|
|
|
|
.field private mSide:I
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/transition/VisibilityPropagation;-><init>()V
|
|
|
|
|
|
|
|
const/high16 v0, 0x40400000 # 3.0f
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/transition/SidePropagation;->mPropagationSpeed:F
|
|
|
|
|
|
|
|
const/16 v0, 0x50
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/transition/SidePropagation;->mSide:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private distance(Landroid/view/View;IIIIIIII)I
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/transition/SidePropagation;->mSide:I
|
|
|
|
|
|
|
|
const/4 v1, 0x5
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
const v5, 0x800003
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne v0, v5, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-ne p1, v4, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-05-03 18:53:54 +00:00
|
|
|
if-eqz v4, :cond_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_1
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v0, 0x5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_2
|
|
|
|
:goto_1
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v0, 0x3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
const v5, 0x800005
|
|
|
|
|
|
|
|
if-ne v0, v5, :cond_5
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
if-ne p1, v4, :cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:cond_4
|
2019-02-04 20:08:30 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_2
|
|
|
|
if-eqz v4, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_1
|
2019-02-04 20:29:01 +00:00
|
|
|
|
|
|
|
:cond_5
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_3
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eq v0, v2, :cond_9
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eq v0, v1, :cond_8
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/16 p1, 0x30
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eq v0, p1, :cond_7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/16 p1, 0x50
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eq v0, p1, :cond_6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
sub-int/2addr p3, p7
|
|
|
|
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
|
|
|
|
invoke-static {p4}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int v3, p3, p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_7
|
|
|
|
sub-int/2addr p9, p3
|
|
|
|
|
|
|
|
sub-int/2addr p4, p2
|
|
|
|
|
|
|
|
invoke-static {p4}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int v3, p9, p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_8
|
|
|
|
sub-int/2addr p2, p6
|
|
|
|
|
|
|
|
sub-int/2addr p5, p3
|
|
|
|
|
|
|
|
invoke-static {p5}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int v3, p2, p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
goto :goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_9
|
|
|
|
sub-int/2addr p8, p2
|
|
|
|
|
|
|
|
sub-int/2addr p5, p3
|
|
|
|
|
|
|
|
invoke-static {p5}, Ljava/lang/Math;->abs(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
add-int v3, p8, p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
:goto_4
|
2019-02-04 20:08:30 +00:00
|
|
|
return v3
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private getMaxDistance(Landroid/view/ViewGroup;)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/transition/SidePropagation;->mSide:I
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x5
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const v1, 0x800003
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const v1, 0x800005
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getStartDelay(Landroid/view/ViewGroup;Landroidx/transition/Transition;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)J
|
2019-02-04 20:29:01 +00:00
|
|
|
.locals 16
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-object/from16 v10, p0
|
|
|
|
|
|
|
|
move-object/from16 v0, p3
|
|
|
|
|
|
|
|
const-wide/16 v11, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
if-nez p4, :cond_0
|
|
|
|
|
|
|
|
return-wide v11
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual/range {p2 .. p2}, Landroidx/transition/Transition;->getEpicenter()Landroid/graphics/Rect;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz p4, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v10, v0}, Landroidx/transition/SidePropagation;->getViewVisibility(Landroidx/transition/TransitionValues;)I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-nez v3, :cond_1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
move-object/from16 v0, p4
|
|
|
|
|
|
|
|
const/4 v13, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
2019-02-04 20:29:01 +00:00
|
|
|
const/4 v3, -0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v13, -0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v10, v0}, Landroidx/transition/SidePropagation;->getViewX(Landroidx/transition/TransitionValues;)I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v10, v0}, Landroidx/transition/SidePropagation;->getViewY(Landroidx/transition/TransitionValues;)I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
new-array v5, v0, [I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-object/from16 v14, p1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {v14, v5}, Landroid/view/ViewGroup;->getLocationOnScreen([I)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aget v6, v5, v6
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/ViewGroup;->getTranslationX()F
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-static {v7}, Ljava/lang/Math;->round(F)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
add-int/2addr v6, v7
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
aget v2, v5, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/ViewGroup;->getTranslationY()F
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-static {v5}, Ljava/lang/Math;->round(F)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int v7, v2, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int v8, v6, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move-result v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
add-int v9, v7, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
if-eqz v1, :cond_3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {v1}, Landroid/graphics/Rect;->centerX()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
invoke-virtual {v1}, Landroid/graphics/Rect;->centerY()I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v5, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v15, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
add-int v1, v6, v8
|
|
|
|
|
|
|
|
div-int/2addr v1, v0
|
|
|
|
|
|
|
|
add-int v2, v7, v9
|
|
|
|
|
|
|
|
div-int/2addr v2, v0
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v5, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v15, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v2, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v3, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v4, v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
move v5, v15
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v9}, Landroidx/transition/SidePropagation;->distance(Landroid/view/View;IIIIIIII)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
invoke-direct/range {p0 .. p1}, Landroidx/transition/SidePropagation;->getMaxDistance(Landroid/view/ViewGroup;)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
|
|
|
|
invoke-virtual/range {p2 .. p2}, Landroidx/transition/Transition;->getDuration()J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
|
|
|
cmp-long v3, v1, v11
|
|
|
|
|
|
|
|
if-gez v3, :cond_4
|
|
|
|
|
|
|
|
const-wide/16 v1, 0x12c
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
int-to-long v3, v13
|
|
|
|
|
|
|
|
mul-long v1, v1, v3
|
|
|
|
|
|
|
|
long-to-float v1, v1
|
|
|
|
|
|
|
|
iget v2, v10, Landroidx/transition/SidePropagation;->mPropagationSpeed:F
|
|
|
|
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
|
|
|
|
mul-float v1, v1, v0
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
int-to-long v0, v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPropagationSpeed(F)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/transition/SidePropagation;->mPropagationSpeed:F
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string v0, "propagationSpeed may not be 0"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSide(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/transition/SidePropagation;->mSide:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|