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

241 lines
6.8 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Landroidx/work/Constraints$Builder;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Constraints.java"
2019-02-04 20:08:30 +00:00
# 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
.field mContentUriTriggers:Landroidx/work/ContentUriTriggers;
.field mRequiredNetworkType:Landroidx/work/NetworkType;
.field mRequiresBatteryNotLow:Z
.field mRequiresCharging:Z
.field mRequiresDeviceIdle:Z
.field mRequiresStorageNotLow:Z
2019-02-04 20:32:01 +00:00
.field mTriggerContentMaxDelay:J
.field mTriggerContentUpdateDelay:J
2019-02-04 20:08:30 +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
2019-02-04 20:32:01 +00:00
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
2019-02-04 20:08:30 +00:00
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
.method public final addContentUriTrigger(Landroid/net/Uri;Z)Landroidx/work/Constraints$Builder;
.locals 1
2019-02-04 20:32:01 +00:00
.param p1 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
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
.method public final build()Landroidx/work/Constraints;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
new-instance v0, Landroidx/work/Constraints;
invoke-direct {v0, p0}, Landroidx/work/Constraints;-><init>(Landroidx/work/Constraints$Builder;)V
return-object v0
.end method
.method public final setRequiredNetworkType(Landroidx/work/NetworkType;)Landroidx/work/Constraints$Builder;
.locals 0
.param p1 # Landroidx/work/NetworkType;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-object p1, p0, Landroidx/work/Constraints$Builder;->mRequiredNetworkType:Landroidx/work/NetworkType;
return-object p0
.end method
.method public final setRequiresBatteryNotLow(Z)Landroidx/work/Constraints$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresBatteryNotLow:Z
return-object p0
.end method
.method public final setRequiresCharging(Z)Landroidx/work/Constraints$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresCharging:Z
return-object p0
.end method
.method public final setRequiresDeviceIdle(Z)Landroidx/work/Constraints$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x17
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresDeviceIdle:Z
return-object p0
.end method
.method public final setRequiresStorageNotLow(Z)Landroidx/work/Constraints$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->mRequiresStorageNotLow:Z
return-object p0
.end method
2019-02-04 20:32:01 +00:00
.method public final setTriggerContentMaxDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
.locals 0
.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
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
.method public final setTriggerContentMaxDelay(Ljava/time/Duration;)Landroidx/work/Constraints$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1a
.end annotation
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
.method public final setTriggerContentUpdateDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
.locals 0
.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
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
.method public final setTriggerContentUpdateDelay(Ljava/time/Duration;)Landroidx/work/Constraints$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1a
.end annotation
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