223 lines
4.8 KiB
Smali
223 lines
4.8 KiB
Smali
.class public Landroidx/work/impl/constraints/NetworkState;
|
|
.super Ljava/lang/Object;
|
|
.source "NetworkState.java"
|
|
|
|
|
|
# instance fields
|
|
.field private mIsConnected:Z
|
|
|
|
.field private mIsMetered:Z
|
|
|
|
.field private mIsNotRoaming:Z
|
|
|
|
.field private mIsValidated:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(ZZZZ)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-boolean p1, p0, Landroidx/work/impl/constraints/NetworkState;->mIsConnected:Z
|
|
|
|
iput-boolean p2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsValidated:Z
|
|
|
|
iput-boolean p3, p0, Landroidx/work/impl/constraints/NetworkState;->mIsMetered:Z
|
|
|
|
iput-boolean p4, p0, Landroidx/work/impl/constraints/NetworkState;->mIsNotRoaming:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public 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_0
|
|
|
|
:cond_1
|
|
check-cast p1, Landroidx/work/impl/constraints/NetworkState;
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsConnected:Z
|
|
|
|
iget-boolean v3, p1, Landroidx/work/impl/constraints/NetworkState;->mIsConnected:Z
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsValidated:Z
|
|
|
|
iget-boolean v3, p1, Landroidx/work/impl/constraints/NetworkState;->mIsValidated:Z
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsMetered:Z
|
|
|
|
iget-boolean v3, p1, Landroidx/work/impl/constraints/NetworkState;->mIsMetered:Z
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsNotRoaming:Z
|
|
|
|
iget-boolean p1, p1, Landroidx/work/impl/constraints/NetworkState;->mIsNotRoaming:Z
|
|
|
|
if-ne v2, p1, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
return v1
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Landroidx/work/impl/constraints/NetworkState;->mIsConnected:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-boolean v1, p0, Landroidx/work/impl/constraints/NetworkState;->mIsValidated:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
add-int/lit8 v0, v0, 0x10
|
|
|
|
:cond_1
|
|
iget-boolean v1, p0, Landroidx/work/impl/constraints/NetworkState;->mIsMetered:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
add-int/lit16 v0, v0, 0x100
|
|
|
|
:cond_2
|
|
iget-boolean v1, p0, Landroidx/work/impl/constraints/NetworkState;->mIsNotRoaming:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
add-int/lit16 v0, v0, 0x1000
|
|
|
|
:cond_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public isConnected()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/work/impl/constraints/NetworkState;->mIsConnected:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isMetered()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/work/impl/constraints/NetworkState;->mIsMetered:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isNotRoaming()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/work/impl/constraints/NetworkState;->mIsNotRoaming:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isValidated()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Landroidx/work/impl/constraints/NetworkState;->mIsValidated:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "[ Connected=%b Validated=%b Metered=%b NotRoaming=%b ]"
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsConnected:Z
|
|
|
|
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsValidated:Z
|
|
|
|
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsMetered:Z
|
|
|
|
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
iget-boolean v2, p0, Landroidx/work/impl/constraints/NetworkState;->mIsNotRoaming:Z
|
|
|
|
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x3
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|