apkfuckery/com.discord/smali/com/airbnb/lottie/l.smali

512 lines
12 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/airbnb/lottie/l;
.super Ljava/lang/Object;
.source "LottieTask.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/airbnb/lottie/l$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# static fields
2019-07-31 00:08:31 +00:00
.field public static hf:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
# instance fields
.field private final handler:Landroid/os/Handler;
2019-07-31 00:08:31 +00:00
.field private final hg:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/airbnb/lottie/h<",
"TT;>;>;"
}
.end annotation
.end field
2019-07-31 00:08:31 +00:00
.field private final hh:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Lcom/airbnb/lottie/h<",
"Ljava/lang/Throwable;",
">;>;"
}
.end annotation
.end field
2019-07-31 00:08:31 +00:00
.field private volatile hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/airbnb/lottie/k<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
2019-07-31 00:08:31 +00:00
sput-object v0, Lcom/airbnb/lottie/l;->hf:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public constructor <init>(Ljava/util/concurrent/Callable;)V
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lcom/airbnb/lottie/k<",
"TT;>;>;)V"
}
.end annotation
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lcom/airbnb/lottie/l;-><init>(Ljava/util/concurrent/Callable;B)V
return-void
.end method
.method private constructor <init>(Ljava/util/concurrent/Callable;B)V
.locals 1
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Callable<",
"Lcom/airbnb/lottie/k<",
"TT;>;>;B)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance p2, Ljava/util/LinkedHashSet;
const/4 v0, 0x1
invoke-direct {p2, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
2019-07-31 00:08:31 +00:00
iput-object p2, p0, Lcom/airbnb/lottie/l;->hg:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
new-instance p2, Ljava/util/LinkedHashSet;
invoke-direct {p2, v0}, Ljava/util/LinkedHashSet;-><init>(I)V
2019-07-31 00:08:31 +00:00
iput-object p2, p0, Lcom/airbnb/lottie/l;->hh:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
new-instance p2, Landroid/os/Handler;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v0
invoke-direct {p2, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object p2, p0, Lcom/airbnb/lottie/l;->handler:Landroid/os/Handler;
const/4 p2, 0x0
2019-07-31 00:08:31 +00:00
iput-object p2, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
2019-07-31 00:08:31 +00:00
sget-object p2, Lcom/airbnb/lottie/l;->hf:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
new-instance v0, Lcom/airbnb/lottie/l$a;
invoke-direct {v0, p0, p1}, Lcom/airbnb/lottie/l$a;-><init>(Lcom/airbnb/lottie/l;Ljava/util/concurrent/Callable;)V
invoke-interface {p2, v0}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
return-void
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;)Lcom/airbnb/lottie/k;
.locals 0
2019-07-31 00:08:31 +00:00
iget-object p0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
return-object p0
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;Lcom/airbnb/lottie/k;)V
.locals 1
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_0
2019-07-31 00:08:31 +00:00
iput-object p1, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
iget-object p1, p0, Lcom/airbnb/lottie/l;->handler:Landroid/os/Handler;
new-instance v0, Lcom/airbnb/lottie/l$1;
invoke-direct {v0, p0}, Lcom/airbnb/lottie/l$1;-><init>(Lcom/airbnb/lottie/l;)V
invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
return-void
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "A task may only be set once."
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;Ljava/lang/Object;)V
.locals 0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/l;->q(Ljava/lang/Object;)V
return-void
.end method
.method static synthetic a(Lcom/airbnb/lottie/l;Ljava/lang/Throwable;)V
.locals 0
invoke-direct {p0, p1}, Lcom/airbnb/lottie/l;->a(Ljava/lang/Throwable;)V
return-void
.end method
.method private declared-synchronized a(Ljava/lang/Throwable;)V
.locals 2
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
2019-07-31 00:08:31 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/l;->hh:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_0
const-string v0, "Lottie encountered an error but no failure listener was added:"
invoke-static {v0, p1}, Lcom/airbnb/lottie/f/d;->b(Ljava/lang/String;Ljava/lang/Throwable;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:cond_0
:try_start_1
invoke-interface {v0}, Ljava/util/List;->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_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/airbnb/lottie/h;
invoke-interface {v1, p1}, Lcom/airbnb/lottie/h;->p(Ljava/lang/Object;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_1
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
goto :goto_2
:goto_1
throw p1
:goto_2
goto :goto_1
.end method
.method private declared-synchronized q(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
monitor-enter p0
:try_start_0
new-instance v0, Ljava/util/ArrayList;
2019-07-31 00:08:31 +00:00
iget-object v1, p0, Lcom/airbnb/lottie/l;->hg:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-interface {v0}, Ljava/util/List;->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, Lcom/airbnb/lottie/h;
invoke-interface {v1, p1}, Lcom/airbnb/lottie/h;->p(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:cond_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
goto :goto_2
:goto_1
throw p1
:goto_2
goto :goto_1
.end method
# virtual methods
.method public final declared-synchronized a(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"TT;>;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/k;->value:Ljava/lang/Object;
invoke-interface {p1, v0}, Lcom/airbnb/lottie/h;->p(Ljava/lang/Object;)V
:cond_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hg:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized b(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"TT;>;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hg:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized c(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"Ljava/lang/Throwable;",
">;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/k;->exception:Ljava/lang/Throwable;
if-eqz v0, :cond_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hi:Lcom/airbnb/lottie/k;
2019-07-24 11:27:29 +00:00
iget-object v0, v0, Lcom/airbnb/lottie/k;->exception:Ljava/lang/Throwable;
invoke-interface {p1, v0}, Lcom/airbnb/lottie/h;->p(Ljava/lang/Object;)V
:cond_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hh:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final declared-synchronized d(Lcom/airbnb/lottie/h;)Lcom/airbnb/lottie/l;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/airbnb/lottie/h<",
"Ljava/lang/Throwable;",
">;)",
"Lcom/airbnb/lottie/l<",
"TT;>;"
}
.end annotation
monitor-enter p0
:try_start_0
2019-07-31 00:08:31 +00:00
iget-object v0, p0, Lcom/airbnb/lottie/l;->hh:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p0
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method