Changes of com.discord v998
This commit is contained in:
parent
dc3b174a87
commit
a8e290ae89
20243 changed files with 1573881 additions and 1337713 deletions
|
@ -4,19 +4,19 @@
|
|||
|
||||
|
||||
# static fields
|
||||
.field private static final PROPNAME_SCREEN_BOUNDS:Ljava/lang/String; = "android:explode:screenBounds"
|
||||
.field public static final PROPNAME_SCREEN_BOUNDS:Ljava/lang/String; = "android:explode:screenBounds"
|
||||
|
||||
.field private static final sAccelerate:Landroid/animation/TimeInterpolator;
|
||||
.field public static final sAccelerate:Landroid/animation/TimeInterpolator;
|
||||
|
||||
.field private static final sDecelerate:Landroid/animation/TimeInterpolator;
|
||||
.field public static final sDecelerate:Landroid/animation/TimeInterpolator;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mTempLoc:[I
|
||||
.field public mTempLoc:[I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
|
||||
|
@ -49,7 +49,7 @@
|
|||
|
||||
invoke-direct {v0}, Landroidx/transition/CircularPropagation;-><init>()V
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/transition/Explode;->setPropagation(Landroidx/transition/TransitionPropagation;)V
|
||||
invoke-virtual {p0, v0}, Landroidx/transition/Transition;->setPropagation(Landroidx/transition/TransitionPropagation;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
@ -69,21 +69,21 @@
|
|||
|
||||
invoke-direct {p1}, Landroidx/transition/CircularPropagation;-><init>()V
|
||||
|
||||
invoke-virtual {p0, p1}, Landroidx/transition/Explode;->setPropagation(Landroidx/transition/TransitionPropagation;)V
|
||||
invoke-virtual {p0, p1}, Landroidx/transition/Transition;->setPropagation(Landroidx/transition/TransitionPropagation;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private static calculateDistance(FF)F
|
||||
.method public static calculateDistance(FF)F
|
||||
.locals 0
|
||||
|
||||
mul-float p0, p0, p0
|
||||
|
||||
mul-float p1, p1, p1
|
||||
|
||||
add-float/2addr p0, p1
|
||||
add-float/2addr p1, p0
|
||||
|
||||
float-to-double p0, p0
|
||||
float-to-double p0, p1
|
||||
|
||||
invoke-static {p0, p1}, Ljava/lang/Math;->sqrt(D)D
|
||||
|
||||
|
@ -94,7 +94,7 @@
|
|||
return p0
|
||||
.end method
|
||||
|
||||
.method private static calculateMaxDistance(Landroid/view/View;II)F
|
||||
.method public static calculateMaxDistance(Landroid/view/View;II)F
|
||||
.locals 1
|
||||
|
||||
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
||||
|
@ -129,168 +129,167 @@
|
|||
.end method
|
||||
|
||||
.method private calculateOut(Landroid/view/View;Landroid/graphics/Rect;[I)V
|
||||
.locals 15
|
||||
.locals 12
|
||||
|
||||
move-object v0, p0
|
||||
iget-object v0, p0, Landroidx/transition/Explode;->mTempLoc:[I
|
||||
|
||||
move-object/from16 v1, p1
|
||||
invoke-virtual {p1, v0}, Landroid/view/View;->getLocationOnScreen([I)V
|
||||
|
||||
iget-object v2, v0, Landroidx/transition/Explode;->mTempLoc:[I
|
||||
iget-object v0, p0, Landroidx/transition/Explode;->mTempLoc:[I
|
||||
|
||||
invoke-virtual {v1, v2}, Landroid/view/View;->getLocationOnScreen([I)V
|
||||
const/4 v1, 0x0
|
||||
|
||||
iget-object v2, v0, Landroidx/transition/Explode;->mTempLoc:[I
|
||||
aget v2, v0, v1
|
||||
|
||||
const/4 v3, 0x0
|
||||
const/4 v3, 0x1
|
||||
|
||||
aget v4, v2, v3
|
||||
aget v0, v0, v3
|
||||
|
||||
const/4 v5, 0x1
|
||||
invoke-virtual {p0}, Landroidx/transition/Transition;->getEpicenter()Landroid/graphics/Rect;
|
||||
|
||||
aget v2, v2, v5
|
||||
move-result-object v4
|
||||
|
||||
invoke-virtual {p0}, Landroidx/transition/Explode;->getEpicenter()Landroid/graphics/Rect;
|
||||
if-nez v4, :cond_0
|
||||
|
||||
move-result-object v6
|
||||
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
|
||||
|
||||
if-nez v6, :cond_0
|
||||
move-result v4
|
||||
|
||||
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getWidth()I
|
||||
div-int/lit8 v4, v4, 0x2
|
||||
|
||||
add-int/2addr v4, v2
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/View;->getTranslationX()F
|
||||
|
||||
move-result v5
|
||||
|
||||
invoke-static {v5}, Ljava/lang/Math;->round(F)I
|
||||
|
||||
move-result v5
|
||||
|
||||
add-int/2addr v5, v4
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
|
||||
|
||||
move-result v4
|
||||
|
||||
div-int/lit8 v4, v4, 0x2
|
||||
|
||||
add-int/2addr v4, v0
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/View;->getTranslationY()F
|
||||
|
||||
move-result v6
|
||||
|
||||
div-int/lit8 v6, v6, 0x2
|
||||
invoke-static {v6}, Ljava/lang/Math;->round(F)I
|
||||
|
||||
move-result v6
|
||||
|
||||
add-int/2addr v6, v4
|
||||
|
||||
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTranslationX()F
|
||||
|
||||
move-result v7
|
||||
|
||||
invoke-static {v7}, Ljava/lang/Math;->round(F)I
|
||||
|
||||
move-result v7
|
||||
|
||||
add-int/2addr v6, v7
|
||||
|
||||
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getHeight()I
|
||||
|
||||
move-result v7
|
||||
|
||||
div-int/lit8 v7, v7, 0x2
|
||||
|
||||
add-int/2addr v7, v2
|
||||
|
||||
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTranslationY()F
|
||||
|
||||
move-result v8
|
||||
|
||||
invoke-static {v8}, Ljava/lang/Math;->round(F)I
|
||||
|
||||
move-result v8
|
||||
|
||||
add-int/2addr v7, v8
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {v6}, Landroid/graphics/Rect;->centerX()I
|
||||
invoke-virtual {v4}, Landroid/graphics/Rect;->centerX()I
|
||||
|
||||
move-result v7
|
||||
move-result v5
|
||||
|
||||
invoke-virtual {v6}, Landroid/graphics/Rect;->centerY()I
|
||||
invoke-virtual {v4}, Landroid/graphics/Rect;->centerY()I
|
||||
|
||||
move-result v6
|
||||
|
||||
move v14, v7
|
||||
|
||||
move v7, v6
|
||||
|
||||
move v6, v14
|
||||
|
||||
:goto_0
|
||||
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->centerX()I
|
||||
invoke-virtual {p2}, Landroid/graphics/Rect;->centerX()I
|
||||
|
||||
move-result v8
|
||||
move-result v4
|
||||
|
||||
invoke-virtual/range {p2 .. p2}, Landroid/graphics/Rect;->centerY()I
|
||||
invoke-virtual {p2}, Landroid/graphics/Rect;->centerY()I
|
||||
|
||||
move-result v9
|
||||
move-result p2
|
||||
|
||||
sub-int/2addr v8, v6
|
||||
sub-int/2addr v4, v5
|
||||
|
||||
int-to-float v8, v8
|
||||
int-to-float v4, v4
|
||||
|
||||
sub-int/2addr v9, v7
|
||||
sub-int/2addr p2, v6
|
||||
|
||||
int-to-float v9, v9
|
||||
int-to-float p2, p2
|
||||
|
||||
const/4 v10, 0x0
|
||||
const/4 v7, 0x0
|
||||
|
||||
cmpl-float v11, v8, v10
|
||||
cmpl-float v8, v4, v7
|
||||
|
||||
if-nez v11, :cond_1
|
||||
if-nez v8, :cond_1
|
||||
|
||||
cmpl-float v10, v9, v10
|
||||
cmpl-float v7, p2, v7
|
||||
|
||||
if-nez v10, :cond_1
|
||||
if-nez v7, :cond_1
|
||||
|
||||
invoke-static {}, Ljava/lang/Math;->random()D
|
||||
|
||||
move-result-wide v8
|
||||
move-result-wide v7
|
||||
|
||||
const-wide/high16 v10, 0x4000000000000000L # 2.0
|
||||
const-wide/high16 v9, 0x4000000000000000L # 2.0
|
||||
|
||||
mul-double v8, v8, v10
|
||||
mul-double v7, v7, v9
|
||||
|
||||
double-to-float v8, v8
|
||||
double-to-float p2, v7
|
||||
|
||||
const/high16 v9, 0x3f800000 # 1.0f
|
||||
const/high16 v4, 0x3f800000 # 1.0f
|
||||
|
||||
sub-float/2addr v8, v9
|
||||
sub-float/2addr p2, v4
|
||||
|
||||
invoke-static {}, Ljava/lang/Math;->random()D
|
||||
|
||||
move-result-wide v12
|
||||
move-result-wide v7
|
||||
|
||||
mul-double v12, v12, v10
|
||||
mul-double v7, v7, v9
|
||||
|
||||
double-to-float v10, v12
|
||||
double-to-float v7, v7
|
||||
|
||||
sub-float v9, v10, v9
|
||||
sub-float v4, v7, v4
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
invoke-static {v8, v9}, Landroidx/transition/Explode;->calculateDistance(FF)F
|
||||
move v11, v4
|
||||
|
||||
move-result v10
|
||||
move v4, p2
|
||||
|
||||
div-float/2addr v8, v10
|
||||
move p2, v11
|
||||
|
||||
div-float/2addr v9, v10
|
||||
:goto_1
|
||||
invoke-static {p2, v4}, Landroidx/transition/Explode;->calculateDistance(FF)F
|
||||
|
||||
sub-int/2addr v6, v4
|
||||
move-result v7
|
||||
|
||||
sub-int/2addr v7, v2
|
||||
div-float/2addr p2, v7
|
||||
|
||||
invoke-static {v1, v6, v7}, Landroidx/transition/Explode;->calculateMaxDistance(Landroid/view/View;II)F
|
||||
div-float/2addr v4, v7
|
||||
|
||||
move-result v1
|
||||
sub-int/2addr v5, v2
|
||||
|
||||
mul-float v8, v8, v1
|
||||
sub-int/2addr v6, v0
|
||||
|
||||
invoke-static {v8}, Ljava/lang/Math;->round(F)I
|
||||
invoke-static {p1, v5, v6}, Landroidx/transition/Explode;->calculateMaxDistance(Landroid/view/View;II)F
|
||||
|
||||
move-result v2
|
||||
move-result p1
|
||||
|
||||
aput v2, p3, v3
|
||||
mul-float p2, p2, p1
|
||||
|
||||
mul-float v1, v1, v9
|
||||
invoke-static {p2}, Ljava/lang/Math;->round(F)I
|
||||
|
||||
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
||||
move-result p2
|
||||
|
||||
move-result v1
|
||||
aput p2, p3, v1
|
||||
|
||||
aput v1, p3, v5
|
||||
mul-float p1, p1, v4
|
||||
|
||||
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
||||
|
||||
move-result p1
|
||||
|
||||
aput p1, p3, v3
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
@ -343,6 +342,10 @@
|
|||
# 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-super {p0, p1}, Landroidx/transition/Visibility;->captureEndValues(Landroidx/transition/TransitionValues;)V
|
||||
|
||||
|
@ -353,6 +356,10 @@
|
|||
|
||||
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/transition/TransitionValues;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-super {p0, p1}, Landroidx/transition/Visibility;->captureStartValues(Landroidx/transition/TransitionValues;)V
|
||||
|
||||
|
@ -470,8 +477,6 @@
|
|||
|
||||
check-cast v0, [I
|
||||
|
||||
check-cast v0, [I
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue