d.smali

.class public final Lcom/masala/share/sdkvideoplayer/d;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/masala/share/stat/aa$a;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/masala/share/sdkvideoplayer/d$a;,
        Lcom/masala/share/sdkvideoplayer/d$c;,
        Lcom/masala/share/sdkvideoplayer/d$b;
    }
.end annotation


# instance fields
.field a:Ljava/lang/String;

.field public b:Lcom/masala/share/sdkvideoplayer/b/b;

.field c:Z

.field public d:Z

.field public e:Z

.field f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

.field public g:Z

.field h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/masala/share/sdkvideoplayer/d$a;",
            ">;"
        }
    .end annotation
.end field

.field i:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/masala/share/sdkvideoplayer/d$b;",
            ">;"
        }
    .end annotation
.end field

.field private j:Landroid/os/PowerManager$WakeLock;

.field private k:Lcom/masala/share/sdkvideoplayer/b/e;


# direct methods
.method public constructor <init>()V
    .registers 3

    .line 131
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 46
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->c:Z

    const/4 v1, 0x0

    .line 47
    iput-boolean v1, p0, Lcom/masala/share/sdkvideoplayer/d;->d:Z

    .line 48
    iput-boolean v1, p0, Lcom/masala/share/sdkvideoplayer/d;->e:Z

    .line 52
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->g:Z

    .line 417
    new-instance v0, Lcom/masala/share/sdkvideoplayer/d$1;

    invoke-direct {v0, p0}, Lcom/masala/share/sdkvideoplayer/d$1;-><init>(Lcom/masala/share/sdkvideoplayer/d;)V

    iput-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->k:Lcom/masala/share/sdkvideoplayer/b/e;

    .line 132
    invoke-static {}, Lcom/masala/share/sdkvideoplayer/b/a;->a()Lcom/masala/share/sdkvideoplayer/b/b;

    move-result-object v0

    iput-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    .line 133
    invoke-static {}, Lcom/masala/share/sdkvideoplayer/a/a;->a()V

    return-void
.end method

.method public static q()I
    .registers 1

    .line 323
    invoke-static {}, Lcom/masala/share/sdkvideoplayer/b/a;->a()Lcom/masala/share/sdkvideoplayer/b/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/masala/share/sdkvideoplayer/b/b;->j()I

    move-result v0

    return v0
.end method


# virtual methods
.method public final a()V
    .registers 2

    const/4 v0, 0x0

    .line 142
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->g:Z

    .line 143
    invoke-virtual {p0}, Lcom/masala/share/sdkvideoplayer/d;->c()V

    return-void
.end method

.method public final a(Lcom/masala/share/sdkvideoplayer/VideoPlayerView;)V
    .registers 3

    .line 157
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    if-ne v0, p1, :cond_5

    return-void

    :cond_5
    if-eqz v0, :cond_a

    .line 164
    invoke-virtual {v0}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->d()V

    .line 167
    :cond_a
    iput-object p1, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    return-void
.end method

.method public final a(Lcom/masala/share/sdkvideoplayer/d$a;)V
    .registers 3

    .line 328
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->h:Ljava/util/List;

    if-nez v0, :cond_b

    .line 329
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->h:Ljava/util/List;

    .line 331
    :cond_b
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->h:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_18

    .line 332
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->h:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_18
    return-void
.end method

.method public final a(Lcom/masala/share/sdkvideoplayer/d$b;)V
    .registers 3

    .line 352
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    if-nez v0, :cond_b

    .line 353
    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    .line 355
    :cond_b
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_18

    .line 356
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_18
    return-void
.end method

.method public final a(Ljava/lang/String;)V
    .registers 3

    .line 176
    iput-object p1, p0, Lcom/masala/share/sdkvideoplayer/d;->a:Ljava/lang/String;

    .line 178
    iget-object p1, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->setThumbViewVisible(Z)V

    return-void
.end method

.method public final b()V
    .registers 2

    .line 147
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v0, p0}, Lcom/masala/share/sdkvideoplayer/b/b;->a(Ljava/lang/Object;)V

    return-void
.end method

.method public final b(Lcom/masala/share/sdkvideoplayer/d$b;)V
    .registers 3

    .line 361
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    invoke-static {v0}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v0

    if-eqz v0, :cond_9

    return-void

    .line 365
    :cond_9
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public final c()V
    .registers 2

    .line 151
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v0, p0}, Lcom/masala/share/sdkvideoplayer/b/b;->b(Ljava/lang/Object;)V

    return-void
