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

241 lines
6.8 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Landroidx/work/Constraints$Builder;
.super Ljava/lang/Object;
.source "Constraints.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/Constraints;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mContentUriTriggers:Landroidx/work/ContentUriTriggers;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRequiredNetworkType:Landroidx/work/NetworkType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRequiresBatteryNotLow:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRequiresCharging:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRequiresDeviceIdle:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRequiresStorageNotLow:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTriggerContentMaxDelay:J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTriggerContentUpdateDelay:J
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->mRequiresCharging:Z
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->mRequiresDeviceIdle:Z
sget-object v1, Landroidx/work/NetworkType;->NOT_REQUIRED:Landroidx/work/NetworkType;
iput-object v1, p0, Landroidx/work/Constraints$Builder;->mRequiredNetworkType:Landroidx/work/NetworkType;
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->mRequiresBatteryNotLow:Z
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->mRequiresStorageNotLow:Z
const-wide/16 v0, -0x1
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->mTriggerContentUpdateDelay:J
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->mTriggerContentMaxDelay:J
new-instance v0, Landroidx/work/ContentUriTriggers;
invoke-direct {v0}, Landroidx/work/ContentUriTriggers;-><init>()V
iput-object v0, p0, Landroidx/work/Constraints$Builder;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
return-void
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public addContentUriTrigger(Landroid/net/Uri;Z)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/work/Constraints$Builder;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
invoke-virtual {v0, p1, p2}, Landroidx/work/ContentUriTriggers;->add(Landroid/net/Uri;Z)V
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public build()Landroidx/work/Constraints;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/work/Constraints;
invoke-direct {v0, p0}, Landroidx/work/Constraints;-><init>(Landroidx/work/Constraints$Builder;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public setRequiredNetworkType(Landroidx/work/NetworkType;)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Landroidx/work/NetworkType;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
iput-object p1, p0, Landroidx/work/Constraints$Builder;->mRequiredNetworkType:Landroidx/work/NetworkType;
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setRequiresBatteryNotLow(Z)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresBatteryNotLow:Z
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setRequiresCharging(Z)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresCharging:Z
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setRequiresDeviceIdle(Z)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x17
.end annotation
2019-07-24 11:27:29 +00:00
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresDeviceIdle:Z
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setRequiresStorageNotLow(Z)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresStorageNotLow:Z
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setTriggerContentMaxDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.param p3 # Ljava/util/concurrent/TimeUnit;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
2019-07-24 11:27:29 +00:00
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p1
iput-wide p1, p0, Landroidx/work/Constraints$Builder;->mTriggerContentMaxDelay:J
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setTriggerContentMaxDelay(Ljava/time/Duration;)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 2
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1a
.end annotation
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Ljava/time/Duration;->toMillis()J
move-result-wide v0
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->mTriggerContentMaxDelay:J
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setTriggerContentUpdateDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.param p3 # Ljava/util/concurrent/TimeUnit;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
2019-07-24 11:27:29 +00:00
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p1
iput-wide p1, p0, Landroidx/work/Constraints$Builder;->mTriggerContentUpdateDelay:J
return-object p0
.end method
2019-12-06 03:29:40 +00:00
.method public setTriggerContentUpdateDelay(Ljava/time/Duration;)Landroidx/work/Constraints$Builder;
2019-07-24 11:27:29 +00:00
.locals 2
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1a
.end annotation
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Ljava/time/Duration;->toMillis()J
move-result-wide v0
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->mTriggerContentUpdateDelay:J
return-object p0
.end method