apkfuckery/com.discord/smali/androidx/transition/Slide.smali
2019-08-30 22:04:20 +02:00

433 lines
13 KiB
Smali

.class public Landroidx/transition/Slide;
.super Landroidx/transition/Visibility;
.source "Slide.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/transition/Slide$CalculateSlideVertical;,
Landroidx/transition/Slide$CalculateSlideHorizontal;,
Landroidx/transition/Slide$CalculateSlide;,
Landroidx/transition/Slide$GravityFlag;
}
.end annotation
# static fields
.field private static final PROPNAME_SCREEN_POSITION:Ljava/lang/String; = "android:slide:screenPosition"
.field private static final sAccelerate:Landroid/animation/TimeInterpolator;
.field private static final sCalculateBottom:Landroidx/transition/Slide$CalculateSlide;
.field private static final sCalculateEnd:Landroidx/transition/Slide$CalculateSlide;
.field private static final sCalculateLeft:Landroidx/transition/Slide$CalculateSlide;
.field private static final sCalculateRight:Landroidx/transition/Slide$CalculateSlide;
.field private static final sCalculateStart:Landroidx/transition/Slide$CalculateSlide;
.field private static final sCalculateTop:Landroidx/transition/Slide$CalculateSlide;
.field private static final sDecelerate:Landroid/animation/TimeInterpolator;
# instance fields
.field private mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
.field private mSlideEdge:I
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sDecelerate:Landroid/animation/TimeInterpolator;
new-instance v0, Landroid/view/animation/AccelerateInterpolator;
invoke-direct {v0}, Landroid/view/animation/AccelerateInterpolator;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sAccelerate:Landroid/animation/TimeInterpolator;
new-instance v0, Landroidx/transition/Slide$1;
invoke-direct {v0}, Landroidx/transition/Slide$1;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sCalculateLeft:Landroidx/transition/Slide$CalculateSlide;
new-instance v0, Landroidx/transition/Slide$2;
invoke-direct {v0}, Landroidx/transition/Slide$2;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sCalculateStart:Landroidx/transition/Slide$CalculateSlide;
new-instance v0, Landroidx/transition/Slide$3;
invoke-direct {v0}, Landroidx/transition/Slide$3;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sCalculateTop:Landroidx/transition/Slide$CalculateSlide;
new-instance v0, Landroidx/transition/Slide$4;
invoke-direct {v0}, Landroidx/transition/Slide$4;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sCalculateRight:Landroidx/transition/Slide$CalculateSlide;
new-instance v0, Landroidx/transition/Slide$5;
invoke-direct {v0}, Landroidx/transition/Slide$5;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sCalculateEnd:Landroidx/transition/Slide$CalculateSlide;
new-instance v0, Landroidx/transition/Slide$6;
invoke-direct {v0}, Landroidx/transition/Slide$6;-><init>()V
sput-object v0, Landroidx/transition/Slide;->sCalculateBottom:Landroidx/transition/Slide$CalculateSlide;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Landroidx/transition/Visibility;-><init>()V
sget-object v0, Landroidx/transition/Slide;->sCalculateBottom:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
const/16 v0, 0x50
iput v0, p0, Landroidx/transition/Slide;->mSlideEdge:I
invoke-virtual {p0, v0}, Landroidx/transition/Slide;->setSlideEdge(I)V
return-void
.end method
.method public constructor <init>(I)V
.locals 1
invoke-direct {p0}, Landroidx/transition/Visibility;-><init>()V
sget-object v0, Landroidx/transition/Slide;->sCalculateBottom:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
const/16 v0, 0x50
iput v0, p0, Landroidx/transition/Slide;->mSlideEdge:I
invoke-virtual {p0, p1}, Landroidx/transition/Slide;->setSlideEdge(I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 3
invoke-direct {p0, p1, p2}, Landroidx/transition/Visibility;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
sget-object v0, Landroidx/transition/Slide;->sCalculateBottom:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
const/16 v0, 0x50
iput v0, p0, Landroidx/transition/Slide;->mSlideEdge:I
sget-object v1, Landroidx/transition/Styleable;->SLIDE:[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, "slideEdge"
const/4 v2, 0x0
invoke-static {p1, p2, v1, v2, v0}, Landroidx/core/content/res/TypedArrayUtils;->getNamedInt(Landroid/content/res/TypedArray;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/String;II)I
move-result p2
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
invoke-virtual {p0, p2}, Landroidx/transition/Slide;->setSlideEdge(I)V
return-void
.end method
.method private captureValues(Landroidx/transition/TransitionValues;)V
.locals 2
iget-object v0, p1, Landroidx/transition/TransitionValues;->view:Landroid/view/View;
const/4 v1, 0x2
new-array v1, v1, [I
invoke-virtual {v0, v1}, Landroid/view/View;->getLocationOnScreen([I)V
iget-object p1, p1, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v0, "android:slide:screenPosition"
invoke-interface {p1, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public captureEndValues(Landroidx/transition/TransitionValues;)V
.locals 0
invoke-super {p0, p1}, Landroidx/transition/Visibility;->captureEndValues(Landroidx/transition/TransitionValues;)V
invoke-direct {p0, p1}, Landroidx/transition/Slide;->captureValues(Landroidx/transition/TransitionValues;)V
return-void
.end method
.method public captureStartValues(Landroidx/transition/TransitionValues;)V
.locals 0
invoke-super {p0, p1}, Landroidx/transition/Visibility;->captureStartValues(Landroidx/transition/TransitionValues;)V
invoke-direct {p0, p1}, Landroidx/transition/Slide;->captureValues(Landroidx/transition/TransitionValues;)V
return-void
.end method
.method public getSlideEdge()I
.locals 1
iget v0, p0, Landroidx/transition/Slide;->mSlideEdge:I
return v0
.end method
.method public onAppear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
.locals 9
if-nez p4, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
iget-object p3, p4, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v0, "android:slide:screenPosition"
invoke-interface {p3, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p3
check-cast p3, [I
check-cast p3, [I
invoke-virtual {p2}, Landroid/view/View;->getTranslationX()F
move-result v6
invoke-virtual {p2}, Landroid/view/View;->getTranslationY()F
move-result v7
iget-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
invoke-interface {v0, p1, p2}, Landroidx/transition/Slide$CalculateSlide;->getGoneX(Landroid/view/ViewGroup;Landroid/view/View;)F
move-result v4
iget-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
invoke-interface {v0, p1, p2}, Landroidx/transition/Slide$CalculateSlide;->getGoneY(Landroid/view/ViewGroup;Landroid/view/View;)F
move-result v5
const/4 p1, 0x0
aget v2, p3, p1
const/4 p1, 0x1
aget v3, p3, p1
sget-object v8, Landroidx/transition/Slide;->sDecelerate:Landroid/animation/TimeInterpolator;
move-object v0, p2
move-object v1, p4
invoke-static/range {v0 .. v8}, Landroidx/transition/TranslationAnimationCreator;->createAnimation(Landroid/view/View;Landroidx/transition/TransitionValues;IIFFFFLandroid/animation/TimeInterpolator;)Landroid/animation/Animator;
move-result-object p1
return-object p1
.end method
.method public onDisappear(Landroid/view/ViewGroup;Landroid/view/View;Landroidx/transition/TransitionValues;Landroidx/transition/TransitionValues;)Landroid/animation/Animator;
.locals 9
if-nez p3, :cond_0
const/4 p1, 0x0
return-object p1
:cond_0
iget-object p4, p3, Landroidx/transition/TransitionValues;->values:Ljava/util/Map;
const-string v0, "android:slide:screenPosition"
invoke-interface {p4, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p4
check-cast p4, [I
check-cast p4, [I
invoke-virtual {p2}, Landroid/view/View;->getTranslationX()F
move-result v4
invoke-virtual {p2}, Landroid/view/View;->getTranslationY()F
move-result v5
iget-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
invoke-interface {v0, p1, p2}, Landroidx/transition/Slide$CalculateSlide;->getGoneX(Landroid/view/ViewGroup;Landroid/view/View;)F
move-result v6
iget-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
invoke-interface {v0, p1, p2}, Landroidx/transition/Slide$CalculateSlide;->getGoneY(Landroid/view/ViewGroup;Landroid/view/View;)F
move-result v7
const/4 p1, 0x0
aget v2, p4, p1
const/4 p1, 0x1
aget v3, p4, p1
sget-object v8, Landroidx/transition/Slide;->sAccelerate:Landroid/animation/TimeInterpolator;
move-object v0, p2
move-object v1, p3
invoke-static/range {v0 .. v8}, Landroidx/transition/TranslationAnimationCreator;->createAnimation(Landroid/view/View;Landroidx/transition/TransitionValues;IIFFFFLandroid/animation/TimeInterpolator;)Landroid/animation/Animator;
move-result-object p1
return-object p1
.end method
.method public setSlideEdge(I)V
.locals 1
const/4 v0, 0x3
if-eq p1, v0, :cond_5
const/4 v0, 0x5
if-eq p1, v0, :cond_4
const/16 v0, 0x30
if-eq p1, v0, :cond_3
const/16 v0, 0x50
if-eq p1, v0, :cond_2
const v0, 0x800003
if-eq p1, v0, :cond_1
const v0, 0x800005
if-ne p1, v0, :cond_0
sget-object v0, Landroidx/transition/Slide;->sCalculateEnd:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Invalid slide direction"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
sget-object v0, Landroidx/transition/Slide;->sCalculateStart:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
goto :goto_0
:cond_2
sget-object v0, Landroidx/transition/Slide;->sCalculateBottom:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
goto :goto_0
:cond_3
sget-object v0, Landroidx/transition/Slide;->sCalculateTop:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
goto :goto_0
:cond_4
sget-object v0, Landroidx/transition/Slide;->sCalculateRight:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
goto :goto_0
:cond_5
sget-object v0, Landroidx/transition/Slide;->sCalculateLeft:Landroidx/transition/Slide$CalculateSlide;
iput-object v0, p0, Landroidx/transition/Slide;->mSlideCalculator:Landroidx/transition/Slide$CalculateSlide;
:goto_0
iput p1, p0, Landroidx/transition/Slide;->mSlideEdge:I
new-instance v0, Landroidx/transition/SidePropagation;
invoke-direct {v0}, Landroidx/transition/SidePropagation;-><init>()V
invoke-virtual {v0, p1}, Landroidx/transition/SidePropagation;->setSide(I)V
invoke-virtual {p0, v0}, Landroidx/transition/Slide;->setPropagation(Landroidx/transition/TransitionPropagation;)V
return-void
.end method