Changes of com.discord v1144
This commit is contained in:
parent
4746542b20
commit
f52990c3c2
25752 changed files with 4382359 additions and 77 deletions
|
@ -0,0 +1,27 @@
|
|||
.class public interface abstract annotation Landroidx/core/net/ConnectivityManagerCompat$RestrictBackgroundStatus;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ConnectivityManagerCompat.java"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/annotation/Annotation;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RestrictTo;
|
||||
value = {
|
||||
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/net/ConnectivityManagerCompat;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x2609
|
||||
name = "RestrictBackgroundStatus"
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljava/lang/annotation/Retention;
|
||||
value = .enum Ljava/lang/annotation/RetentionPolicy;->SOURCE:Ljava/lang/annotation/RetentionPolicy;
|
||||
.end annotation
|
|
@ -0,0 +1,116 @@
|
|||
.class public final Landroidx/core/net/ConnectivityManagerCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ConnectivityManagerCompat.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
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 public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
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 Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
.annotation build Landroidx/annotation/RequiresPermission;
|
||||
value = "android.permission.ACCESS_NETWORK_STATE"
|
||||
.end annotation
|
||||
|
||||
const-string v0, "networkInfo"
|
||||
|
||||
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
|
||||
|
||||
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 2
|
||||
.param p0 # Landroid/net/ConnectivityManager;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/ConnectivityManager;->getRestrictBackgroundStatus()I
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x3
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
.method public static isActiveNetworkMetered(Landroid/net/ConnectivityManager;)Z
|
||||
.locals 1
|
||||
.param p0 # Landroid/net/ConnectivityManager;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/RequiresPermission;
|
||||
value = "android.permission.ACCESS_NETWORK_STATE"
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/ConnectivityManager;->isActiveNetworkMetered()Z
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
.end method
|
|
@ -0,0 +1,244 @@
|
|||
.class public Landroidx/core/net/DatagramSocketWrapper$DatagramSocketImplWrapper;
|
||||
.super Ljava/net/SocketImpl;
|
||||
.source "DatagramSocketWrapper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Landroidx/core/net/DatagramSocketWrapper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "DatagramSocketImplWrapper"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/net/DatagramSocket;Ljava/io/FileDescriptor;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/net/SocketImpl;-><init>()V
|
||||
|
||||
invoke-virtual {p1}, Ljava/net/DatagramSocket;->getLocalPort()I
|
||||
|
||||
move-result p1
|
||||
|
||||
iput p1, p0, Ljava/net/SocketImpl;->localport:I
|
||||
|
||||
iput-object p2, p0, Ljava/net/SocketImpl;->fd:Ljava/io/FileDescriptor;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public accept(Ljava/net/SocketImpl;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public available()I
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public bind(Ljava/net/InetAddress;I)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public close()V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public connect(Ljava/lang/String;I)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public connect(Ljava/net/InetAddress;I)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public connect(Ljava/net/SocketAddress;I)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public create(Z)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public getInputStream()Ljava/io/InputStream;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public getOption(I)Ljava/lang/Object;
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public getOutputStream()Ljava/io/OutputStream;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public listen(I)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public sendUrgentData(I)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public setOption(ILjava/lang/Object;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||||
|
||||
throw p1
|
||||
.end method
|
|
@ -0,0 +1,30 @@
|
|||
.class public Landroidx/core/net/DatagramSocketWrapper;
|
||||
.super Ljava/net/Socket;
|
||||
.source "DatagramSocketWrapper.java"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Landroidx/core/net/DatagramSocketWrapper$DatagramSocketImplWrapper;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/net/DatagramSocket;Ljava/io/FileDescriptor;)V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Landroidx/core/net/DatagramSocketWrapper$DatagramSocketImplWrapper;
|
||||
|
||||
invoke-direct {v0, p1, p2}, Landroidx/core/net/DatagramSocketWrapper$DatagramSocketImplWrapper;-><init>(Ljava/net/DatagramSocket;Ljava/io/FileDescriptor;)V
|
||||
|
||||
invoke-direct {p0, v0}, Ljava/net/Socket;-><init>(Ljava/net/SocketImpl;)V
|
||||
|
||||
return-void
|
||||
.end method
|
183
com.discord/smali/androidx/core/net/TrafficStatsCompat.smali
Normal file
183
com.discord/smali/androidx/core/net/TrafficStatsCompat.smali
Normal file
|
@ -0,0 +1,183 @@
|
|||
.class public final Landroidx/core/net/TrafficStatsCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "TrafficStatsCompat.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static clearThreadStatsTag()V
|
||||
.locals 0
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {}, Landroid/net/TrafficStats;->clearThreadStatsTag()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static getThreadStatsTag()I
|
||||
.locals 1
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {}, Landroid/net/TrafficStats;->getThreadStatsTag()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public static incrementOperationCount(I)V
|
||||
.locals 0
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Landroid/net/TrafficStats;->incrementOperationCount(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static incrementOperationCount(II)V
|
||||
.locals 0
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0, p1}, Landroid/net/TrafficStats;->incrementOperationCount(II)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static setThreadStatsTag(I)V
|
||||
.locals 0
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Landroid/net/TrafficStats;->setThreadStatsTag(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static tagDatagramSocket(Ljava/net/DatagramSocket;)V
|
||||
.locals 3
|
||||
.param p0 # Ljava/net/DatagramSocket;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0}, Landroid/net/TrafficStats;->tagDatagramSocket(Ljava/net/DatagramSocket;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0}, Landroid/os/ParcelFileDescriptor;->fromDatagramSocket(Ljava/net/DatagramSocket;)Landroid/os/ParcelFileDescriptor;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
new-instance v1, Landroidx/core/net/DatagramSocketWrapper;
|
||||
|
||||
invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-direct {v1, p0, v2}, Landroidx/core/net/DatagramSocketWrapper;-><init>(Ljava/net/DatagramSocket;Ljava/io/FileDescriptor;)V
|
||||
|
||||
invoke-static {v1}, Landroid/net/TrafficStats;->tagSocket(Ljava/net/Socket;)V
|
||||
|
||||
invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->detachFd()I
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static tagSocket(Ljava/net/Socket;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Landroid/net/TrafficStats;->tagSocket(Ljava/net/Socket;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static untagDatagramSocket(Ljava/net/DatagramSocket;)V
|
||||
.locals 3
|
||||
.param p0 # Ljava/net/DatagramSocket;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x18
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0}, Landroid/net/TrafficStats;->untagDatagramSocket(Ljava/net/DatagramSocket;)V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-static {p0}, Landroid/os/ParcelFileDescriptor;->fromDatagramSocket(Ljava/net/DatagramSocket;)Landroid/os/ParcelFileDescriptor;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
new-instance v1, Landroidx/core/net/DatagramSocketWrapper;
|
||||
|
||||
invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-direct {v1, p0, v2}, Landroidx/core/net/DatagramSocketWrapper;-><init>(Ljava/net/DatagramSocket;Ljava/io/FileDescriptor;)V
|
||||
|
||||
invoke-static {v1}, Landroid/net/TrafficStats;->untagSocket(Ljava/net/Socket;)V
|
||||
|
||||
invoke-virtual {v0}, Landroid/os/ParcelFileDescriptor;->detachFd()I
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static untagSocket(Ljava/net/Socket;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/net/SocketException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Ljava/lang/Deprecated;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0}, Landroid/net/TrafficStats;->untagSocket(Ljava/net/Socket;)V
|
||||
|
||||
return-void
|
||||
.end method
|
264
com.discord/smali/androidx/core/net/UriCompat.smali
Normal file
264
com.discord/smali/androidx/core/net/UriCompat.smali
Normal file
|
@ -0,0 +1,264 @@
|
|||
.class public final Landroidx/core/net/UriCompat;
|
||||
.super Ljava/lang/Object;
|
||||
.source "UriCompat.java"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static toSafeString(Landroid/net/Uri;)Ljava/lang/String;
|
||||
.locals 7
|
||||
.param p0 # Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
const/16 v2, 0x3a
|
||||
|
||||
const/16 v3, 0x40
|
||||
|
||||
if-eqz v0, :cond_8
|
||||
|
||||
const-string v4, "tel"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_4
|
||||
|
||||
const-string v4, "sip"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_4
|
||||
|
||||
const-string v4, "sms"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_4
|
||||
|
||||
const-string v4, "smsto"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_4
|
||||
|
||||
const-string v4, "mailto"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_4
|
||||
|
||||
const-string v4, "nfc"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eqz v4, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
const-string v4, "http"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_1
|
||||
|
||||
const-string v4, "https"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_1
|
||||
|
||||
const-string v4, "ftp"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_1
|
||||
|
||||
const-string v4, "rtsp"
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eqz v4, :cond_8
|
||||
|
||||
:cond_1
|
||||
const-string v1, "//"
|
||||
|
||||
invoke-static {v1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
const-string v5, ""
|
||||
|
||||
if-eqz v4, :cond_2
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getHost()Ljava/lang/String;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
move-object v4, v5
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getPort()I
|
||||
|
||||
move-result v4
|
||||
|
||||
const/4 v6, -0x1
|
||||
|
||||
if-eq v4, v6, :cond_3
|
||||
|
||||
const-string v4, ":"
|
||||
|
||||
invoke-static {v4}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getPort()I
|
||||
|
||||
move-result p0
|
||||
|
||||
invoke-virtual {v4, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
:cond_3
|
||||
const-string p0, "/..."
|
||||
|
||||
invoke-static {v1, v5, p0}, Lf/e/b/a/a;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_4
|
||||
:goto_1
|
||||
new-instance p0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {p0, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
||||
|
||||
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
if-eqz v1, :cond_7
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_2
|
||||
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v2
|
||||
|
||||
if-ge v0, v2, :cond_7
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v2
|
||||
|
||||
const/16 v4, 0x2d
|
||||
|
||||
if-eq v2, v4, :cond_6
|
||||
|
||||
if-eq v2, v3, :cond_6
|
||||
|
||||
const/16 v4, 0x2e
|
||||
|
||||
if-ne v2, v4, :cond_5
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_5
|
||||
const/16 v2, 0x78
|
||||
|
||||
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_6
|
||||
:goto_3
|
||||
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
:goto_4
|
||||
add-int/lit8 v0, v0, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_7
|
||||
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_8
|
||||
:goto_5
|
||||
new-instance p0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {p0, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
||||
|
||||
if-eqz v0, :cond_9
|
||||
|
||||
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
:cond_9
|
||||
if-eqz v1, :cond_a
|
||||
|
||||
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
:cond_a
|
||||
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
144
com.discord/smali/androidx/core/net/UriKt.smali
Normal file
144
com.discord/smali/androidx/core/net/UriKt.smali
Normal file
|
@ -0,0 +1,144 @@
|
|||
.class public final Landroidx/core/net/UriKt;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Uri.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final toFile(Landroid/net/Uri;)Ljava/io/File;
|
||||
.locals 2
|
||||
|
||||
if-eqz p0, :cond_2
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "file"
|
||||
|
||||
invoke-static {v0, v1}, Ly/v/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
invoke-virtual {p0}, Landroid/net/Uri;->getPath()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
new-instance p0, Ljava/io/File;
|
||||
|
||||
invoke-direct {p0, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "Uri path is null: "
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_1
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "Uri lacks \'file\' scheme: "
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_2
|
||||
const-string p0, "$this$toFile"
|
||||
|
||||
invoke-static {p0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final toUri(Ljava/io/File;)Landroid/net/Uri;
|
||||
.locals 1
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
invoke-static {p0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "Uri.fromFile(this)"
|
||||
|
||||
invoke-static {p0, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
const-string p0, "$this$toUri"
|
||||
|
||||
invoke-static {p0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final toUri(Ljava/lang/String;)Landroid/net/Uri;
|
||||
.locals 1
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
invoke-static {p0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string v0, "Uri.parse(this)"
|
||||
|
||||
invoke-static {p0, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
const-string p0, "$this$toUri"
|
||||
|
||||
invoke-static {p0}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
||||
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue