.class public final Lcom/google/android/gms/internal/ads/b2;
.super Landroid/widget/FrameLayout;
.source ""

# interfaces
.implements Lcom/google/android/gms/internal/ads/a2;


# annotations
.annotation runtime Ljavax/annotation/ParametersAreNonnullByDefault;
.end annotation


# instance fields
.field public A:Z

.field public B:Z

.field public C:J

.field public D:J

.field public E:Ljava/lang/String;

.field public F:[Ljava/lang/String;

.field public G:Landroid/graphics/Bitmap;

.field public final H:Landroid/widget/ImageView;

.field public I:Z

.field public final r:Lz5/h60;

.field public final s:Landroid/widget/FrameLayout;

.field public final t:Landroid/view/View;

.field public final u:Lcom/google/android/gms/internal/ads/l0;

.field public final v:Lz5/w50;

.field public final w:J

.field public final x:Lz5/u50;

.field public y:Z

.field public z:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Lz5/h60;IZLcom/google/android/gms/internal/ads/l0;Lz5/g60;)V
    .registers 22

    move-object v0, p0

    move-object/from16 v8, p1

    move-object/from16 v9, p5

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

    move-object/from16 v7, p2

    iput-object v7, v0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    iput-object v9, v0, Lcom/google/android/gms/internal/ads/b2;->u:Lcom/google/android/gms/internal/ads/l0;

    new-instance v10, Landroid/widget/FrameLayout;

    invoke-direct {v10, v8}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v10, v0, Lcom/google/android/gms/internal/ads/b2;->s:Landroid/widget/FrameLayout;

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v11, -0x1

    invoke-direct {v1, v11, v11}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v10, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzk()Lcom/google/android/gms/ads/internal/zza;

    move-result-object v1

    const-string v2, "null reference"

    .line 1
    invoke-static {v1, v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 2
    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzk()Lcom/google/android/gms/ads/internal/zza;

    move-result-object v1

    iget-object v1, v1, Lcom/google/android/gms/ads/internal/zza;->zza:Lz5/v50;

    invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    if-eqz v1, :cond_3c

    iget v1, v1, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I

    const/16 v2, 0xb

    if-lt v1, v2, :cond_3a

    goto :goto_3c

    :cond_3a
    const/4 v1, 0x0

    goto :goto_99

    :cond_3c
    :goto_3c
    new-instance v12, Lz5/i60;

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzt()Lz5/g50;

    move-result-object v3

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzm()Ljava/lang/String;

    move-result-object v4

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzi()Lcom/google/android/gms/internal/ads/j0;

    move-result-object v6

    move-object v1, v12

    move-object/from16 v2, p1

    move-object/from16 v5, p5

    invoke-direct/range {v1 .. v6}, Lz5/i60;-><init>(Landroid/content/Context;Lz5/g50;Ljava/lang/String;Lcom/google/android/gms/internal/ads/l0;Lcom/google/android/gms/internal/ads/j0;)V

    const/4 v1, 0x2

    move/from16 v2, p3

    if-ne v2, v1, :cond_6f

    new-instance v13, Lz5/n60;

    .line 3
    invoke-interface/range {p2 .. p2}, Lz5/h60;->f()Lz5/he;

    move-result-object v1

    invoke-virtual {v1}, Lz5/he;->d()Z

    move-result v6

    move-object v1, v13

    move-object/from16 v2, p1

    move-object v3, v12

    move-object/from16 v4, p2

    move/from16 v5, p4

    move-object/from16 v7, p6

    .line 4
    invoke-direct/range {v1 .. v7}, Lz5/n60;-><init>(Landroid/content/Context;Lz5/i60;Lz5/h60;ZZLz5/g60;)V

    goto :goto_99

    :cond_6f
    new-instance v12, Lz5/t50;

    .line 5
    invoke-interface/range {p2 .. p2}, Lz5/h60;->f()Lz5/he;

    move-result-object v1

    invoke-virtual {v1}, Lz5/he;->d()Z

    move-result v13

    .line 6
    new-instance v14, Lz5/i60;

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzt()Lz5/g50;

    move-result-object v3

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzm()Ljava/lang/String;

    move-result-object v4

    invoke-interface/range {p2 .. p2}, Lz5/h60;->zzi()Lcom/google/android/gms/internal/ads/j0;

    move-result-object v6

    move-object v1, v14

    move-object/from16 v2, p1

    move-object/from16 v5, p5

    invoke-direct/range {v1 .. v6}, Lz5/i60;-><init>(Landroid/content/Context;Lz5/g50;Ljava/lang/String;Lcom/google/android/gms/internal/ads/l0;Lcom/google/android/gms/internal/ads/j0;)V

    move-object v1, v12

    move-object/from16 v3, p2

    move/from16 v4, p4

    move v5, v13

    move-object v6, v14

    invoke-direct/range {v1 .. v6}, Lz5/t50;-><init>(Landroid/content/Context;Lz5/h60;ZZLz5/i60;)V

    :goto_99
    iput-object v1, v0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    new-instance v2, Landroid/view/View;

    invoke-direct {v2, v8}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v2, v0, Lcom/google/android/gms/internal/ads/b2;->t:Landroid/view/View;

    const/4 v3, 0x0

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

    if-eqz v1, :cond_e2

    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v4, 0x11

    invoke-direct {v3, v11, v11, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v10, v1, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    sget-object v3, Lz5/so;->x:Lz5/no;

    .line 7
    sget-object v4, Lz5/xk;->d:Lz5/xk;

    iget-object v5, v4, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 8
    invoke-virtual {v5, v3}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-eqz v3, :cond_cf

    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v3, v11, v11}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v10, v2, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v10, v2}, Landroid/widget/FrameLayout;->bringChildToFront(Landroid/view/View;)V

    :cond_cf
    sget-object v2, Lz5/so;->u:Lz5/no;

    .line 9
    iget-object v3, v4, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 10
    invoke-virtual {v3, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-eqz v2, :cond_e2

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/b2;->a()V

    :cond_e2
    new-instance v2, Landroid/widget/ImageView;

    invoke-direct {v2, v8}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, v0, Lcom/google/android/gms/internal/ads/b2;->H:Landroid/widget/ImageView;

    sget-object v2, Lz5/so;->z:Lz5/no;

    .line 11
    sget-object v3, Lz5/xk;->d:Lz5/xk;

    iget-object v4, v3, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 12
    invoke-virtual {v4, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    iput-wide v4, v0, Lcom/google/android/gms/internal/ads/b2;->w:J

    sget-object v2, Lz5/so;->w:Lz5/no;

    .line 13
    iget-object v3, v3, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 14
    invoke-virtual {v3, v2}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    iput-boolean v2, v0, Lcom/google/android/gms/internal/ads/b2;->B:Z

    if-eqz v9, :cond_11a

    const/4 v3, 0x1

    if-eq v3, v2, :cond_113

    const-string v2, "0"

    goto :goto_115

    :cond_113
    const-string v2, "1"

    :goto_115
    const-string v3, "spinner_used"

    invoke-virtual {v9, v3, v2}, Lcom/google/android/gms/internal/ads/l0;->c(Ljava/lang/String;Ljava/lang/String;)V

    :cond_11a
    new-instance v2, Lz5/w50;

    invoke-direct {v2, p0}, Lz5/w50;-><init>(Lcom/google/android/gms/internal/ads/b2;)V

    iput-object v2, v0, Lcom/google/android/gms/internal/ads/b2;->v:Lz5/w50;

    if-eqz v1, :cond_126

    invoke-virtual {v1, p0}, Lz5/u50;->h(Lcom/google/android/gms/internal/ads/a2;)V

    :cond_126
    if-nez v1, :cond_12f

    const-string v1, "AdVideoUnderlay Error"

    const-string v2, "Allocating player failed."

    invoke-virtual {p0, v1, v2}, Lcom/google/android/gms/internal/ads/b2;->h(Ljava/lang/String;Ljava/lang/String;)V

    :cond_12f
    return-void
.end method


# virtual methods
.method public final a()V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0xe
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Landroid/view/TextureView;->getContext()Landroid/content/Context;

    move-result-object v0

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, v0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v0}, Lz5/u50;->g()Ljava/lang/String;

    move-result-object v0

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

    move-result-object v0

    const-string v2, "AdMob - "

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

    move-result v3

    if-eqz v3, :cond_25

    invoke-virtual {v2, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_2a

    :cond_25
    new-instance v0, Ljava/lang/String;

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

    :goto_2a
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/high16 v0, -0x10000

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    const/16 v0, -0x100

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->s:Landroid/widget/FrameLayout;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v3, 0x11

    const/4 v4, -0x2

    invoke-direct {v2, v4, v4, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->s:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->bringChildToFront(Landroid/view/View;)V

    return-void
.end method

.method public final b()V
    .registers 10

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    if-nez v0, :cond_5

    return-void

    :cond_5
    invoke-virtual {v0}, Lz5/u50;->n()I

    move-result v0

    int-to-long v0, v0

    iget-wide v2, p0, Lcom/google/android/gms/internal/ads/b2;->C:J

    cmp-long v2, v2, v0

    if-eqz v2, :cond_b1

    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-lez v2, :cond_b1

    long-to-float v2, v0

    const/high16 v3, 0x447a0000    # 1000.0f

    div-float/2addr v2, v3

    sget-object v3, Lz5/so;->f1:Lz5/no;

    .line 1
    sget-object v4, Lz5/xk;->d:Lz5/xk;

    iget-object v4, v4, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v4, v3}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    const-string v4, "timeupdate"

    const/4 v5, 0x1

    const-string v6, "time"

    const/4 v7, 0x0

    const/4 v8, 0x2

    if-eqz v3, :cond_a2

    const/16 v3, 0xc

    new-array v3, v3, [Ljava/lang/String;

    aput-object v6, v3, v7

    invoke-static {v2}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v3, v5

    const-string v2, "totalBytes"

    aput-object v2, v3, v8

    const/4 v2, 0x3

    iget-object v5, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v5}, Lz5/u50;->u()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v2

    const/4 v2, 0x4

    const-string v5, "qoeCachedBytes"

    aput-object v5, v3, v2

    const/4 v2, 0x5

    iget-object v5, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v5}, Lz5/u50;->t()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v2

    const/4 v2, 0x6

    const-string v5, "qoeLoadedBytes"

    aput-object v5, v3, v2

    const/4 v2, 0x7

    iget-object v5, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v5}, Lz5/u50;->s()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v2

    const/16 v2, 0x8

    const-string v5, "droppedFrames"

    aput-object v5, v3, v2

    const/16 v2, 0x9

    iget-object v5, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v5}, Lz5/u50;->v()I

    move-result v5

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

    move-result-object v5

    aput-object v5, v3, v2

    const/16 v2, 0xa

    const-string v5, "reportTime"

    aput-object v5, v3, v2

    const/16 v2, 0xb

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v5

    invoke-interface {v5}, Lu5/c;->b()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v2

    invoke-virtual {p0, v4, v3}, Lcom/google/android/gms/internal/ads/b2;->c(Ljava/lang/String;[Ljava/lang/String;)V

    goto :goto_af

    :cond_a2
    new-array v3, v8, [Ljava/lang/String;

    aput-object v6, v3, v7

    invoke-static {v2}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v3, v5

    invoke-virtual {p0, v4, v3}, Lcom/google/android/gms/internal/ads/b2;->c(Ljava/lang/String;[Ljava/lang/String;)V

    :goto_af
    iput-wide v0, p0, Lcom/google/android/gms/internal/ads/b2;->C:J

    :cond_b1
    return-void
.end method

.method public final varargs c(Ljava/lang/String;[Ljava/lang/String;)V
    .registers 8

    new-instance v0, Ljava/util/HashMap;

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

    const-string v1, "event"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    array-length p1, p2

    const/4 v1, 0x0

    const/4 v2, 0x0

    move-object v3, v1

    :goto_e
    if-ge v2, p1, :cond_1d

    aget-object v4, p2, v2

    if-nez v3, :cond_16

    move-object v3, v4

    goto :goto_1a

    :cond_16
    invoke-virtual {v0, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-object v3, v1

    :goto_1a
    add-int/lit8 v2, v2, 0x1

    goto :goto_e

    :cond_1d
    iget-object p1, p0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    const-string p2, "onVideoEvent"

    invoke-interface {p1, p2, v0}, Lz5/fw;->e(Ljava/lang/String;Ljava/util/Map;)V

    return-void
.end method

.method public final d()V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    invoke-interface {v0}, Lz5/h60;->zzj()Landroid/app/Activity;

    move-result-object v0

    if-nez v0, :cond_9

    return-void

    :cond_9
    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->z:Z

    if-eqz v0, :cond_23

    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->A:Z

    if-nez v0, :cond_23

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    invoke-interface {v0}, Lz5/h60;->zzj()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->z:Z

    :cond_23
    return-void
.end method

.method public final e()V
    .registers 7

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    if-nez v0, :cond_5

    return-void

    :cond_5
    iget-wide v1, p0, Lcom/google/android/gms/internal/ads/b2;->D:J

    const-wide/16 v3, 0x0

    cmp-long v1, v1, v3

    if-nez v1, :cond_4d

    invoke-virtual {v0}, Lz5/u50;->m()I

    move-result v0

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v1}, Lz5/u50;->q()I

    move-result v1

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    invoke-virtual {v2}, Lz5/u50;->r()I

    move-result v2

    const/4 v3, 0x6

    new-array v3, v3, [Ljava/lang/String;

    const/4 v4, 0x0

    const-string v5, "duration"

    aput-object v5, v3, v4

    const/4 v4, 0x1

    int-to-float v0, v0

    const/high16 v5, 0x447a0000    # 1000.0f

    div-float/2addr v0, v5

    invoke-static {v0}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v4

    const/4 v0, 0x2

    const-string v4, "videoWidth"

    aput-object v4, v3, v0

    const/4 v0, 0x3

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

    move-result-object v1

    aput-object v1, v3, v0

    const/4 v0, 0x4

    const-string v1, "videoHeight"

    aput-object v1, v3, v0

    const/4 v0, 0x5

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v0

    const-string v0, "canplaythrough"

    invoke-virtual {p0, v0, v3}, Lcom/google/android/gms/internal/ads/b2;->c(Ljava/lang/String;[Ljava/lang/String;)V

    :cond_4d
    return-void
.end method

.method public final f()V
    .registers 4

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    invoke-interface {v0}, Lz5/h60;->zzj()Landroid/app/Activity;

    move-result-object v0

    const/4 v1, 0x1

    if-nez v0, :cond_a

    goto :goto_39

    :cond_a
    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->z:Z

    if-nez v0, :cond_39

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    invoke-interface {v0}, Lz5/h60;->zzj()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    iget v0, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    const/16 v2, 0x80

    and-int/2addr v0, v2

    if-eqz v0, :cond_25

    move v0, v1

    goto :goto_26

    :cond_25
    const/4 v0, 0x0

    :goto_26
    iput-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->A:Z

    if-nez v0, :cond_39

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->r:Lz5/h60;

    invoke-interface {v0}, Lz5/h60;->zzj()Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/Window;->addFlags(I)V

    iput-boolean v1, p0, Lcom/google/android/gms/internal/ads/b2;->z:Z

    :cond_39
    :goto_39
    iput-boolean v1, p0, Lcom/google/android/gms/internal/ads/b2;->y:Z

    return-void
.end method

.method public final finalize()V
    .registers 4

    :try_start_0
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->v:Lz5/w50;

    invoke-virtual {v0}, Lz5/w50;->a()V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->x:Lz5/u50;

    if-eqz v0, :cond_15

    sget-object v1, Lz5/k50;->e:Lz5/gc1;

    .line 1
    new-instance v2, Ll5/x;

    invoke-direct {v2, v0}, Ll5/x;-><init>(Lz5/u50;)V

    .line 2
    check-cast v1, Lz5/j50;

    invoke-virtual {v1, v2}, Lz5/j50;->execute(Ljava/lang/Runnable;)V
    :try_end_15
    .catchall {:try_start_0 .. :try_end_15} :catchall_19

    :cond_15
    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    return-void

    :catchall_19
    move-exception v0

    invoke-super {p0}, Ljava/lang/Object;->finalize()V

    throw v0
.end method

.method public final g()V
    .registers 4

    const/4 v0, 0x0

    new-array v1, v0, [Ljava/lang/String;

    const-string v2, "pause"

    invoke-virtual {p0, v2, v1}, Lcom/google/android/gms/internal/ads/b2;->c(Ljava/lang/String;[Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/b2;->d()V

    iput-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->y:Z

    return-void
.end method

.method public final h(Ljava/lang/String;Ljava/lang/String;)V
    .registers 6

    const/4 v0, 0x4

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

    const/4 v1, 0x0

    const-string v2, "what"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    aput-object p1, v0, v1

    const/4 p1, 0x2

    const-string v1, "extra"

    aput-object v1, v0, p1

    const/4 p1, 0x3

    aput-object p2, v0, p1

    const-string p1, "error"

    invoke-virtual {p0, p1, v0}, Lcom/google/android/gms/internal/ads/b2;->c(Ljava/lang/String;[Ljava/lang/String;)V

    return-void
.end method

.method public final i()V
    .registers 6

    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->I:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_36

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->G:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_36

    .line 1
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->H:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_13

    move v0, v1

    goto :goto_14

    :cond_13
    const/4 v0, 0x0

    :goto_14
    if-nez v0, :cond_36

    .line 2
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->H:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/b2;->G:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->H:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->invalidate()V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->s:Landroid/widget/FrameLayout;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/b2;->H:Landroid/widget/ImageView;

    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    const/4 v4, -0x1

    invoke-direct {v3, v4, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v2, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->s:Landroid/widget/FrameLayout;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/b2;->H:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/FrameLayout;->bringChildToFront(Landroid/view/View;)V

    :cond_36
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->v:Lz5/w50;

    invoke-virtual {v0}, Lz5/w50;->a()V

    iget-wide v2, p0, Lcom/google/android/gms/internal/ads/b2;->C:J

    iput-wide v2, p0, Lcom/google/android/gms/internal/ads/b2;->D:J

    sget-object v0, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v2, Lz5/x50;

    invoke-direct {v2, p0, v1}, Lz5/x50;-><init>(Lcom/google/android/gms/internal/ads/b2;I)V

    invoke-virtual {v0, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final j(II)V
    .registers 6

    iget-boolean v0, p0, Lcom/google/android/gms/internal/ads/b2;->B:Z

    if-nez v0, :cond_5

    goto :goto_3f

    :cond_5
    sget-object v0, Lz5/so;->y:Lz5/no;

    .line 1
    sget-object v1, Lz5/xk;->d:Lz5/xk;

    iget-object v2, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v2, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    div-int/2addr p1, v2

    const/4 v2, 0x1

    invoke-static {p1, v2}, Ljava/lang/Math;->max(II)I

    move-result p1

    .line 3
    iget-object v1, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 4
    invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    div-int/2addr p2, v0

    invoke-static {p2, v2}, Ljava/lang/Math;->max(II)I

    move-result p2

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->G:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_40

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    if-ne v0, p1, :cond_40

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->G:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    if-eq v0, p2, :cond_3f

    goto :goto_40

    :cond_3f
    :goto_3f
    return-void

    :cond_40
    :goto_40
    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {p1, p2, v0}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/b2;->G:Landroid/graphics/Bitmap;

    const/4 p1, 0x0

    iput-boolean p1, p0, Lcom/google/android/gms/internal/ads/b2;->I:Z

    return-void
.end method

.method public final k(IIII)V
    .registers 8

    invoke-static {}, Lcom/google/android/gms/ads/internal/util/zze;->zzc()Z

    move-result v0

    if-eqz v0, :cond_27

    const/16 v0, 0x4b

    const-string v1, "Set video bounds to x:"

    const-string v2, ";y:"

    invoke-static {v0, v1, p1, v2, p2}, Ll5/p;->a(ILjava/lang/String;ILjava/lang/String;I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";w:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, ";h:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zze;->zza(Ljava/lang/String;)V

    :cond_27
    if-eqz p3, :cond_3d

    if-nez p4, :cond_2c

    goto :goto_3d

    :cond_2c
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, p3, p4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/4 p3, 0x0

    invoke-virtual {v0, p1, p2, p3, p3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/b2;->s:Landroid/widget/FrameLayout;

    invoke-virtual {p1, v0}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

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

    :cond_3d
    :goto_3d
    return-void
.end method

.method public final onWindowFocusChanged(Z)V
    .registers 5

    invoke-super {p0, p1}, Landroid/view/View;->onWindowFocusChanged(Z)V

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/b2;->v:Lz5/w50;

    if-eqz p1, :cond_b

    invoke-virtual {v0}, Lz5/w50;->b()V

    goto :goto_12

    :cond_b
    invoke-virtual {v0}, Lz5/w50;->a()V

    iget-wide v0, p0, Lcom/google/android/gms/internal/ads/b2;->C:J

    iput-wide v0, p0, Lcom/google/android/gms/internal/ads/b2;->D:J

    :goto_12
    sget-object v0, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v1, Lz5/w50;

    const/4 v2, 0x0

    invoke-direct {v1, p0, p1, v2}, Lz5/w50;-><init>(Lcom/google/android/gms/internal/ads/b2;ZI)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final onWindowVisibilityChanged(I)V
    .registers 5

    invoke-super {p0, p1}, Landroid/view/View;->onWindowVisibilityChanged(I)V

    const/4 v0, 0x1

    if-nez p1, :cond_d

    iget-object p1, p0, Lcom/google/android/gms/internal/ads/b2;->v:Lz5/w50;

    invoke-virtual {p1}, Lz5/w50;->b()V

    move p1, v0

    goto :goto_17

    :cond_d
    iget-object p1, p0, Lcom/google/android/gms/internal/ads/b2;->v:Lz5/w50;

    invoke-virtual {p1}, Lz5/w50;->a()V

    iget-wide v1, p0, Lcom/google/android/gms/internal/ads/b2;->C:J

    iput-wide v1, p0, Lcom/google/android/gms/internal/ads/b2;->D:J

    const/4 p1, 0x0

    :goto_17
    sget-object v1, Lcom/google/android/gms/ads/internal/util/zzs;->zza:Lz5/i91;

    new-instance v2, Lz5/w50;

    invoke-direct {v2, p0, p1, v0}, Lz5/w50;-><init>(Lcom/google/android/gms/internal/ads/b2;ZI)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method
