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

163 lines
4 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Landroidx/work/Configuration$Builder;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Configuration.java"
2019-02-04 20:08:30 +00:00
# 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 mExecutor:Ljava/util/concurrent/Executor;
.field mLoggingLevel:I
.field mMaxJobSchedulerId:I
.field mMaxSchedulerLimit:I
.field mMinJobSchedulerId:I
.field 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
# virtual methods
.method public final 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 final 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
.method public final 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 final 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 final 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
.method public final 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