5910 lines
153 KiB
Smali
5910 lines
153 KiB
Smali
.class public Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
.super Landroid/view/ViewGroup;
|
|
.source "CoordinatorLayout.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/core/view/NestedScrollingParent2;
|
|
.implements Landroidx/core/view/NestedScrollingParent3;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$HierarchyChangeListener;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$AttachedBehavior;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$ViewElevationComparator;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;,
|
|
Landroidx/coordinatorlayout/widget/CoordinatorLayout$DispatchChangeEvent;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final CONSTRUCTOR_PARAMS:[Ljava/lang/Class;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"[",
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final EVENT_NESTED_SCROLL:I = 0x1
|
|
|
|
.field public static final EVENT_PRE_DRAW:I = 0x0
|
|
|
|
.field public static final EVENT_VIEW_REMOVED:I = 0x2
|
|
|
|
.field public static final TAG:Ljava/lang/String; = "CoordinatorLayout"
|
|
|
|
.field public static final TOP_SORTED_CHILDREN_COMPARATOR:Ljava/util/Comparator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Comparator<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final TYPE_ON_INTERCEPT:I = 0x0
|
|
|
|
.field public static final TYPE_ON_TOUCH:I = 0x1
|
|
|
|
.field public static final WIDGET_PACKAGE_NAME:Ljava/lang/String;
|
|
|
|
.field public static final sConstructors:Ljava/lang/ThreadLocal;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ThreadLocal<",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/reflect/Constructor<",
|
|
"Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;",
|
|
">;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public static final sRectPool:Landroidx/core/util/Pools$Pool;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/core/util/Pools$Pool<",
|
|
"Landroid/graphics/Rect;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field public mApplyWindowInsetsListener:Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
|
|
.field public final mBehaviorConsumed:[I
|
|
|
|
.field public mBehaviorTouchView:Landroid/view/View;
|
|
|
|
.field public final mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final mDependencySortedChildren:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public mDisallowInterceptReset:Z
|
|
|
|
.field public mDrawStatusBarBackground:Z
|
|
|
|
.field public mIsAttachedToWindow:Z
|
|
|
|
.field public mKeylines:[I
|
|
|
|
.field public mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
.field public mNeedsPreDrawListener:Z
|
|
|
|
.field public final mNestedScrollingParentHelper:Landroidx/core/view/NestedScrollingParentHelper;
|
|
|
|
.field public mNestedScrollingTarget:Landroid/view/View;
|
|
|
|
.field public final mNestedScrollingV2ConsumedCompat:[I
|
|
|
|
.field public mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
|
|
|
|
.field public mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
.field public mScrimPaint:Landroid/graphics/Paint;
|
|
|
|
.field public mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public final mTempDependenciesList:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final mTempList1:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 3
|
|
|
|
const-class v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getPackage()Ljava/lang/Package;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Package;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
sput-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->WIDGET_PACKAGE_NAME:Ljava/lang/String;
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$ViewElevationComparator;
|
|
|
|
invoke-direct {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$ViewElevationComparator;-><init>()V
|
|
|
|
sput-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->TOP_SORTED_CHILDREN_COMPARATOR:Ljava/util/Comparator;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Ljava/lang/Class;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-class v2, Landroid/content/Context;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const-class v2, Landroid/util/AttributeSet;
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
sput-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->CONSTRUCTOR_PARAMS:[Ljava/lang/Class;
|
|
|
|
new-instance v0, Ljava/lang/ThreadLocal;
|
|
|
|
invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
|
|
|
|
sput-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->sConstructors:Ljava/lang/ThreadLocal;
|
|
|
|
new-instance v0, Landroidx/core/util/Pools$SynchronizedPool;
|
|
|
|
const/16 v1, 0xc
|
|
|
|
invoke-direct {v0, v1}, Landroidx/core/util/Pools$SynchronizedPool;-><init>(I)V
|
|
|
|
sput-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->sRectPool:Landroidx/core/util/Pools$Pool;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroidx/coordinatorlayout/R$attr;->coordinatorLayoutStyle:I
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 9
|
|
.param p1 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # I
|
|
.annotation build Landroidx/annotation/AttrRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-direct {v0}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempList1:Ljava/util/List;
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v1, v0, [I
|
|
|
|
iput-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
new-array v0, v0, [I
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingV2ConsumedCompat:[I
|
|
|
|
new-instance v0, Landroidx/core/view/NestedScrollingParentHelper;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/core/view/NestedScrollingParentHelper;-><init>(Landroid/view/ViewGroup;)V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingParentHelper:Landroidx/core/view/NestedScrollingParentHelper;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
sget-object v1, Landroidx/coordinatorlayout/R$styleable;->CoordinatorLayout:[I
|
|
|
|
sget v2, Landroidx/coordinatorlayout/R$style;->Widget_Support_CoordinatorLayout:I
|
|
|
|
invoke-virtual {p1, p2, v1, v0, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v1, Landroidx/coordinatorlayout/R$styleable;->CoordinatorLayout:[I
|
|
|
|
invoke-virtual {p1, p2, v1, p3, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_0
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v3, 0x1d
|
|
|
|
if-lt v2, v3, :cond_2
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
sget-object v4, Landroidx/coordinatorlayout/R$styleable;->CoordinatorLayout:[I
|
|
|
|
const/4 v7, 0x0
|
|
|
|
sget v8, Landroidx/coordinatorlayout/R$style;->Widget_Support_CoordinatorLayout:I
|
|
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v5, p2
|
|
|
|
move-object v6, v1
|
|
|
|
invoke-virtual/range {v2 .. v8}, Landroid/view/ViewGroup;->saveAttributeDataForStyleable(Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sget-object v4, Landroidx/coordinatorlayout/R$styleable;->CoordinatorLayout:[I
|
|
|
|
const/4 v8, 0x0
|
|
|
|
move-object v2, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v5, p2
|
|
|
|
move-object v6, v1
|
|
|
|
move v7, p3
|
|
|
|
invoke-virtual/range {v2 .. v8}, Landroid/view/ViewGroup;->saveAttributeDataForStyleable(Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
sget p2, Landroidx/coordinatorlayout/R$styleable;->CoordinatorLayout_keylines:I
|
|
|
|
invoke-virtual {v1, p2, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getIntArray(I)[I
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mKeylines:[I
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
iget-object p2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mKeylines:[I
|
|
|
|
array-length p2, p2
|
|
|
|
:goto_2
|
|
if-ge v0, p2, :cond_3
|
|
|
|
iget-object p3, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mKeylines:[I
|
|
|
|
aget v2, p3, v0
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v2, v2, p1
|
|
|
|
float-to-int v2, v2
|
|
|
|
aput v2, p3, v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
sget p1, Landroidx/coordinatorlayout/R$styleable;->CoordinatorLayout_statusBarBackground:I
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
invoke-direct {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setupForInsets()V
|
|
|
|
new-instance p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$HierarchyChangeListener;
|
|
|
|
invoke-direct {p1, p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$HierarchyChangeListener;-><init>(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)V
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->setOnHierarchyChangeListener(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getImportantForAccessibility(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-static {p0, p1}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static acquireTempRect()Landroid/graphics/Rect;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->sRectPool:Landroidx/core/util/Pools$Pool;
|
|
|
|
invoke-interface {v0}, Landroidx/core/util/Pools$Pool;->acquire()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/graphics/Rect;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static clamp(III)I
|
|
.locals 0
|
|
|
|
if-ge p0, p1, :cond_0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
if-le p0, p2, :cond_1
|
|
|
|
return p2
|
|
|
|
:cond_1
|
|
return p0
|
|
.end method
|
|
|
|
.method private constrainChildRect(Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;Landroid/graphics/Rect;II)V
|
|
.locals 5
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result v2
|
|
|
|
iget v3, p1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iget v3, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v0, v4
|
|
|
|
sub-int/2addr v0, p3
|
|
|
|
iget v4, p1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
sub-int/2addr v0, v4
|
|
|
|
invoke-static {v3, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
|
|
|
move-result v2
|
|
|
|
iget v3, p1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iget v3, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v1, v4
|
|
|
|
sub-int/2addr v1, p4
|
|
|
|
iget p1, p1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
invoke-static {v3, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {v2, p1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p3, v0
|
|
|
|
add-int/2addr p4, p1
|
|
|
|
invoke-virtual {p2, v0, p1, p3, p4}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private dispatchApplyWindowInsetsToBehaviors(Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 4
|
|
|
|
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->isConsumed()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_2
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v3, p0, v2, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onApplyWindowInsets(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->isConsumed()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private getDesiredAnchoredChildRectWithoutConstraints(Landroid/view/View;ILandroid/graphics/Rect;Landroid/graphics/Rect;Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;II)V
|
|
.locals 5
|
|
|
|
iget p1, p5, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->gravity:I
|
|
|
|
invoke-static {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resolveAnchoredChildGravity(I)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, p2}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result p1
|
|
|
|
iget p5, p5, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->anchorGravity:I
|
|
|
|
invoke-static {p5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resolveGravity(I)I
|
|
|
|
move-result p5
|
|
|
|
invoke-static {p5, p2}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result p2
|
|
|
|
and-int/lit8 p5, p1, 0x7
|
|
|
|
and-int/lit8 p1, p1, 0x70
|
|
|
|
and-int/lit8 v0, p2, 0x7
|
|
|
|
and-int/lit8 p2, p2, 0x70
|
|
|
|
const/4 v1, 0x5
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eq v0, v2, :cond_1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
iget v0, p3, Landroid/graphics/Rect;->left:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p3, Landroid/graphics/Rect;->right:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget v0, p3, Landroid/graphics/Rect;->left:I
|
|
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->width()I
|
|
|
|
move-result v3
|
|
|
|
div-int/lit8 v3, v3, 0x2
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
:goto_0
|
|
const/16 v3, 0x50
|
|
|
|
const/16 v4, 0x10
|
|
|
|
if-eq p2, v4, :cond_3
|
|
|
|
if-eq p2, v3, :cond_2
|
|
|
|
iget p2, p3, Landroid/graphics/Rect;->top:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget p2, p3, Landroid/graphics/Rect;->bottom:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iget p2, p3, Landroid/graphics/Rect;->top:I
|
|
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->height()I
|
|
|
|
move-result p3
|
|
|
|
div-int/lit8 p3, p3, 0x2
|
|
|
|
add-int/2addr p2, p3
|
|
|
|
:goto_1
|
|
if-eq p5, v2, :cond_4
|
|
|
|
if-eq p5, v1, :cond_5
|
|
|
|
sub-int/2addr v0, p6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
div-int/lit8 p3, p6, 0x2
|
|
|
|
sub-int/2addr v0, p3
|
|
|
|
:cond_5
|
|
:goto_2
|
|
if-eq p1, v4, :cond_6
|
|
|
|
if-eq p1, v3, :cond_7
|
|
|
|
sub-int/2addr p2, p7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
div-int/lit8 p1, p7, 0x2
|
|
|
|
sub-int/2addr p2, p1
|
|
|
|
:cond_7
|
|
:goto_3
|
|
add-int/2addr p6, v0
|
|
|
|
add-int/2addr p7, p2
|
|
|
|
invoke-virtual {p4, v0, p2, p6, p7}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getKeyline(I)I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mKeylines:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "CoordinatorLayout"
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "No keylines defined for "
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, " - attempted index lookup "
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
if-ltz p1, :cond_2
|
|
|
|
array-length v3, v0
|
|
|
|
if-lt p1, v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
aget p1, v0, p1
|
|
|
|
return p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Keyline index "
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, " out of range for "
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
return v1
|
|
.end method
|
|
|
|
.method private getTopSortedChildren(Ljava/util/List;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->clear()V
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->isChildrenDrawingOrderEnabled()Z
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v2, v1, -0x1
|
|
|
|
:goto_0
|
|
if-ltz v2, :cond_1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0, v1, v2}, Landroid/view/ViewGroup;->getChildDrawingOrder(II)I
|
|
|
|
move-result v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v3, v2
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sget-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->TOP_SORTED_CHILDREN_COMPARATOR:Ljava/util/Comparator;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-static {p1, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private hasDependencies(Landroid/view/View;)Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->hasOutgoingEdges(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method private layoutChild(Landroid/view/View;I)V
|
|
.locals 9
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
|
|
|
move-result v2
|
|
|
|
iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
iget v4, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v5
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
iget v5, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
invoke-virtual {v7, v1, v2, v3, v4}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget v1, v7, Landroid/graphics/Rect;->left:I
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetLeft()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iput v2, v7, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v1, v7, Landroid/graphics/Rect;->top:I
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iput v2, v7, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v1, v7, Landroid/graphics/Rect;->right:I
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetRight()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, v7, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v1, v7, Landroid/graphics/Rect;->bottom:I
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetBottom()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
iput v1, v7, Landroid/graphics/Rect;->bottom:I
|
|
|
|
:cond_0
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v8
|
|
|
|
iget v0, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->gravity:I
|
|
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resolveGravity(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v3
|
|
|
|
move-object v4, v7
|
|
|
|
move-object v5, v8
|
|
|
|
move v6, p2
|
|
|
|
invoke-static/range {v1 .. v6}, Landroidx/core/view/GravityCompat;->apply(IIILandroid/graphics/Rect;Landroid/graphics/Rect;I)V
|
|
|
|
iget p2, v8, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v0, v8, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v1, v8, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v2, v8, Landroid/graphics/Rect;->bottom:I
|
|
|
|
invoke-virtual {p1, p2, v0, v1, v2}, Landroid/view/View;->layout(IIII)V
|
|
|
|
invoke-static {v7}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v8}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private layoutChildWithAnchor(Landroid/view/View;Landroid/view/View;I)V
|
|
.locals 4
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v1
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0, p2, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDescendantRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
invoke-virtual {p0, p1, p3, v0, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDesiredAnchoredChildRect(Landroid/view/View;ILandroid/graphics/Rect;Landroid/graphics/Rect;)V
|
|
|
|
iget p2, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
iget p3, v1, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v2, v1, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v3, v1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
invoke-virtual {p1, p2, p3, v2, v3}, Landroid/view/View;->layout(IIII)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private layoutChildWithKeyline(Landroid/view/View;II)V
|
|
.locals 8
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->gravity:I
|
|
|
|
invoke-static {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resolveKeylineGravity(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1, p3}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result v1
|
|
|
|
and-int/lit8 v2, v1, 0x7
|
|
|
|
and-int/lit8 v1, v1, 0x70
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v6
|
|
|
|
const/4 v7, 0x1
|
|
|
|
if-ne p3, v7, :cond_0
|
|
|
|
sub-int p2, v3, p2
|
|
|
|
:cond_0
|
|
invoke-direct {p0, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getKeyline(I)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p2, v5
|
|
|
|
const/4 p3, 0x0
|
|
|
|
if-eq v2, v7, :cond_2
|
|
|
|
const/4 v7, 0x5
|
|
|
|
if-eq v2, v7, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int/2addr p2, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
div-int/lit8 v2, v5, 0x2
|
|
|
|
add-int/2addr p2, v2
|
|
|
|
:goto_0
|
|
const/16 v2, 0x10
|
|
|
|
if-eq v1, v2, :cond_4
|
|
|
|
const/16 v2, 0x50
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
add-int/lit8 p3, v6, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
div-int/lit8 v1, v6, 0x2
|
|
|
|
add-int/2addr p3, v1
|
|
|
|
:goto_1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
sub-int/2addr v3, v5
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
sub-int/2addr v3, v2
|
|
|
|
invoke-static {p2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-static {v1, p2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v4, v2
|
|
|
|
sub-int/2addr v4, v6
|
|
|
|
iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v4, v0
|
|
|
|
invoke-static {p3, v4}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p3
|
|
|
|
invoke-static {v1, p3}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p3
|
|
|
|
add-int/2addr v5, p2
|
|
|
|
add-int/2addr v6, p3
|
|
|
|
invoke-virtual {p1, p2, p3, v5, v6}, Landroid/view/View;->layout(IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private offsetChildByInset(Landroid/view/View;Landroid/graphics/Rect;I)V
|
|
.locals 8
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
if-lez v0, :cond_b
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
goto/16 :goto_4
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v4
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v7
|
|
|
|
invoke-virtual {v3, v4, v5, v6, v7}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v1, p0, p1, v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->getInsetDodgeRect(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/graphics/Rect;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v3, v2}, Landroid/graphics/Rect;->contains(Landroid/graphics/Rect;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Rect should be within the child\'s bounds. Rect:"
|
|
|
|
invoke-static {p2}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/Rect;->toShortString()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p3, " | Bounds:"
|
|
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Landroid/graphics/Rect;->toShortString()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
invoke-virtual {v2, v3}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
|
|
|
:goto_0
|
|
invoke-static {v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-virtual {v2}, Landroid/graphics/Rect;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-static {v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
iget v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->dodgeInsetEdges:I
|
|
|
|
invoke-static {v1, p3}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result p3
|
|
|
|
and-int/lit8 v1, p3, 0x30
|
|
|
|
const/16 v3, 0x30
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-ne v1, v3, :cond_5
|
|
|
|
iget v1, v2, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
iget v3, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetY:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
iget v3, p2, Landroid/graphics/Rect;->top:I
|
|
|
|
if-ge v1, v3, :cond_5
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
invoke-direct {p0, p1, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setInsetOffsetY(Landroid/view/View;I)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
and-int/lit8 v3, p3, 0x50
|
|
|
|
const/16 v6, 0x50
|
|
|
|
if-ne v3, v6, :cond_6
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
iget v6, v2, Landroid/graphics/Rect;->bottom:I
|
|
|
|
sub-int/2addr v3, v6
|
|
|
|
iget v6, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
sub-int/2addr v3, v6
|
|
|
|
iget v6, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetY:I
|
|
|
|
add-int/2addr v3, v6
|
|
|
|
iget v6, p2, Landroid/graphics/Rect;->bottom:I
|
|
|
|
if-ge v3, v6, :cond_6
|
|
|
|
sub-int/2addr v3, v6
|
|
|
|
invoke-direct {p0, p1, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setInsetOffsetY(Landroid/view/View;I)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_6
|
|
if-nez v1, :cond_7
|
|
|
|
invoke-direct {p0, p1, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setInsetOffsetY(Landroid/view/View;I)V
|
|
|
|
:cond_7
|
|
and-int/lit8 v1, p3, 0x3
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-ne v1, v3, :cond_8
|
|
|
|
iget v1, v2, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
iget v3, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetX:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
iget v3, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
if-ge v1, v3, :cond_8
|
|
|
|
sub-int/2addr v3, v1
|
|
|
|
invoke-direct {p0, p1, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setInsetOffsetX(Landroid/view/View;I)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
const/4 v3, 0x5
|
|
|
|
and-int/2addr p3, v3
|
|
|
|
if-ne p3, v3, :cond_9
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result p3
|
|
|
|
iget v3, v2, Landroid/graphics/Rect;->right:I
|
|
|
|
sub-int/2addr p3, v3
|
|
|
|
iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
sub-int/2addr p3, v3
|
|
|
|
iget v0, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetX:I
|
|
|
|
add-int/2addr p3, v0
|
|
|
|
iget p2, p2, Landroid/graphics/Rect;->right:I
|
|
|
|
if-ge p3, p2, :cond_9
|
|
|
|
sub-int/2addr p3, p2
|
|
|
|
invoke-direct {p0, p1, p3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setInsetOffsetX(Landroid/view/View;I)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
move v4, v1
|
|
|
|
:goto_3
|
|
if-nez v4, :cond_a
|
|
|
|
invoke-direct {p0, p1, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setInsetOffsetX(Landroid/view/View;I)V
|
|
|
|
:cond_a
|
|
invoke-static {v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
:cond_b
|
|
:goto_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public static parseBehavior(Landroid/content/Context;Landroid/util/AttributeSet;Ljava/lang/String;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
.locals 5
|
|
|
|
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string v0, "."
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 v0, 0x2e
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
move-result v1
|
|
|
|
if-ltz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
sget-object v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->WIDGET_PACKAGE_NAME:Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
sget-object v2, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->WIDGET_PACKAGE_NAME:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
:cond_3
|
|
:goto_0
|
|
:try_start_0
|
|
sget-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->sConstructors:Ljava/lang/ThreadLocal;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/Map;
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
sget-object v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->sConstructors:Ljava/lang/ThreadLocal;
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
|
|
|
|
:cond_4
|
|
invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/reflect/Constructor;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p2, v3, v1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v4, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->CONSTRUCTOR_PARAMS:[Ljava/lang/Class;
|
|
|
|
invoke-virtual {v1, v4}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/reflect/Constructor;->setAccessible(Z)V
|
|
|
|
invoke-interface {v0, p2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_5
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
aput-object p0, v0, v3
|
|
|
|
aput-object p1, v0, v2
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
const-string v0, "Could not inflate Behavior subclass "
|
|
|
|
invoke-static {v0, p2}, Lf/e/b/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private performIntercept(Landroid/view/MotionEvent;I)Z
|
|
.locals 23
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v2, p2
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v3
|
|
|
|
iget-object v4, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempList1:Ljava/util/List;
|
|
|
|
invoke-direct {v0, v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getTopSortedChildren(Ljava/util/List;)V
|
|
|
|
invoke-interface {v4}, Ljava/util/List;->size()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
:goto_0
|
|
if-ge v8, v5, :cond_a
|
|
|
|
invoke-interface {v4, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v11
|
|
|
|
check-cast v11, Landroid/view/View;
|
|
|
|
invoke-virtual {v11}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v12
|
|
|
|
check-cast v12, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v12}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v13
|
|
|
|
const/4 v14, 0x1
|
|
|
|
if-nez v9, :cond_0
|
|
|
|
if-eqz v10, :cond_4
|
|
|
|
:cond_0
|
|
if-eqz v3, :cond_4
|
|
|
|
if-eqz v13, :cond_9
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
|
|
|
|
move-result-wide v17
|
|
|
|
const/16 v19, 0x3
|
|
|
|
const/16 v20, 0x0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
const/16 v22, 0x0
|
|
|
|
move-wide/from16 v15, v17
|
|
|
|
invoke-static/range {v15 .. v22}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
|
|
|
|
move-result-object v7
|
|
|
|
:cond_1
|
|
if-eqz v2, :cond_3
|
|
|
|
if-eq v2, v14, :cond_2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
invoke-virtual {v13, v0, v11, v7}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
invoke-virtual {v13, v0, v11, v7}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onInterceptTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
if-nez v9, :cond_7
|
|
|
|
if-eqz v13, :cond_7
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
if-eq v2, v14, :cond_5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
invoke-virtual {v13, v0, v11, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v9
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
invoke-virtual {v13, v0, v11, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onInterceptTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v9
|
|
|
|
:goto_1
|
|
if-eqz v9, :cond_7
|
|
|
|
iput-object v11, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorTouchView:Landroid/view/View;
|
|
|
|
:cond_7
|
|
invoke-virtual {v12}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->didBlockInteraction()Z
|
|
|
|
move-result v10
|
|
|
|
invoke-virtual {v12, v0, v11}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isBlockingInteractionBelow(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Z
|
|
|
|
move-result v11
|
|
|
|
if-eqz v11, :cond_8
|
|
|
|
if-nez v10, :cond_8
|
|
|
|
const/4 v10, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
const/4 v10, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v11, :cond_9
|
|
|
|
if-nez v10, :cond_9
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
:goto_3
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_a
|
|
:goto_4
|
|
invoke-interface {v4}, Ljava/util/List;->clear()V
|
|
|
|
return v9
|
|
.end method
|
|
|
|
.method private prepareChildren()V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v0}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->clear()V
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_4
|
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p0, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getResolvedLayoutParams(Landroid/view/View;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4, p0, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->findAnchorView(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/view/View;
|
|
|
|
iget-object v5, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v5, v3}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->addNode(Ljava/lang/Object;)V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_1
|
|
if-ge v5, v0, :cond_3
|
|
|
|
if-ne v5, v2, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v4, p0, v3, v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->dependsOn(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
iget-object v7, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v7, v6}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_1
|
|
|
|
iget-object v7, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v7, v6}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->addNode(Ljava/lang/Object;)V
|
|
|
|
:cond_1
|
|
iget-object v7, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v7, v6, v3}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->addEdge(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v1}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->getSortedList()Ljava/util/ArrayList;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->reverse(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static releaseTempRect(Landroid/graphics/Rect;)V
|
|
.locals 1
|
|
.param p0 # Landroid/graphics/Rect;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p0}, Landroid/graphics/Rect;->setEmpty()V
|
|
|
|
sget-object v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->sRectPool:Landroidx/core/util/Pools$Pool;
|
|
|
|
invoke-interface {v0, p0}, Landroidx/core/util/Pools$Pool;->release(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private resetTouchBehaviors(Z)V
|
|
.locals 13
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_2
|
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
|
|
|
|
move-result-wide v7
|
|
|
|
const/4 v9, 0x3
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
move-wide v5, v7
|
|
|
|
invoke-static/range {v5 .. v12}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
|
|
|
|
move-result-object v5
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {v4, p0, v3, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onInterceptTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {v4, p0, v3, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
:goto_1
|
|
invoke-virtual {v5}, Landroid/view/MotionEvent;->recycle()V
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
:goto_2
|
|
if-ge p1, v0, :cond_3
|
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->resetTouchBehaviorTracking()V
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorTouchView:Landroid/view/View;
|
|
|
|
iput-boolean v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDisallowInterceptReset:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static resolveAnchoredChildGravity(I)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/16 p0, 0x11
|
|
|
|
:cond_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static resolveGravity(I)I
|
|
.locals 1
|
|
|
|
and-int/lit8 v0, p0, 0x7
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const v0, 0x800003
|
|
|
|
or-int/2addr p0, v0
|
|
|
|
:cond_0
|
|
and-int/lit8 v0, p0, 0x70
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
or-int/lit8 p0, p0, 0x30
|
|
|
|
:cond_1
|
|
return p0
|
|
.end method
|
|
|
|
.method public static resolveKeylineGravity(I)I
|
|
.locals 0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const p0, 0x800035
|
|
|
|
:cond_0
|
|
return p0
|
|
.end method
|
|
|
|
.method private setInsetOffsetX(Landroid/view/View;I)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetX:I
|
|
|
|
if-eq v1, p2, :cond_0
|
|
|
|
sub-int v1, p2, v1
|
|
|
|
invoke-static {p1, v1}, Landroidx/core/view/ViewCompat;->offsetLeftAndRight(Landroid/view/View;I)V
|
|
|
|
iput p2, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetX:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private setInsetOffsetY(Landroid/view/View;I)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetY:I
|
|
|
|
if-eq v1, p2, :cond_0
|
|
|
|
sub-int v1, p2, v1
|
|
|
|
invoke-static {p1, v1}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V
|
|
|
|
iput p2, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mInsetOffsetY:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private setupForInsets()V
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mApplyWindowInsetsListener:Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$1;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$1;-><init>(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mApplyWindowInsetsListener:Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mApplyWindowInsetsListener:Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
|
|
invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->setOnApplyWindowInsetsListener(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V
|
|
|
|
const/16 v0, 0x500
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setSystemUiVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {p0, v0}, Landroidx/core/view/ViewCompat;->setOnApplyWindowInsetsListener(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addPreDrawListener()V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mIsAttachedToWindow:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;-><init>(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNeedsPreDrawListener:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
.locals 1
|
|
|
|
instance-of v0, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public dispatchDependentViewsChanged(Landroid/view/View;)V
|
|
.locals 4
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->getIncomingEdges(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroid/view/View;
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v3, p0, v2, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onDependentViewChanged(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)Z
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public doViewsOverlap(Landroid/view/View;Landroid/view/View;)Z
|
|
.locals 4
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eq v2, p0, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, p1, v2, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getChildRect(Landroid/view/View;ZLandroid/graphics/Rect;)V
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
|
|
|
move-result-object v2
|
|
|
|
if-eq v2, p0, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, p2, v2, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getChildRect(Landroid/view/View;ZLandroid/graphics/Rect;)V
|
|
|
|
:try_start_0
|
|
iget p2, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v2, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
if-gt p2, v2, :cond_2
|
|
|
|
iget p2, v0, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v2, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
if-gt p2, v2, :cond_2
|
|
|
|
iget p2, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
iget v2, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
if-lt p2, v2, :cond_2
|
|
|
|
iget p2, v0, Landroid/graphics/Rect;->bottom:I
|
|
|
|
iget v2, p1, Landroid/graphics/Rect;->top:I
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-lt p2, v2, :cond_2
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:cond_2
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
return v1
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
throw p2
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method public drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
|
.locals 8
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget-object v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mBehavior:Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v1, p0, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->getScrimOpacity(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)F
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
cmpl-float v2, v1, v2
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mScrimPaint:Landroid/graphics/Paint;
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
new-instance v2, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v2}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
iput-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mScrimPaint:Landroid/graphics/Paint;
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mScrimPaint:Landroid/graphics/Paint;
|
|
|
|
iget-object v0, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mBehavior:Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
invoke-virtual {v0, p0, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->getScrimColor(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v2, v0}, Landroid/graphics/Paint;->setColor(I)V
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mScrimPaint:Landroid/graphics/Paint;
|
|
|
|
const/high16 v2, 0x437f0000 # 255.0f
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->round(F)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, 0xff
|
|
|
|
invoke-static {v1, v2, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->clamp(III)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->isOpaque()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v3, v1
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v4, v1
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v5, v1
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v6, v1
|
|
|
|
sget-object v7, Landroid/graphics/Region$Op;->DIFFERENCE:Landroid/graphics/Region$Op;
|
|
|
|
move-object v2, p1
|
|
|
|
invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->clipRect(FFFFLandroid/graphics/Region$Op;)Z
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v3, v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v4, v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v5, v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v6, v1
|
|
|
|
iget-object v7, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mScrimPaint:Landroid/graphics/Paint;
|
|
|
|
move-object v2, p1
|
|
|
|
invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
:cond_2
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public drawableStateChanged()V
|
|
.locals 4
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->drawableStateChanged()V
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getDrawableState()[I
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
move-result v0
|
|
|
|
or-int/2addr v2, v0
|
|
|
|
:cond_0
|
|
if-eqz v2, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public ensurePreDrawListener()V
|
|
.locals 4
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_1
|
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-direct {p0, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->hasDependencies(Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
:goto_1
|
|
iget-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNeedsPreDrawListener:Z
|
|
|
|
if-eq v1, v0, :cond_3
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->addPreDrawListener()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->removePreDrawListener()V
|
|
|
|
:cond_3
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->generateDefaultLayoutParams()Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateDefaultLayoutParams()Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
.locals 2
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
invoke-direct {v0, v1, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;-><init>(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->generateLayoutParams(Landroid/util/AttributeSet;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public bridge synthetic generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
|
|
.locals 0
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
.locals 2
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
.locals 1
|
|
|
|
instance-of v0, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;-><init>(Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getChildRect(Landroid/view/View;ZLandroid/graphics/Rect;)V
|
|
.locals 2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->isLayoutRequested()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-virtual {p0, p1, p3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDescendantRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Landroid/view/View;->getLeft()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getTop()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getRight()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getBottom()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p3, p2, v0, v1, p1}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
:goto_1
|
|
invoke-virtual {p3}, Landroid/graphics/Rect;->setEmpty()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getDependencies(Landroid/view/View;)Ljava/util/List;
|
|
.locals 1
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->getOutgoingEdges(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getDependencySortedChildren()Ljava/util/List;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->prepareChildren()V
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDependents(Landroid/view/View;)Ljava/util/List;
|
|
.locals 1
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Landroid/view/View;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mChildDag:Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/coordinatorlayout/widget/DirectedAcyclicGraph;->getIncomingEdges(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->clear()V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mTempDependenciesList:Ljava/util/List;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getDescendantRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
invoke-static {p0, p1, p2}, Landroidx/coordinatorlayout/widget/ViewGroupUtils;->getDescendantRect(Landroid/view/ViewGroup;Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getDesiredAnchoredChildRect(Landroid/view/View;ILandroid/graphics/Rect;Landroid/graphics/Rect;)V
|
|
.locals 11
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v9
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v10
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move v3, p2
|
|
|
|
move-object v4, p3
|
|
|
|
move-object v5, p4
|
|
|
|
move-object v6, v0
|
|
|
|
move v7, v9
|
|
|
|
move v8, v10
|
|
|
|
invoke-direct/range {v1 .. v8}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDesiredAnchoredChildRectWithoutConstraints(Landroid/view/View;ILandroid/graphics/Rect;Landroid/graphics/Rect;Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;II)V
|
|
|
|
invoke-direct {p0, v0, p4, v9, v10}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->constrainChildRect(Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;Landroid/graphics/Rect;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getLastChildRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getLastChildRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p2, p1}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final getLastWindowInsets()Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getNestedScrollAxes()I
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingParentHelper:Landroidx/core/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0}, Landroidx/core/view/NestedScrollingParentHelper;->getNestedScrollAxes()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getResolvedLayoutParams(Landroid/view/View;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
.locals 6
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget-boolean v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mBehaviorResolved:Z
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
instance-of v1, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$AttachedBehavior;
|
|
|
|
const-string v2, "CoordinatorLayout"
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$AttachedBehavior;
|
|
|
|
invoke-interface {p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$AttachedBehavior;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string v1, "Attached behavior class is null"
|
|
|
|
invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->setBehavior(Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;)V
|
|
|
|
iput-boolean v3, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mBehaviorResolved:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_2
|
|
|
|
const-class v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/Class;->getAnnotation(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz v1, :cond_3
|
|
|
|
:try_start_0
|
|
invoke-interface {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;->value()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
new-array v5, v4, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {p1, v5}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object p1
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1, v4}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->setBehavior(Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
const-string v4, "Default behavior class "
|
|
|
|
invoke-static {v4}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;->value()Ljava/lang/Class;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " could not be instantiated. Did you forget a default constructor?"
|
|
|
|
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v2, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
:cond_3
|
|
:goto_1
|
|
iput-boolean v3, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mBehaviorResolved:Z
|
|
|
|
:cond_4
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getStatusBarBackground()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSuggestedMinimumHeight()I
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->getSuggestedMinimumHeight()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSuggestedMinimumWidth()I
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->getSuggestedMinimumWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isPointInChildBounds(Landroid/view/View;II)Z
|
|
.locals 1
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, p1, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDescendantRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
:try_start_0
|
|
invoke-virtual {v0, p2, p3}, Landroid/graphics/Rect;->contains(II)Z
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
return p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public offsetChildToAnchor(Landroid/view/View;I)V
|
|
.locals 16
|
|
|
|
move-object/from16 v8, p0
|
|
|
|
move-object/from16 v9, p1
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v10, v0
|
|
|
|
check-cast v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget-object v0, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mAnchorView:Landroid/view/View;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v12
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v13
|
|
|
|
iget-object v0, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mAnchorView:Landroid/view/View;
|
|
|
|
invoke-virtual {v8, v0, v11}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDescendantRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
const/4 v14, 0x0
|
|
|
|
invoke-virtual {v8, v9, v14, v12}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getChildRect(Landroid/view/View;ZLandroid/graphics/Rect;)V
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v15
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v7
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v2, p2
|
|
|
|
move-object v3, v11
|
|
|
|
move-object v4, v13
|
|
|
|
move-object v5, v10
|
|
|
|
move v6, v15
|
|
|
|
move/from16 p2, v7
|
|
|
|
invoke-direct/range {v0 .. v7}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getDesiredAnchoredChildRectWithoutConstraints(Landroid/view/View;ILandroid/graphics/Rect;Landroid/graphics/Rect;Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;II)V
|
|
|
|
iget v0, v13, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v1, v12, Landroid/graphics/Rect;->left:I
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget v0, v13, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v1, v12, Landroid/graphics/Rect;->top:I
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
:cond_0
|
|
const/4 v14, 0x1
|
|
|
|
:cond_1
|
|
move/from16 v0, p2
|
|
|
|
invoke-direct {v8, v10, v13, v15, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->constrainChildRect(Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;Landroid/graphics/Rect;II)V
|
|
|
|
iget v0, v13, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v1, v12, Landroid/graphics/Rect;->left:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iget v1, v13, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v2, v12, Landroid/graphics/Rect;->top:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-static {v9, v0}, Landroidx/core/view/ViewCompat;->offsetLeftAndRight(Landroid/view/View;I)V
|
|
|
|
:cond_2
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-static {v9, v1}, Landroidx/core/view/ViewCompat;->offsetTopAndBottom(Landroid/view/View;I)V
|
|
|
|
:cond_3
|
|
if-eqz v14, :cond_4
|
|
|
|
invoke-virtual {v10}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v1, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mAnchorView:Landroid/view/View;
|
|
|
|
invoke-virtual {v0, v8, v9, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onDependentViewChanged(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)Z
|
|
|
|
:cond_4
|
|
invoke-static {v11}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v12}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v13}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 2
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resetTouchBehaviors(Z)V
|
|
|
|
iget-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNeedsPreDrawListener:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
invoke-direct {v0, p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;-><init>(Landroidx/coordinatorlayout/widget/CoordinatorLayout;)V
|
|
|
|
iput-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->requestApplyInsets(Landroid/view/View;)V
|
|
|
|
:cond_2
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mIsAttachedToWindow:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onChildViewsChanged(I)V
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p1
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->acquireTempRect()Landroid/graphics/Rect;
|
|
|
|
move-result-object v6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_0
|
|
if-ge v8, v3, :cond_f
|
|
|
|
iget-object v9, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v9, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Landroid/view/View;
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v11
|
|
|
|
const/16 v12, 0x8
|
|
|
|
if-ne v11, v12, :cond_0
|
|
|
|
goto/16 :goto_7
|
|
|
|
:cond_0
|
|
const/4 v11, 0x0
|
|
|
|
:goto_1
|
|
if-ge v11, v8, :cond_2
|
|
|
|
iget-object v12, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v12, v11}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v12
|
|
|
|
check-cast v12, Landroid/view/View;
|
|
|
|
iget-object v13, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mAnchorDirectChild:Landroid/view/View;
|
|
|
|
if-ne v13, v12, :cond_1
|
|
|
|
invoke-virtual {v0, v9, v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->offsetChildToAnchor(Landroid/view/View;I)V
|
|
|
|
:cond_1
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v11, 0x1
|
|
|
|
invoke-virtual {v0, v9, v11, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getChildRect(Landroid/view/View;ZLandroid/graphics/Rect;)V
|
|
|
|
iget v12, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->insetEdge:I
|
|
|
|
if-eqz v12, :cond_7
|
|
|
|
invoke-virtual {v5}, Landroid/graphics/Rect;->isEmpty()Z
|
|
|
|
move-result v12
|
|
|
|
if-nez v12, :cond_7
|
|
|
|
iget v12, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->insetEdge:I
|
|
|
|
invoke-static {v12, v2}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result v12
|
|
|
|
and-int/lit8 v13, v12, 0x70
|
|
|
|
const/16 v14, 0x30
|
|
|
|
if-eq v13, v14, :cond_4
|
|
|
|
const/16 v14, 0x50
|
|
|
|
if-eq v13, v14, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget v13, v4, Landroid/graphics/Rect;->bottom:I
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getHeight()I
|
|
|
|
move-result v14
|
|
|
|
iget v15, v5, Landroid/graphics/Rect;->top:I
|
|
|
|
sub-int/2addr v14, v15
|
|
|
|
invoke-static {v13, v14}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v13
|
|
|
|
iput v13, v4, Landroid/graphics/Rect;->bottom:I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
iget v13, v4, Landroid/graphics/Rect;->top:I
|
|
|
|
iget v14, v5, Landroid/graphics/Rect;->bottom:I
|
|
|
|
invoke-static {v13, v14}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v13
|
|
|
|
iput v13, v4, Landroid/graphics/Rect;->top:I
|
|
|
|
:goto_2
|
|
and-int/lit8 v12, v12, 0x7
|
|
|
|
const/4 v13, 0x3
|
|
|
|
if-eq v12, v13, :cond_6
|
|
|
|
const/4 v13, 0x5
|
|
|
|
if-eq v12, v13, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
iget v12, v4, Landroid/graphics/Rect;->right:I
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v13
|
|
|
|
iget v14, v5, Landroid/graphics/Rect;->left:I
|
|
|
|
sub-int/2addr v13, v14
|
|
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v12
|
|
|
|
iput v12, v4, Landroid/graphics/Rect;->right:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
iget v12, v4, Landroid/graphics/Rect;->left:I
|
|
|
|
iget v13, v5, Landroid/graphics/Rect;->right:I
|
|
|
|
invoke-static {v12, v13}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v12
|
|
|
|
iput v12, v4, Landroid/graphics/Rect;->left:I
|
|
|
|
:cond_7
|
|
:goto_3
|
|
iget v10, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->dodgeInsetEdges:I
|
|
|
|
if-eqz v10, :cond_8
|
|
|
|
invoke-virtual {v9}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v10
|
|
|
|
if-nez v10, :cond_8
|
|
|
|
invoke-direct {v0, v9, v4, v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->offsetChildByInset(Landroid/view/View;Landroid/graphics/Rect;I)V
|
|
|
|
:cond_8
|
|
const/4 v10, 0x2
|
|
|
|
if-eq v1, v10, :cond_a
|
|
|
|
invoke-virtual {v0, v9, v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getLastChildRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
invoke-virtual {v6, v5}, Landroid/graphics/Rect;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v12
|
|
|
|
if-eqz v12, :cond_9
|
|
|
|
goto :goto_7
|
|
|
|
:cond_9
|
|
invoke-virtual {v0, v9, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->recordLastChildRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
|
|
:cond_a
|
|
add-int/lit8 v12, v8, 0x1
|
|
|
|
:goto_4
|
|
if-ge v12, v3, :cond_e
|
|
|
|
iget-object v13, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v13, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v13
|
|
|
|
check-cast v13, Landroid/view/View;
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v14
|
|
|
|
check-cast v14, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v14}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v15
|
|
|
|
if-eqz v15, :cond_d
|
|
|
|
invoke-virtual {v15, v0, v13, v9}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->layoutDependsOn(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)Z
|
|
|
|
move-result v16
|
|
|
|
if-eqz v16, :cond_d
|
|
|
|
if-nez v1, :cond_b
|
|
|
|
invoke-virtual {v14}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getChangedAfterNestedScroll()Z
|
|
|
|
move-result v16
|
|
|
|
if-eqz v16, :cond_b
|
|
|
|
invoke-virtual {v14}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->resetChangedAfterNestedScroll()V
|
|
|
|
goto :goto_6
|
|
|
|
:cond_b
|
|
if-eq v1, v10, :cond_c
|
|
|
|
invoke-virtual {v15, v0, v13, v9}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onDependentViewChanged(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)Z
|
|
|
|
move-result v13
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
invoke-virtual {v15, v0, v13, v9}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onDependentViewRemoved(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;)V
|
|
|
|
const/4 v13, 0x1
|
|
|
|
:goto_5
|
|
if-ne v1, v11, :cond_d
|
|
|
|
invoke-virtual {v14, v13}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->setChangedAfterNestedScroll(Z)V
|
|
|
|
:cond_d
|
|
:goto_6
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_e
|
|
:goto_7
|
|
add-int/lit8 v8, v8, 0x1
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_f
|
|
invoke-static {v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
invoke-static {v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->releaseTempRect(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 3
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resetTouchBehaviors(Z)V
|
|
|
|
iget-boolean v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNeedsPreDrawListener:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingTarget:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p0, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onStopNestedScroll(Landroid/view/View;)V
|
|
|
|
:cond_1
|
|
iput-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mIsAttachedToWindow:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 4
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
iget-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDrawStatusBarBackground:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-lez v0, :cond_1
|
|
|
|
iget-object v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v1, v1, v3, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 3
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-direct {p0, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resetTouchBehaviors(Z)V
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {p0, p1, v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->performIntercept(Landroid/view/MotionEvent;I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v0, v2, :cond_2
|
|
|
|
:cond_1
|
|
invoke-direct {p0, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resetTouchBehaviors(Z)V
|
|
|
|
:cond_2
|
|
return p1
|
|
.end method
|
|
|
|
.method public onLayout(ZIIII)V
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
iget-object p2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:goto_0
|
|
if-ge p3, p2, :cond_3
|
|
|
|
iget-object p4, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {p4, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p4
|
|
|
|
check-cast p4, Landroid/view/View;
|
|
|
|
invoke-virtual {p4}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result p5
|
|
|
|
const/16 v0, 0x8
|
|
|
|
if-ne p5, v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p5
|
|
|
|
check-cast p5, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {p5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object p5
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
invoke-virtual {p5, p0, p4, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onLayoutChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;I)Z
|
|
|
|
move-result p5
|
|
|
|
if-nez p5, :cond_2
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p4, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onLayoutChild(Landroid/view/View;I)V
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/lit8 p3, p3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public onLayoutChild(Landroid/view/View;I)V
|
|
.locals 2
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->checkAnchorChanged()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
iget-object v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->mAnchorView:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-direct {p0, p1, v1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->layoutChildWithAnchor(Landroid/view/View;Landroid/view/View;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->keyline:I
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
invoke-direct {p0, p1, v0, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->layoutChildWithKeyline(Landroid/view/View;II)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->layoutChild(Landroid/view/View;I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "An anchor may not be changed after CoordinatorLayout measurement begins before layout is complete."
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 30
|
|
|
|
move-object/from16 v7, p0
|
|
|
|
invoke-direct/range {p0 .. p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->prepareChildren()V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->ensurePreDrawListener()V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
|
|
|
move-result v8
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
|
|
|
move-result v9
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
|
|
|
move-result v1
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v10
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v10, v2, :cond_0
|
|
|
|
const/4 v12, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v12, 0x0
|
|
|
|
:goto_0
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v13
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v14
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
move-result v15
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result v16
|
|
|
|
add-int v17, v8, v9
|
|
|
|
add-int v18, v0, v1
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getSuggestedMinimumWidth()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getSuggestedMinimumHeight()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v3, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
const/16 v19, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v19, 0x0
|
|
|
|
:goto_1
|
|
iget-object v2, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
move-result v6
|
|
|
|
move v5, v0
|
|
|
|
move v4, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_2
|
|
if-ge v3, v6, :cond_d
|
|
|
|
iget-object v0, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDependencySortedChildren:Ljava/util/List;
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
move-object/from16 v20, v0
|
|
|
|
check-cast v20, Landroid/view/View;
|
|
|
|
invoke-virtual/range {v20 .. v20}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
move/from16 v22, v3
|
|
|
|
move/from16 v29, v6
|
|
|
|
move/from16 v28, v8
|
|
|
|
goto/16 :goto_6
|
|
|
|
:cond_2
|
|
invoke-virtual/range {v20 .. v20}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
iget v0, v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->keyline:I
|
|
|
|
if-ltz v0, :cond_8
|
|
|
|
if-eqz v13, :cond_8
|
|
|
|
invoke-direct {v7, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getKeyline(I)I
|
|
|
|
move-result v0
|
|
|
|
iget v11, v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->gravity:I
|
|
|
|
invoke-static {v11}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resolveKeylineGravity(I)I
|
|
|
|
move-result v11
|
|
|
|
invoke-static {v11, v10}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I
|
|
|
|
move-result v11
|
|
|
|
and-int/lit8 v11, v11, 0x7
|
|
|
|
move/from16 v22, v2
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v11, v2, :cond_3
|
|
|
|
if-eqz v12, :cond_4
|
|
|
|
:cond_3
|
|
const/4 v2, 0x5
|
|
|
|
if-ne v11, v2, :cond_5
|
|
|
|
if-eqz v12, :cond_5
|
|
|
|
:cond_4
|
|
sub-int v2, v14, v9
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v2
|
|
|
|
move/from16 v21, v2
|
|
|
|
const/4 v11, 0x0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
if-ne v11, v2, :cond_6
|
|
|
|
if-eqz v12, :cond_7
|
|
|
|
:cond_6
|
|
const/4 v2, 0x3
|
|
|
|
if-ne v11, v2, :cond_9
|
|
|
|
if-eqz v12, :cond_9
|
|
|
|
:cond_7
|
|
sub-int/2addr v0, v8
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static {v11, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
move/from16 v21, v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
move/from16 v22, v2
|
|
|
|
:cond_9
|
|
const/4 v11, 0x0
|
|
|
|
const/16 v21, 0x0
|
|
|
|
:goto_3
|
|
if-eqz v19, :cond_a
|
|
|
|
invoke-static/range {v20 .. v20}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_a
|
|
|
|
iget-object v0, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetLeft()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v2, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetRight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
iget-object v0, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v0}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
|
|
|
|
move-result v0
|
|
|
|
iget-object v11, v7, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-virtual {v11}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetBottom()I
|
|
|
|
move-result v11
|
|
|
|
add-int/2addr v11, v0
|
|
|
|
sub-int v0, v14, v2
|
|
|
|
invoke-static {v0, v13}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v0
|
|
|
|
sub-int v2, v16, v11
|
|
|
|
invoke-static {v2, v15}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result v2
|
|
|
|
move v11, v0
|
|
|
|
move/from16 v23, v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
move/from16 v11, p1
|
|
|
|
move/from16 v23, p2
|
|
|
|
:goto_4
|
|
invoke-virtual {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
const/16 v24, 0x0
|
|
|
|
move-object v2, v1
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v26, v2
|
|
|
|
move/from16 v25, v22
|
|
|
|
move-object/from16 v2, v20
|
|
|
|
move/from16 v22, v3
|
|
|
|
move v3, v11
|
|
|
|
move/from16 v27, v4
|
|
|
|
move/from16 v4, v21
|
|
|
|
move/from16 v28, v8
|
|
|
|
move v8, v5
|
|
|
|
move/from16 v5, v23
|
|
|
|
move/from16 v29, v6
|
|
|
|
move/from16 v6, v24
|
|
|
|
invoke-virtual/range {v0 .. v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onMeasureChild(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;IIII)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_c
|
|
|
|
goto :goto_5
|
|
|
|
:cond_b
|
|
move-object/from16 v26, v1
|
|
|
|
move/from16 v27, v4
|
|
|
|
move/from16 v29, v6
|
|
|
|
move/from16 v28, v8
|
|
|
|
move/from16 v25, v22
|
|
|
|
move/from16 v22, v3
|
|
|
|
move v8, v5
|
|
|
|
:goto_5
|
|
const/4 v5, 0x0
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, v20
|
|
|
|
move v2, v11
|
|
|
|
move/from16 v3, v21
|
|
|
|
move/from16 v4, v23
|
|
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onMeasureChild(Landroid/view/View;IIII)V
|
|
|
|
:cond_c
|
|
invoke-virtual/range {v20 .. v20}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
add-int v0, v0, v17
|
|
|
|
move-object/from16 v1, v26
|
|
|
|
iget v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
iget v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
invoke-static {v8, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual/range {v20 .. v20}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int v2, v2, v18
|
|
|
|
iget v3, v1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
move/from16 v1, v27
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual/range {v20 .. v20}, Landroid/view/View;->getMeasuredState()I
|
|
|
|
move-result v2
|
|
|
|
move/from16 v11, v25
|
|
|
|
invoke-static {v11, v2}, Landroid/view/View;->combineMeasuredStates(II)I
|
|
|
|
move-result v2
|
|
|
|
move v5, v0
|
|
|
|
move v4, v1
|
|
|
|
:goto_6
|
|
add-int/lit8 v3, v22, 0x1
|
|
|
|
move/from16 v8, v28
|
|
|
|
move/from16 v6, v29
|
|
|
|
goto/16 :goto_2
|
|
|
|
:cond_d
|
|
move v11, v2
|
|
|
|
move v1, v4
|
|
|
|
move v8, v5
|
|
|
|
const/high16 v0, -0x1000000
|
|
|
|
and-int/2addr v0, v11
|
|
|
|
move/from16 v2, p1
|
|
|
|
invoke-static {v8, v2, v0}, Landroid/view/View;->resolveSizeAndState(III)I
|
|
|
|
move-result v0
|
|
|
|
shl-int/lit8 v2, v11, 0x10
|
|
|
|
move/from16 v3, p2
|
|
|
|
invoke-static {v1, v3, v2}, Landroid/view/View;->resolveSizeAndState(III)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v7, v0, v1}, Landroid/view/ViewGroup;->setMeasuredDimension(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasureChild(Landroid/view/View;IIII)V
|
|
.locals 0
|
|
|
|
invoke-virtual/range {p0 .. p5}, Landroid/view/ViewGroup;->measureChildWithMargins(Landroid/view/View;IIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedFling(Landroid/view/View;FFZ)Z
|
|
.locals 11
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0x8
|
|
|
|
if-ne v4, v5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v4, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isNestedScrollAccepted(I)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
move-object v5, p0
|
|
|
|
move-object v7, p1
|
|
|
|
move v8, p2
|
|
|
|
move v9, p3
|
|
|
|
move v10, p4
|
|
|
|
invoke-virtual/range {v4 .. v10}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedFling(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;FFZ)Z
|
|
|
|
move-result v4
|
|
|
|
or-int/2addr v3, v4
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
if-eqz v3, :cond_4
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onChildViewsChanged(I)V
|
|
|
|
:cond_4
|
|
return v3
|
|
.end method
|
|
|
|
.method public onNestedPreFling(Landroid/view/View;FF)Z
|
|
.locals 10
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0x8
|
|
|
|
if-ne v4, v5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v4, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isNestedScrollAccepted(I)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
move-object v5, p0
|
|
|
|
move-object v7, p1
|
|
|
|
move v8, p2
|
|
|
|
move v9, p3
|
|
|
|
invoke-virtual/range {v4 .. v9}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedPreFling(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;FF)Z
|
|
|
|
move-result v4
|
|
|
|
or-int/2addr v3, v4
|
|
|
|
:cond_2
|
|
:goto_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return v3
|
|
.end method
|
|
|
|
.method public onNestedPreScroll(Landroid/view/View;II[I)V
|
|
.locals 6
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move-object v4, p4
|
|
|
|
invoke-virtual/range {v0 .. v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onNestedPreScroll(Landroid/view/View;II[II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedPreScroll(Landroid/view/View;II[II)V
|
|
.locals 16
|
|
|
|
move-object/from16 v8, p0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v9
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
:goto_0
|
|
const/4 v14, 0x1
|
|
|
|
if-ge v11, v9, :cond_5
|
|
|
|
invoke-virtual {v8, v11}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-ne v1, v3, :cond_0
|
|
|
|
move/from16 v15, p5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move/from16 v15, p5
|
|
|
|
invoke-virtual {v1, v15}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isNestedScrollAccepted(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
invoke-virtual {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v6, v8, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
aput v10, v6, v10
|
|
|
|
aput v10, v6, v14
|
|
|
|
move-object v0, v1
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v3, p1
|
|
|
|
move/from16 v4, p2
|
|
|
|
move/from16 v5, p3
|
|
|
|
move/from16 v7, p5
|
|
|
|
invoke-virtual/range {v0 .. v7}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedPreScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;II[II)V
|
|
|
|
iget-object v0, v8, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
if-lez p2, :cond_2
|
|
|
|
aget v0, v0, v10
|
|
|
|
invoke-static {v12, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
aget v0, v0, v10
|
|
|
|
invoke-static {v12, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:goto_1
|
|
move v12, v0
|
|
|
|
iget-object v0, v8, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
if-lez p3, :cond_3
|
|
|
|
aget v0, v0, v14
|
|
|
|
invoke-static {v13, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
aget v0, v0, v14
|
|
|
|
invoke-static {v13, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:goto_2
|
|
move v13, v0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_4
|
|
:goto_3
|
|
add-int/lit8 v11, v11, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
aput v12, p4, v10
|
|
|
|
aput v13, p4, v14
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-virtual {v8, v14}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onChildViewsChanged(I)V
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroid/view/View;IIII)V
|
|
.locals 7
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
invoke-virtual/range {v0 .. v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onNestedScroll(Landroid/view/View;IIIII)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroid/view/View;IIIII)V
|
|
.locals 8
|
|
|
|
iget-object v7, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingV2ConsumedCompat:[I
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move v2, p2
|
|
|
|
move v3, p3
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
invoke-virtual/range {v0 .. v7}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onNestedScroll(Landroid/view/View;IIIII[I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScroll(Landroid/view/View;IIIII[I)V
|
|
.locals 17
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p7 # [I
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
move-object/from16 v10, p0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v11
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_0
|
|
const/4 v9, 0x1
|
|
|
|
if-ge v13, v11, :cond_5
|
|
|
|
invoke-virtual {v10, v13}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-ne v1, v3, :cond_0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move/from16 v8, p6
|
|
|
|
invoke-virtual {v1, v8}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isNestedScrollAccepted(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_1
|
|
invoke-virtual {v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iget-object v7, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
aput v12, v7, v12
|
|
|
|
aput v12, v7, v9
|
|
|
|
move-object v0, v1
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
move-object/from16 v3, p1
|
|
|
|
move/from16 v4, p2
|
|
|
|
move/from16 v5, p3
|
|
|
|
move/from16 v6, p4
|
|
|
|
move-object/from16 v16, v7
|
|
|
|
move/from16 v7, p5
|
|
|
|
move/from16 v8, p6
|
|
|
|
move-object/from16 v9, v16
|
|
|
|
invoke-virtual/range {v0 .. v9}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;IIIII[I)V
|
|
|
|
iget-object v0, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
if-lez p4, :cond_2
|
|
|
|
aget v0, v0, v12
|
|
|
|
invoke-static {v14, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
aget v0, v0, v12
|
|
|
|
invoke-static {v14, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:goto_1
|
|
move v14, v0
|
|
|
|
if-lez p5, :cond_3
|
|
|
|
iget-object v0, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aget v0, v0, v1
|
|
|
|
invoke-static {v15, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
const/4 v1, 0x1
|
|
|
|
iget-object v0, v10, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorConsumed:[I
|
|
|
|
aget v0, v0, v1
|
|
|
|
invoke-static {v15, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v0
|
|
|
|
:goto_2
|
|
move v15, v0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:cond_4
|
|
:goto_3
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const/4 v1, 0x1
|
|
|
|
aget v2, p7, v12
|
|
|
|
add-int/2addr v2, v14
|
|
|
|
aput v2, p7, v12
|
|
|
|
aget v2, p7, v1
|
|
|
|
add-int/2addr v2, v15
|
|
|
|
aput v2, p7, v1
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-virtual {v10, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onChildViewsChanged(I)V
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;II)V
|
|
.locals 9
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingParentHelper:Landroidx/core/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0, p1, p2, p3, p4}, Landroidx/core/view/NestedScrollingParentHelper;->onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;II)V
|
|
|
|
iput-object p2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingTarget:Landroid/view/View;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v2, p4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isNestedScrollAccepted(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
move-object v3, p0
|
|
|
|
move-object v5, p1
|
|
|
|
move-object v6, p2
|
|
|
|
move v7, p3
|
|
|
|
move v8, p4
|
|
|
|
invoke-virtual/range {v2 .. v8}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onNestedScrollAccepted(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;Landroid/view/View;II)V
|
|
|
|
:cond_1
|
|
:goto_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 6
|
|
|
|
instance-of v0, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
iget-object p1, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;->behaviorStates:Landroid/util/SparseArray;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_2
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getId()I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p0, v2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->getResolvedLayoutParams(Landroid/view/View;)Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, -0x1
|
|
|
|
if-eq v3, v5, :cond_1
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-virtual {p1, v3}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroid/os/Parcelable;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
invoke-virtual {v4, p0, v2, v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onRestoreInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/os/Parcelable;)V
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 8
|
|
|
|
new-instance v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
new-instance v1, Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v1}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_1
|
|
|
|
invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getId()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v6
|
|
|
|
const/4 v7, -0x1
|
|
|
|
if-eq v5, v7, :cond_0
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
invoke-virtual {v6, p0, v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onSaveInstanceState(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;)Landroid/os/Parcelable;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
invoke-virtual {v1, v5, v4}, Landroid/util/SparseArray;->append(ILjava/lang/Object;)V
|
|
|
|
:cond_0
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iput-object v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$SavedState;->behaviorStates:Landroid/util/SparseArray;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onStartNestedScroll(Landroid/view/View;Landroid/view/View;I)Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, p1, p2, p3, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onStartNestedScroll(Landroid/view/View;Landroid/view/View;II)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onStartNestedScroll(Landroid/view/View;Landroid/view/View;II)Z
|
|
.locals 14
|
|
|
|
move/from16 v7, p4
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v8
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
:goto_0
|
|
if-ge v10, v8, :cond_2
|
|
|
|
move-object v12, p0
|
|
|
|
invoke-virtual {p0, v10}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v13, v0
|
|
|
|
check-cast v13, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v13}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object/from16 v4, p2
|
|
|
|
move/from16 v5, p3
|
|
|
|
move/from16 v6, p4
|
|
|
|
invoke-virtual/range {v0 .. v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onStartNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;Landroid/view/View;II)Z
|
|
|
|
move-result v0
|
|
|
|
or-int/2addr v11, v0
|
|
|
|
invoke-virtual {v13, v7, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->setNestedScrollAccepted(IZ)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v13, v7, v9}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->setNestedScrollAccepted(IZ)V
|
|
|
|
:goto_1
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move-object v12, p0
|
|
|
|
return v11
|
|
.end method
|
|
|
|
.method public onStopNestedScroll(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0, p1, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->onStopNestedScroll(Landroid/view/View;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStopNestedScroll(Landroid/view/View;I)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingParentHelper:Landroidx/core/view/NestedScrollingParentHelper;
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/core/view/NestedScrollingParentHelper;->onStopNestedScroll(Landroid/view/View;I)V
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_2
|
|
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v3, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->isNestedScrollAccepted(I)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
invoke-virtual {v4, p0, v2, p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onStopNestedScroll(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/View;I)V
|
|
|
|
:cond_1
|
|
invoke-virtual {v3, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->resetNestedScroll(I)V
|
|
|
|
invoke-virtual {v3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->resetChangedAfterNestedScroll()V
|
|
|
|
:goto_1
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNestedScrollingTarget:Landroid/view/View;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorTouchView:Landroid/view/View;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
invoke-direct {v0, v1, v4}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->performIntercept(Landroid/view/MotionEvent;I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
iget-object v6, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorTouchView:Landroid/view/View;
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v6}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
iget-object v7, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorTouchView:Landroid/view/View;
|
|
|
|
invoke-virtual {v6, v0, v7, v1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onTouchEvent(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
iget-object v7, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mBehaviorTouchView:Landroid/view/View;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
if-nez v7, :cond_2
|
|
|
|
invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v1
|
|
|
|
or-int/2addr v6, v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
if-eqz v3, :cond_3
|
|
|
|
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
|
|
|
|
move-result-wide v11
|
|
|
|
const/4 v13, 0x3
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const/16 v16, 0x0
|
|
|
|
move-wide v9, v11
|
|
|
|
invoke-static/range {v9 .. v16}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-super {v0, v8}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
:cond_3
|
|
:goto_2
|
|
if-eqz v8, :cond_4
|
|
|
|
invoke-virtual {v8}, Landroid/view/MotionEvent;->recycle()V
|
|
|
|
:cond_4
|
|
if-eq v2, v4, :cond_5
|
|
|
|
const/4 v1, 0x3
|
|
|
|
if-ne v2, v1, :cond_6
|
|
|
|
:cond_5
|
|
invoke-direct {v0, v5}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resetTouchBehaviors(Z)V
|
|
|
|
:cond_6
|
|
return v6
|
|
.end method
|
|
|
|
.method public recordLastChildRect(Landroid/view/View;Landroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->setLastChildRect(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public removePreDrawListener()V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mIsAttachedToWindow:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnPreDrawListener:Landroidx/coordinatorlayout/widget/CoordinatorLayout$OnPreDrawListener;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mNeedsPreDrawListener:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public requestChildRectangleOnScreen(Landroid/view/View;Landroid/graphics/Rect;Z)Z
|
|
.locals 1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;
|
|
|
|
invoke-virtual {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$LayoutParams;->getBehavior()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, p0, p1, p2, p3}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;->onRequestChildRectangleOnScreen(Landroidx/coordinatorlayout/widget/CoordinatorLayout;Landroid/view/View;Landroid/graphics/Rect;Z)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
invoke-super {p0, p1, p2, p3}, Landroid/view/ViewGroup;->requestChildRectangleOnScreen(Landroid/view/View;Landroid/graphics/Rect;Z)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public requestDisallowInterceptTouchEvent(Z)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDisallowInterceptReset:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->resetTouchBehaviors(Z)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDisallowInterceptReset:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setFitsSystemWindows(Z)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->setFitsSystemWindows(Z)V
|
|
|
|
invoke-direct {p0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setupForInsets()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnHierarchyChangeListener(Landroid/view/ViewGroup$OnHierarchyChangeListener;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mOnHierarchyChangeListener:Landroid/view/ViewGroup$OnHierarchyChangeListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatusBarBackground(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eq v0, p1, :cond_5
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_1
|
|
iput-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getDrawableState()[I
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
|
|
|
|
:cond_2
|
|
iget-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/graphics/drawable/DrawableCompat;->setLayoutDirection(Landroid/graphics/drawable/Drawable;I)Z
|
|
|
|
iget-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getVisibility()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p1, v0, v1}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
iget-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p1, p0}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
|
|
|
|
:cond_4
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V
|
|
|
|
:cond_5
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatusBarBackgroundColor(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
.end annotation
|
|
.end param
|
|
|
|
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
invoke-direct {v0, p1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setStatusBarBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatusBarBackgroundResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->setStatusBarBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setVisibility(I)V
|
|
.locals 2
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->setVisibility(I)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isVisible()Z
|
|
|
|
move-result v1
|
|
|
|
if-eq v1, p1, :cond_1
|
|
|
|
iget-object v1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {v1, p1, v0}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setWindowInsets(Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/util/ObjectsCompat;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iput-object p1, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mLastInsets:Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
|
|
|
|
move-result v2
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
iput-boolean v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mDrawStatusBarBackground:Z
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setWillNotDraw(Z)V
|
|
|
|
invoke-direct {p0, p1}, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->dispatchApplyWindowInsetsToBehaviors(Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->requestLayout()V
|
|
|
|
:cond_2
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
|
|
.locals 1
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->verifyDrawable(Landroid/graphics/drawable/Drawable;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|