DummySurface.smali
.class public final Lcom/google/android/exoplayer2/video/DummySurface;
.super Landroid/view/Surface;
.source "DummySurface.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/exoplayer2/video/DummySurface$a;
}
.end annotation
# static fields
.field private static a:I
.field private static b:Z
# instance fields
.field public final c:Z
.field private final d:Lcom/google/android/exoplayer2/video/DummySurface$a;
.field private e:Z
# direct methods
.method private constructor <init>(Lcom/google/android/exoplayer2/video/DummySurface$a;Landroid/graphics/SurfaceTexture;Z)V
.registers 4
.line 2
invoke-direct {p0, p2}, Landroid/view/Surface;-><init>(Landroid/graphics/SurfaceTexture;)V
.line 3
iput-object p1, p0, Lcom/google/android/exoplayer2/video/DummySurface;->d:Lcom/google/android/exoplayer2/video/DummySurface$a;
.line 4
iput-boolean p3, p0, Lcom/google/android/exoplayer2/video/DummySurface;->c:Z
return-void
.end method
.method synthetic constructor <init>(Lcom/google/android/exoplayer2/video/DummySurface$a;Landroid/graphics/SurfaceTexture;ZLcom/google/android/exoplayer2/video/l;)V
.registers 5
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/google/android/exoplayer2/video/DummySurface;-><init>(Lcom/google/android/exoplayer2/video/DummySurface$a;Landroid/graphics/SurfaceTexture;Z)V
return-void
.end method
.method public static a(Landroid/content/Context;Z)Lcom/google/android/exoplayer2/video/DummySurface;
.registers 3
const/4 v0, 0x0
if-eqz p1, :cond_c
.line 1
invoke-static {p0}, Lcom/google/android/exoplayer2/video/DummySurface;->c(Landroid/content/Context;)Z
move-result p0
if-eqz p0, :cond_a
goto :goto_c
:cond_a
const/4 p0, 0x0
goto :goto_d
:cond_c
:goto_c
const/4 p0, 0x1
:goto_d
invoke-static {p0}, Lcom/google/android/exoplayer2/util/d;->b(Z)V
.line 2
new-instance p0, Lcom/google/android/exoplayer2/video/DummySurface$a;
invoke-direct {p0}, Lcom/google/android/exoplayer2/video/DummySurface$a;-><init>()V
if-eqz p1, :cond_19
.line 3
sget v0, Lcom/google/android/exoplayer2/video/DummySurface;->a:I
:cond_19
invoke-virtual {p0, v0}, Lcom/google/android/exoplayer2/video/DummySurface$a;->a(I)Lcom/google/android/exoplayer2/video/DummySurface;
move-result-object p0
return-object p0
.end method
.method public static declared-synchronized c(Landroid/content/Context;)Z
.registers 4
const-class v0, Lcom/google/android/exoplayer2/video/DummySurface;
monitor-enter v0
.line 1
:try_start_3
sget-boolean v1, Lcom/google/android/exoplayer2/video/DummySurface;->b:Z
const/4 v2, 0x1
if-nez v1, :cond_10
.line 2
invoke-static {p0}, Lcom/google/android/exoplayer2/video/DummySurface;->d(Landroid/content/Context;)I
move-result p0
sput p0, Lcom/google/android/exoplayer2/video/DummySurface;->a:I
.line 3
sput-boolean v2, Lcom/google/android/exoplayer2/video/DummySurface;->b:Z
.line 4
:cond_10
sget p0, Lcom/google/android/exoplayer2/video/DummySurface;->a: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 private static d(Landroid/content/Context;)I
.registers 1
.line 1
invoke-static {p0}, Lcom/google/android/exoplayer2/util/n;->a(Landroid/content/Context;)Z
move-result p0
if-eqz p0, :cond_10
.line 2
invoke-static {}, Lcom/google/android/exoplayer2/util/n;->c()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
# virtual methods
.method public release()V
.registers 3
.line 1
invoke-super {p0}, Landroid/view/Surface;->release()V
.line 2
iget-object v0, p0, Lcom/google/android/exoplayer2/video/DummySurface;->d:Lcom/google/android/exoplayer2/video/DummySurface$a;
monitor-enter v0
.line 3
:try_start_6
iget-boolean v1, p0, Lcom/google/android/exoplayer2/video/DummySurface;->e:Z
if-nez v1, :cond_12
.line 4
iget-object v1, p0, Lcom/google/android/exoplayer2/video/DummySurface;->d:Lcom/google/android/exoplayer2/video/DummySurface$a;
invoke-virtual {v1}, Lcom/google/android/exoplayer2/video/DummySurface$a;->a()V
const/4 v1, 0x1
.line 5
iput-boolean v1, p0, Lcom/google/android/exoplayer2/video/DummySurface;->e:Z
.line 6
: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