granularity level: instruction
.class public final Lcom/google/android/gms/common/internal/zaaa;
.super Landroid/widget/Button;
.source "com.google.android.gms:play-services-base@@18.0.1"
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.locals 1
const/4 p2, 0x0
const v0, 0x1010048
invoke-direct {p0, p1, p2, v0}, Landroid/widget/Button;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method private static final zab(IIII)I
.locals 0
if-eqz p0, :cond_2
const/4 p1, 0x1
if-eq p0, p1, :cond_1
const/4 p1, 0x2
if-ne p0, p1, :cond_0
return p3
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
const/16 p3, 0x21
invoke-direct {p2, p3}, Ljava/lang/StringBuilder;-><init>(I)V
const-string p3, "Unknown color scheme: "
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
return p2
:cond_2
return p1
.end method
.method public final zaa(Landroid/content/res/Resources;II)V
.locals 7
sget-object v0, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/internal/zaaa;->setTypeface(Landroid/graphics/Typeface;)V
const/high16 v0, 0x41600000 # 14.0f
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/internal/zaaa;->setTextSize(F)V
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v0
iget v0, v0, Landroid/util/DisplayMetrics;->density:F
const/high16 v1, 0x42400000 # 48.0f
mul-float v0, v0, v1
const/high16 v1, 0x3f000000 # 0.5f
add-float/2addr v0, v1
float-to-int v0, v0
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/internal/zaaa;->setMinHeight(I)V
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/internal/zaaa;->setMinWidth(I)V
sget v0, Lcom/google/android/gms/base/R$drawable;->common_google_signin_btn_icon_dark:I
sget v1, Lcom/google/android/gms/base/R$drawable;->common_google_signin_btn_icon_light:I
sget v2, Lcom/google/android/gms/base/R$drawable;->common_google_signin_btn_icon_light:I
invoke-static {p3, v0, v1, v2}, Lcom/google/android/gms/common/internal/zaaa;->zab(IIII)I
move-result v0
sget v1, Lcom/google/android/gms/base/R$drawable;->common_google_signin_btn_text_dark:I
sget v2, Lcom/google/android/gms/base/R$drawable;->common_google_signin_btn_text_light:I
sget v3, Lcom/google/android/gms/base/R$drawable;->common_google_signin_btn_text_light:I
invoke-static {p3, v1, v2, v3}, Lcom/google/android/gms/common/internal/zaaa;->zab(IIII)I
move-result v1
const-string v2, "Unknown button size: "
const/16 v3, 0x20
const/4 v4, 0x2
const/4 v5, 0x1
if-eqz p2, :cond_1
if-eq p2, v5, :cond_1
if-ne p2, v4, :cond_0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p3, Ljava/lang/StringBuilder;
invoke-direct {p3, v3}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {p3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
move v0, v1
:goto_0
invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
invoke-static {v0}, Landroidx/core/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;
move-result-object v0
sget v1, Lcom/google/android/gms/base/R$color;->common_google_signin_btn_tint:I
invoke-virtual {p1, v1}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object v1
invoke-static {v0, v1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;
invoke-static {v0, v1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintMode(Landroid/graphics/drawable/Drawable;Landroid/graphics/PorterDuff$Mode;)V
invoke-virtual {p0, v0}, Lcom/google/android/gms/common/internal/zaaa;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
sget v0, Lcom/google/android/gms/base/R$color;->common_google_signin_btn_text_dark:I
sget v1, Lcom/google/android/gms/base/R$color;->common_google_signin_btn_text_light:I
sget v6, Lcom/google/android/gms/base/R$color;->common_google_signin_btn_text_light:I
invoke-static {p3, v0, v1, v6}, Lcom/google/android/gms/common/internal/zaaa;->zab(IIII)I
move-result p3
invoke-virtual {p1, p3}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;
move-result-object p3
invoke-static {p3}, Lcom/google/android/gms/common/internal/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p3
check-cast p3, Landroid/content/res/ColorStateList;
invoke-virtual {p0, p3}, Lcom/google/android/gms/common/internal/zaaa;->setTextColor(Landroid/content/res/ColorStateList;)V
const/4 p3, 0x0
if-eqz p2, :cond_4
if-eq p2, v5, :cond_3
if-ne p2, v4, :cond_2
invoke-virtual {p0, p3}, Lcom/google/android/gms/common/internal/zaaa;->setText(Ljava/lang/CharSequence;)V
goto :goto_1
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p3, Ljava/lang/StringBuilder;
invoke-direct {p3, v3}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {p3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
sget p2, Lcom/google/android/gms/base/R$string;->common_signin_button_text_long:I
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/android/gms/common/internal/zaaa;->setText(Ljava/lang/CharSequence;)V
goto :goto_1
:cond_4
sget p2, Lcom/google/android/gms/base/R$string;->common_signin_button_text:I
invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1}, Lcom/google/android/gms/common/internal/zaaa;->setText(Ljava/lang/CharSequence;)V
:goto_1
invoke-virtual {p0, p3}, Lcom/google/android/gms/common/internal/zaaa;->setTransformationMethod(Landroid/text/method/TransformationMethod;)V
invoke-virtual {p0}, Lcom/google/android/gms/common/internal/zaaa;->getContext()Landroid/content/Context;
move-result-object p1
invoke-static {p1}, Lcom/google/android/gms/common/util/DeviceProperties;->isWearable(Landroid/content/Context;)Z
move-result p1
if-eqz p1, :cond_5
const/16 p1, 0x13
invoke-virtual {p0, p1}, Lcom/google/android/gms/common/internal/zaaa;->setGravity(I)V
:cond_5
return-void
.end method