apkfuckery/com.discord/smali_classes2/f/g/e/h$a.smali

593 lines
11 KiB
Smali

.class public Lf/g/e/h$a;
.super Lf/g/e/c;
.source "IncreasingQualityDataSourceSupplier.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lf/g/e/h;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "a"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/g/e/h$a$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/g/e/c<",
"TT;>;"
}
.end annotation
# instance fields
.field public h:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/facebook/datasource/DataSource<",
"TT;>;>;"
}
.end annotation
.end field
.field public i:I
.field public j:I
.field public k:Ljava/util/concurrent/atomic/AtomicInteger;
.field public l:Ljava/lang/Throwable;
.field public m:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public final synthetic n:Lf/g/e/h;
# direct methods
.method public constructor <init>(Lf/g/e/h;)V
.locals 0
iput-object p1, p0, Lf/g/e/h$a;->n:Lf/g/e/h;
invoke-direct {p0}, Lf/g/e/c;-><init>()V
iget-boolean p1, p1, Lf/g/e/h;->b:Z
if-nez p1, :cond_0
invoke-virtual {p0}, Lf/g/e/h$a;->p()V
:cond_0
return-void
.end method
.method public static o(Lf/g/e/h$a;ILcom/facebook/datasource/DataSource;)V
.locals 1
monitor-enter p0
:try_start_0
invoke-virtual {p0}, Lf/g/e/h$a;->s()Lcom/facebook/datasource/DataSource;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-ne p2, v0, :cond_0
const/4 v0, 0x0
monitor-exit p0
goto :goto_0
:cond_0
:try_start_1
invoke-virtual {p0, p1}, Lf/g/e/h$a;->r(I)Lcom/facebook/datasource/DataSource;
move-result-object v0
if-ne p2, v0, :cond_1
invoke-virtual {p0, p1}, Lf/g/e/h$a;->q(I)Lcom/facebook/datasource/DataSource;
move-result-object v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
goto :goto_0
:cond_1
monitor-exit p0
move-object v0, p2
:goto_0
if-eqz v0, :cond_2
invoke-interface {v0}, Lcom/facebook/datasource/DataSource;->close()Z
:cond_2
if-nez p1, :cond_3
invoke-interface {p2}, Lcom/facebook/datasource/DataSource;->d()Ljava/lang/Throwable;
move-result-object p1
iput-object p1, p0, Lf/g/e/h$a;->l:Ljava/lang/Throwable;
invoke-interface {p2}, Lcom/facebook/datasource/DataSource;->a()Ljava/util/Map;
move-result-object p1
iput-object p1, p0, Lf/g/e/h$a;->m:Ljava/util/Map;
:cond_3
iget-object p1, p0, Lf/g/e/h$a;->k:Ljava/util/concurrent/atomic/AtomicInteger;
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
move-result p1
iget p2, p0, Lf/g/e/h$a;->j:I
if-ne p1, p2, :cond_4
iget-object p1, p0, Lf/g/e/h$a;->l:Ljava/lang/Throwable;
if-eqz p1, :cond_4
iget-object p2, p0, Lf/g/e/h$a;->m:Ljava/util/Map;
invoke-virtual {p0, p1, p2}, Lf/g/e/c;->k(Ljava/lang/Throwable;Ljava/util/Map;)Z
:cond_4
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
# virtual methods
.method public declared-synchronized b()Z
.locals 1
monitor-enter p0
:try_start_0
iget-object v0, p0, Lf/g/e/h$a;->n:Lf/g/e/h;
iget-boolean v0, v0, Lf/g/e/h;->b:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Lf/g/e/h$a;->p()V
:cond_0
invoke-virtual {p0}, Lf/g/e/h$a;->s()Lcom/facebook/datasource/DataSource;
move-result-object v0
if-eqz v0, :cond_1
invoke-interface {v0}, Lcom/facebook/datasource/DataSource;->b()Z
move-result v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_1
const/4 v0, 0x1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
monitor-exit p0
return v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public close()Z
.locals 3
iget-object v0, p0, Lf/g/e/h$a;->n:Lf/g/e/h;
iget-boolean v0, v0, Lf/g/e/h;->b:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Lf/g/e/h$a;->p()V
:cond_0
monitor-enter p0
:try_start_0
invoke-super {p0}, Lf/g/e/c;->close()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_1
monitor-exit p0
return v1
:cond_1
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
const/4 v2, 0x0
iput-object v2, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_3
:goto_0
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v2
if-ge v1, v2, :cond_3
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/datasource/DataSource;
if-eqz v2, :cond_2
invoke-interface {v2}, Lcom/facebook/datasource/DataSource;->close()Z
:cond_2
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_3
const/4 v0, 0x1
return v0
:catchall_0
move-exception v0
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public declared-synchronized getResult()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lf/g/e/h$a;->n:Lf/g/e/h;
iget-boolean v0, v0, Lf/g/e/h;->b:Z
if-eqz v0, :cond_0
invoke-virtual {p0}, Lf/g/e/h$a;->p()V
:cond_0
invoke-virtual {p0}, Lf/g/e/h$a;->s()Lcom/facebook/datasource/DataSource;
move-result-object v0
if-eqz v0, :cond_1
invoke-interface {v0}, Lcom/facebook/datasource/DataSource;->getResult()Ljava/lang/Object;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final p()V
.locals 5
iget-object v0, p0, Lf/g/e/h$a;->k:Ljava/util/concurrent/atomic/AtomicInteger;
if-eqz v0, :cond_0
return-void
:cond_0
monitor-enter p0
:try_start_0
iget-object v0, p0, Lf/g/e/h$a;->k:Ljava/util/concurrent/atomic/AtomicInteger;
if-nez v0, :cond_2
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
iput-object v0, p0, Lf/g/e/h$a;->k:Ljava/util/concurrent/atomic/AtomicInteger;
iget-object v0, p0, Lf/g/e/h$a;->n:Lf/g/e/h;
iget-object v0, v0, Lf/g/e/h;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
iput v0, p0, Lf/g/e/h$a;->j:I
iput v0, p0, Lf/g/e/h$a;->i:I
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2, v0}, Ljava/util/ArrayList;-><init>(I)V
iput-object v2, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
:goto_0
if-ge v1, v0, :cond_2
iget-object v2, p0, Lf/g/e/h$a;->n:Lf/g/e/h;
iget-object v2, v2, Lf/g/e/h;->a:Ljava/util/List;
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/common/internal/Supplier;
invoke-interface {v2}, Lcom/facebook/common/internal/Supplier;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/facebook/datasource/DataSource;
iget-object v3, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
new-instance v3, Lf/g/e/h$a$a;
invoke-direct {v3, p0, v1}, Lf/g/e/h$a$a;-><init>(Lf/g/e/h$a;I)V
sget-object v4, Lf/g/d/b/a;->d:Lf/g/d/b/a;
invoke-interface {v2, v3, v4}, Lcom/facebook/datasource/DataSource;->f(Lf/g/e/f;Ljava/util/concurrent/Executor;)V
invoke-interface {v2}, Lcom/facebook/datasource/DataSource;->b()Z
move-result v2
if-eqz v2, :cond_1
goto :goto_1
:cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_2
:goto_1
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public final declared-synchronized q(I)Lcom/facebook/datasource/DataSource;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/facebook/datasource/DataSource<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
const/4 v1, 0x0
if-eqz v0, :cond_0
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_0
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
invoke-virtual {v0, p1, v1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
move-result-object p1
move-object v1, p1
check-cast v1, Lcom/facebook/datasource/DataSource;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_0
monitor-exit p0
return-object v1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized r(I)Lcom/facebook/datasource/DataSource;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Lcom/facebook/datasource/DataSource<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
if-eqz v0, :cond_0
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p1, v0, :cond_0
iget-object v0, p0, Lf/g/e/h$a;->h:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/datasource/DataSource;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
monitor-exit p0
return-object p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized s()Lcom/facebook/datasource/DataSource;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/datasource/DataSource<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
iget v0, p0, Lf/g/e/h$a;->i:I
invoke-virtual {p0, v0}, Lf/g/e/h$a;->r(I)Lcom/facebook/datasource/DataSource;
move-result-object v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object v0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method