79 lines
2.1 KiB
Smali
79 lines
2.1 KiB
Smali
.class public Lf/c/a/f2/g;
|
|
.super Ljava/lang/Object;
|
|
.source "ThreadFactoryWrapper.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/concurrent/ThreadFactory;
|
|
|
|
|
|
# instance fields
|
|
.field public d:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lf/c/a/f2/g;->d:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
|
.locals 2
|
|
|
|
invoke-static {}, Ljava/util/concurrent/Executors;->defaultThreadFactory()Ljava/util/concurrent/ThreadFactory;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/ThreadFactory;->newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 v0, 0x9
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setPriority(I)V
|
|
|
|
const-string v0, "Adjust-"
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "-"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lf/c/a/f2/g;->d:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setDaemon(Z)V
|
|
|
|
new-instance v0, Lf/c/a/f2/g$a;
|
|
|
|
invoke-direct {v0, p0}, Lf/c/a/f2/g$a;-><init>(Lf/c/a/f2/g;)V
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setUncaughtExceptionHandler(Ljava/lang/Thread$UncaughtExceptionHandler;)V
|
|
|
|
return-object p1
|
|
.end method
|