apkfuckery/com.discord/smali/androidx/work/Configuration$Builder.smali

264 lines
7.8 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Landroidx/work/Configuration$Builder;
.super Ljava/lang/Object;
.source "Configuration.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/Configuration;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field public mExecutor:Ljava/util/concurrent/Executor;
2020-07-08 16:44:49 +00:00
.field public mInputMergerFactory:Landroidx/work/InputMergerFactory;
2020-05-17 12:40:10 +00:00
.field public mLoggingLevel:I
.field public mMaxJobSchedulerId:I
.field public mMaxSchedulerLimit:I
.field public mMinJobSchedulerId:I
2020-09-09 19:21:20 +00:00
.field public mRunnableScheduler:Landroidx/work/RunnableScheduler;
2020-05-17 12:40:10 +00:00
.field public mTaskExecutor:Ljava/util/concurrent/Executor;
.field public mWorkerFactory:Landroidx/work/WorkerFactory;
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x4
iput v0, p0, Landroidx/work/Configuration$Builder;->mLoggingLevel:I
const/4 v0, 0x0
iput v0, p0, Landroidx/work/Configuration$Builder;->mMinJobSchedulerId:I
const v0, 0x7fffffff
iput v0, p0, Landroidx/work/Configuration$Builder;->mMaxJobSchedulerId:I
const/16 v0, 0x14
iput v0, p0, Landroidx/work/Configuration$Builder;->mMaxSchedulerLimit:I
return-void
.end method
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Landroidx/work/Configuration;)V
.locals 1
.param p1 # Landroidx/work/Configuration;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget-object v0, p1, Landroidx/work/Configuration;->mExecutor:Ljava/util/concurrent/Executor;
iput-object v0, p0, Landroidx/work/Configuration$Builder;->mExecutor:Ljava/util/concurrent/Executor;
iget-object v0, p1, Landroidx/work/Configuration;->mWorkerFactory:Landroidx/work/WorkerFactory;
iput-object v0, p0, Landroidx/work/Configuration$Builder;->mWorkerFactory:Landroidx/work/WorkerFactory;
iget-object v0, p1, Landroidx/work/Configuration;->mInputMergerFactory:Landroidx/work/InputMergerFactory;
iput-object v0, p0, Landroidx/work/Configuration$Builder;->mInputMergerFactory:Landroidx/work/InputMergerFactory;
iget-object v0, p1, Landroidx/work/Configuration;->mTaskExecutor:Ljava/util/concurrent/Executor;
iput-object v0, p0, Landroidx/work/Configuration$Builder;->mTaskExecutor:Ljava/util/concurrent/Executor;
iget v0, p1, Landroidx/work/Configuration;->mLoggingLevel:I
iput v0, p0, Landroidx/work/Configuration$Builder;->mLoggingLevel:I
iget v0, p1, Landroidx/work/Configuration;->mMinJobSchedulerId:I
iput v0, p0, Landroidx/work/Configuration$Builder;->mMinJobSchedulerId:I
iget v0, p1, Landroidx/work/Configuration;->mMaxJobSchedulerId:I
iput v0, p0, Landroidx/work/Configuration$Builder;->mMaxJobSchedulerId:I
2020-09-09 19:21:20 +00:00
iget v0, p1, Landroidx/work/Configuration;->mMaxSchedulerLimit:I
2020-07-08 16:44:49 +00:00
2020-09-09 19:21:20 +00:00
iput v0, p0, Landroidx/work/Configuration$Builder;->mMaxSchedulerLimit:I
iget-object p1, p1, Landroidx/work/Configuration;->mRunnableScheduler:Landroidx/work/RunnableScheduler;
iput-object p1, p0, Landroidx/work/Configuration$Builder;->mRunnableScheduler:Landroidx/work/RunnableScheduler;
2020-07-08 16:44:49 +00:00
return-void
.end method
2020-05-17 12:40:10 +00:00
# virtual methods
.method public build()Landroidx/work/Configuration;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroidx/work/Configuration;
invoke-direct {v0, p0}, Landroidx/work/Configuration;-><init>(Landroidx/work/Configuration$Builder;)V
return-object v0
.end method
.method public setExecutor(Ljava/util/concurrent/Executor;)Landroidx/work/Configuration$Builder;
.locals 0
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/work/Configuration$Builder;->mExecutor:Ljava/util/concurrent/Executor;
return-object p0
.end method
2020-07-08 16:44:49 +00:00
.method public setInputMergerFactory(Landroidx/work/InputMergerFactory;)Landroidx/work/Configuration$Builder;
.locals 0
.param p1 # Landroidx/work/InputMergerFactory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/work/Configuration$Builder;->mInputMergerFactory:Landroidx/work/InputMergerFactory;
return-object p0
.end method
2020-05-17 12:40:10 +00:00
.method public setJobSchedulerJobIdRange(II)Landroidx/work/Configuration$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
sub-int v0, p2, p1
const/16 v1, 0x3e8
if-lt v0, v1, :cond_0
iput p1, p0, Landroidx/work/Configuration$Builder;->mMinJobSchedulerId:I
iput p2, p0, Landroidx/work/Configuration$Builder;->mMaxJobSchedulerId:I
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "WorkManager needs a range of at least 1000 job ids."
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setMaxSchedulerLimit(I)Landroidx/work/Configuration$Builder;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const/16 v0, 0x14
if-lt p1, v0, :cond_0
const/16 v0, 0x32
invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I
move-result p1
iput p1, p0, Landroidx/work/Configuration$Builder;->mMaxSchedulerLimit:I
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "WorkManager needs to be able to schedule at least 20 jobs in JobScheduler."
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public setMinimumLoggingLevel(I)Landroidx/work/Configuration$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput p1, p0, Landroidx/work/Configuration$Builder;->mLoggingLevel:I
return-object p0
.end method
2020-09-09 19:21:20 +00:00
.method public setRunnableScheduler(Landroidx/work/RunnableScheduler;)Landroidx/work/Configuration$Builder;
.locals 0
.param p1 # Landroidx/work/RunnableScheduler;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/work/Configuration$Builder;->mRunnableScheduler:Landroidx/work/RunnableScheduler;
return-object p0
.end method
2020-05-17 12:40:10 +00:00
.method public setTaskExecutor(Ljava/util/concurrent/Executor;)Landroidx/work/Configuration$Builder;
.locals 0
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/work/Configuration$Builder;->mTaskExecutor:Ljava/util/concurrent/Executor;
return-object p0
.end method
.method public setWorkerFactory(Landroidx/work/WorkerFactory;)Landroidx/work/Configuration$Builder;
.locals 0
.param p1 # Landroidx/work/WorkerFactory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/work/Configuration$Builder;->mWorkerFactory:Landroidx/work/WorkerFactory;
return-object p0
.end method