Rabbit-R1/original r1/smali/smali_classes2/androidx/transition/CircularPropagation.smali
2024-05-21 17:08:36 -04:00

270 lines
4.8 KiB
Smali

.class public Landroidx/transition/CircularPropagation;
.super Landroidx/transition/VisibilityPropagation;
.source "CircularPropagation.java"
# instance fields
.field private mPropagationSpeed:F
# direct methods
.method public constructor <init>()V
.locals 1
.line 33
invoke-direct {p0}, Landroidx/transition/VisibilityPropagation;-><init>()V
const/high16 v0, 0x40400000 # 3.0f
iput v0, p0, Landroidx/transition/CircularPropagation;->mPropagationSpeed:F
return-void
.end method
.method private static distance(FFFF)F
.locals 0
sub-float/2addr p2, p0
sub-float/2addr p3, p1
mul-float/2addr p2, p2
mul-float/2addr p3, p3
add-float/2addr p2, p3
float-to-double p0, p2
.line 103
invoke-static {p0, p1}, Ljava/lang/Math;->sqrt(D)D
move-result-wide p0
double-to-float p0, p0
return p0
.end method
# virtual methods
.method public getStartDelay(Landroid/view/ViewGroup;Landroidx/transition/Transition;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)J
.locals 8
const-wide/16 v0, 0x0
if-nez p3, :cond_0
if-nez p4, :cond_0
return-wide v0
:cond_0
const/4 v2, 0x1
if-eqz p4, :cond_2
.line 64
invoke-virtual {p0, p3}, Landroidx/transition/CircularPropagation;->getViewVisibility(Landroidx/transition/TransitionValues;)I
move-result v3
if-nez v3, :cond_1
goto :goto_0
:cond_1
move-object p3, p4
move p4, v2
goto :goto_1
:cond_2
:goto_0
const/4 p4, -0x1
.line 71
:goto_1
invoke-virtual {p0, p3}, Landroidx/transition/CircularPropagation;->getViewX(Landroidx/transition/TransitionValues;)I
move-result v3
.line 72
invoke-virtual {p0, p3}, Landroidx/transition/CircularPropagation;->getViewY(Landroidx/transition/TransitionValues;)I
move-result p3
.line 74
invoke-virtual {p2}, Landroidx/transition/Transition;->getEpicenter()Landroid/graphics/Rect;
move-result-object v4
if-eqz v4, :cond_3
.line 78
invoke-virtual {v4}, Landroid/graphics/Rect;->centerX()I
move-result v2
.line 79
invoke-virtual {v4}, Landroid/graphics/Rect;->centerY()I
move-result v4
goto :goto_2
:cond_3
const/4 v4, 0x2
new-array v5, v4, [I
.line 82
invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->getLocationOnScreen([I)V
const/4 v6, 0x0
aget v6, v5, v6
.line 83
invoke-virtual {p1}, Landroid/view/ViewGroup;->getWidth()I
move-result v7
div-int/2addr v7, v4
add-int/2addr v6, v7
int-to-float v6, v6
.line 84
invoke-virtual {p1}, Landroid/view/ViewGroup;->getTranslationX()F
move-result v7
add-float/2addr v6, v7
.line 83
invoke-static {v6}, Ljava/lang/Math;->round(F)I
move-result v6
aget v2, v5, v2
.line 85
invoke-virtual {p1}, Landroid/view/ViewGroup;->getHeight()I
move-result v5
div-int/2addr v5, v4
add-int/2addr v2, v5
int-to-float v2, v2
.line 86
invoke-virtual {p1}, Landroid/view/ViewGroup;->getTranslationY()F
move-result v4
add-float/2addr v2, v4
.line 85
invoke-static {v2}, Ljava/lang/Math;->round(F)I
move-result v4
move v2, v6
:goto_2
int-to-float v3, v3
int-to-float p3, p3
int-to-float v2, v2
int-to-float v4, v4
.line 88
invoke-static {v3, p3, v2, v4}, Landroidx/transition/CircularPropagation;->distance(FFFF)F
move-result p3
.line 89
invoke-virtual {p1}, Landroid/view/ViewGroup;->getWidth()I
move-result v2
int-to-float v2, v2
invoke-virtual {p1}, Landroid/view/ViewGroup;->getHeight()I
move-result p1
int-to-float p1, p1
const/4 v3, 0x0
invoke-static {v3, v3, v2, p1}, Landroidx/transition/CircularPropagation;->distance(FFFF)F
move-result p1
div-float/2addr p3, p1
.line 92
invoke-virtual {p2}, Landroidx/transition/Transition;->getDuration()J
move-result-wide p1
cmp-long v0, p1, v0
if-gez v0, :cond_4
const-wide/16 p1, 0x12c
:cond_4
int-to-long v0, p4
mul-long/2addr p1, v0
long-to-float p1, p1
iget p0, p0, Landroidx/transition/CircularPropagation;->mPropagationSpeed:F
div-float/2addr p1, p0
mul-float/2addr p1, p3
.line 97
invoke-static {p1}, Ljava/lang/Math;->round(F)I
move-result p0
int-to-long p0, p0
return-wide p0
.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/CircularPropagation;->mPropagationSpeed:F
return-void
.line 51
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string p1, "propagationSpeed may not be 0"
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method