75 lines
1.7 KiB
Smali
75 lines
1.7 KiB
Smali
.class public abstract Lokhttp3/internal/b;
|
|
.super Ljava/lang/Object;
|
|
.source "NamedRunnable.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field protected final name:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public varargs constructor <init>(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {p1, p2}, Lokhttp3/internal/c;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/b;->name:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected abstract execute()V
|
|
.end method
|
|
|
|
.method public final run()V
|
|
.locals 3
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/b;->name:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
|
|
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lokhttp3/internal/b;->execute()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
.end method
|