85 lines
2.1 KiB
Smali
85 lines
2.1 KiB
Smali
.class public final Lcom/vk/reef/utils/ReefContextExt;
|
|
.super Ljava/lang/Object;
|
|
.source "ReefContextExt.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(Landroid/content/Context;)Landroid/net/ConnectivityManager;
|
|
.locals 1
|
|
|
|
const-string v0, "connectivity"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/net/ConnectivityManager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final b(Landroid/content/Context;)Landroid/location/LocationManager;
|
|
.locals 1
|
|
|
|
const-string v0, "location"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/location/LocationManager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final c(Landroid/content/Context;)Landroid/telephony/SubscriptionManager;
|
|
.locals 1
|
|
|
|
const-string v0, "telephony_subscription_service"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/telephony/SubscriptionManager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final d(Landroid/content/Context;)Landroid/telephony/TelephonyManager;
|
|
.locals 1
|
|
|
|
const-string v0, "phone"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/telephony/TelephonyManager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final e(Landroid/content/Context;)Landroid/net/wifi/WifiManager;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "wifi"
|
|
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/net/wifi/WifiManager;
|
|
|
|
return-object p0
|
|
.end method
|