Rabbit-R1/original r1/smali/smali_classes2/androidx/work/Constraints$Builder.smali
2024-05-21 17:08:36 -04:00

387 lines
13 KiB
Smali

.class public final Landroidx/work/Constraints$Builder;
.super Ljava/lang/Object;
.source "Constraints.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/work/Constraints;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000J\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010#\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0010\t\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\n\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0018\u00002\u00020\u0001B\u0007\u0008\u0016\u00a2\u0006\u0002\u0010\u0002B\u000f\u0008\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0002\u0010\u0005J\u0018\u0010\u0013\u001a\u00020\u00002\u0006\u0010\u0014\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u000cH\u0007J\u0006\u0010\u0017\u001a\u00020\u0004J\u000e\u0010\u0018\u001a\u00020\u00002\u0006\u0010\u0019\u001a\u00020\nJ\u000e\u0010\u001a\u001a\u00020\u00002\u0006\u0010\u000b\u001a\u00020\u000cJ\u000e\u0010\u001b\u001a\u00020\u00002\u0006\u0010\r\u001a\u00020\u000cJ\u0010\u0010\u001c\u001a\u00020\u00002\u0006\u0010\u000e\u001a\u00020\u000cH\u0007J\u000e\u0010\u001d\u001a\u00020\u00002\u0006\u0010\u000f\u001a\u00020\u000cJ\u0010\u0010\u001e\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020 H\u0007J\u0018\u0010\u001e\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020\u00112\u0006\u0010!\u001a\u00020\"H\u0007J\u0010\u0010#\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020 H\u0007J\u0018\u0010#\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020\u00112\u0006\u0010!\u001a\u00020\"H\u0007R\u0014\u0010\u0006\u001a\u0008\u0012\u0004\u0012\u00020\u00080\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u000cX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u000cX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u000cX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u000cX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0012\u001a\u00020\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006$"
}
d2 = {
"Landroidx/work/Constraints$Builder;",
"",
"()V",
"constraints",
"Landroidx/work/Constraints;",
"(Landroidx/work/Constraints;)V",
"contentUriTriggers",
"",
"Landroidx/work/Constraints$ContentUriTrigger;",
"requiredNetworkType",
"Landroidx/work/NetworkType;",
"requiresBatteryNotLow",
"",
"requiresCharging",
"requiresDeviceIdle",
"requiresStorageNotLow",
"triggerContentMaxDelay",
"",
"triggerContentUpdateDelay",
"addContentUriTrigger",
"uri",
"Landroid/net/Uri;",
"triggerForDescendants",
"build",
"setRequiredNetworkType",
"networkType",
"setRequiresBatteryNotLow",
"setRequiresCharging",
"setRequiresDeviceIdle",
"setRequiresStorageNotLow",
"setTriggerContentMaxDelay",
"duration",
"Ljava/time/Duration;",
"timeUnit",
"Ljava/util/concurrent/TimeUnit;",
"setTriggerContentUpdateDelay",
"work-runtime_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field private contentUriTriggers:Ljava/util/Set;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Landroidx/work/Constraints$ContentUriTrigger;",
">;"
}
.end annotation
.end field
.field private requiredNetworkType:Landroidx/work/NetworkType;
.field private requiresBatteryNotLow:Z
.field private requiresCharging:Z
.field private requiresDeviceIdle:Z
.field private requiresStorageNotLow:Z
.field private triggerContentMaxDelay:J
.field private triggerContentUpdateDelay:J
# direct methods
.method public constructor <init>()V
.locals 2
.line 305
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 297
sget-object v0, Landroidx/work/NetworkType;->NOT_REQUIRED:Landroidx/work/NetworkType;
iput-object v0, p0, Landroidx/work/Constraints$Builder;->requiredNetworkType:Landroidx/work/NetworkType;
const-wide/16 v0, -0x1
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentUpdateDelay:J
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentMaxDelay:J
.line 303
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
check-cast v0, Ljava/util/Set;
iput-object v0, p0, Landroidx/work/Constraints$Builder;->contentUriTriggers:Ljava/util/Set;
return-void
.end method
.method public constructor <init>(Landroidx/work/Constraints;)V
.locals 2
const-string v0, "constraints"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 312
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 297
sget-object v0, Landroidx/work/NetworkType;->NOT_REQUIRED:Landroidx/work/NetworkType;
iput-object v0, p0, Landroidx/work/Constraints$Builder;->requiredNetworkType:Landroidx/work/NetworkType;
const-wide/16 v0, -0x1
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentUpdateDelay:J
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentMaxDelay:J
.line 303
new-instance v0, Ljava/util/LinkedHashSet;
invoke-direct {v0}, Ljava/util/LinkedHashSet;-><init>()V
check-cast v0, Ljava/util/Set;
iput-object v0, p0, Landroidx/work/Constraints$Builder;->contentUriTriggers:Ljava/util/Set;
.line 313
invoke-virtual {p1}, Landroidx/work/Constraints;->requiresCharging()Z
move-result v0
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->requiresCharging:Z
.line 314
invoke-virtual {p1}, Landroidx/work/Constraints;->requiresDeviceIdle()Z
move-result v0
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->requiresDeviceIdle:Z
.line 315
invoke-virtual {p1}, Landroidx/work/Constraints;->getRequiredNetworkType()Landroidx/work/NetworkType;
move-result-object v0
iput-object v0, p0, Landroidx/work/Constraints$Builder;->requiredNetworkType:Landroidx/work/NetworkType;
.line 316
invoke-virtual {p1}, Landroidx/work/Constraints;->requiresBatteryNotLow()Z
move-result v0
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->requiresBatteryNotLow:Z
.line 317
invoke-virtual {p1}, Landroidx/work/Constraints;->requiresStorageNotLow()Z
move-result v0
iput-boolean v0, p0, Landroidx/work/Constraints$Builder;->requiresStorageNotLow:Z
.line 319
invoke-virtual {p1}, Landroidx/work/Constraints;->getContentTriggerUpdateDelayMillis()J
move-result-wide v0
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentUpdateDelay:J
.line 320
invoke-virtual {p1}, Landroidx/work/Constraints;->getContentTriggerMaxDelayMillis()J
move-result-wide v0
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentMaxDelay:J
.line 321
invoke-virtual {p1}, Landroidx/work/Constraints;->getContentUriTriggers()Ljava/util/Set;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
invoke-static {p1}, Lkotlin/collections/CollectionsKt;->toMutableSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object p1
iput-object p1, p0, Landroidx/work/Constraints$Builder;->contentUriTriggers:Ljava/util/Set;
return-void
.end method
# virtual methods
.method public final addContentUriTrigger(Landroid/net/Uri;Z)Landroidx/work/Constraints$Builder;
.locals 2
const-string v0, "uri"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Landroidx/work/Constraints$Builder;->contentUriTriggers:Ljava/util/Set;
.line 401
new-instance v1, Landroidx/work/Constraints$ContentUriTrigger;
invoke-direct {v1, p1, p2}, Landroidx/work/Constraints$ContentUriTrigger;-><init>(Landroid/net/Uri;Z)V
invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public final build()Landroidx/work/Constraints;
.locals 12
iget-object v0, p0, Landroidx/work/Constraints$Builder;->contentUriTriggers:Ljava/util/Set;
.line 479
check-cast v0, Ljava/lang/Iterable;
invoke-static {v0}, Lkotlin/collections/CollectionsKt;->toSet(Ljava/lang/Iterable;)Ljava/util/Set;
move-result-object v11
iget-wide v7, p0, Landroidx/work/Constraints$Builder;->triggerContentUpdateDelay:J
iget-wide v9, p0, Landroidx/work/Constraints$Builder;->triggerContentMaxDelay:J
iget-boolean v3, p0, Landroidx/work/Constraints$Builder;->requiresCharging:Z
iget-boolean v4, p0, Landroidx/work/Constraints$Builder;->requiresDeviceIdle:Z
iget-object v2, p0, Landroidx/work/Constraints$Builder;->requiredNetworkType:Landroidx/work/NetworkType;
iget-boolean v5, p0, Landroidx/work/Constraints$Builder;->requiresBatteryNotLow:Z
iget-boolean v6, p0, Landroidx/work/Constraints$Builder;->requiresStorageNotLow:Z
.line 489
new-instance p0, Landroidx/work/Constraints;
move-object v1, p0
invoke-direct/range {v1 .. v11}, Landroidx/work/Constraints;-><init>(Landroidx/work/NetworkType;ZZZZJJLjava/util/Set;)V
return-object p0
.end method
.method public final setRequiredNetworkType(Landroidx/work/NetworkType;)Landroidx/work/Constraints$Builder;
.locals 1
const-string v0, "networkType"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Landroidx/work/Constraints$Builder;->requiredNetworkType:Landroidx/work/NetworkType;
return-object p0
.end method
.method public final setRequiresBatteryNotLow(Z)Landroidx/work/Constraints$Builder;
.locals 0
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->requiresBatteryNotLow:Z
return-object p0
.end method
.method public final setRequiresCharging(Z)Landroidx/work/Constraints$Builder;
.locals 0
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->requiresCharging:Z
return-object p0
.end method
.method public final setRequiresDeviceIdle(Z)Landroidx/work/Constraints$Builder;
.locals 0
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->requiresDeviceIdle:Z
return-object p0
.end method
.method public final setRequiresStorageNotLow(Z)Landroidx/work/Constraints$Builder;
.locals 0
iput-boolean p1, p0, Landroidx/work/Constraints$Builder;->requiresStorageNotLow:Z
return-object p0
.end method
.method public final setTriggerContentMaxDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
.locals 1
const-string v0, "timeUnit"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 450
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p1
iput-wide p1, p0, Landroidx/work/Constraints$Builder;->triggerContentMaxDelay:J
return-object p0
.end method
.method public final setTriggerContentMaxDelay(Ljava/time/Duration;)Landroidx/work/Constraints$Builder;
.locals 2
const-string v0, "duration"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 465
invoke-static {p1}, Landroidx/work/impl/utils/DurationApi26Impl;->toMillisCompat(Ljava/time/Duration;)J
move-result-wide v0
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentMaxDelay:J
return-object p0
.end method
.method public final setTriggerContentUpdateDelay(JLjava/util/concurrent/TimeUnit;)Landroidx/work/Constraints$Builder;
.locals 1
const-string v0, "timeUnit"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 418
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J
move-result-wide p1
iput-wide p1, p0, Landroidx/work/Constraints$Builder;->triggerContentUpdateDelay:J
return-object p0
.end method
.method public final setTriggerContentUpdateDelay(Ljava/time/Duration;)Landroidx/work/Constraints$Builder;
.locals 2
const-string v0, "duration"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 434
invoke-static {p1}, Landroidx/work/impl/utils/DurationApi26Impl;->toMillisCompat(Ljava/time/Duration;)J
move-result-wide v0
iput-wide v0, p0, Landroidx/work/Constraints$Builder;->triggerContentUpdateDelay:J
return-object p0
.end method