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

512 lines
13 KiB
Smali

.class public final Landroidx/work/Constraints;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/work/Constraints$Builder;
}
.end annotation
# static fields
.field public static final NONE:Landroidx/work/Constraints;
# instance fields
.field private mContentUriTriggers:Landroidx/work/ContentUriTriggers;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/room/ColumnInfo;
name = "content_uri_triggers"
.end annotation
.end field
.field private mRequiredNetworkType:Landroidx/work/NetworkType;
.annotation build Landroidx/room/ColumnInfo;
name = "required_network_type"
.end annotation
.end field
.field private mRequiresBatteryNotLow:Z
.annotation build Landroidx/room/ColumnInfo;
name = "requires_battery_not_low"
.end annotation
.end field
.field private mRequiresCharging:Z
.annotation build Landroidx/room/ColumnInfo;
name = "requires_charging"
.end annotation
.end field
.field private mRequiresDeviceIdle:Z
.annotation build Landroidx/room/ColumnInfo;
name = "requires_device_idle"
.end annotation
.end field
.field private mRequiresStorageNotLow:Z
.annotation build Landroidx/room/ColumnInfo;
name = "requires_storage_not_low"
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Landroidx/work/Constraints$Builder;
invoke-direct {v0}, Landroidx/work/Constraints$Builder;-><init>()V
invoke-virtual {v0}, Landroidx/work/Constraints$Builder;->build()Landroidx/work/Constraints;
move-result-object v0
sput-object v0, Landroidx/work/Constraints;->NONE:Landroidx/work/Constraints;
return-void
.end method
.method public constructor <init>()V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method constructor <init>(Landroidx/work/Constraints$Builder;)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget-boolean v0, p1, Landroidx/work/Constraints$Builder;->mRequiresCharging:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresCharging:Z
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x17
if-lt v0, v1, :cond_0
iget-boolean v0, p1, Landroidx/work/Constraints$Builder;->mRequiresDeviceIdle:Z
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
iget-object v0, p1, Landroidx/work/Constraints$Builder;->mRequiredNetworkType:Landroidx/work/NetworkType;
iput-object v0, p0, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
iget-boolean v0, p1, Landroidx/work/Constraints$Builder;->mRequiresBatteryNotLow:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
iget-boolean v0, p1, Landroidx/work/Constraints$Builder;->mRequiresStorageNotLow:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_1
iget-object p1, p1, Landroidx/work/Constraints$Builder;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
goto :goto_1
:cond_1
new-instance p1, Landroidx/work/ContentUriTriggers;
invoke-direct {p1}, Landroidx/work/ContentUriTriggers;-><init>()V
:goto_1
iput-object p1, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
return-void
.end method
.method public constructor <init>(Landroidx/work/Constraints;)V
.locals 1
.param p1 # Landroidx/work/Constraints;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iget-boolean v0, p1, Landroidx/work/Constraints;->mRequiresCharging:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresCharging:Z
iget-boolean v0, p1, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
iget-object v0, p1, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
iput-object v0, p0, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
iget-boolean v0, p1, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
iget-boolean v0, p1, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
iput-boolean v0, p0, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
iget-object p1, p1, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
iput-object p1, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
return-void
.end method
# virtual methods
.method public final equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
const/4 v1, 0x0
if-eqz p1, :cond_3
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
if-eq v2, v3, :cond_1
goto :goto_1
:cond_1
check-cast p1, Landroidx/work/Constraints;
iget-object v2, p0, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
iget-object v3, p1, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
if-ne v2, v3, :cond_3
iget-boolean v2, p0, Landroidx/work/Constraints;->mRequiresCharging:Z
iget-boolean v3, p1, Landroidx/work/Constraints;->mRequiresCharging:Z
if-ne v2, v3, :cond_3
iget-boolean v2, p0, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
iget-boolean v3, p1, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
if-ne v2, v3, :cond_3
iget-boolean v2, p0, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
iget-boolean v3, p1, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
if-ne v2, v3, :cond_3
iget-boolean v2, p0, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
iget-boolean v3, p1, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
if-ne v2, v3, :cond_3
iget-object v2, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
if-eqz v2, :cond_2
iget-object v2, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
iget-object p1, p1, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
invoke-virtual {v2, p1}, Landroidx/work/ContentUriTriggers;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_3
goto :goto_0
:cond_2
iget-object p1, p1, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
if-nez p1, :cond_3
:goto_0
return v0
:cond_3
:goto_1
return v1
.end method
.method public final getContentUriTriggers()Landroidx/work/ContentUriTriggers;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
iget-object v0, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
return-object v0
.end method
.method public final getRequiredNetworkType()Landroidx/work/NetworkType;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
iget-object v0, p0, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
return-object v0
.end method
.method public final hasContentUriTriggers()Z
.locals 1
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
iget-object v0, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
if-eqz v0, :cond_0
iget-object v0, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
invoke-virtual {v0}, Landroidx/work/ContentUriTriggers;->size()I
move-result v0
if-lez v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public final hashCode()I
.locals 2
iget-object v0, p0, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
invoke-virtual {v0}, Landroidx/work/NetworkType;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Landroidx/work/Constraints;->mRequiresCharging:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-boolean v1, p0, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
if-eqz v1, :cond_0
iget-object v1, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
invoke-virtual {v1}, Landroidx/work/ContentUriTriggers;->hashCode()I
move-result v1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
add-int/2addr v0, v1
return v0
.end method
.method public final requiresBatteryNotLow()Z
.locals 1
iget-boolean v0, p0, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
return v0
.end method
.method public final requiresCharging()Z
.locals 1
iget-boolean v0, p0, Landroidx/work/Constraints;->mRequiresCharging:Z
return v0
.end method
.method public final requiresDeviceIdle()Z
.locals 1
.annotation build Landroidx/annotation/RequiresApi;
value = 0x17
.end annotation
iget-boolean v0, p0, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
return v0
.end method
.method public final requiresStorageNotLow()Z
.locals 1
iget-boolean v0, p0, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
return v0
.end method
.method public final setContentUriTriggers(Landroidx/work/ContentUriTriggers;)V
.locals 0
.param p1 # Landroidx/work/ContentUriTriggers;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RequiresApi;
value = 0x18
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-object p1, p0, Landroidx/work/Constraints;->mContentUriTriggers:Landroidx/work/ContentUriTriggers;
return-void
.end method
.method public final setRequiredNetworkType(Landroidx/work/NetworkType;)V
.locals 0
.param p1 # Landroidx/work/NetworkType;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-object p1, p0, Landroidx/work/Constraints;->mRequiredNetworkType:Landroidx/work/NetworkType;
return-void
.end method
.method public final setRequiresBatteryNotLow(Z)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints;->mRequiresBatteryNotLow:Z
return-void
.end method
.method public final setRequiresCharging(Z)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints;->mRequiresCharging:Z
return-void
.end method
.method public final setRequiresDeviceIdle(Z)V
.locals 0
.annotation build Landroidx/annotation/RequiresApi;
value = 0x17
.end annotation
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints;->mRequiresDeviceIdle:Z
return-void
.end method
.method public final setRequiresStorageNotLow(Z)V
.locals 0
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
iput-boolean p1, p0, Landroidx/work/Constraints;->mRequiresStorageNotLow:Z
return-void
.end method