.end method

.method public final d()V
    .registers 3

    .line 191
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    if-eqz v0, :cond_9

    const/4 v1, 0x0

    .line 192
    invoke-virtual {v0, v1}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->setPauseIconVisible(Z)V

    return-void

    :cond_9
    const-string v0, "VideoPlayer"

    const-string v1, "setPauseIconVisible, but mVideoPlayerView is null."

    .line 194
    invoke-static {v0, v1}, Lsg/bigo/log/TraceLog;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public final e()Z
    .registers 2

    .line 204
    iget-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->c:Z

    if-nez v0, :cond_6

    const/4 v0, 0x1

    return v0

    :cond_6
    const/4 v0, 0x0

    return v0
.end method

.method public final f()V
    .registers 5

    .line 210
    iget-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->g:Z

    if-nez v0, :cond_5

    return-void

    .line 214
    :cond_5
    iget-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->d:Z

    if-eqz v0, :cond_a

    return-void

    :cond_a
    const/4 v0, 0x1

    .line 218
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->d:Z

    const/4 v1, 0x0

    .line 219
    iput-boolean v1, p0, Lcom/masala/share/sdkvideoplayer/d;->e:Z

    .line 220
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->c:Z

    .line 221
    invoke-static {}, Lcom/masala/share/stat/c/i;->a()Lcom/masala/share/stat/c/i;

    move-result-object v0

    iget-object v2, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v2}, Lcom/masala/share/sdkvideoplayer/b/b;->j()I

    move-result v2

    iget-object v3, p0, Lcom/masala/share/sdkvideoplayer/d;->a:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Lcom/masala/share/stat/c/i;->a(ILjava/lang/String;)V

    .line 222
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    invoke-virtual {v0}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->d()V

    .line 223
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    iget-object v2, p0, Lcom/masala/share/sdkvideoplayer/d;->a:Ljava/lang/String;

    iget-object v3, p0, Lcom/masala/share/sdkvideoplayer/d;->k:Lcom/masala/share/sdkvideoplayer/b/e;

    invoke-interface {v0, v2, v3, v1}, Lcom/masala/share/sdkvideoplayer/b/b;->a(Ljava/lang/String;Lcom/masala/share/sdkvideoplayer/b/e;Z)V

    .line 225
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    iget-object v1, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    invoke-virtual {v1}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->getAndBindTextureView()Landroid/view/TextureView;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/masala/share/sdkvideoplayer/b/b;->a(Landroid/view/TextureView;)V

    .line 227
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    iget-object v1, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v1}, Lcom/masala/share/sdkvideoplayer/b/b;->k()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->a(Z)V

    .line 229
    invoke-virtual {p0}, Lcom/masala/share/sdkvideoplayer/d;->d()V

    .line 230
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v0}, Lcom/masala/share/sdkvideoplayer/b/b;->b()V

    return-void
.end method

.method public final g()Z
    .registers 2

    .line 247
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    if-eqz v0, :cond_c

    invoke-interface {v0}, Lcom/masala/share/sdkvideoplayer/b/b;->k()Z

    move-result v0

    if-eqz v0, :cond_c

    const/4 v0, 0x1

    return v0

    :cond_c
    const/4 v0, 0x0

    return v0
.end method

.method public final h()V
    .registers 2

    const/4 v0, 0x0

    .line 251
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->d:Z

    .line 252
    invoke-virtual {p0}, Lcom/masala/share/sdkvideoplayer/d;->d()V

    .line 253
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v0}, Lcom/masala/share/sdkvideoplayer/b/b;->g()V

    const/4 v0, 0x1

    .line 254
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->c:Z

    .line 255
    invoke-virtual {p0}, Lcom/masala/share/sdkvideoplayer/d;->p()V

    return-void
.end method

.method public final i()V
    .registers 3

    .line 259
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    iget-object v1, p0, Lcom/masala/share/sdkvideoplayer/d;->f:Lcom/masala/share/sdkvideoplayer/VideoPlayerView;

    invoke-virtual {v1}, Lcom/masala/share/sdkvideoplayer/VideoPlayerView;->getAndBindTextureView()Landroid/view/TextureView;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/masala/share/sdkvideoplayer/b/b;->a(Landroid/view/TextureView;)V

    .line 260
    invoke-virtual {p0}, Lcom/masala/share/sdkvideoplayer/d;->d()V

    .line 261
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v0}, Lcom/masala/share/sdkvideoplayer/b/b;->d()V

    const/4 v0, 0x0

    .line 262
    iput-boolean v0, p0, Lcom/masala/share/sdkvideoplayer/d;->e:Z

    .line 263
    invoke-virtual {p0}, Lcom/masala/share/sdkvideoplayer/d;->o()V

    return-void
