2019-07-24 11:27:29 +00:00
|
|
|
.class public abstract Lcom/facebook/b/a;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AbstractDataSource.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/facebook/b/c;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/facebook/b/a$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
"Lcom/facebook/b/c<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-10-03 02:31:26 +00:00
|
|
|
.field private Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.field private Kp:I
|
2019-10-01 14:15:45 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.field private Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.field private Kr:Ljava/lang/Throwable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.field private final Ks:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/concurrent/ConcurrentLinkedQueue<",
|
|
|
|
"Landroid/util/Pair<",
|
|
|
|
"Lcom/facebook/b/e<",
|
|
|
|
"TT;>;",
|
|
|
|
"Ljava/util/concurrent/Executor;",
|
|
|
|
">;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private mProgress:F
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method protected constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/b/a;->Kr:Ljava/lang/Throwable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Lcom/facebook/b/a;->mProgress:F
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v0, Lcom/facebook/b/a$a;->Ky:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object v0, p0, Lcom/facebook/b/a;->Ks:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private a(Lcom/facebook/b/e;Ljava/util/concurrent/Executor;ZZ)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/facebook/b/e<",
|
|
|
|
"TT;>;",
|
|
|
|
"Ljava/util/concurrent/Executor;",
|
|
|
|
"ZZ)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Lcom/facebook/b/a$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, p3, p1, p4}, Lcom/facebook/b/a$1;-><init>(Lcom/facebook/b/a;ZLcom/facebook/b/e;Z)V
|
|
|
|
|
|
|
|
invoke-interface {p2, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private b(Ljava/lang/Object;Z)Z
|
|
|
|
.locals 3
|
|
|
|
.param p1 # Ljava/lang/Object;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TT;Z)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
monitor-enter p0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_3
|
|
|
|
|
|
|
|
:try_start_1
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-boolean v1, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget v1, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v2, Lcom/facebook/b/a$a;->Ky:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget p2, Lcom/facebook/b/a$a;->Kz:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput p2, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 p2, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
iput p2, p0, Lcom/facebook/b/a;->mProgress:F
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object p2, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq p2, p1, :cond_2
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object p2, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
|
|
|
|
|
|
|
:try_start_2
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object p1, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
move-object p1, p2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
move-object v0, p2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move-object p1, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
:try_start_3
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_3
|
|
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/b/a;->B(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_1
|
|
|
|
:try_start_4
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_4
|
|
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/facebook/b/a;->B(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
move-object p1, p2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catchall_2
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
:try_start_5
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_5
|
|
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_2
|
|
|
|
|
|
|
|
:try_start_6
|
|
|
|
throw p1
|
|
|
|
:try_end_6
|
|
|
|
.catchall {:try_start_6 .. :try_end_6} :catchall_3
|
|
|
|
|
|
|
|
:catchall_3
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/facebook/b/a;->B(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private declared-synchronized f(Ljava/lang/Throwable;)Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v1, Lcom/facebook/b/a$a;->Ky:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v0, Lcom/facebook/b/a$a;->KA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object p1, p0, Lcom/facebook/b/a;->Kr:Ljava/lang/Throwable;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method private declared-synchronized gl()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v1, Lcom/facebook/b/a$a;->KA:I
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
goto :goto_1
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method private go()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 5
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->gl()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->gp()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v2, p0, Lcom/facebook/b/a;->Ks:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Landroid/util/Pair;
|
|
|
|
|
|
|
|
iget-object v4, v3, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v4, Lcom/facebook/b/e;
|
|
|
|
|
|
|
|
iget-object v3, v3, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v3, Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
invoke-direct {p0, v4, v3, v0, v1}, Lcom/facebook/b/a;->a(Lcom/facebook/b/e;Ljava/util/concurrent/Executor;ZZ)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method private declared-synchronized gp()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/b/a;->isClosed()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/b/a;->isFinished()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
goto :goto_1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private declared-synchronized i(F)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v2, Lcom/facebook/b/a$a;->Ky:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eq v0, v2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget v0, p0, Lcom/facebook/b/a;->mProgress:F
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
cmpg-float v0, p1, v0
|
|
|
|
|
|
|
|
if-gez v0, :cond_1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:try_start_1
|
|
|
|
iput p1, p0, Lcom/facebook/b/a;->mProgress:F
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method protected B(Ljava/lang/Object;)V
|
|
|
|
.locals 0
|
|
|
|
.param p1 # Ljava/lang/Object;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TT;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Lcom/facebook/b/e;Ljava/util/concurrent/Executor;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lcom/facebook/b/e<",
|
|
|
|
"TT;>;",
|
|
|
|
"Ljava/util/concurrent/Executor;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {p1}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {p2}, Lcom/facebook/common/d/i;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v1, Lcom/facebook/b/a$a;->Ky:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/b/a;->Ks:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p0}, Lcom/facebook/b/a;->gk()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/b/a;->isFinished()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->gp()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->gl()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->gp()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0, v1}, Lcom/facebook/b/a;->a(Lcom/facebook/b/e;Ljava/util/concurrent/Executor;ZZ)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected a(Ljava/lang/Object;Z)Z
|
|
|
|
.locals 0
|
|
|
|
.param p1 # Ljava/lang/Object;
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TT;Z)Z"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/facebook/b/a;->b(Ljava/lang/Object;Z)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->go()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public e(Ljava/lang/Throwable;)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/b/a;->f(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->go()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final declared-synchronized getProgress()F
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget v0, p0, Lcom/facebook/b/a;->mProgress:F
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public declared-synchronized getResult()Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()TT;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v0, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
|
|
|
: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
|
|
|
|
|
|
|
|
.method public declared-synchronized gk()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
goto :goto_1
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final declared-synchronized gm()Ljava/lang/Throwable;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/b/a;->Kr:Ljava/lang/Throwable;
|
2019-07-24 11:27:29 +00:00
|
|
|
: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
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public gn()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object v2, p0, Lcom/facebook/b/a;->Kq:Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Lcom/facebook/b/a;->B(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/b/a;->isFinished()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {p0}, Lcom/facebook/b/a;->go()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_1
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v1, p0, Lcom/facebook/b/a;->Ks:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->clear()V
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:catchall_1
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
monitor-exit p0
|
|
|
|
:try_end_2
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public h(F)Z
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/b/a;->i(F)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v0, p0, Lcom/facebook/b/a;->Ks:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroid/util/Pair;
|
|
|
|
|
|
|
|
iget-object v2, v1, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v2, Lcom/facebook/b/e;
|
|
|
|
|
|
|
|
iget-object v1, v1, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast v1, Ljava/util/concurrent/Executor;
|
|
|
|
|
|
|
|
new-instance v3, Lcom/facebook/b/a$2;
|
|
|
|
|
|
|
|
invoke-direct {v3, p0, v2}, Lcom/facebook/b/a$2;-><init>(Lcom/facebook/b/a;Lcom/facebook/b/e;)V
|
|
|
|
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final declared-synchronized isClosed()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-boolean v0, p0, Lcom/facebook/b/a;->Jz:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final declared-synchronized isFinished()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
monitor-enter p0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-10-03 02:31:26 +00:00
|
|
|
iget v0, p0, Lcom/facebook/b/a;->Kp:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
sget v1, Lcom/facebook/b/a$a;->Ky:I
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
monitor-exit p0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
goto :goto_1
|
|
|
|
.end method
|