840 lines
23 KiB
Smali
840 lines
23 KiB
Smali
.class Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;
|
|
.super Landroidx/core/view/WindowInsetsAnimationCompat$Impl;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/view/WindowInsetsAnimationCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Impl21"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/view/WindowInsetsAnimationCompat$Impl21$Impl21OnApplyWindowInsetsListener;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final DEFAULT_INSET_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
.field private static final HIDE_IME_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
.field private static final SHOW_IME_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 4
|
|
|
|
.line 595
|
|
new-instance v0, Landroid/view/animation/PathInterpolator;
|
|
|
|
const v1, 0x3f8ccccd # 1.1f
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v0, v3, v1, v3, v2}, Landroid/view/animation/PathInterpolator;-><init>(FFFF)V
|
|
|
|
sput-object v0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->SHOW_IME_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
.line 602
|
|
new-instance v0, Landroidx/interpolator/view/animation/FastOutLinearInInterpolator;
|
|
|
|
invoke-direct {v0}, Landroidx/interpolator/view/animation/FastOutLinearInInterpolator;-><init>()V
|
|
|
|
sput-object v0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->HIDE_IME_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
.line 608
|
|
new-instance v0, Landroid/view/animation/DecelerateInterpolator;
|
|
|
|
invoke-direct {v0}, Landroid/view/animation/DecelerateInterpolator;-><init>()V
|
|
|
|
sput-object v0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->DEFAULT_INSET_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILandroid/view/animation/Interpolator;J)V
|
|
.locals 0
|
|
.param p2 # Landroid/view/animation/Interpolator;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 612
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl;-><init>(ILandroid/view/animation/Interpolator;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static buildAnimationMask(Landroidx/core/view/WindowInsetsCompat;Landroidx/core/view/WindowInsetsCompat;)I
|
|
.locals 4
|
|
.param p0 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"WrongConstant"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
const/16 v2, 0x100
|
|
|
|
if-gt v1, v2, :cond_1
|
|
|
|
.line 674
|
|
invoke-virtual {p0, v1}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v3}, Landroidx/core/graphics/Insets;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
:cond_0
|
|
shl-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public static computeAnimationBounds(Landroidx/core/view/WindowInsetsCompat;Landroidx/core/view/WindowInsetsCompat;I)Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;
|
|
.locals 4
|
|
.param p0 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 651
|
|
invoke-virtual {p0, p2}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object p0
|
|
|
|
.line 652
|
|
invoke-virtual {p1, p2}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object p1
|
|
|
|
.line 653
|
|
iget p2, p0, Landroidx/core/graphics/Insets;->left:I
|
|
|
|
iget v0, p1, Landroidx/core/graphics/Insets;->left:I
|
|
|
|
.line 654
|
|
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
iget v0, p0, Landroidx/core/graphics/Insets;->top:I
|
|
|
|
iget v1, p1, Landroidx/core/graphics/Insets;->top:I
|
|
|
|
.line 655
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Landroidx/core/graphics/Insets;->right:I
|
|
|
|
iget v2, p1, Landroidx/core/graphics/Insets;->right:I
|
|
|
|
.line 656
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v1
|
|
|
|
iget v2, p0, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
iget v3, p1, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
.line 657
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
.line 653
|
|
invoke-static {p2, v0, v1, v2}, Landroidx/core/graphics/Insets;->of(IIII)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object p2
|
|
|
|
.line 659
|
|
iget v0, p0, Landroidx/core/graphics/Insets;->left:I
|
|
|
|
iget v1, p1, Landroidx/core/graphics/Insets;->left:I
|
|
|
|
.line 660
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Landroidx/core/graphics/Insets;->top:I
|
|
|
|
iget v2, p1, Landroidx/core/graphics/Insets;->top:I
|
|
|
|
.line 661
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
iget v2, p0, Landroidx/core/graphics/Insets;->right:I
|
|
|
|
iget v3, p1, Landroidx/core/graphics/Insets;->right:I
|
|
|
|
.line 662
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
iget p0, p0, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
iget p1, p1, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
.line 663
|
|
invoke-static {p0, p1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p0
|
|
|
|
.line 659
|
|
invoke-static {v0, v1, v2, p0}, Landroidx/core/graphics/Insets;->of(IIII)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object p0
|
|
|
|
.line 665
|
|
new-instance p1, Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;
|
|
|
|
invoke-direct {p1, p2, p0}, Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;-><init>(Landroidx/core/graphics/Insets;Landroidx/core/graphics/Insets;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static createInsetInterpolator(ILandroidx/core/view/WindowInsetsCompat;Landroidx/core/view/WindowInsetsCompat;)Landroid/view/animation/Interpolator;
|
|
.locals 0
|
|
|
|
and-int/lit8 p0, p0, 0x8
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 693
|
|
invoke-static {}, Landroidx/core/view/WindowInsetsCompat$Type;->ime()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object p0
|
|
|
|
iget p0, p0, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
.line 694
|
|
invoke-static {}, Landroidx/core/view/WindowInsetsCompat$Type;->ime()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
if-le p0, p1, :cond_0
|
|
|
|
sget-object p0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->SHOW_IME_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget-object p0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->HIDE_IME_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
sget-object p0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->DEFAULT_INSET_INTERPOLATOR:Landroid/view/animation/Interpolator;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private static createProxyListener(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat$Callback;)Landroid/view/View$OnApplyWindowInsetsListener;
|
|
.locals 1
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 644
|
|
new-instance v0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21$Impl21OnApplyWindowInsetsListener;
|
|
|
|
invoke-direct {v0, p0, p1}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21$Impl21OnApplyWindowInsetsListener;-><init>(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat$Callback;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static dispatchOnEnd(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat;)V
|
|
.locals 2
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsAnimationCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 938
|
|
invoke-static {p0}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->getCallback(Landroid/view/View;)Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 940
|
|
invoke-virtual {v0, p1}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->onEnd(Landroidx/core/view/WindowInsetsAnimationCompat;)V
|
|
|
|
.line 941
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->getDispatchMode()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 945
|
|
:cond_0
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 946
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 947
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 948
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 949
|
|
invoke-static {v1, p1}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->dispatchOnEnd(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static dispatchOnPrepare(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat;Landroid/view/WindowInsets;Z)V
|
|
.locals 2
|
|
|
|
.line 877
|
|
invoke-static {p0}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->getCallback(Landroid/view/View;)Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 879
|
|
iput-object p2, v0, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->mDispachedInsets:Landroid/view/WindowInsets;
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
.line 881
|
|
invoke-virtual {v0, p1}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->onPrepare(Landroidx/core/view/WindowInsetsAnimationCompat;)V
|
|
|
|
.line 882
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->getDispatchMode()I
|
|
|
|
move-result p3
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p3, v1
|
|
|
|
.line 888
|
|
:cond_1
|
|
:goto_0
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 889
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
.line 890
|
|
:goto_1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 891
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 892
|
|
invoke-static {v0, p1, p2, p3}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->dispatchOnPrepare(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat;Landroid/view/WindowInsets;Z)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static dispatchOnProgress(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;Ljava/util/List;)V
|
|
.locals 2
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsCompat;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/util/List;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Landroidx/core/view/WindowInsetsCompat;",
|
|
"Ljava/util/List<",
|
|
"Landroidx/core/view/WindowInsetsAnimationCompat;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 919
|
|
invoke-static {p0}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->getCallback(Landroid/view/View;)Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 922
|
|
invoke-virtual {v0, p1, p2}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->onProgress(Landroidx/core/view/WindowInsetsCompat;Ljava/util/List;)Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
move-result-object p1
|
|
|
|
.line 923
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->getDispatchMode()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 927
|
|
:cond_0
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 928
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 929
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 930
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 931
|
|
invoke-static {v1, p1, p2}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->dispatchOnProgress(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;Ljava/util/List;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static dispatchOnStart(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat;Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;)V
|
|
.locals 2
|
|
|
|
.line 900
|
|
invoke-static {p0}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->getCallback(Landroid/view/View;)Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 902
|
|
invoke-virtual {v0, p1, p2}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->onStart(Landroidx/core/view/WindowInsetsAnimationCompat;Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;)Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;
|
|
|
|
.line 903
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsAnimationCompat$Callback;->getDispatchMode()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 907
|
|
:cond_0
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 908
|
|
check-cast p0, Landroid/view/ViewGroup;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 909
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
.line 910
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 911
|
|
invoke-static {v1, p1, p2}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->dispatchOnStart(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat;Landroidx/core/view/WindowInsetsAnimationCompat$BoundsCompat;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static forwardToViewIfNeeded(Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
|
|
.locals 1
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/view/WindowInsets;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
sget v0, Landroidx/core/R$id;->tag_on_apply_window_listener:I
|
|
|
|
.line 869
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
.line 872
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->onApplyWindowInsets(Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static getCallback(Landroid/view/View;)Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
sget v0, Landroidx/core/R$id;->tag_window_insets_animation_callback:I
|
|
|
|
.line 956
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 959
|
|
instance-of v0, p0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21$Impl21OnApplyWindowInsetsListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 960
|
|
check-cast p0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21$Impl21OnApplyWindowInsetsListener;
|
|
|
|
iget-object p0, p0, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21$Impl21OnApplyWindowInsetsListener;->mCallback:Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static interpolateInsets(Landroidx/core/view/WindowInsetsCompat;Landroidx/core/view/WindowInsetsCompat;FI)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 12
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"WrongConstant"
|
|
}
|
|
.end annotation
|
|
|
|
.line 708
|
|
new-instance v0, Landroidx/core/view/WindowInsetsCompat$Builder;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/core/view/WindowInsetsCompat$Builder;-><init>(Landroidx/core/view/WindowInsetsCompat;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
const/16 v2, 0x100
|
|
|
|
if-gt v1, v2, :cond_1
|
|
|
|
and-int v2, p3, v1
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 712
|
|
invoke-virtual {p0, v1}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroidx/core/view/WindowInsetsCompat$Builder;->setInsets(ILandroidx/core/graphics/Insets;)Landroidx/core/view/WindowInsetsCompat$Builder;
|
|
|
|
goto :goto_1
|
|
|
|
.line 715
|
|
:cond_0
|
|
invoke-virtual {p0, v1}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object v2
|
|
|
|
.line 716
|
|
invoke-virtual {p1, v1}, Landroidx/core/view/WindowInsetsCompat;->getInsets(I)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object v3
|
|
|
|
.line 717
|
|
iget v4, v2, Landroidx/core/graphics/Insets;->left:I
|
|
|
|
iget v5, v3, Landroidx/core/graphics/Insets;->left:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
int-to-float v4, v4
|
|
|
|
const/high16 v5, 0x3f800000 # 1.0f
|
|
|
|
sub-float/2addr v5, p2
|
|
|
|
mul-float/2addr v4, v5
|
|
|
|
float-to-double v6, v4
|
|
|
|
const-wide/high16 v8, 0x3fe0000000000000L # 0.5
|
|
|
|
add-double/2addr v6, v8
|
|
|
|
double-to-int v4, v6
|
|
|
|
iget v6, v2, Landroidx/core/graphics/Insets;->top:I
|
|
|
|
iget v7, v3, Landroidx/core/graphics/Insets;->top:I
|
|
|
|
sub-int/2addr v6, v7
|
|
|
|
int-to-float v6, v6
|
|
|
|
mul-float/2addr v6, v5
|
|
|
|
float-to-double v6, v6
|
|
|
|
add-double/2addr v6, v8
|
|
|
|
double-to-int v6, v6
|
|
|
|
iget v7, v2, Landroidx/core/graphics/Insets;->right:I
|
|
|
|
iget v10, v3, Landroidx/core/graphics/Insets;->right:I
|
|
|
|
sub-int/2addr v7, v10
|
|
|
|
int-to-float v7, v7
|
|
|
|
mul-float/2addr v7, v5
|
|
|
|
float-to-double v10, v7
|
|
|
|
add-double/2addr v10, v8
|
|
|
|
double-to-int v7, v10
|
|
|
|
iget v10, v2, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
iget v3, v3, Landroidx/core/graphics/Insets;->bottom:I
|
|
|
|
sub-int/2addr v10, v3
|
|
|
|
int-to-float v3, v10
|
|
|
|
mul-float/2addr v3, v5
|
|
|
|
float-to-double v10, v3
|
|
|
|
add-double/2addr v10, v8
|
|
|
|
double-to-int v3, v10
|
|
|
|
invoke-static {v2, v4, v6, v7, v3}, Landroidx/core/view/WindowInsetsCompat;->insetInsets(Landroidx/core/graphics/Insets;IIII)Landroidx/core/graphics/Insets;
|
|
|
|
move-result-object v2
|
|
|
|
.line 725
|
|
invoke-virtual {v0, v1, v2}, Landroidx/core/view/WindowInsetsCompat$Builder;->setInsets(ILandroidx/core/graphics/Insets;)Landroidx/core/view/WindowInsetsCompat$Builder;
|
|
|
|
:goto_1
|
|
shl-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 728
|
|
:cond_1
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsCompat$Builder;->build()Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static setCallback(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat$Callback;)V
|
|
.locals 2
|
|
.param p0 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroidx/core/view/WindowInsetsAnimationCompat$Callback;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroidx/core/R$id;->tag_on_apply_window_listener:I
|
|
|
|
.line 618
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
sget p1, Landroidx/core/R$id;->tag_window_insets_animation_callback:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 620
|
|
invoke-virtual {p0, p1, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 624
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 628
|
|
:cond_0
|
|
invoke-static {p0, p1}, Landroidx/core/view/WindowInsetsAnimationCompat$Impl21;->createProxyListener(Landroid/view/View;Landroidx/core/view/WindowInsetsAnimationCompat$Callback;)Landroid/view/View$OnApplyWindowInsetsListener;
|
|
|
|
move-result-object p1
|
|
|
|
sget v1, Landroidx/core/R$id;->tag_window_insets_animation_callback:I
|
|
|
|
.line 629
|
|
invoke-virtual {p0, v1, p1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 636
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|