.end method

.method public final j()I
    .registers 5

    .line 56
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    .line 57
    invoke-static {}, Lcom/masala/share/stat/c/i;->a()Lcom/masala/share/stat/c/i;

    move-result-object v2

    invoke-static {}, Lcom/masala/share/sdkvideoplayer/d;->q()I

    move-result v3

    invoke-virtual {v2, v3, v0, v1}, Lcom/masala/share/stat/c/i;->b(IJ)I

    move-result v0

    return v0
.end method

.method public final k()I
    .registers 5

    .line 62
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    .line 63
    invoke-static {}, Lcom/masala/share/stat/c/i;->a()Lcom/masala/share/stat/c/i;

    move-result-object v2

    invoke-static {}, Lcom/masala/share/sdkvideoplayer/d;->q()I

    move-result v3

    invoke-virtual {v2, v3, v0, v1}, Lcom/masala/share/stat/c/i;->c(IJ)I

    move-result v0

    return v0
.end method

.method public final l()I
    .registers 3

    .line 68
    invoke-static {}, Lcom/masala/share/stat/c/i;->a()Lcom/masala/share/stat/c/i;

    move-result-object v0

    invoke-static {}, Lcom/masala/share/sdkvideoplayer/d;->q()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/masala/share/stat/c/i;->e(I)I

    move-result v0

    return v0
.end method

.method public final m()I
    .registers 3

    .line 73
    invoke-static {}, Lcom/masala/share/stat/c/i;->a()Lcom/masala/share/stat/c/i;

    move-result-object v0

    invoke-static {}, Lcom/masala/share/sdkvideoplayer/d;->q()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/masala/share/stat/c/i;->f(I)I

    move-result v0

    return v0
.end method

.method public final n()I
    .registers 2

    .line 271
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->b:Lcom/masala/share/sdkvideoplayer/b/b;

    invoke-interface {v0}, Lcom/masala/share/sdkvideoplayer/b/b;->c()I

    move-result v0

    return v0
.end method

.method final o()V
    .registers 4

    .line 296
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    if-nez v0, :cond_2a

    .line 297
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v0

    const-string v1, "power"

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

    move-result-object v0

    check-cast v0, Landroid/os/PowerManager;

    if-eqz v0, :cond_1d

    const/16 v1, 0xa

    const-string v2, "kk_player_wakelock"

    .line 299
    invoke-virtual {v0, v1, v2}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object v0

    iput-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    goto :goto_24

    :cond_1d
    const-string v0, "VideoPlayer"

    const-string v1, "pm is null"

    .line 301
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 303
    :goto_24
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/PowerManager$WakeLock;->setReferenceCounted(Z)V

    .line 306
    :cond_2a
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-nez v0, :cond_3a

    .line 307
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    const-wide/32 v1, 0x927c0

    invoke-virtual {v0, v1, v2}, Landroid/os/PowerManager$WakeLock;->acquire(J)V

    :cond_3a
    return-void
.end method

.method public final p()V
    .registers 2

    .line 312
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    if-eqz v0, :cond_12

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_12

    .line 313
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V

    const/4 v0, 0x0

    .line 314
    iput-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->j:Landroid/os/PowerManager$WakeLock;

    :cond_12
    return-void
.end method

.method public final r()V
    .registers 2

    .line 344
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->h:Ljava/util/List;

    invoke-static {v0}, Lsg/bigo/common/o;->a(Ljava/util/Collection;)Z

    move-result v0

    if-eqz v0, :cond_9

    return-void

    .line 347
    :cond_9
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->h:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    return-void
.end method

.method public final s()V
    .registers 2

    .line 372
    iget-object v0, p0, Lcom/masala/share/sdkvideoplayer/d;->i:Ljava/util/List;

    if-eqz v0, :cond_7

    .line 373
    invoke-interface {v0}, Ljava/util/List;->clear()V

    :cond_7
    return-void
.end method