146 lines
4.1 KiB
Smali
146 lines
4.1 KiB
Smali
.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
|
|
.field mContentUriTriggers:Landroidx/work/ContentUriTriggers;
|
|
|
|
.field mRequiredNetworkType:Landroidx/work/NetworkType;
|
|
|
|
.field mRequiresBatteryNotLow:Z
|
|
|
|
.field mRequiresCharging:Z
|
|
|
|
.field mRequiresDeviceIdle:Z
|
|
|
|
.field mRequiresStorageNotLow:Z
|
|
|
|
|
|
# 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
|
|
|
|
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
|
|
.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
|