Timber.smali
.class public final Lcom/kwai/video/hodor/util/Timber;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/kwai/video/hodor/util/Timber$DebugTree;,
Lcom/kwai/video/hodor/util/Timber$Tree;
}
.end annotation
# static fields
.field private static final FOREST:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/kwai/video/hodor/util/Timber$Tree;",
">;"
}
.end annotation
.end field
.field private static final TREE_ARRAY_EMPTY:[Lcom/kwai/video/hodor/util/Timber$Tree;
.field private static final TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
.field static volatile forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
# direct methods
.method static constructor <clinit>()V
.registers 1
const/4 v0, 0x0
new-array v0, v0, [Lcom/kwai/video/hodor/util/Timber$Tree;
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_ARRAY_EMPTY:[Lcom/kwai/video/hodor/util/Timber$Tree;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_ARRAY_EMPTY:[Lcom/kwai/video/hodor/util/Timber$Tree;
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
new-instance v0, Lcom/kwai/video/hodor/util/Timber$1;
invoke-direct {v0}, Lcom/kwai/video/hodor/util/Timber$1;-><init>()V
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
return-void
.end method
.method private constructor <init>()V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/lang/AssertionError;
const-string v1, "No instances."
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw v0
.end method
.method public static asTree()Lcom/kwai/video/hodor/util/Timber$Tree;
.registers 1
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
return-object v0
.end method
.method public static varargs d(Ljava/lang/String;[Ljava/lang/Object;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->d(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static d(Ljava/lang/Throwable;)V
.registers 2
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0}, Lcom/kwai/video/hodor/util/Timber$Tree;->d(Ljava/lang/Throwable;)V
return-void
.end method
.method public static varargs d(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->d(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs e(Ljava/lang/String;[Ljava/lang/Object;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->e(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static e(Ljava/lang/Throwable;)V
.registers 2
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0}, Lcom/kwai/video/hodor/util/Timber$Tree;->e(Ljava/lang/Throwable;)V
return-void
.end method
.method public static varargs e(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->e(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static forest()Ljava/util/List;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List",
"<",
"Lcom/kwai/video/hodor/util/Timber$Tree;",
">;"
}
.end annotation
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
monitor-enter v1
:try_start_3
new-instance v0, Ljava/util/ArrayList;
sget-object v2, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
monitor-exit v1
return-object v0
:catchall_10
move-exception v0
monitor-exit v1
:try_end_12
.catchall {:try_start_3 .. :try_end_12} :catchall_10
throw v0
.end method
.method public static varargs i(Ljava/lang/String;[Ljava/lang/Object;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->i(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static i(Ljava/lang/Throwable;)V
.registers 2
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0}, Lcom/kwai/video/hodor/util/Timber$Tree;->i(Ljava/lang/Throwable;)V
return-void
.end method
.method public static varargs i(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->i(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs log(ILjava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->log(ILjava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static log(ILjava/lang/Throwable;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->log(ILjava/lang/Throwable;)V
return-void
.end method
.method public static varargs log(ILjava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 5
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2, p3}, Lcom/kwai/video/hodor/util/Timber$Tree;->log(ILjava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static plant(Lcom/kwai/video/hodor/util/Timber$Tree;)V
.registers 4
if-nez p0, :cond_a
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "tree == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_a
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
if-ne p0, v0, :cond_16
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Cannot plant Timber into itself."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_16
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
monitor-enter v1
:try_start_19
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
sget-object v2, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
new-array v2, v2, [Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-interface {v0, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/kwai/video/hodor/util/Timber$Tree;
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
monitor-exit v1
return-void
:catchall_32
move-exception v0
monitor-exit v1
:try_end_34
.catchall {:try_start_19 .. :try_end_34} :catchall_32
throw v0
.end method
.method public static varargs plant([Lcom/kwai/video/hodor/util/Timber$Tree;)V
.registers 5
if-nez p0, :cond_a
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "trees == null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_a
array-length v1, p0
const/4 v0, 0x0
:goto_c
if-ge v0, v1, :cond_29
aget-object v2, p0, v0
if-nez v2, :cond_1a
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "trees contains null"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1a
sget-object v3, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
if-ne v2, v3, :cond_26
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Cannot plant Timber into itself."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_26
add-int/lit8 v0, v0, 0x1
goto :goto_c
:cond_29
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
monitor-enter v1
:try_start_2c
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-static {v0, p0}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
sget-object v2, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
new-array v2, v2, [Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-interface {v0, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/kwai/video/hodor/util/Timber$Tree;
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
monitor-exit v1
return-void
:catchall_45
move-exception v0
monitor-exit v1
:try_end_47
.catchall {:try_start_2c .. :try_end_47} :catchall_45
throw v0
.end method
.method public static tag(Ljava/lang/String;)Lcom/kwai/video/hodor/util/Timber$Tree;
.registers 5
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
array-length v2, v1
const/4 v0, 0x0
:goto_4
if-ge v0, v2, :cond_10
aget-object v3, v1, v0
iget-object v3, v3, Lcom/kwai/video/hodor/util/Timber$Tree;->explicitTag:Ljava/lang/ThreadLocal;
invoke-virtual {v3, p0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
add-int/lit8 v0, v0, 0x1
goto :goto_4
:cond_10
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
return-object v0
.end method
.method public static treeCount()I
.registers 2
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
monitor-exit v1
return v0
:catchall_b
move-exception v0
monitor-exit v1
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_b
throw v0
.end method
.method public static uproot(Lcom/kwai/video/hodor/util/Timber$Tree;)V
.registers 5
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v0, p0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_27
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Cannot uproot tree which is not planted: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v0, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:catchall_24
move-exception v0
monitor-exit v1
:try_end_26
.catchall {:try_start_3 .. :try_end_26} :catchall_24
throw v0
:cond_27
:try_start_27
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
sget-object v2, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
new-array v2, v2, [Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-interface {v0, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/kwai/video/hodor/util/Timber$Tree;
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
monitor-exit v1
:try_end_3a
.catchall {:try_start_27 .. :try_end_3a} :catchall_24
return-void
.end method
.method public static uprootAll()V
.registers 2
sget-object v1, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->FOREST:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_ARRAY_EMPTY:[Lcom/kwai/video/hodor/util/Timber$Tree;
sput-object v0, Lcom/kwai/video/hodor/util/Timber;->forestAsArray:[Lcom/kwai/video/hodor/util/Timber$Tree;
monitor-exit v1
return-void
:catchall_e
move-exception v0
monitor-exit v1
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_e
throw v0
.end method
.method public static varargs v(Ljava/lang/String;[Ljava/lang/Object;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->v(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static v(Ljava/lang/Throwable;)V
.registers 2
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0}, Lcom/kwai/video/hodor/util/Timber$Tree;->v(Ljava/lang/Throwable;)V
return-void
.end method
.method public static varargs v(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->v(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs w(Ljava/lang/String;[Ljava/lang/Object;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->w(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static w(Ljava/lang/Throwable;)V
.registers 2
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0}, Lcom/kwai/video/hodor/util/Timber$Tree;->w(Ljava/lang/Throwable;)V
return-void
.end method
.method public static varargs w(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->w(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static varargs wtf(Ljava/lang/String;[Ljava/lang/Object;)V
.registers 3
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1}, Lcom/kwai/video/hodor/util/Timber$Tree;->wtf(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public static wtf(Ljava/lang/Throwable;)V
.registers 2
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0}, Lcom/kwai/video/hodor/util/Timber$Tree;->wtf(Ljava/lang/Throwable;)V
return-void
.end method
.method public static varargs wtf(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
.registers 4
sget-object v0, Lcom/kwai/video/hodor/util/Timber;->TREE_OF_SOULS:Lcom/kwai/video/hodor/util/Timber$Tree;
invoke-virtual {v0, p0, p1, p2}, Lcom/kwai/video/hodor/util/Timber$Tree;->wtf(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method