t$b.smali
.class final Lf/b/b/b/n1/t$b;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lf/b/b/b/n1/p$d;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lf/b/b/b/n1/t;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "b"
.end annotation
# instance fields
.field private final a:Landroid/content/Context;
.field private final b:Lf/b/b/b/n1/p;
.field private final c:Z
.field private final d:Lf/b/b/b/o1/f;
.field private final e:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"+",
"Lf/b/b/b/n1/t;",
">;"
}
.end annotation
.end field
.field private f:Lf/b/b/b/n1/t;
# direct methods
.method private constructor <init>(Landroid/content/Context;Lf/b/b/b/n1/p;ZLf/b/b/b/o1/f;Ljava/lang/Class;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Lf/b/b/b/n1/p;",
"Z",
"Lf/b/b/b/o1/f;",
"Ljava/lang/Class<",
"+",
"Lf/b/b/b/n1/t;",
">;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lf/b/b/b/n1/t$b;->a:Landroid/content/Context;
iput-object p2, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
iput-boolean p3, p0, Lf/b/b/b/n1/t$b;->c:Z
iput-object p4, p0, Lf/b/b/b/n1/t$b;->d:Lf/b/b/b/o1/f;
iput-object p5, p0, Lf/b/b/b/n1/t$b;->e:Ljava/lang/Class;
invoke-virtual {p2, p0}, Lf/b/b/b/n1/p;->b(Lf/b/b/b/n1/p$d;)V
invoke-direct {p0}, Lf/b/b/b/n1/t$b;->o()V
return-void
.end method
.method synthetic constructor <init>(Landroid/content/Context;Lf/b/b/b/n1/p;ZLf/b/b/b/o1/f;Ljava/lang/Class;Lf/b/b/b/n1/t$a;)V
.registers 7
invoke-direct/range {p0 .. p5}, Lf/b/b/b/n1/t$b;-><init>(Landroid/content/Context;Lf/b/b/b/n1/p;ZLf/b/b/b/o1/f;Ljava/lang/Class;)V
return-void
.end method
.method static synthetic h(Lf/b/b/b/n1/t$b;)Lf/b/b/b/n1/p;
.registers 1
iget-object p0, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
return-object p0
.end method
.method private synthetic k(Lf/b/b/b/n1/t;)V
.registers 3
iget-object v0, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
invoke-virtual {v0}, Lf/b/b/b/n1/p;->c()Ljava/util/List;
move-result-object v0
invoke-static {p1, v0}, Lf/b/b/b/n1/t;->b(Lf/b/b/b/n1/t;Ljava/util/List;)V
return-void
.end method
.method private m()V
.registers 4
iget-boolean v0, p0, Lf/b/b/b/n1/t$b;->c:Z
if-eqz v0, :cond_14
iget-object v0, p0, Lf/b/b/b/n1/t$b;->a:Landroid/content/Context;
iget-object v1, p0, Lf/b/b/b/n1/t$b;->e:Ljava/lang/Class;
const-string v2, "com.google.android.exoplayer.downloadService.action.RESTART"
invoke-static {v0, v1, v2}, Lf/b/b/b/n1/t;->h(Landroid/content/Context;Ljava/lang/Class;Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
iget-object v1, p0, Lf/b/b/b/n1/t$b;->a:Landroid/content/Context;
invoke-static {v1, v0}, Lf/b/b/b/s1/m0;->K0(Landroid/content/Context;Landroid/content/Intent;)Landroid/content/ComponentName;
goto :goto_2b
:cond_14
:try_start_14
iget-object v0, p0, Lf/b/b/b/n1/t$b;->a:Landroid/content/Context;
iget-object v1, p0, Lf/b/b/b/n1/t$b;->e:Ljava/lang/Class;
const-string v2, "com.google.android.exoplayer.downloadService.action.INIT"
invoke-static {v0, v1, v2}, Lf/b/b/b/n1/t;->h(Landroid/content/Context;Ljava/lang/Class;Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
iget-object v1, p0, Lf/b/b/b/n1/t$b;->a:Landroid/content/Context;
invoke-virtual {v1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
:try_end_23
.catch Ljava/lang/IllegalStateException; {:try_start_14 .. :try_end_23} :catch_24
goto :goto_2b
:catch_24
const-string v0, "DownloadService"
const-string v1, "Failed to restart DownloadService (process is idle)."
invoke-static {v0, v1}, Lf/b/b/b/s1/r;->h(Ljava/lang/String;Ljava/lang/String;)V
:goto_2b
return-void
.end method
.method private n()Z
.registers 2
iget-object v0, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-eqz v0, :cond_d
invoke-static {v0}, Lf/b/b/b/n1/t;->g(Lf/b/b/b/n1/t;)Z
move-result v0
if-eqz v0, :cond_b
goto :goto_d
:cond_b
const/4 v0, 0x0
goto :goto_e
:cond_d
:goto_d
const/4 v0, 0x1
:goto_e
return v0
.end method
.method private o()V
.registers 5
iget-object v0, p0, Lf/b/b/b/n1/t$b;->d:Lf/b/b/b/o1/f;
if-nez v0, :cond_5
return-void
:cond_5
iget-object v0, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
invoke-virtual {v0}, Lf/b/b/b/n1/p;->j()Z
move-result v0
if-eqz v0, :cond_2b
iget-object v0, p0, Lf/b/b/b/n1/t$b;->a:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
invoke-virtual {v1}, Lf/b/b/b/n1/p;->f()Lf/b/b/b/o1/d;
move-result-object v1
iget-object v2, p0, Lf/b/b/b/n1/t$b;->d:Lf/b/b/b/o1/f;
const-string v3, "com.google.android.exoplayer.downloadService.action.RESTART"
invoke-interface {v2, v1, v0, v3}, Lf/b/b/b/o1/f;->a(Lf/b/b/b/o1/d;Ljava/lang/String;Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_30
const-string v0, "DownloadService"
const-string v1, "Scheduling downloads failed."
invoke-static {v0, v1}, Lf/b/b/b/s1/r;->c(Ljava/lang/String;Ljava/lang/String;)V
goto :goto_30
:cond_2b
iget-object v0, p0, Lf/b/b/b/n1/t$b;->d:Lf/b/b/b/o1/f;
invoke-interface {v0}, Lf/b/b/b/o1/f;->cancel()Z
:cond_30
:goto_30
return-void
.end method
# virtual methods
.method public a(Lf/b/b/b/n1/p;Lf/b/b/b/n1/j;)V
.registers 3
iget-object p1, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-eqz p1, :cond_7
invoke-static {p1, p2}, Lf/b/b/b/n1/t;->c(Lf/b/b/b/n1/t;Lf/b/b/b/n1/j;)V
:cond_7
invoke-direct {p0}, Lf/b/b/b/n1/t$b;->n()Z
move-result p1
if-eqz p1, :cond_1f
iget p1, p2, Lf/b/b/b/n1/j;->b:I
invoke-static {p1}, Lf/b/b/b/n1/t;->d(I)Z
move-result p1
if-eqz p1, :cond_1f
const-string p1, "DownloadService"
const-string p2, "DownloadService wasn\'t running. Restarting."
invoke-static {p1, p2}, Lf/b/b/b/s1/r;->h(Ljava/lang/String;Ljava/lang/String;)V
invoke-direct {p0}, Lf/b/b/b/n1/t$b;->m()V
:cond_1f
return-void
.end method
.method public synthetic b(Lf/b/b/b/n1/p;Z)V
.registers 3
invoke-static {p0, p1, p2}, Lf/b/b/b/n1/q;->a(Lf/b/b/b/n1/p$d;Lf/b/b/b/n1/p;Z)V
return-void
.end method
.method public c(Lf/b/b/b/n1/p;Z)V
.registers 4
if-nez p2, :cond_2a
invoke-virtual {p1}, Lf/b/b/b/n1/p;->e()Z
move-result p2
if-nez p2, :cond_2a
invoke-direct {p0}, Lf/b/b/b/n1/t$b;->n()Z
move-result p2
if-eqz p2, :cond_2a
invoke-virtual {p1}, Lf/b/b/b/n1/p;->c()Ljava/util/List;
move-result-object p1
const/4 p2, 0x0
:goto_13
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-ge p2, v0, :cond_2a
invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lf/b/b/b/n1/j;
iget v0, v0, Lf/b/b/b/n1/j;->b:I
if-nez v0, :cond_27
invoke-direct {p0}, Lf/b/b/b/n1/t$b;->m()V
goto :goto_2a
:cond_27
add-int/lit8 p2, p2, 0x1
goto :goto_13
:cond_2a
:goto_2a
invoke-direct {p0}, Lf/b/b/b/n1/t$b;->o()V
return-void
.end method
.method public synthetic d(Lf/b/b/b/n1/p;Lf/b/b/b/o1/d;I)V
.registers 4
invoke-static {p0, p1, p2, p3}, Lf/b/b/b/n1/q;->d(Lf/b/b/b/n1/p$d;Lf/b/b/b/n1/p;Lf/b/b/b/o1/d;I)V
return-void
.end method
.method public e(Lf/b/b/b/n1/p;Lf/b/b/b/n1/j;)V
.registers 3
iget-object p1, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-eqz p1, :cond_7
invoke-static {p1, p2}, Lf/b/b/b/n1/t;->e(Lf/b/b/b/n1/t;Lf/b/b/b/n1/j;)V
:cond_7
return-void
.end method
.method public final f(Lf/b/b/b/n1/p;)V
.registers 2
iget-object p1, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-eqz p1, :cond_7
invoke-static {p1}, Lf/b/b/b/n1/t;->f(Lf/b/b/b/n1/t;)V
:cond_7
return-void
.end method
.method public g(Lf/b/b/b/n1/p;)V
.registers 3
iget-object v0, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-eqz v0, :cond_b
invoke-virtual {p1}, Lf/b/b/b/n1/p;->c()Ljava/util/List;
move-result-object p1
invoke-static {v0, p1}, Lf/b/b/b/n1/t;->b(Lf/b/b/b/n1/t;Ljava/util/List;)V
:cond_b
return-void
.end method
.method public i(Lf/b/b/b/n1/t;)V
.registers 4
iget-object v0, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-nez v0, :cond_6
const/4 v0, 0x1
goto :goto_7
:cond_6
const/4 v0, 0x0
:goto_7
invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V
iput-object p1, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
iget-object v0, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
invoke-virtual {v0}, Lf/b/b/b/n1/p;->i()Z
move-result v0
if-eqz v0, :cond_21
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
new-instance v1, Lf/b/b/b/n1/d;
invoke-direct {v1, p0, p1}, Lf/b/b/b/n1/d;-><init>(Lf/b/b/b/n1/t$b;Lf/b/b/b/n1/t;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->postAtFrontOfQueue(Ljava/lang/Runnable;)Z
:cond_21
return-void
.end method
.method public j(Lf/b/b/b/n1/t;)V
.registers 3
iget-object v0, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
if-ne v0, p1, :cond_6
const/4 p1, 0x1
goto :goto_7
:cond_6
const/4 p1, 0x0
:goto_7
invoke-static {p1}, Lf/b/b/b/s1/e;->f(Z)V
const/4 p1, 0x0
iput-object p1, p0, Lf/b/b/b/n1/t$b;->f:Lf/b/b/b/n1/t;
iget-object p1, p0, Lf/b/b/b/n1/t$b;->d:Lf/b/b/b/o1/f;
if-eqz p1, :cond_1e
iget-object p1, p0, Lf/b/b/b/n1/t$b;->b:Lf/b/b/b/n1/p;
invoke-virtual {p1}, Lf/b/b/b/n1/p;->j()Z
move-result p1
if-nez p1, :cond_1e
iget-object p1, p0, Lf/b/b/b/n1/t$b;->d:Lf/b/b/b/o1/f;
invoke-interface {p1}, Lf/b/b/b/o1/f;->cancel()Z
:cond_1e
return-void
.end method
.method public synthetic l(Lf/b/b/b/n1/t;)V
.registers 2
invoke-direct {p0, p1}, Lf/b/b/b/n1/t$b;->k(Lf/b/b/b/n1/t;)V
return-void
.end method