.class public Lcom/android/systemui/qs/QSContainerImpl;
.super Landroid/widget/FrameLayout;
.source "QSContainerImpl.java"

# interfaces
.implements Lcom/android/systemui/tuner/TunerService$Tunable;


# instance fields
.field protected mBackground:Landroid/view/View;

.field private mBrightnessController:Lcom/android/systemui/settings/BrightnessController;

.field private mBrightnessMirrorController:Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;

.field private mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

.field private mCaretAnimator:Landroid/animation/ValueAnimator;

.field private mCaretDrawable:Lcom/android/systemui/qs/CaretDrawable;

.field private mCaretInterpolator:Landroid/view/animation/Interpolator;

.field protected mContent:Landroid/view/View;

.field private mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

.field private mExpandIndicator:Landroid/widget/ImageView;

.field private mExtraAnimatedViews:[Landroid/view/View;

.field private mFooterChildCount:I

.field private mGutterHeight:I

.field protected mHeader:Lcom/android/systemui/qs/QuickStatusBarHeader;

.field private mHeightOverride:I

.field protected mIndicarotProgress:F

.field private mIsLandscape:Z

.field private mListening:Z

.field private mPanelWidth:I

.field protected mQSContainer:Landroid/view/View;

.field private mQSCustomizer:Lcom/android/systemui/qs/customize/QSCustomizer;

.field private mQSDetail:Lcom/android/systemui/qs/QSDetail;

.field private mQSFooter:Lcom/android/systemui/qs/QSFooter;

.field private mQSFooterBundle:Landroid/view/View;

.field protected mQSFooterContainer:Landroid/widget/LinearLayout;

.field protected mQSPanel:Lcom/android/systemui/qs/QSPanel;

.field protected mQsExpansion:F

.field protected mQuickQsPanel:Lcom/android/systemui/qs/QuickQSPanel;

.field private final mSizePoint:Landroid/graphics/Point;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    new-instance p1, Landroid/graphics/Point;

    invoke-direct {p1}, Landroid/graphics/Point;-><init>()V

    iput-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mSizePoint:Landroid/graphics/Point;

    const/4 p1, -0x1

    iput p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeightOverride:I

    const/4 p1, 0x0

    iput p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mFooterChildCount:I

    return-void
.end method

.method static synthetic access$000(Lcom/android/systemui/qs/QSContainerImpl;)Lcom/android/systemui/qs/CaretDrawable;
    .locals 0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretDrawable:Lcom/android/systemui/qs/CaretDrawable;

    return-object p0
.end method

.method private getDisplayHeight()I
    .locals 2

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mSizePoint:Landroid/graphics/Point;

    iget v0, v0, Landroid/graphics/Point;->y:I

    if-nez v0, :cond_0

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getDisplay()Landroid/view/Display;

    move-result-object v0

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mSizePoint:Landroid/graphics/Point;

    invoke-virtual {v0, v1}, Landroid/view/Display;->getRealSize(Landroid/graphics/Point;)V

    :cond_0
    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mSizePoint:Landroid/graphics/Point;

    iget p0, p0, Landroid/graphics/Point;->y:I

    return p0
.end method

.method private loadDimens()V
    .locals 2

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0705ab

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mGutterHeight:I

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0704a1

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mPanelWidth:I

    return-void
.end method

.method private setupAnimatedViews()V
    .locals 3

    const/4 v0, 0x4

    new-array v0, v0, [Landroid/view/View;

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterBundle:Landroid/view/View;

    const/4 v2, 0x0

    aput-object v1, v0, v2

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    const/4 v2, 0x1

    aput-object v1, v0, v2

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQuickQsPanel:Lcom/android/systemui/qs/QuickQSPanel;

    const/4 v2, 0x2

    aput-object v1, v0, v2

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSPanel:Lcom/android/systemui/qs/QSPanel;

    const/4 v2, 0x3

    aput-object v1, v0, v2

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mExtraAnimatedViews:[Landroid/view/View;

    if-eqz v1, :cond_0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mExtraAnimatedViews:[Landroid/view/View;

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    move-object v0, v1

    :cond_0
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iget-object v2, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeader:Lcom/android/systemui/qs/QuickStatusBarHeader;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSDetail:Lcom/android/systemui/qs/QSDetail;

    invoke-virtual {v2, v0}, Lcom/android/systemui/qs/QSDetail;->setAnimatedViews(Ljava/util/List;)V

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSCustomizer:Lcom/android/systemui/qs/customize/QSCustomizer;

    invoke-virtual {p0, v1}, Lcom/android/systemui/qs/customize/QSCustomizer;->setAnimatedViews(Ljava/util/List;)V

    return-void
.end method


# virtual methods
.method protected calculateContainerHeight()I
    .locals 2

    iget v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeightOverride:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mContent:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    :goto_0
    invoke-virtual {p0}, Lcom/android/systemui/qs/QSContainerImpl;->getQsMinExpansionHeight()I

    move-result v1

    iget p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQsExpansion:F

    sub-int/2addr v0, v1

    int-to-float v0, v0

    mul-float/2addr p0, v0

    int-to-float v0, v1

    add-float/2addr p0, v0

    invoke-static {p0}, Ljava/lang/Math;->round(F)I

    move-result p0

    return p0
.end method

.method public getBrightnessView()Landroid/view/View;
    .locals 0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    return-object p0
.end method

.method public getExpandIndicator()Landroid/view/View;
    .locals 0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mExpandIndicator:Landroid/widget/ImageView;

    return-object p0
.end method

.method public getQSFooter()Lcom/android/systemui/qs/QSFooter;
    .locals 0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooter:Lcom/android/systemui/qs/QSFooter;

    return-object p0
.end method

.method public getQsMinExpansionHeight()I
    .locals 2

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeader:Lcom/android/systemui/qs/QuickStatusBarHeader;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getHeight()I

    move-result v0

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQuickQsPanel:Lcom/android/systemui/qs/QuickQSPanel;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getHeight()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterBundle:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->isShown()Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    invoke-virtual {p0}, Landroid/widget/LinearLayout;->getHeight()I

    move-result p0

    add-int/2addr v0, p0

    :cond_0
    return v0
.end method

.method public isDataUsageAvailable()Z
    .locals 0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method

.method public isQSFullyCollapsed()Z
    .locals 1

    iget p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQsExpansion:F

    const/4 v0, 0x0

    cmpg-float p0, p0, v0

    if-gtz p0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method

.method protected onAttachedToWindow()V
    .locals 2

    invoke-super {p0}, Landroid/widget/FrameLayout;->onAttachedToWindow()V

    const-class v0, Lcom/android/systemui/tuner/TunerService;

    invoke-static {v0}, Lcom/android/systemui/Dependency;->get(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/tuner/TunerService;

    const-string v1, "qs_show_brightness"

    filled-new-array {v1}, [Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, p0, v1}, Lcom/android/systemui/tuner/TunerService;->addTunable(Lcom/android/systemui/tuner/TunerService$Tunable;[Ljava/lang/String;)V

    return-void
.end method

.method protected onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 2

    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    iget p1, p1, Landroid/content/res/Configuration;->orientation:I

    const/4 v0, 0x0

    const/4 v1, 0x2

    if-ne p1, v1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    move p1, v0

    :goto_0
    iput-boolean p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mIsLandscape:Z

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessMirrorController:Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;

    if-eqz p1, :cond_1

    invoke-virtual {p0, p1}, Lcom/android/systemui/qs/QSContainerImpl;->setBrightnessMirror(Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;)V

    :cond_1
    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mSizePoint:Landroid/graphics/Point;

    invoke-virtual {p1, v0, v0}, Landroid/graphics/Point;->set(II)V

    invoke-direct {p0}, Lcom/android/systemui/qs/QSContainerImpl;->loadDimens()V

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V

    const-class v0, Lcom/android/systemui/tuner/TunerService;

    invoke-static {v0}, Lcom/android/systemui/Dependency;->get(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/tuner/TunerService;

    invoke-virtual {v0, p0}, Lcom/android/systemui/tuner/TunerService;->removeTunable(Lcom/android/systemui/tuner/TunerService$Tunable;)V

    return-void
.end method

.method protected onFinishInflate()V
    .locals 4

    invoke-super {p0}, Landroid/widget/FrameLayout;->onFinishInflate()V

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a01b8

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/android/systemui/qs/QuickStatusBarHeader;

    iput-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeader:Lcom/android/systemui/qs/QuickStatusBarHeader;

    const v1, 0x7f0a0367

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mContent:Landroid/view/View;

    const v1, 0x7f0a0366

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSContainer:Landroid/view/View;

    const v1, 0x7f0a0362

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBackground:Landroid/view/View;

    const v1, 0x7f0a0375

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/android/systemui/qs/QuickQSPanel;

    iput-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQuickQsPanel:Lcom/android/systemui/qs/QuickQSPanel;

    const v1, 0x7f0a050b

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/android/systemui/qs/QSFooter;

    iput-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooter:Lcom/android/systemui/qs/QSFooter;

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQuickQsPanel:Lcom/android/systemui/qs/QuickQSPanel;

    const v2, 0x7f05002c

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v0

    const/4 v2, 0x0

    if-eqz v0, :cond_0

    move v0, v2

    goto :goto_0

    :cond_0
    const/16 v0, 0x8

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    const v0, 0x7f0a0377

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/qs/QSPanel;

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSPanel:Lcom/android/systemui/qs/QSPanel;

    const v0, 0x7f0a0371

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    const v0, 0x7f0a0370

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterBundle:Landroid/view/View;

    const v0, 0x7f0a0363

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/settings/ToggleSliderView;

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    new-instance v0, Lcom/android/systemui/settings/BrightnessController;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    iget-object v3, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    invoke-direct {v0, v1, v3}, Lcom/android/systemui/settings/BrightnessController;-><init>(Landroid/content/Context;Lcom/android/systemui/settings/ToggleSlider;)V

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessController:Lcom/android/systemui/settings/BrightnessController;

    const v0, 0x7f0a036e

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mExpandIndicator:Landroid/widget/ImageView;

    new-instance v0, Lcom/android/systemui/qs/CaretDrawable;

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/android/systemui/qs/CaretDrawable;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretDrawable:Lcom/android/systemui/qs/CaretDrawable;

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mExpandIndicator:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretDrawable:Lcom/android/systemui/qs/CaretDrawable;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x10c000d

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadInterpolator(Landroid/content/Context;I)Landroid/view/animation/Interpolator;

    move-result-object v0

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretInterpolator:Landroid/view/animation/Interpolator;

    const v0, 0x7f0a036b

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/qs/QSDetail;

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSDetail:Lcom/android/systemui/qs/QSDetail;

    const v0, 0x7f0a036a

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/qs/customize/QSCustomizer;

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSCustomizer:Lcom/android/systemui/qs/customize/QSCustomizer;

    invoke-direct {p0}, Lcom/android/systemui/qs/QSContainerImpl;->loadDimens()V

    invoke-virtual {p0, v2}, Landroid/widget/FrameLayout;->setClickable(Z)V

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->setImportantForAccessibility(I)V

    invoke-direct {p0}, Lcom/android/systemui/qs/QSContainerImpl;->setupAnimatedViews()V

    return-void
.end method

.method protected onMeasure(II)V
    .locals 4

    const-wide/16 v0, 0x8

    const-string v2, "onMeasure QsContainer"

    invoke-static {v0, v1, v2}, Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V

    iget-boolean v2, p0, Lcom/android/systemui/qs/QSContainerImpl;->mIsLandscape:Z

    const/high16 v3, 0x40000000    # 2.0f

    if-eqz v2, :cond_0

    iget v2, p0, Lcom/android/systemui/qs/QSContainerImpl;->mPanelWidth:I

    if-lez v2, :cond_0

    invoke-static {v2, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result p1

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V

    invoke-static {v0, v1}, Landroid/os/Trace;->traceEnd(J)V

    const-string p2, "onMeasure QsContainer children"

    invoke-static {v0, v1, p2}, Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V

    invoke-direct {p0}, Lcom/android/systemui/qs/QSContainerImpl;->getDisplayHeight()I

    move-result p2

    invoke-static {p2, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result p2

    iget-object v2, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSCustomizer:Lcom/android/systemui/qs/customize/QSCustomizer;

    invoke-virtual {v2, p1, p2}, Landroid/widget/LinearLayout;->measure(II)V

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSDetail:Lcom/android/systemui/qs/QSDetail;

    invoke-virtual {p0, p1, p2}, Landroid/widget/LinearLayout;->measure(II)V

    invoke-static {v0, v1}, Landroid/os/Trace;->traceEnd(J)V

    return-void
.end method

.method public onRtlPropertiesChanged(I)V
    .locals 0

    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onRtlPropertiesChanged(I)V

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->setLayoutDirection(I)V

    return-void
.end method

.method public onTuningChanged(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const-string v0, "qs_show_brightness"

    invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    if-eqz p2, :cond_1

    invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    if-eqz p1, :cond_0

    goto :goto_0

    :cond_0
    const/16 p1, 0x8

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    :goto_1
    invoke-virtual {p0, p1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    :cond_2
    return-void
.end method

.method public performClick()Z
    .locals 0

    const/4 p0, 0x1

    return p0
.end method

.method public setBrightnessListening(Z)V
    .locals 0

    if-eqz p1, :cond_0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessController:Lcom/android/systemui/settings/BrightnessController;

    invoke-virtual {p0}, Lcom/android/systemui/settings/BrightnessController;->registerCallbacks()V

    goto :goto_0

    :cond_0
    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessController:Lcom/android/systemui/settings/BrightnessController;

    invoke-virtual {p0}, Lcom/android/systemui/settings/BrightnessController;->unregisterCallbacks()V

    :goto_0
    return-void
.end method

.method public setBrightnessMirror(Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;)V
    .locals 2

    iput-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessMirrorController:Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;

    invoke-virtual {p1}, Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;->getMirror()Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0a00ab

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/android/systemui/settings/ToggleSliderView;

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    invoke-virtual {v1, v0}, Lcom/android/systemui/settings/ToggleSliderView;->setMirror(Lcom/android/systemui/settings/ToggleSliderView;)V

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBrightnessView:Lcom/android/systemui/settings/ToggleSliderView;

    invoke-virtual {p0, p1}, Lcom/android/systemui/settings/ToggleSliderView;->setMirrorController(Lcom/android/systemui/statusbar/policy/BrightnessMirrorController;)V

    return-void
.end method

.method public varargs setDetailAnimatedViews([Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mExtraAnimatedViews:[Landroid/view/View;

    invoke-direct {p0}, Lcom/android/systemui/qs/QSContainerImpl;->setupAnimatedViews()V

    return-void
.end method

.method public setExpansion(F)V
    .locals 4

    iget v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQsExpansion:F

    sub-float/2addr v0, p1

    const v1, 0x3b03126f    # 0.002f

    cmpl-float v0, v0, v1

    const/high16 v2, 0x3f800000    # 1.0f

    const/4 v3, 0x0

    if-lez v0, :cond_0

    cmpl-float v0, p1, v3

    if-eqz v0, :cond_0

    const/high16 v2, -0x40800000    # -1.0f

    goto :goto_0

    :cond_0
    iget v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQsExpansion:F

    sub-float v0, p1, v0

    cmpl-float v0, v0, v1

    if-lez v0, :cond_1

    cmpl-float v0, p1, v2

    if-eqz v0, :cond_1

    goto :goto_0

    :cond_1
    move v2, v3

    :goto_0
    iput p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQsExpansion:F

    invoke-virtual {p0, v2}, Lcom/android/systemui/qs/QSContainerImpl;->updateIndicator(F)V

    invoke-virtual {p0}, Lcom/android/systemui/qs/QSContainerImpl;->updateExpansion()V

    return-void
.end method

.method public setGutterEnabled(Z)V
    .locals 2

    iget v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mGutterHeight:I

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    move v0, v1

    :goto_0
    if-ne p1, v0, :cond_1

    return-void

    :cond_1
    if-eqz p1, :cond_2

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f0705ab

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result p1

    iput p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mGutterHeight:I

    goto :goto_1

    :cond_2
    iput v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mGutterHeight:I

    :goto_1
    invoke-virtual {p0}, Lcom/android/systemui/qs/QSContainerImpl;->updateExpansion()V

    return-void
.end method

.method public setHeightOverride(I)V
    .locals 1

    iget v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeightOverride:I

    if-eq v0, p1, :cond_0

    iput p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeightOverride:I

    invoke-virtual {p0}, Lcom/android/systemui/qs/QSContainerImpl;->updateExpansion()V

    :cond_0
    return-void
.end method

.method public setListening(Z)V
    .locals 1

    iget-boolean v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mListening:Z

    if-ne v0, p1, :cond_0

    return-void

    :cond_0
    iput-boolean p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mListening:Z

    invoke-virtual {p0, p1}, Lcom/android/systemui/qs/QSContainerImpl;->setBrightnessListening(Z)V

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooter:Lcom/android/systemui/qs/QSFooter;

    if-eqz p1, :cond_1

    iget-boolean p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mListening:Z

    invoke-virtual {p1, p0}, Lcom/android/systemui/qs/QSFooter;->setListening(Z)V

    :cond_1
    return-void
.end method

.method public updateDataUsageInfo()V
    .locals 0

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Lcom/android/systemui/qs/QSFooterDataUsage;->updateDataUsageInfo()V

    :cond_0
    return-void
.end method

.method public updateExpansion()V
    .locals 3

    invoke-virtual {p0}, Lcom/android/systemui/qs/QSContainerImpl;->calculateContainerHeight()I

    move-result v0

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getTop()I

    move-result v1

    add-int/2addr v1, v0

    invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->setBottom(I)V

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mContent:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v2

    add-int/2addr v2, v0

    invoke-virtual {v1, v2}, Landroid/view/View;->setBottom(I)V

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSContainer:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v2

    add-int/2addr v2, v0

    invoke-virtual {v1, v2}, Landroid/view/View;->setBottom(I)V

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mBackground:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v2

    add-int/2addr v2, v0

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeader:Lcom/android/systemui/qs/QuickStatusBarHeader;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getHeight()I

    move-result v0

    sub-int/2addr v2, v0

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterBundle:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    sub-int/2addr v2, v0

    invoke-virtual {v1, v2}, Landroid/view/View;->setBottom(I)V

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v0

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterBundle:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mHeader:Lcom/android/systemui/qs/QuickStatusBarHeader;

    invoke-virtual {v1}, Landroid/widget/RelativeLayout;->getHeight()I

    move-result v1

    sub-int/2addr v0, v1

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    int-to-float v0, v0

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setTranslationY(F)V

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterBundle:Landroid/view/View;

    invoke-virtual {p0, v0}, Landroid/view/View;->setTranslationY(F)V

    return-void
.end method

.method public updateFooter()V
    .locals 2

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Lcom/android/systemui/qs/QSFooterDataUsage;->isAvailable()Z

    move-result v1

    if-nez v1, :cond_0

    add-int/lit8 v0, v0, -0x1

    :cond_0
    iget v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mFooterChildCount:I

    if-eq v1, v0, :cond_2

    iput v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mFooterChildCount:I

    if-lez v0, :cond_1

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_2
    :goto_0
    return-void
.end method

.method public updateIndicator(F)V
    .locals 3

    iget v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mIndicarotProgress:F

    cmpl-float v0, v0, p1

    if-eqz v0, :cond_1

    iput p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mIndicarotProgress:F

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->cancel()V

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretDrawable:Lcom/android/systemui/qs/CaretDrawable;

    invoke-virtual {v0, v1}, Lcom/android/systemui/qs/CaretDrawable;->setCaretProgress(F)V

    :cond_0
    const/4 v0, 0x2

    new-array v0, v0, [F

    const/4 v2, 0x0

    aput v1, v0, v2

    const/4 v1, 0x1

    aput p1, v0, v1

    invoke-static {v0}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;

    move-result-object p1

    iput-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    new-instance v0, Lcom/android/systemui/qs/QSContainerImpl$1;

    invoke-direct {v0, p0}, Lcom/android/systemui/qs/QSContainerImpl$1;-><init>(Lcom/android/systemui/qs/QSContainerImpl;)V

    invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    const-wide/16 v0, 0xc8

    invoke-virtual {p1, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretInterpolator:Landroid/view/animation/Interpolator;

    invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    iget-object p0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mCaretAnimator:Landroid/animation/ValueAnimator;

    invoke-virtual {p0}, Landroid/animation/ValueAnimator;->start()V

    :cond_1
    return-void
.end method

.method public updateQSDataUsage(Z)V
    .locals 3

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    if-nez p1, :cond_2

    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const v0, 0x7f0d014d

    iget-object v1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    const/4 v2, 0x0

    invoke-virtual {p1, v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/android/systemui/qs/QSFooterDataUsage;

    iput-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    invoke-virtual {p1, p0}, Lcom/android/systemui/qs/QSFooterDataUsage;->setQSContainer(Lcom/android/systemui/qs/QSContainerImpl;)V

    goto :goto_0

    :cond_0
    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    if-eqz p1, :cond_2

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooter:Lcom/android/systemui/qs/QSFooter;

    if-nez p1, :cond_1

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_1
    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mQSFooterContainer:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    invoke-virtual {p1, v0}, Landroid/widget/LinearLayout;->removeView(Landroid/view/View;)V

    iget-object p1, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lcom/android/systemui/qs/QSFooterDataUsage;->setQSContainer(Lcom/android/systemui/qs/QSContainerImpl;)V

    iput-object v0, p0, Lcom/android/systemui/qs/QSContainerImpl;->mDataUsageBar:Lcom/android/systemui/qs/QSFooterDataUsage;

    invoke-virtual {p0}, Lcom/android/systemui/qs/QSContainerImpl;->updateFooter()V

    :cond_2
    :goto_0
    return-void
.end method
