TextTrackStyle.smali

.class public final Lcom/google/android/gms/cast/TextTrackStyle;
.super Lcom/google/android/gms/internal/zzbck;
.source ""


# static fields
.field public static final COLOR_UNSPECIFIED:I = 0x0

.field public static final CREATOR:Landroid/os/Parcelable$Creator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/os/Parcelable$Creator<",
            "Lcom/google/android/gms/cast/TextTrackStyle;",
            ">;"
        }
    .end annotation
.end field

.field public static final DEFAULT_FONT_SCALE:F = 1.0f

.field public static final EDGE_TYPE_DEPRESSED:I = 0x4

.field public static final EDGE_TYPE_DROP_SHADOW:I = 0x2

.field public static final EDGE_TYPE_NONE:I = 0x0

.field public static final EDGE_TYPE_OUTLINE:I = 0x1

.field public static final EDGE_TYPE_RAISED:I = 0x3

.field public static final EDGE_TYPE_UNSPECIFIED:I = -0x1

.field public static final FONT_FAMILY_CASUAL:I = 0x4

.field public static final FONT_FAMILY_CURSIVE:I = 0x5

.field public static final FONT_FAMILY_MONOSPACED_SANS_SERIF:I = 0x1

.field public static final FONT_FAMILY_MONOSPACED_SERIF:I = 0x3

.field public static final FONT_FAMILY_SANS_SERIF:I = 0x0

.field public static final FONT_FAMILY_SERIF:I = 0x2

.field public static final FONT_FAMILY_SMALL_CAPITALS:I = 0x6

.field public static final FONT_FAMILY_UNSPECIFIED:I = -0x1

.field public static final FONT_STYLE_BOLD:I = 0x1

.field public static final FONT_STYLE_BOLD_ITALIC:I = 0x3

.field public static final FONT_STYLE_ITALIC:I = 0x2

.field public static final FONT_STYLE_NORMAL:I = 0x0

.field public static final FONT_STYLE_UNSPECIFIED:I = -0x1

.field public static final WINDOW_TYPE_NONE:I = 0x0

.field public static final WINDOW_TYPE_NORMAL:I = 0x1

.field public static final WINDOW_TYPE_ROUNDED:I = 0x2

.field public static final WINDOW_TYPE_UNSPECIFIED:I = -0x1


# instance fields
.field private zzbrf:I

.field private zzeho:Ljava/lang/String;

.field private zzehp:Lorg/json/JSONObject;

.field private zzenu:F

.field private zzenv:I

.field private zzenw:I

.field private zzenx:I

.field private zzeny:I

.field private zzenz:I

.field private zzeoa:I

.field private zzeob:Ljava/lang/String;

.field private zzeoc:I

.field private zzeod:I


# direct methods
.method static constructor <clinit>()V
    .registers 1

    new-instance v0, Lcom/google/android/gms/cast/zzbk;

    invoke-direct {v0}, Lcom/google/android/gms/cast/zzbk;-><init>()V

    sput-object v0, Lcom/google/android/gms/cast/TextTrackStyle;->CREATOR:Landroid/os/Parcelable$Creator;

    return-void
.end method

.method public constructor <init>()V
    .registers 14

    const/high16 v1, 0x3f800000    # 1.0f

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, -0x1

    const/4 v5, 0x0

    const/4 v6, -0x1

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, -0x1

    const/4 v11, -0x1

    const/4 v12, 0x0

    move-object v0, p0

    invoke-direct/range {v0 .. v12}, Lcom/google/android/gms/cast/TextTrackStyle;-><init>(FIIIIIIILjava/lang/String;IILjava/lang/String;)V

    return-void
.end method

.method constructor <init>(FIIIIIIILjava/lang/String;IILjava/lang/String;)V
    .registers 13

    invoke-direct {p0}, Lcom/google/android/gms/internal/zzbck;-><init>()V

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    iput p2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    iput p3, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    iput p4, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    iput p5, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    iput p6, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    iput p7, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenz:I

    iput p8, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    iput-object p9, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    iput p10, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    iput p11, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    iput-object p12, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeho:Ljava/lang/String;

    const/4 p1, 0x0

    if-eqz p12, :cond_2d

    :try_start_1e
    new-instance p2, Lorg/json/JSONObject;

    iget-object p3, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeho:Ljava/lang/String;

    invoke-direct {p2, p3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    iput-object p2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;
    :try_end_27
    .catch Lorg/json/JSONException; {:try_start_1e .. :try_end_27} :catch_28

    return-void

    :catch_28
    iput-object p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    iput-object p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeho:Ljava/lang/String;

    return-void

    :cond_2d
    iput-object p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    return-void
.end method

.method public static fromSystemSettings(Landroid/content/Context;)Lcom/google/android/gms/cast/TextTrackStyle;
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0x13
    .end annotation

    new-instance v0, Lcom/google/android/gms/cast/TextTrackStyle;

    invoke-direct {v0}, Lcom/google/android/gms/cast/TextTrackStyle;-><init>()V

    invoke-static {}, Lcom/google/android/gms/common/util/zzq;->zzalh()Z

    move-result v1

    if-nez v1, :cond_c

    return-object v0

    :cond_c
    const-string v1, "captioning"

    invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/view/accessibility/CaptioningManager;

    invoke-virtual {p0}, Landroid/view/accessibility/CaptioningManager;->getFontScale()F

    move-result v1

    invoke-virtual {v0, v1}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontScale(F)V

    invoke-virtual {p0}, Landroid/view/accessibility/CaptioningManager;->getUserStyle()Landroid/view/accessibility/CaptioningManager$CaptionStyle;

    move-result-object p0

    iget v1, p0, Landroid/view/accessibility/CaptioningManager$CaptionStyle;->backgroundColor:I

    invoke-virtual {v0, v1}, Lcom/google/android/gms/cast/TextTrackStyle;->setBackgroundColor(I)V

    iget v1, p0, Landroid/view/accessibility/CaptioningManager$CaptionStyle;->foregroundColor:I

    invoke-virtual {v0, v1}, Lcom/google/android/gms/cast/TextTrackStyle;->setForegroundColor(I)V

    iget v1, p0, Landroid/view/accessibility/CaptioningManager$CaptionStyle;->edgeType:I

    const/4 v2, 0x0

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-eq v1, v4, :cond_3a

    if-eq v1, v3, :cond_36

    invoke-virtual {v0, v2}, Lcom/google/android/gms/cast/TextTrackStyle;->setEdgeType(I)V

    goto :goto_3d

    :cond_36
    invoke-virtual {v0, v3}, Lcom/google/android/gms/cast/TextTrackStyle;->setEdgeType(I)V

    goto :goto_3d

    :cond_3a
    invoke-virtual {v0, v4}, Lcom/google/android/gms/cast/TextTrackStyle;->setEdgeType(I)V

    :goto_3d
    iget v1, p0, Landroid/view/accessibility/CaptioningManager$CaptionStyle;->edgeColor:I

    invoke-virtual {v0, v1}, Lcom/google/android/gms/cast/TextTrackStyle;->setEdgeColor(I)V

    invoke-virtual {p0}, Landroid/view/accessibility/CaptioningManager$CaptionStyle;->getTypeface()Landroid/graphics/Typeface;

    move-result-object p0

    if-eqz p0, :cond_8b

    sget-object v1, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface;

    invoke-virtual {v1, p0}, Landroid/graphics/Typeface;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_54

    invoke-virtual {v0, v4}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontGenericFamily(I)V

    goto :goto_6b

    :cond_54
    sget-object v1, Landroid/graphics/Typeface;->SANS_SERIF:Landroid/graphics/Typeface;

    invoke-virtual {v1, p0}, Landroid/graphics/Typeface;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_68

    sget-object v1, Landroid/graphics/Typeface;->SERIF:Landroid/graphics/Typeface;

    invoke-virtual {v1, p0}, Landroid/graphics/Typeface;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_68

    invoke-virtual {v0, v3}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontGenericFamily(I)V

    goto :goto_6b

    :cond_68
    invoke-virtual {v0, v2}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontGenericFamily(I)V

    :goto_6b
    invoke-virtual {p0}, Landroid/graphics/Typeface;->isBold()Z

    move-result v1

    invoke-virtual {p0}, Landroid/graphics/Typeface;->isItalic()Z

    move-result p0

    if-eqz v1, :cond_7c

    if-eqz p0, :cond_7c

    const/4 p0, 0x3

    invoke-virtual {v0, p0}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontStyle(I)V

    goto :goto_8b

    :cond_7c
    if-eqz v1, :cond_82

    invoke-virtual {v0, v4}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontStyle(I)V

    goto :goto_8b

    :cond_82
    if-eqz p0, :cond_88

    invoke-virtual {v0, v3}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontStyle(I)V

    goto :goto_8b

    :cond_88
    invoke-virtual {v0, v2}, Lcom/google/android/gms/cast/TextTrackStyle;->setFontStyle(I)V

    :cond_8b
    :goto_8b
    return-object v0
.end method

.method private static zzbc(I)Ljava/lang/String;
    .registers 4

    const/4 v0, 0x4

    new-array v0, v0, [Ljava/lang/Object;

    invoke-static {p0}, Landroid/graphics/Color;->red(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    invoke-static {p0}, Landroid/graphics/Color;->green(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x1

    aput-object v1, v0, v2

    invoke-static {p0}, Landroid/graphics/Color;->blue(I)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x2

    aput-object v1, v0, v2

    invoke-static {p0}, Landroid/graphics/Color;->alpha(I)I

    move-result p0

    invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p0

    const/4 v1, 0x3

    aput-object p0, v0, v1

    const-string p0, "#%02X%02X%02X%02X"

    invoke-static {p0, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static zzey(Ljava/lang/String;)I
    .registers 8

    const/4 v0, 0x0

    if-eqz p0, :cond_3e

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x9

    if-ne v1, v2, :cond_3e

    invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v3, 0x23

    if-ne v1, v3, :cond_3e

    const/4 v1, 0x1

    const/4 v3, 0x3

    :try_start_15
    invoke-virtual {p0, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    const/16 v4, 0x10

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

    move-result v1

    const/4 v5, 0x5

    invoke-virtual {p0, v3, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

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

    move-result v3

    const/4 v6, 0x7

    invoke-virtual {p0, v5, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

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

    move-result v5

    invoke-virtual {p0, v6, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

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

    move-result p0

    invoke-static {p0, v1, v3, v5}, Landroid/graphics/Color;->argb(IIII)I

    move-result p0
    :try_end_3d
    .catch Ljava/lang/NumberFormatException; {:try_start_15 .. :try_end_3d} :catch_3e

    return p0

    :catch_3e
    :cond_3e
    return v0
.end method


# virtual methods
.method public final equals(Ljava/lang/Object;)Z
    .registers 8

    const/4 v0, 0x1

    if-ne p0, p1, :cond_4

    return v0

    :cond_4
    instance-of v1, p1, Lcom/google/android/gms/cast/TextTrackStyle;

    const/4 v2, 0x0

    if-nez v1, :cond_a

    return v2

    :cond_a
    check-cast p1, Lcom/google/android/gms/cast/TextTrackStyle;

    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    if-nez v1, :cond_12

    const/4 v3, 0x1

    goto :goto_13

    :cond_12
    const/4 v3, 0x0

    :goto_13
    iget-object v4, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    if-nez v4, :cond_19

    const/4 v5, 0x1

    goto :goto_1a

    :cond_19
    const/4 v5, 0x0

    :goto_1a
    if-eq v3, v5, :cond_1d

    return v2

    :cond_1d
    if-eqz v1, :cond_28

    if-eqz v4, :cond_28

    invoke-static {v1, v4}, Lcom/google/android/gms/common/util/zzo;->zzc(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_28

    return v2

    :cond_28
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    cmpl-float v1, v1, v3

    if-nez v1, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    if-ne v1, v3, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    if-ne v1, v3, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    if-ne v1, v3, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    if-ne v1, v3, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    if-ne v1, v3, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    if-ne v1, v3, :cond_6b

    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    iget-object v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    invoke-static {v1, v3}, Lcom/google/android/gms/internal/zzazl;->zza(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    iget v3, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    if-ne v1, v3, :cond_6b

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    iget p1, p1, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    if-ne v1, p1, :cond_6b

    return v0

    :cond_6b
    return v2
.end method

.method public final getBackgroundColor()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    return v0
.end method

.method public final getCustomData()Lorg/json/JSONObject;
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    return-object v0
.end method

.method public final getEdgeColor()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    return v0
.end method

.method public final getEdgeType()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    return v0
.end method

.method public final getFontFamily()Ljava/lang/String;
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    return-object v0
.end method

.method public final getFontGenericFamily()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    return v0
.end method

.method public final getFontScale()F
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    return v0
.end method

.method public final getFontStyle()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    return v0
.end method

.method public final getForegroundColor()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    return v0
.end method

.method public final getWindowColor()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenz:I

    return v0
.end method

.method public final getWindowCornerRadius()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    return v0
.end method

.method public final getWindowType()I
    .registers 2

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    return v0
.end method

.method public final hashCode()I
    .registers 4

    const/16 v0, 0xc

    new-array v0, v0, [Ljava/lang/Object;

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x1

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x2

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x3

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x4

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x5

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenz:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x6

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/4 v2, 0x7

    aput-object v1, v0, v2

    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    const/16 v2, 0x8

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/16 v2, 0x9

    aput-object v1, v0, v2

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    const/16 v2, 0xa

    aput-object v1, v0, v2

    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const/16 v2, 0xb

    aput-object v1, v0, v2

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

    move-result v0

    return v0
.end method

.method public final setBackgroundColor(I)V
    .registers 2

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    return-void
.end method

.method public final setCustomData(Lorg/json/JSONObject;)V
    .registers 2

    iput-object p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    return-void
.end method

.method public final setEdgeColor(I)V
    .registers 2

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    return-void
.end method

.method public final setEdgeType(I)V
    .registers 3

    if-ltz p1, :cond_8

    const/4 v0, 0x4

    if-gt p1, v0, :cond_8

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    return-void

    :cond_8
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "invalid edgeType"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final setFontFamily(Ljava/lang/String;)V
    .registers 2

    iput-object p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    return-void
.end method

.method public final setFontGenericFamily(I)V
    .registers 3

    if-ltz p1, :cond_8

    const/4 v0, 0x6

    if-gt p1, v0, :cond_8

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    return-void

    :cond_8
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "invalid fontGenericFamily"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final setFontScale(F)V
    .registers 2

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    return-void
.end method

.method public final setFontStyle(I)V
    .registers 3

    if-ltz p1, :cond_8

    const/4 v0, 0x3

    if-gt p1, v0, :cond_8

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    return-void

    :cond_8
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "invalid fontStyle"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final setForegroundColor(I)V
    .registers 2

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    return-void
.end method

.method public final setWindowColor(I)V
    .registers 2

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenz:I

    return-void
.end method

.method public final setWindowCornerRadius(I)V
    .registers 3

    if-ltz p1, :cond_5

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    return-void

    :cond_5
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "invalid windowCornerRadius"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final setWindowType(I)V
    .registers 3

    if-ltz p1, :cond_8

    const/4 v0, 0x2

    if-gt p1, v0, :cond_8

    iput p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    return-void

    :cond_8
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "invalid windowType"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final toJson()Lorg/json/JSONObject;
    .registers 9

    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_5
    const-string v1, "fontScale"

    iget v2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    float-to-double v2, v2

    invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;

    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    if-eqz v1, :cond_1a

    const-string v2, "foregroundColor"

    invoke-static {v1}, Lcom/google/android/gms/cast/TextTrackStyle;->zzbc(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_1a
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    if-eqz v1, :cond_27

    const-string v2, "backgroundColor"

    invoke-static {v1}, Lcom/google/android/gms/cast/TextTrackStyle;->zzbc(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_27
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I
    :try_end_29
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_29} :catch_db

    const-string v2, "NONE"

    const/4 v3, 0x3

    const/4 v4, 0x1

    const/4 v5, 0x2

    const-string v6, "edgeType"

    if-eqz v1, :cond_4b

    if-eq v1, v4, :cond_48

    if-eq v1, v5, :cond_45

    if-eq v1, v3, :cond_42

    const/4 v7, 0x4

    if-eq v1, v7, :cond_3c

    goto :goto_4e

    :cond_3c
    :try_start_3c
    const-string v1, "DEPRESSED"

    :goto_3e
    invoke-virtual {v0, v6, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_4e

    :cond_42
    const-string v1, "RAISED"

    goto :goto_3e

    :cond_45
    const-string v1, "DROP_SHADOW"

    goto :goto_3e

    :cond_48
    const-string v1, "OUTLINE"

    goto :goto_3e

    :cond_4b
    invoke-virtual {v0, v6, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :goto_4e
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    if-eqz v1, :cond_5b

    const-string v6, "edgeColor"

    invoke-static {v1}, Lcom/google/android/gms/cast/TextTrackStyle;->zzbc(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v6, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_5b
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I
    :try_end_5d
    .catch Lorg/json/JSONException; {:try_start_3c .. :try_end_5d} :catch_db

    const-string v6, "NORMAL"

    const-string v7, "windowType"

    if-eqz v1, :cond_72

    if-eq v1, v4, :cond_6e

    if-eq v1, v5, :cond_68

    goto :goto_75

    :cond_68
    :try_start_68
    const-string v1, "ROUNDED_CORNERS"

    invoke-virtual {v0, v7, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_75

    :cond_6e
    invoke-virtual {v0, v7, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_75

    :cond_72
    invoke-virtual {v0, v7, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :goto_75
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenz:I

    if-eqz v1, :cond_82

    const-string v2, "windowColor"

    invoke-static {v1}, Lcom/google/android/gms/cast/TextTrackStyle;->zzbc(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_82
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    if-ne v1, v5, :cond_8d

    const-string v1, "windowRoundedCornerRadius"

    iget v2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    :cond_8d
    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    if-eqz v1, :cond_96

    const-string v2, "fontFamily"

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_96
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I
    :try_end_98
    .catch Lorg/json/JSONException; {:try_start_68 .. :try_end_98} :catch_db

    const-string v2, "fontGenericFamily"

    packed-switch v1, :pswitch_data_dc

    goto :goto_b6

    :pswitch_9e
    :try_start_9e
    const-string v1, "SMALL_CAPITALS"

    :goto_a0
    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_b6

    :pswitch_a4
    const-string v1, "CURSIVE"

    goto :goto_a0

    :pswitch_a7
    const-string v1, "CASUAL"

    goto :goto_a0

    :pswitch_aa
    const-string v1, "MONOSPACED_SERIF"

    goto :goto_a0

    :pswitch_ad
    const-string v1, "SERIF"

    goto :goto_a0

    :pswitch_b0
    const-string v1, "MONOSPACED_SANS_SERIF"

    goto :goto_a0

    :pswitch_b3
    const-string v1, "SANS_SERIF"

    goto :goto_a0

    :goto_b6
    iget v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I
    :try_end_b8
    .catch Lorg/json/JSONException; {:try_start_9e .. :try_end_b8} :catch_db

    const-string v2, "fontStyle"

    if-eqz v1, :cond_cf

    if-eq v1, v4, :cond_cc

    if-eq v1, v5, :cond_c9

    if-eq v1, v3, :cond_c3

    goto :goto_d2

    :cond_c3
    :try_start_c3
    const-string v1, "BOLD_ITALIC"

    :goto_c5
    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    goto :goto_d2

    :cond_c9
    const-string v1, "ITALIC"

    goto :goto_c5

    :cond_cc
    const-string v1, "BOLD"

    goto :goto_c5

    :cond_cf
    invoke-virtual {v0, v2, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :goto_d2
    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    if-eqz v1, :cond_db

    const-string v2, "customData"

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_db
    .catch Lorg/json/JSONException; {:try_start_c3 .. :try_end_db} :catch_db

    :catch_db
    :cond_db
    return-object v0

    :pswitch_data_dc
    .packed-switch 0x0
        :pswitch_b3
        :pswitch_b0
        :pswitch_ad
        :pswitch_aa
        :pswitch_a7
        :pswitch_a4
        :pswitch_9e
    .end packed-switch
.end method

.method public final writeToParcel(Landroid/os/Parcel;I)V
    .registers 6

    iget-object p2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    if-nez p2, :cond_6

    const/4 p2, 0x0

    goto :goto_a

    :cond_6
    invoke-virtual {p2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object p2

    :goto_a
    iput-object p2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeho:Ljava/lang/String;

    invoke-static {p1}, Lcom/google/android/gms/internal/zzbcn;->zze(Landroid/os/Parcel;)I

    move-result p2

    const/4 v0, 0x2

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getFontScale()F

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zza(Landroid/os/Parcel;IF)V

    const/4 v0, 0x3

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getForegroundColor()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/4 v0, 0x4

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getBackgroundColor()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/4 v0, 0x5

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getEdgeType()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/4 v0, 0x6

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getEdgeColor()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/4 v0, 0x7

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getWindowType()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/16 v0, 0x8

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getWindowColor()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/16 v0, 0x9

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getWindowCornerRadius()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/16 v0, 0xa

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getFontFamily()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {p1, v0, v1, v2}, Lcom/google/android/gms/internal/zzbcn;->zza(Landroid/os/Parcel;ILjava/lang/String;Z)V

    const/16 v0, 0xb

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getFontGenericFamily()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/16 v0, 0xc

    invoke-virtual {p0}, Lcom/google/android/gms/cast/TextTrackStyle;->getFontStyle()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/google/android/gms/internal/zzbcn;->zzc(Landroid/os/Parcel;II)V

    const/16 v0, 0xd

    iget-object v1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeho:Ljava/lang/String;

    invoke-static {p1, v0, v1, v2}, Lcom/google/android/gms/internal/zzbcn;->zza(Landroid/os/Parcel;ILjava/lang/String;Z)V

    invoke-static {p1, p2}, Lcom/google/android/gms/internal/zzbcn;->zzai(Landroid/os/Parcel;I)V

    return-void
.end method

.method public final zzl(Lorg/json/JSONObject;)V
    .registers 11

    const-string v0, "fontScale"

    const-wide/high16 v1, 0x3ff0000000000000L    # 1.0

    invoke-virtual {p1, v0, v1, v2}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v0

    double-to-float v0, v0

    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenu:F

    const-string v0, "foregroundColor"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/cast/TextTrackStyle;->zzey(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenv:I

    const-string v0, "backgroundColor"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/cast/TextTrackStyle;->zzey(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzbrf:I

    const-string v0, "edgeType"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x4

    const-string v3, "NONE"

    const/4 v4, 0x3

    const/4 v5, 0x1

    const/4 v6, 0x0

    const/4 v7, 0x2

    if-eqz v1, :cond_6a

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_3f

    iput v6, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    goto :goto_6a

    :cond_3f
    const-string v1, "OUTLINE"

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

    move-result v1

    if-eqz v1, :cond_4a

    iput v5, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    goto :goto_6a

    :cond_4a
    const-string v1, "DROP_SHADOW"

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

    move-result v1

    if-eqz v1, :cond_55

    iput v7, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    goto :goto_6a

    :cond_55
    const-string v1, "RAISED"

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

    move-result v1

    if-eqz v1, :cond_60

    iput v4, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    goto :goto_6a

    :cond_60
    const-string v1, "DEPRESSED"

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

    move-result v0

    if-eqz v0, :cond_6a

    iput v2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenw:I

    :cond_6a
    :goto_6a
    const-string v0, "edgeColor"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/cast/TextTrackStyle;->zzey(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenx:I

    const-string v0, "windowType"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    const-string v8, "NORMAL"

    if-eqz v1, :cond_a0

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_8d

    iput v6, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    goto :goto_a0

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

    move-result v1

    if-eqz v1, :cond_96

    iput v5, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    goto :goto_a0

    :cond_96
    const-string v1, "ROUNDED_CORNERS"

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

    move-result v0

    if-eqz v0, :cond_a0

    iput v7, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    :cond_a0
    :goto_a0
    const-string v0, "windowColor"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/cast/TextTrackStyle;->zzey(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzenz:I

    iget v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeny:I

    if-ne v0, v7, :cond_b8

    const-string v0, "windowRoundedCornerRadius"

    invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoa:I

    :cond_b8
    const/4 v0, 0x0

    const-string v1, "fontFamily"

    invoke-virtual {p1, v1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeob:Ljava/lang/String;

    const-string v0, "fontGenericFamily"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_11a

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "SANS_SERIF"

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

    move-result v1

    if-eqz v1, :cond_d8

    iput v6, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    goto :goto_11a

    :cond_d8
    const-string v1, "MONOSPACED_SANS_SERIF"

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

    move-result v1

    if-eqz v1, :cond_e3

    iput v5, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    goto :goto_11a

    :cond_e3
    const-string v1, "SERIF"

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

    move-result v1

    if-eqz v1, :cond_ee

    iput v7, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    goto :goto_11a

    :cond_ee
    const-string v1, "MONOSPACED_SERIF"

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

    move-result v1

    if-eqz v1, :cond_f9

    iput v4, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    goto :goto_11a

    :cond_f9
    const-string v1, "CASUAL"

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

    move-result v1

    if-eqz v1, :cond_104

    iput v2, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    goto :goto_11a

    :cond_104
    const-string v1, "CURSIVE"

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

    move-result v1

    if-eqz v1, :cond_110

    const/4 v0, 0x5

    :goto_10d
    iput v0, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeoc:I

    goto :goto_11a

    :cond_110
    const-string v1, "SMALL_CAPITALS"

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

    move-result v0

    if-eqz v0, :cond_11a

    const/4 v0, 0x6

    goto :goto_10d

    :cond_11a
    :goto_11a
    const-string v0, "fontStyle"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_14f

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_12f

    iput v6, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    goto :goto_14f

    :cond_12f
    const-string v1, "BOLD"

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

    move-result v1

    if-eqz v1, :cond_13a

    iput v5, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    goto :goto_14f

    :cond_13a
    const-string v1, "ITALIC"

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

    move-result v1

    if-eqz v1, :cond_145

    iput v7, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    goto :goto_14f

    :cond_145
    const-string v1, "BOLD_ITALIC"

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

    move-result v0

    if-eqz v0, :cond_14f

    iput v4, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzeod:I

    :cond_14f
    :goto_14f
    const-string v0, "customData"

    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    iput-object p1, p0, Lcom/google/android/gms/cast/TextTrackStyle;->zzehp:Lorg/json/JSONObject;

    return-void
.end method