x.smali
.class public Lf/b/b/b/x;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lf/b/b/b/i0;
# instance fields
.field private final a:Lcom/google/android/exoplayer2/upstream/r;
.field private final b:J
.field private final c:J
.field private final d:J
.field private final e:J
.field private final f:J
.field private final g:I
.field private final h:Z
.field private final i:J
.field private final j:Z
.field private k:I
.field private l:Z
.field private m:Z
# direct methods
.method public constructor <init>()V
.registers 4
new-instance v0, Lcom/google/android/exoplayer2/upstream/r;
const/4 v1, 0x1
const/high16 v2, 0x10000
invoke-direct {v0, v1, v2}, Lcom/google/android/exoplayer2/upstream/r;-><init>(ZI)V
invoke-direct {p0, v0}, Lf/b/b/b/x;-><init>(Lcom/google/android/exoplayer2/upstream/r;)V
return-void
.end method
.method public constructor <init>(Lcom/google/android/exoplayer2/upstream/r;)V
.registers 13
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/16 v2, 0x3a98
const v3, 0xc350
const v4, 0xc350
const/16 v5, 0x9c4
const/16 v6, 0x1388
const/4 v7, -0x1
const/4 v8, 0x1
const/4 v9, 0x0
const/4 v10, 0x0
move-object v0, p0
move-object v1, p1
invoke-direct/range {v0 .. v10}, Lf/b/b/b/x;-><init>(Lcom/google/android/exoplayer2/upstream/r;IIIIIIZIZ)V
return-void
.end method
.method protected constructor <init>(Lcom/google/android/exoplayer2/upstream/r;IIIIIIZIZ)V
.registers 24
move-object v0, p0
move v1, p2
move/from16 v2, p3
move/from16 v3, p4
move/from16 v4, p5
move/from16 v5, p6
move/from16 v6, p9
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v7, 0x0
const-string v8, "bufferForPlaybackMs"
const-string v9, "0"
invoke-static {v4, v7, v8, v9}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
const-string v10, "bufferForPlaybackAfterRebufferMs"
invoke-static {v5, v7, v10, v9}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
const-string v11, "minBufferAudioMs"
invoke-static {p2, v4, v11, v8}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
const-string v12, "minBufferVideoMs"
invoke-static {v2, v4, v12, v8}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
invoke-static {p2, v5, v11, v10}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
invoke-static {v2, v5, v12, v10}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
const-string v8, "maxBufferMs"
invoke-static {v3, p2, v8, v11}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
invoke-static {v3, v2, v8, v12}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
const-string v8, "backBufferDurationMs"
invoke-static {v6, v7, v8, v9}, Lf/b/b/b/x;->i(IILjava/lang/String;Ljava/lang/String;)V
move-object v7, p1
iput-object v7, v0, Lf/b/b/b/x;->a:Lcom/google/android/exoplayer2/upstream/r;
int-to-long v7, v1
invoke-static {v7, v8}, Lf/b/b/b/u;->b(J)J
move-result-wide v7
iput-wide v7, v0, Lf/b/b/b/x;->b:J
int-to-long v1, v2
invoke-static {v1, v2}, Lf/b/b/b/u;->b(J)J
move-result-wide v1
iput-wide v1, v0, Lf/b/b/b/x;->c:J
int-to-long v1, v3
invoke-static {v1, v2}, Lf/b/b/b/u;->b(J)J
move-result-wide v1
iput-wide v1, v0, Lf/b/b/b/x;->d:J
int-to-long v1, v4
invoke-static {v1, v2}, Lf/b/b/b/u;->b(J)J
move-result-wide v1
iput-wide v1, v0, Lf/b/b/b/x;->e:J
int-to-long v1, v5
invoke-static {v1, v2}, Lf/b/b/b/u;->b(J)J
move-result-wide v1
iput-wide v1, v0, Lf/b/b/b/x;->f:J
move/from16 v1, p7
iput v1, v0, Lf/b/b/b/x;->g:I
move/from16 v1, p8
iput-boolean v1, v0, Lf/b/b/b/x;->h:Z
int-to-long v1, v6
invoke-static {v1, v2}, Lf/b/b/b/u;->b(J)J
move-result-wide v1
iput-wide v1, v0, Lf/b/b/b/x;->i:J
move/from16 v1, p10
iput-boolean v1, v0, Lf/b/b/b/x;->j:Z
return-void
.end method
.method private static i(IILjava/lang/String;Ljava/lang/String;)V
.registers 5
if-lt p0, p1, :cond_4
const/4 p0, 0x1
goto :goto_5
:cond_4
const/4 p0, 0x0
:goto_5
invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
add-int/lit8 p1, p1, 0x15
invoke-static {p3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
add-int/2addr p1, v0
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(I)V
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, " cannot be less than "
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {p0, p1}, Lf/b/b/b/s1/e;->b(ZLjava/lang/Object;)V
return-void
.end method
.method private static k(I)I
.registers 2
const/high16 v0, 0x20000
packed-switch p0, :pswitch_data_18
new-instance p0, Ljava/lang/IllegalArgumentException;
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p0
:pswitch_b
const/4 p0, 0x0
return p0
:pswitch_d
return v0
:pswitch_e
const/high16 p0, 0x1f40000
return p0
:pswitch_11
const/high16 p0, 0x360000
return p0
:pswitch_14
const/high16 p0, 0x22c0000
return p0
nop
:pswitch_data_18
.packed-switch 0x0
:pswitch_14
:pswitch_11
:pswitch_e
:pswitch_d
:pswitch_d
:pswitch_d
:pswitch_b
.end packed-switch
.end method
.method private static l([Lf/b/b/b/u0;Lf/b/b/b/r1/j;)Z
.registers 6
const/4 v0, 0x0
const/4 v1, 0x0
:goto_2
array-length v2, p0
if-ge v1, v2, :cond_19
aget-object v2, p0, v1
invoke-interface {v2}, Lf/b/b/b/u0;->getTrackType()I
move-result v2
const/4 v3, 0x2
if-ne v2, v3, :cond_16
invoke-virtual {p1, v1}, Lf/b/b/b/r1/j;->a(I)Lf/b/b/b/r1/i;
move-result-object v2
if-eqz v2, :cond_16
const/4 p0, 0x1
return p0
:cond_16
add-int/lit8 v1, v1, 0x1
goto :goto_2
:cond_19
return v0
.end method
.method private m(Z)V
.registers 3
const/4 v0, 0x0
iput v0, p0, Lf/b/b/b/x;->k:I
iput-boolean v0, p0, Lf/b/b/b/x;->l:Z
if-eqz p1, :cond_c
iget-object p1, p0, Lf/b/b/b/x;->a:Lcom/google/android/exoplayer2/upstream/r;
invoke-virtual {p1}, Lcom/google/android/exoplayer2/upstream/r;->g()V
:cond_c
return-void
.end method
# virtual methods
.method public a()V
.registers 2
const/4 v0, 0x0
invoke-direct {p0, v0}, Lf/b/b/b/x;->m(Z)V
return-void
.end method
.method public b()Z
.registers 2
iget-boolean v0, p0, Lf/b/b/b/x;->j:Z
return v0
.end method
.method public c()J
.registers 3
iget-wide v0, p0, Lf/b/b/b/x;->i:J
return-wide v0
.end method
.method public d(JFZ)Z
.registers 8
invoke-static {p1, p2, p3}, Lf/b/b/b/s1/m0;->U(JF)J
move-result-wide p1
if-eqz p4, :cond_9
iget-wide p3, p0, Lf/b/b/b/x;->f:J
goto :goto_b
:cond_9
iget-wide p3, p0, Lf/b/b/b/x;->e:J
:goto_b
const-wide/16 v0, 0x0
cmp-long v2, p3, v0
if-lez v2, :cond_26
cmp-long v0, p1, p3
if-gez v0, :cond_26
iget-boolean p1, p0, Lf/b/b/b/x;->h:Z
if-nez p1, :cond_24
iget-object p1, p0, Lf/b/b/b/x;->a:Lcom/google/android/exoplayer2/upstream/r;
invoke-virtual {p1}, Lcom/google/android/exoplayer2/upstream/r;->f()I
move-result p1
iget p2, p0, Lf/b/b/b/x;->k:I
if-lt p1, p2, :cond_24
goto :goto_26
:cond_24
const/4 p1, 0x0
goto :goto_27
:cond_26
:goto_26
const/4 p1, 0x1
:goto_27
return p1
.end method
.method public e(JF)Z
.registers 12
iget-object v0, p0, Lf/b/b/b/x;->a:Lcom/google/android/exoplayer2/upstream/r;
invoke-virtual {v0}, Lcom/google/android/exoplayer2/upstream/r;->f()I
move-result v0
iget v1, p0, Lf/b/b/b/x;->k:I
const/4 v2, 0x1
const/4 v3, 0x0
if-lt v0, v1, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
iget-boolean v1, p0, Lf/b/b/b/x;->m:Z
if-eqz v1, :cond_16
iget-wide v4, p0, Lf/b/b/b/x;->c:J
goto :goto_18
:cond_16
iget-wide v4, p0, Lf/b/b/b/x;->b:J
:goto_18
const/high16 v1, 0x3f800000 # 1.0f
cmpl-float v1, p3, v1
if-lez v1, :cond_28
invoke-static {v4, v5, p3}, Lf/b/b/b/s1/m0;->P(JF)J
move-result-wide v4
iget-wide v6, p0, Lf/b/b/b/x;->d:J
invoke-static {v4, v5, v6, v7}, Ljava/lang/Math;->min(JJ)J
move-result-wide v4
:cond_28
cmp-long p3, p1, v4
if-gez p3, :cond_37
iget-boolean p1, p0, Lf/b/b/b/x;->h:Z
if-nez p1, :cond_34
if-nez v0, :cond_33
goto :goto_34
:cond_33
const/4 v2, 0x0
:cond_34
:goto_34
iput-boolean v2, p0, Lf/b/b/b/x;->l:Z
goto :goto_41
:cond_37
iget-wide v1, p0, Lf/b/b/b/x;->d:J
cmp-long p3, p1, v1
if-gez p3, :cond_3f
if-eqz v0, :cond_41
:cond_3f
iput-boolean v3, p0, Lf/b/b/b/x;->l:Z
:cond_41
:goto_41
iget-boolean p1, p0, Lf/b/b/b/x;->l:Z
return p1
.end method
.method public f([Lf/b/b/b/u0;Lf/b/b/b/p1/p0;Lf/b/b/b/r1/j;)V
.registers 5
invoke-static {p1, p3}, Lf/b/b/b/x;->l([Lf/b/b/b/u0;Lf/b/b/b/r1/j;)Z
move-result p2
iput-boolean p2, p0, Lf/b/b/b/x;->m:Z
iget p2, p0, Lf/b/b/b/x;->g:I
const/4 v0, -0x1
if-ne p2, v0, :cond_f
invoke-virtual {p0, p1, p3}, Lf/b/b/b/x;->j([Lf/b/b/b/u0;Lf/b/b/b/r1/j;)I
move-result p2
:cond_f
iput p2, p0, Lf/b/b/b/x;->k:I
iget-object p1, p0, Lf/b/b/b/x;->a:Lcom/google/android/exoplayer2/upstream/r;
invoke-virtual {p1, p2}, Lcom/google/android/exoplayer2/upstream/r;->h(I)V
return-void
.end method
.method public g()V
.registers 2
const/4 v0, 0x1
invoke-direct {p0, v0}, Lf/b/b/b/x;->m(Z)V
return-void
.end method
.method public h()Lcom/google/android/exoplayer2/upstream/f;
.registers 2
iget-object v0, p0, Lf/b/b/b/x;->a:Lcom/google/android/exoplayer2/upstream/r;
return-object v0
.end method
.method protected j([Lf/b/b/b/u0;Lf/b/b/b/r1/j;)I
.registers 6
const/4 v0, 0x0
const/4 v1, 0x0
:goto_2
array-length v2, p1
if-ge v0, v2, :cond_19
invoke-virtual {p2, v0}, Lf/b/b/b/r1/j;->a(I)Lf/b/b/b/r1/i;
move-result-object v2
if-eqz v2, :cond_16
aget-object v2, p1, v0
invoke-interface {v2}, Lf/b/b/b/u0;->getTrackType()I
move-result v2
invoke-static {v2}, Lf/b/b/b/x;->k(I)I
move-result v2
add-int/2addr v1, v2
:cond_16
add-int/lit8 v0, v0, 0x1
goto :goto_2
:cond_19
return v1
.end method
.method public onStopped()V
.registers 2
const/4 v0, 0x1
invoke-direct {p0, v0}, Lf/b/b/b/x;->m(Z)V
return-void
.end method