ContentFrameLayout.smali
.class public Landroid/support/v7/widget/ContentFrameLayout;
.super Landroid/widget/FrameLayout;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;
}
.end annotation
# instance fields
.field private mAttachListener:Landroid/support/v7/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
.registers 3
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Landroid/support/v7/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
.registers 4
const/4 v0, 0x0
invoke-direct {p0, p1, p2, v0}, Landroid/support/v7/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
.registers 5
invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
new-instance v0, Landroid/graphics/Rect;
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
iput-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
return-void
.end method
# virtual methods
.method public dispatchFitSystemWindows(Landroid/graphics/Rect;)V
.registers 2
.annotation build Landroid/support/annotation/RestrictTo;
value = {
.enum Landroid/support/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroid/support/annotation/RestrictTo$Scope;
}
.end annotation
invoke-virtual {p0, p1}, Landroid/support/v7/widget/ContentFrameLayout;->fitSystemWindows(Landroid/graphics/Rect;)Z
return-void
.end method
.method public getFixedHeightMajor()Landroid/util/TypedValue;
.registers 2
iget-object v0, p0, Landroid/support/v7/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, Landroid/support/v7/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
:cond_b
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedHeightMinor()Landroid/util/TypedValue;
.registers 2
iget-object v0, p0, Landroid/support/v7/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, Landroid/support/v7/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
:cond_b
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedWidthMajor()Landroid/util/TypedValue;
.registers 2
iget-object v0, p0, Landroid/support/v7/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, Landroid/support/v7/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
:cond_b
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getFixedWidthMinor()Landroid/util/TypedValue;
.registers 2
iget-object v0, p0, Landroid/support/v7/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, Landroid/support/v7/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
:cond_b
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getMinWidthMajor()Landroid/util/TypedValue;
.registers 2
iget-object v0, p0, Landroid/support/v7/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, Landroid/support/v7/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
:cond_b
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
return-object v0
.end method
.method public getMinWidthMinor()Landroid/util/TypedValue;
.registers 2
iget-object v0, p0, Landroid/support/v7/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, Landroid/support/v7/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
:cond_b
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
return-object v0
.end method
.method protected onAttachedToWindow()V
.registers 2
invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mAttachListener:Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;
if-eqz v0, :cond_c
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mAttachListener:Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;
invoke-interface {v0}, Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;->onAttachedFromWindow()V
:cond_c
return-void
.end method
.method protected onDetachedFromWindow()V
.registers 2
invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mAttachListener:Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;
if-eqz v0, :cond_c
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mAttachListener:Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;
invoke-interface {v0}, Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;->onDetachedFromWindow()V
:cond_c
return-void
.end method
.method protected onMeasure(II)V
.registers 15
const/4 v11, 0x5
const/4 v1, 0x1
const/high16 v10, -0x80000000
const/high16 v9, 0x40000000 # 2.0f
const/4 v2, 0x0
invoke-virtual {p0}, Landroid/support/v7/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 v5
iget v0, v5, Landroid/util/DisplayMetrics;->widthPixels:I
iget v3, v5, Landroid/util/DisplayMetrics;->heightPixels:I
if-ge v0, v3, :cond_b8
move v0, v1
:goto_1a
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v6
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
move-result v7
if-ne v6, v10, :cond_100
if-eqz v0, :cond_bb
iget-object v3, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedWidthMinor:Landroid/util/TypedValue;
:goto_28
if-eqz v3, :cond_100
iget v4, v3, Landroid/util/TypedValue;->type:I
if-eqz v4, :cond_100
iget v4, v3, Landroid/util/TypedValue;->type:I
if-ne v4, v11, :cond_bf
invoke-virtual {v3, v5}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v3
float-to-int v3, v3
:goto_37
if-lez v3, :cond_100
iget-object v4, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v4, v4, Landroid/graphics/Rect;->left:I
iget-object v8, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v8, v8, Landroid/graphics/Rect;->right:I
add-int/2addr v4, v8
sub-int/2addr v3, v4
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v4
invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I
move-result v3
invoke-static {v3, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p1
move v4, v1
:goto_50
if-ne v7, v10, :cond_7d
if-eqz v0, :cond_d1
iget-object v3, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedHeightMajor:Landroid/util/TypedValue;
:goto_56
if-eqz v3, :cond_7d
iget v7, v3, Landroid/util/TypedValue;->type:I
if-eqz v7, :cond_7d
iget v7, v3, Landroid/util/TypedValue;->type:I
if-ne v7, v11, :cond_d4
invoke-virtual {v3, v5}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v3
float-to-int v3, v3
:goto_65
if-lez v3, :cond_7d
iget-object v7, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v7, v7, Landroid/graphics/Rect;->top:I
iget-object v8, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v8, v8, Landroid/graphics/Rect;->bottom:I
add-int/2addr v7, v8
sub-int/2addr v3, v7
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
move-result v7
invoke-static {v3, v7}, Ljava/lang/Math;->min(II)I
move-result v3
invoke-static {v3, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result p2
:cond_7d
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
invoke-virtual {p0}, Landroid/support/v7/widget/ContentFrameLayout;->getMeasuredWidth()I
move-result v7
invoke-static {v7, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v3
if-nez v4, :cond_f9
if-ne v6, v10, :cond_f9
if-eqz v0, :cond_e5
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mMinWidthMinor:Landroid/util/TypedValue;
:goto_90
if-eqz v0, :cond_f9
iget v4, v0, Landroid/util/TypedValue;->type:I
if-eqz v4, :cond_f9
iget v4, v0, Landroid/util/TypedValue;->type:I
if-ne v4, v11, :cond_e8
invoke-virtual {v0, v5}, Landroid/util/TypedValue;->getDimension(Landroid/util/DisplayMetrics;)F
move-result v0
float-to-int v0, v0
:goto_9f
if-lez v0, :cond_ab
iget-object v4, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v4, v4, Landroid/graphics/Rect;->left:I
iget-object v5, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
iget v5, v5, Landroid/graphics/Rect;->right:I
add-int/2addr v4, v5
sub-int/2addr v0, v4
:cond_ab
if-ge v7, v0, :cond_f9
invoke-static {v0, v9}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
move-result v0
move v2, v1
:goto_b2
if-eqz v2, :cond_b7
invoke-super {p0, v0, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
:cond_b7
return-void
:cond_b8
move v0, v2
goto/16 :goto_1a
:cond_bb
iget-object v3, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedWidthMajor:Landroid/util/TypedValue;
goto/16 :goto_28
:cond_bf
iget v4, v3, Landroid/util/TypedValue;->type:I
const/4 v8, 0x6
if-ne v4, v8, :cond_103
iget v4, v5, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v4, v4
iget v8, v5, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v8, v8
invoke-virtual {v3, v4, v8}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v3
float-to-int v3, v3
goto/16 :goto_37
:cond_d1
iget-object v3, p0, Landroid/support/v7/widget/ContentFrameLayout;->mFixedHeightMinor:Landroid/util/TypedValue;
goto :goto_56
:cond_d4
iget v7, v3, Landroid/util/TypedValue;->type:I
const/4 v8, 0x6
if-ne v7, v8, :cond_fd
iget v7, v5, Landroid/util/DisplayMetrics;->heightPixels:I
int-to-float v7, v7
iget v8, v5, Landroid/util/DisplayMetrics;->heightPixels:I
int-to-float v8, v8
invoke-virtual {v3, v7, v8}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v3
float-to-int v3, v3
goto :goto_65
:cond_e5
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mMinWidthMajor:Landroid/util/TypedValue;
goto :goto_90
:cond_e8
iget v4, v0, Landroid/util/TypedValue;->type:I
const/4 v6, 0x6
if-ne v4, v6, :cond_fb
iget v4, v5, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v4, v4
iget v5, v5, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float v5, v5
invoke-virtual {v0, v4, v5}, Landroid/util/TypedValue;->getFraction(FF)F
move-result v0
float-to-int v0, v0
goto :goto_9f
:cond_f9
move v0, v3
goto :goto_b2
:cond_fb
move v0, v2
goto :goto_9f
:cond_fd
move v3, v2
goto/16 :goto_65
:cond_100
move v4, v2
goto/16 :goto_50
:cond_103
move v3, v2
goto/16 :goto_37
.end method
.method public setAttachListener(Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;)V
.registers 2
iput-object p1, p0, Landroid/support/v7/widget/ContentFrameLayout;->mAttachListener:Landroid/support/v7/widget/ContentFrameLayout$OnAttachListener;
return-void
.end method
.method public setDecorPadding(IIII)V
.registers 6
.annotation build Landroid/support/annotation/RestrictTo;
value = {
.enum Landroid/support/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroid/support/annotation/RestrictTo$Scope;
}
.end annotation
iget-object v0, p0, Landroid/support/v7/widget/ContentFrameLayout;->mDecorPadding:Landroid/graphics/Rect;
invoke-virtual {v0, p1, p2, p3, p4}, Landroid/graphics/Rect;->set(IIII)V
invoke-static {p0}, Landroid/support/v4/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
move-result v0
if-eqz v0, :cond_e
invoke-virtual {p0}, Landroid/support/v7/widget/ContentFrameLayout;->requestLayout()V
:cond_e
return-void
.end method