81 lines
2.1 KiB
Smali
81 lines
2.1 KiB
Smali
.class public Landroidx/work/impl/utils/WorkTimer$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WorkTimer.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/concurrent/ThreadFactory;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/work/impl/utils/WorkTimer;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mThreadsCreated:I
|
|
|
|
.field public final synthetic this$0:Landroidx/work/impl/utils/WorkTimer;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/work/impl/utils/WorkTimer;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/work/impl/utils/WorkTimer$1;->this$0:Landroidx/work/impl/utils/WorkTimer;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput p1, p0, Landroidx/work/impl/utils/WorkTimer$1;->mThreadsCreated:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
|
|
.locals 2
|
|
.param p1 # Ljava/lang/Runnable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
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-string v0, "WorkManager-WorkTimer-thread-"
|
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Landroidx/work/impl/utils/WorkTimer$1;->mThreadsCreated:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)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
|
|
|
|
iget v0, p0, Landroidx/work/impl/utils/WorkTimer$1;->mThreadsCreated:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Landroidx/work/impl/utils/WorkTimer$1;->mThreadsCreated:I
|
|
|
|
return-object p1
|
|
.end method
|