k.smali

.class public final Lcom/google/android/exoplayer2/video/k;
.super Landroid/view/Surface;
.source ""


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x11
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/android/exoplayer2/video/k$b;
    }
.end annotation


# static fields
.field private static g:I

.field private static h:Z


# instance fields
.field private final e:Lcom/google/android/exoplayer2/video/k$b;

.field private f:Z


# direct methods
.method private constructor <init>(Lcom/google/android/exoplayer2/video/k$b;Landroid/graphics/SurfaceTexture;Z)V
    .registers 4

    invoke-direct {p0, p2}, Landroid/view/Surface;-><init>(Landroid/graphics/SurfaceTexture;)V

    iput-object p1, p0, Lcom/google/android/exoplayer2/video/k;->e:Lcom/google/android/exoplayer2/video/k$b;

    return-void
.end method

.method synthetic constructor <init>(Lcom/google/android/exoplayer2/video/k$b;Landroid/graphics/SurfaceTexture;ZLcom/google/android/exoplayer2/video/k$a;)V
    .registers 5

    invoke-direct {p0, p1, p2, p3}, Lcom/google/android/exoplayer2/video/k;-><init>(Lcom/google/android/exoplayer2/video/k$b;Landroid/graphics/SurfaceTexture;Z)V

    return-void
.end method

.method private static a()V
    .registers 2

    sget v0, Lf/b/b/b/s1/m0;->a:I

    const/16 v1, 0x11

    if-lt v0, v1, :cond_7

    return-void

    :cond_7
    new-instance v0, Ljava/lang/UnsupportedOperationException;

    const-string v1, "Unsupported prior to API level 17"

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

    throw v0
.end method

.method private static b(Landroid/content/Context;)I
    .registers 1

    invoke-static {p0}, Lf/b/b/b/s1/p;->h(Landroid/content/Context;)Z

    move-result p0

    if-eqz p0, :cond_10

    invoke-static {}, Lf/b/b/b/s1/p;->i()Z

    move-result p0

    if-eqz p0, :cond_e

    const/4 p0, 0x1

    return p0

    :cond_e
    const/4 p0, 0x2

    return p0

    :cond_10
    const/4 p0, 0x0

    return p0
.end method

.method public static declared-synchronized c(Landroid/content/Context;)Z
    .registers 4

    const-class v0, Lcom/google/android/exoplayer2/video/k;

    monitor-enter v0

    :try_start_3
    sget-boolean v1, Lcom/google/android/exoplayer2/video/k;->h:Z

    const/4 v2, 0x1

    if-nez v1, :cond_10

    invoke-static {p0}, Lcom/google/android/exoplayer2/video/k;->b(Landroid/content/Context;)I

    move-result p0

    sput p0, Lcom/google/android/exoplayer2/video/k;->g:I

    sput-boolean v2, Lcom/google/android/exoplayer2/video/k;->h:Z

    :cond_10
    sget p0, Lcom/google/android/exoplayer2/video/k;->g:I
    :try_end_12
    .catchall {:try_start_3 .. :try_end_12} :catchall_18

    if-eqz p0, :cond_15

    goto :goto_16

    :cond_15
    const/4 v2, 0x0

    :goto_16
    monitor-exit v0

    return v2

    :catchall_18
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static d(Landroid/content/Context;Z)Lcom/google/android/exoplayer2/video/k;
    .registers 3

    invoke-static {}, Lcom/google/android/exoplayer2/video/k;->a()V

    const/4 v0, 0x0

    if-eqz p1, :cond_f

    invoke-static {p0}, Lcom/google/android/exoplayer2/video/k;->c(Landroid/content/Context;)Z

    move-result p0

    if-eqz p0, :cond_d

    goto :goto_f

    :cond_d
    const/4 p0, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 p0, 0x1

    :goto_10
    invoke-static {p0}, Lf/b/b/b/s1/e;->f(Z)V

    new-instance p0, Lcom/google/android/exoplayer2/video/k$b;

    invoke-direct {p0}, Lcom/google/android/exoplayer2/video/k$b;-><init>()V

    if-eqz p1, :cond_1c

    sget v0, Lcom/google/android/exoplayer2/video/k;->g:I

    :cond_1c
    invoke-virtual {p0, v0}, Lcom/google/android/exoplayer2/video/k$b;->a(I)Lcom/google/android/exoplayer2/video/k;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public release()V
    .registers 3

    invoke-super {p0}, Landroid/view/Surface;->release()V

    iget-object v0, p0, Lcom/google/android/exoplayer2/video/k;->e:Lcom/google/android/exoplayer2/video/k$b;

    monitor-enter v0

    :try_start_6
    iget-boolean v1, p0, Lcom/google/android/exoplayer2/video/k;->f:Z

    if-nez v1, :cond_12

    iget-object v1, p0, Lcom/google/android/exoplayer2/video/k;->e:Lcom/google/android/exoplayer2/video/k$b;

    invoke-virtual {v1}, Lcom/google/android/exoplayer2/video/k$b;->c()V

    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/google/android/exoplayer2/video/k;->f:Z

    :cond_12
    monitor-exit v0

    return-void

    :catchall_14
    move-exception v1

    monitor-exit v0
    :try_end_16
    .catchall {:try_start_6 .. :try_end_16} :catchall_14

    throw v1
.end method