ContentFrameLayout.smali
.class public Landroidx/appcompat/widget/ContentFrameLayout;
.super Landroid/widget/FrameLayout;
.source "ContentFrameLayout.java"
# annotations
.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 static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.param p1, "context" # Landroid/content/Context;
.line 61
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/ContentFrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.line 62
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.line 65
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/ContentFrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 66
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 5
.param p1, "context" # Landroid/content/Context;
.param p2, "attrs" # Landroid/util/AttributeSet;
.param p3, "defStyleAttr" # I
.line 70
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 71
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
iput-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
.line 72
return-void
.end method
# virtual methods
.method public dispatchFitSystemWindows(Landroid/graphics/Rect;)V
.registers 2
.param p1, "insets" # Landroid/graphics/Rect;
.line 79
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/ContentFrameLayout;->fitSystemWindows(Landroid/graphics/Rect;)Z
.line 80
return-void
.end method
.method public getFixedHeightMajor()Landroid/util/TypedValue;
.registers 2
.line 198
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
if-nez v0, :cond_b
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;
.line 199
:cond_b
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedHeightMinor()Landroid/util/TypedValue;
.registers 2
.line 203
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
if-nez v0, :cond_b
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;
.line 204
:cond_b
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedWidthMajor()Landroid/util/TypedValue;
.registers 2
.line 188
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
if-nez v0, :cond_b
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;
.line 189
:cond_b
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedWidthMinor()Landroid/util/TypedValue;
.registers 2
.line 193
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
if-nez v0, :cond_b
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;
.line 194
:cond_b
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getMinWidthMajor()Landroid/util/TypedValue;
.registers 2
.line 178
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
if-nez v0, :cond_b
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;
.line 179
:cond_b
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getMinWidthMinor()Landroid/util/TypedValue;
.registers 2
.line 183
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
if-nez v0, :cond_b
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;
.line 184
:cond_b
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method protected onAttachedToWindow()V
.registers 2
.line 209
invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V
.line 210
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
if-eqz v0, :cond_a
.line 211
invoke-interface {v0}, Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;->onAttachedFromWindow()V
.line 213
:cond_a
return-void
.end method
.method protected onDetachedFromWindow()V
.registers 2
.line 217
invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V
.line 218
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
if-eqz v0, :cond_a
.line 219
invoke-interface {v0}, Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;->onDetachedFromWindow()V
.line 221
:cond_a
return-void
.end method
.method protected onMeasure(II)V
.registers 16
.param p1, "widthMeasureSpec" # I
.param p2, "heightMeasureSpec" # I
.line 102
invoke-virtual {p0}, Landroidx/appcompat/widget/ContentFrameLayout;->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 103
.local v0, "metrics":Landroid/util/DisplayMetrics;
iget v1, v0, Landroid/util/DisplayMetrics;->widthPixels:I
iget v2, v0, Landroid/util/DisplayMetrics;->heightPixels:I
if-ge v1, v2, :cond_14
const/4 v1, 0x1
goto :goto_15
:cond_14
const/4 v1, 0x0
.line 105
.local v1, "isPortrait":Z
:goto_15
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v2
.line 106
.local v2, "widthMode":I
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v3
.line 108
.local v3, "heightMode":I
const/4 v4, 0x0
.line 109
.local v4, "fixedWidth":Z
const/4 v5, 0x6
const/4 v6, 0x5
const/high16 v7, -0x80000000
const/high16 v8, 0x40000000 # 2.0f
if-ne v2, v7, :cond_67
.line 110
if-eqz v1, :cond_2b
iget-object v9, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
goto :goto_2d
:cond_2b
iget-object v9, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
.line 111
.local v9, "tvw":Landroid/util/TypedValue;
:goto_2d
if-eqz v9, :cond_67
iget v10, v9, Landroid/util/TypedValue;->type:I
if-eqz v10, :cond_67
.line 112
const/4 v10, 0x0
.line 113
.local v10, "w":I
iget v11, v9, Landroid/util/TypedValue;->type:I
if-ne v11, v6, :cond_3e
.line 114
invoke-virtual {v9, v0}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v11
float-to-int v10, v11
goto :goto_4d
.line 115
:cond_3e
iget v11, v9, Landroid/util/TypedValue;->type:I
if-ne v11, v5, :cond_4d
.line 116
iget v11, v0, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v11, v11
iget v12, v0, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v12, v12
invoke-virtual {v9, v11, v12}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v11
float-to-int v10, v11
.line 118
:cond_4d
:goto_4d
if-lez v10, :cond_67
.line 119
iget-object v11, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v11, v11, Landroid/graphics/Rect;->left:I
iget-object v12, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v12, v12, Landroid/graphics/Rect;->right:I
add-int/2addr v11, v12
sub-int/2addr v10, v11
.line 120
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v11
.line 121
.local v11, "widthSize":I
nop
.line 122
invoke-static {v10, v11}, Ljava/lang/Math;->min(II)I
move-result v12
.line 121
invoke-static {v12, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p1
.line 123
const/4 v4, 0x1
.line 128
.end local v9 # "tvw":Landroid/util/TypedValue;
.end local v10 # "w":I
.end local v11 # "widthSize":I
:cond_67
if-ne v3, v7, :cond_a9
.line 129
if-eqz v1, :cond_6e
iget-object v9, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
goto :goto_70
:cond_6e
iget-object v9, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
.line 130
.local v9, "tvh":Landroid/util/TypedValue;
:goto_70
if-eqz v9, :cond_a9
iget v10, v9, Landroid/util/TypedValue;->type:I
if-eqz v10, :cond_a9
.line 131
const/4 v10, 0x0
.line 132
.local v10, "h":I
iget v11, v9, Landroid/util/TypedValue;->type:I
if-ne v11, v6, :cond_81
.line 133
invoke-virtual {v9, v0}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v11
float-to-int v10, v11
goto :goto_90
.line 134
:cond_81
iget v11, v9, Landroid/util/TypedValue;->type:I
if-ne v11, v5, :cond_90
.line 135
iget v11, v0, Landroid/util/DisplayMetrics;->heightPixels:I
int-to-float v11, v11
iget v12, v0, Landroid/util/DisplayMetrics;->heightPixels:I
int-to-float v12, v12
invoke-virtual {v9, v11, v12}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v11
float-to-int v10, v11
.line 137
:cond_90
:goto_90
if-lez v10, :cond_a9
.line 138
iget-object v11, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v11, v11, Landroid/graphics/Rect;->top:I
iget-object v12, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v12, v12, Landroid/graphics/Rect;->bottom:I
add-int/2addr v11, v12
sub-int/2addr v10, v11
.line 139
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v11
.line 140
.local v11, "heightSize":I
nop
.line 141
invoke-static {v10, v11}, Ljava/lang/Math;->min(II)I
move-result v12
.line 140
invoke-static {v12, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p2
.line 146
.end local v9 # "tvh":Landroid/util/TypedValue;
.end local v10 # "h":I
.end local v11 # "heightSize":I
:cond_a9
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 148
invoke-virtual {p0}, Landroidx/appcompat/widget/ContentFrameLayout;->getMeasuredWidth()I
move-result v9
.line 149
.local v9, "width":I
const/4 v10, 0x0
.line 151
.local v10, "measure":Z
invoke-static {v9, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p1
.line 153
if-nez v4, :cond_f3
if-ne v2, v7, :cond_f3
.line 154
if-eqz v1, :cond_be
iget-object v7, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
goto :goto_c0
:cond_be
iget-object v7, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
.line 155
.local v7, "tv":Landroid/util/TypedValue;
:goto_c0
if-eqz v7, :cond_f3
iget v11, v7, Landroid/util/TypedValue;->type:I
if-eqz v11, :cond_f3
.line 156
const/4 v11, 0x0
.line 157
.local v11, "min":I
iget v12, v7, Landroid/util/TypedValue;->type:I
if-ne v12, v6, :cond_d1
.line 158
invoke-virtual {v7, v0}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v5
float-to-int v11, v5
goto :goto_e0
.line 159
:cond_d1
iget v6, v7, Landroid/util/TypedValue;->type:I
if-ne v6, v5, :cond_e0
.line 160
iget v5, v0, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v5, v5
iget v6, v0, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v6, v6
invoke-virtual {v7, v5, v6}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v5
float-to-int v11, v5
.line 162
:cond_e0
:goto_e0
if-lez v11, :cond_ec
.line 163
iget-object v5, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v5, v5, Landroid/graphics/Rect;->left:I
iget-object v6, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v6, v6, Landroid/graphics/Rect;->right:I
add-int/2addr v5, v6
sub-int/2addr v11, v5
.line 165
:cond_ec
if-ge v9, v11, :cond_f3
.line 166
invoke-static {v11, v8}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p1
.line 167
const/4 v10, 0x1
.line 172
.end local v7 # "tv":Landroid/util/TypedValue;
.end local v11 # "min":I
:cond_f3
if-eqz v10, :cond_f8
.line 173
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
.line 175
:cond_f8
return-void
.end method
.method public setAttachListener(Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;)V
.registers 2
.param p1, "attachListener" # Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
.line 83
iput-object p1, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mAttachListener:Landroidx/appcompat/widget/ContentFrameLayout$OnAttachListener;
.line 84
return-void
.end method
.method public setDecorPadding(IIII)V
.registers 6
.param p1, "left" # I
.param p2, "top" # I
.param p3, "right" # I
.param p4, "bottom" # I
.line 94
iget-object v0, p0, Landroidx/appcompat/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/graphics/Rect;->set(IIII)V
.line 95
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
move-result v0
if-eqz v0, :cond_e
.line 96
invoke-virtual {p0}, Landroidx/appcompat/widget/ContentFrameLayout;->requestLayout()V
.line 98
:cond_e
return-void
.end method