Files
rr3-apk/smali/androidx/core/net/ConnectivityManagerCompat.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

123 lines
3.3 KiB
Smali

.class public final Landroidx/core/net/ConnectivityManagerCompat;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/net/ConnectivityManagerCompat$Api24Impl;,
Landroidx/core/net/ConnectivityManagerCompat$RestrictBackgroundStatus;
}
.end annotation
# static fields
.field public static final RESTRICT_BACKGROUND_STATUS_DISABLED:I = 0x1
.field public static final RESTRICT_BACKGROUND_STATUS_ENABLED:I = 0x3
.field public static final RESTRICT_BACKGROUND_STATUS_WHITELISTED:I = 0x2
# direct methods
.method private constructor <init>()V
.locals 0
.line 136
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getNetworkInfoFromBroadcast(Landroid/net/ConnectivityManager;Landroid/content/Intent;)Landroid/net/NetworkInfo;
.locals 1
.param p0 # Landroid/net/ConnectivityManager;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroid/content/Intent;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroid/annotation/SuppressLint;
value = {
"ReferencesDeprecated"
}
.end annotation
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation build Landroidx/annotation/RequiresPermission;
value = "android.permission.ACCESS_NETWORK_STATE"
.end annotation
const-string v0, "networkInfo"
.line 111
invoke-virtual {p1, v0}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object p1
check-cast p1, Landroid/net/NetworkInfo;
if-eqz p1, :cond_0
.line 113
invoke-virtual {p1}, Landroid/net/NetworkInfo;->getType()I
move-result p1
invoke-virtual {p0, p1}, Landroid/net/ConnectivityManager;->getNetworkInfo(I)Landroid/net/NetworkInfo;
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public static getRestrictBackgroundStatus(Landroid/net/ConnectivityManager;)I
.locals 0
.param p0 # Landroid/net/ConnectivityManager;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 130
invoke-static {p0}, Landroidx/core/net/ConnectivityManagerCompat$Api24Impl;->getRestrictBackgroundStatus(Landroid/net/ConnectivityManager;)I
move-result p0
return p0
.end method
.method public static isActiveNetworkMetered(Landroid/net/ConnectivityManager;)Z
.locals 0
.param p0 # Landroid/net/ConnectivityManager;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation runtime Landroidx/annotation/ReplaceWith;
expression = "cm.isActiveNetworkMetered()"
.end annotation
.annotation build Landroidx/annotation/RequiresPermission;
value = "android.permission.ACCESS_NETWORK_STATE"
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 95
invoke-virtual {p0}, Landroid/net/ConnectivityManager;->isActiveNetworkMetered()Z
move-result p0
return p0
.end method