ServerManager.smali
.class public Lcom/facebook/stetho/server/ServerManager;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final THREAD_PREFIX:Ljava/lang/String; = "StethoListener"
# instance fields
.field private final mServer:Lcom/facebook/stetho/server/LocalSocketServer;
.field private volatile mStarted:Z
# direct methods
.method public constructor <init>(Lcom/facebook/stetho/server/LocalSocketServer;)V
.registers 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/facebook/stetho/server/ServerManager;->mServer:Lcom/facebook/stetho/server/LocalSocketServer;
return-void
.end method
.method public static INVOKEVIRTUAL_com_facebook_stetho_server_ServerManager_com_shopee_app_asm_fix_androidx_ThreadFixer_start(Ljava/lang/Thread;)V
.registers 3
.line 1
:try_start_0
invoke-static {}, Lcom/shopee/app/asm/fix/androidx/b;->b()Z
move-result v0
if-eqz v0, :cond_12
.line 2
invoke-static {p0}, Lcom/shopee/app/asm/fix/androidx/b;->a(Ljava/lang/Thread;)V
:try_end_9
.catchall {:try_start_0 .. :try_end_9} :catchall_a
goto :goto_12
:catchall_a
move-exception v0
.line 3
invoke-static {}, Lcom/shopee/app/apm/c;->d()Lcom/shopee/app/apm/nonfatal/a;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/shopee/app/apm/nonfatal/a;->c(Ljava/lang/Throwable;)V
.line 4
:cond_12
:goto_12
invoke-virtual {p0}, Ljava/lang/Thread;->start()V
return-void
.end method
.method private startServer(Lcom/facebook/stetho/server/LocalSocketServer;)V
.registers 5
.line 1
new-instance v0, Lcom/facebook/stetho/server/ServerManager$1;
const-string v1, "StethoListener-"
.line 2
invoke-static {v1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
.line 3
invoke-virtual {p1}, Lcom/facebook/stetho/server/LocalSocketServer;->getName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, p0, v1, p1}, Lcom/facebook/stetho/server/ServerManager$1;-><init>(Lcom/facebook/stetho/server/ServerManager;Ljava/lang/String;Lcom/facebook/stetho/server/LocalSocketServer;)V
.line 4
invoke-static {v0}, Lcom/facebook/stetho/server/ServerManager;->INVOKEVIRTUAL_com_facebook_stetho_server_ServerManager_com_shopee_app_asm_fix_androidx_ThreadFixer_start(Ljava/lang/Thread;)V
return-void
.end method
# virtual methods
.method public start()V
.registers 3
.line 1
iget-boolean v0, p0, Lcom/facebook/stetho/server/ServerManager;->mStarted:Z
if-nez v0, :cond_d
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lcom/facebook/stetho/server/ServerManager;->mStarted:Z
.line 3
iget-object v0, p0, Lcom/facebook/stetho/server/ServerManager;->mServer:Lcom/facebook/stetho/server/LocalSocketServer;
invoke-direct {p0, v0}, Lcom/facebook/stetho/server/ServerManager;->startServer(Lcom/facebook/stetho/server/LocalSocketServer;)V
return-void
.line 4
:cond_d
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Already started"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method