Files
rr3-apk/smali/androidx/appcompat/widget/ContentFrameLayout.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

623 lines
15 KiB
Smali

.class public Landroidx/appcompat/widget/ContentFrameLayout;
.super Landroid/widget/FrameLayout;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
}
.end annotation
# instance fields
.field private mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
.field private final mDecorPadding:Landroid/graphics/Rect;
.field private mFixedHeightMajor:Landroid/util/TypedValue;
.field private mFixedHeightMinor:Landroid/util/TypedValue;
.field private mFixedWidthMajor:Landroid/util/TypedValue;
.field private mFixedWidthMinor:Landroid/util/TypedValue;
.field private mMinWidthMajor:Landroid/util/TypedValue;
.field private mMinWidthMinor:Landroid/util/TypedValue;
# direct methods
.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
.line 58
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/ContentFrameLayout;-><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
const/4 v0, 0x0
.line 62
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/ContentFrameLayout;-><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 0
.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
.line 67
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 68
new-instance p1, Landroid/graphics/Rect;
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
iput-object p1, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
return-void
.end method
# virtual methods
.method public dispatchFitSystemWindows(Landroid/graphics/Rect;)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.line 75
invoke-virtual {p0, p1}, Landroid/view/View;->fitSystemWindows(Landroid/graphics/Rect;)Z
return-void
.end method
.method public getFixedHeightMajor()Landroid/util/TypedValue;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
if-nez v0, :cond_0
.line 193
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedHeightMinor()Landroid/util/TypedValue;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
if-nez v0, :cond_0
.line 198
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedWidthMajor()Landroid/util/TypedValue;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
if-nez v0, :cond_0
.line 183
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedWidthMinor()Landroid/util/TypedValue;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
if-nez v0, :cond_0
.line 188
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getMinWidthMajor()Landroid/util/TypedValue;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
if-nez v0, :cond_0
.line 173
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getMinWidthMinor()Landroid/util/TypedValue;
.locals 1
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
if-nez v0, :cond_0
.line 178
new-instance v0, Landroid/util/TypedValue;
invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
:cond_0
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public onAttachedToWindow()V
.locals 1
.line 204
invoke-super {p0}, Landroid/view/View;->onAttachedToWindow()V
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
if-eqz v0, :cond_0
.line 206
invoke-interface {v0}, Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;->onAttachedFromWindow()V
:cond_0
return-void
.end method
.method public onDetachedFromWindow()V
.locals 1
.line 212
invoke-super {p0}, Landroid/view/View;->onDetachedFromWindow()V
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
if-eqz v0, :cond_0
.line 214
invoke-interface {v0}, Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;->onDetachedFromWindow()V
:cond_0
return-void
.end method
.method public onMeasure(II)V
.locals 13
.line 97
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v0
.line 98
iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I
iget v2, v0, Landroid/util/DisplayMetrics;->heightPixels:I
const/4 v3, 0x1
const/4 v4, 0x0
if-ge v1, v2, :cond_0
move v1, v3
goto :goto_0
:cond_0
move v1, v4
.line 100
:goto_0
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v2
.line 101
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v5
const/4 v6, 0x6
const/4 v7, 0x5
const/high16 v8, -0x80000000
const/high16 v9, 0x40000000 # 2.0f
if-ne v2, v8, :cond_4
if-eqz v1, :cond_1
iget-object v10, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
goto :goto_1
:cond_1
iget-object v10, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
:goto_1
if-eqz v10, :cond_4
.line 106
iget v11, v10, Landroid/util/TypedValue;->type:I
if-eqz v11, :cond_4
if-ne v11, v7, :cond_2
.line 109
invoke-virtual {v10, v0}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v10
:goto_2
float-to-int v10, v10
goto :goto_3
:cond_2
if-ne v11, v6, :cond_3
.line 111
iget v11, v0, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v12, v11
int-to-float v11, v11
invoke-virtual {v10, v12, v11}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v10
goto :goto_2
:cond_3
move v10, v4
:goto_3
if-lez v10, :cond_4
iget-object v11, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
.line 114
iget v12, v11, Landroid/graphics/Rect;->left:I
iget v11, v11, Landroid/graphics/Rect;->right:I
add-int/2addr v12, v11
sub-int/2addr v10, v12
.line 115
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result p1
.line 117
invoke-static {v10, p1}, Ljava/lang/Math;->min(II)I
move-result p1
.line 116
invoke-static {p1, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p1
move v10, v3
goto :goto_4
:cond_4
move v10, v4
:goto_4
if-ne v5, v8, :cond_8
if-eqz v1, :cond_5
iget-object v5, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
goto :goto_5
:cond_5
iget-object v5, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
:goto_5
if-eqz v5, :cond_8
.line 125
iget v11, v5, Landroid/util/TypedValue;->type:I
if-eqz v11, :cond_8
if-ne v11, v7, :cond_6
.line 128
invoke-virtual {v5, v0}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v5
:goto_6
float-to-int v5, v5
goto :goto_7
:cond_6
if-ne v11, v6, :cond_7
.line 130
iget v11, v0, Landroid/util/DisplayMetrics;->heightPixels:I
int-to-float v12, v11
int-to-float v11, v11
invoke-virtual {v5, v12, v11}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v5
goto :goto_6
:cond_7
move v5, v4
:goto_7
if-lez v5, :cond_8
iget-object v11, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
.line 133
iget v12, v11, Landroid/graphics/Rect;->top:I
iget v11, v11, Landroid/graphics/Rect;->bottom:I
add-int/2addr v12, v11
sub-int/2addr v5, v12
.line 134
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result p2
.line 136
invoke-static {v5, p2}, Ljava/lang/Math;->min(II)I
move-result p2
.line 135
invoke-static {p2, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p2
.line 141
:cond_8
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 143
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
move-result p1
.line 146
invoke-static {p1, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v5
if-nez v10, :cond_d
if-ne v2, v8, :cond_d
if-eqz v1, :cond_9
iget-object v1, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
goto :goto_8
:cond_9
iget-object v1, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
:goto_8
if-eqz v1, :cond_d
.line 150
iget v2, v1, Landroid/util/TypedValue;->type:I
if-eqz v2, :cond_d
if-ne v2, v7, :cond_a
.line 153
invoke-virtual {v1, v0}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v0
:goto_9
float-to-int v0, v0
goto :goto_a
:cond_a
if-ne v2, v6, :cond_b
.line 155
iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v2, v0
int-to-float v0, v0
invoke-virtual {v1, v2, v0}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v0
goto :goto_9
:cond_b
move v0, v4
:goto_a
if-lez v0, :cond_c
iget-object v1, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
.line 158
iget v2, v1, Landroid/graphics/Rect;->left:I
iget v1, v1, Landroid/graphics/Rect;->right:I
add-int/2addr v2, v1
sub-int/2addr v0, v2
:cond_c
if-ge p1, v0, :cond_d
.line 161
invoke-static {v0, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v5
goto :goto_b
:cond_d
move v3, v4
:goto_b
if-eqz v3, :cond_e
.line 168
invoke-super {p0, v5, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
:cond_e
return-void
.end method
.method public setAttachListener(Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;)V
.locals 0
iput-object p1, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
return-void
.end method
.method public setDecorPadding(IIII)V
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
.line 89
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/graphics/Rect;->set(IIII)V
.line 90
invoke-virtual {p0}, Landroid/view/View;->isLaidOut()Z
move-result p1
if-eqz p1, :cond_0
.line 91
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
:cond_0
return-void
.end method