Changes of com.discord v998
This commit is contained in:
parent
dc3b174a87
commit
a8e290ae89
20243 changed files with 1573881 additions and 1337713 deletions
|
@ -4,16 +4,23 @@
|
|||
|
||||
|
||||
# static fields
|
||||
.field static final TAG:Ljava/lang/String; = "DocumentFile"
|
||||
.field public static final TAG:Ljava/lang/String; = "DocumentFile"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private final mParent:Landroidx/documentfile/provider/DocumentFile;
|
||||
.field public final mParent:Landroidx/documentfile/provider/DocumentFile;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/documentfile/provider/DocumentFile;)V
|
||||
.method public constructor <init>(Landroidx/documentfile/provider/DocumentFile;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/documentfile/provider/DocumentFile;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
|
@ -24,6 +31,12 @@
|
|||
|
||||
.method public static fromFile(Ljava/io/File;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 2
|
||||
.param p0 # Ljava/io/File;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Landroidx/documentfile/provider/RawDocumentFile;
|
||||
|
||||
|
@ -35,39 +48,48 @@
|
|||
.end method
|
||||
|
||||
.method public static fromSingleUri(Landroid/content/Context;Landroid/net/Uri;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 3
|
||||
.locals 2
|
||||
.param p0 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p1 # Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/16 v2, 0x13
|
||||
|
||||
if-lt v0, v2, :cond_0
|
||||
|
||||
new-instance v0, Landroidx/documentfile/provider/SingleDocumentFile;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1, p0, p1}, Landroidx/documentfile/provider/SingleDocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public static fromTreeUri(Landroid/content/Context;Landroid/net/Uri;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 3
|
||||
.param p0 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p1 # Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/16 v2, 0x15
|
||||
|
||||
if-lt v0, v2, :cond_0
|
||||
|
||||
new-instance v0, Landroidx/documentfile/provider/TreeDocumentFile;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-static {p1}, Landroid/provider/DocumentsContract;->getTreeDocumentId(Landroid/net/Uri;)Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
@ -79,30 +101,26 @@
|
|||
invoke-direct {v0, v1, p0, p1}, Landroidx/documentfile/provider/TreeDocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public static isDocumentUri(Landroid/content/Context;Landroid/net/Uri;)Z
|
||||
.locals 2
|
||||
.locals 1
|
||||
.param p0 # Landroid/content/Context;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p1 # Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||||
|
||||
const/16 v1, 0x13
|
||||
|
||||
if-lt v0, v1, :cond_0
|
||||
|
||||
invoke-static {p0, p1}, Landroid/provider/DocumentsContract;->isDocumentUri(Landroid/content/Context;Landroid/net/Uri;)Z
|
||||
|
||||
move-result p0
|
||||
|
||||
return p0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
return p0
|
||||
.end method
|
||||
|
||||
|
||||
|
@ -114,9 +132,25 @@
|
|||
.end method
|
||||
|
||||
.method public abstract createDirectory(Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract createFile(Ljava/lang/String;Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.param p2 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract delete()Z
|
||||
|
@ -127,6 +161,12 @@
|
|||
|
||||
.method public findFile(Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 5
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Landroidx/documentfile/provider/DocumentFile;->listFiles()[Landroidx/documentfile/provider/DocumentFile;
|
||||
|
||||
|
@ -165,10 +205,14 @@
|
|||
.end method
|
||||
|
||||
.method public abstract getName()Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public getParentFile()Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 1
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/DocumentFile;->mParent:Landroidx/documentfile/provider/DocumentFile;
|
||||
|
||||
|
@ -176,9 +220,13 @@
|
|||
.end method
|
||||
|
||||
.method public abstract getType()Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract getUri()Landroid/net/Uri;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract isDirectory()Z
|
||||
|
@ -197,7 +245,13 @@
|
|||
.end method
|
||||
|
||||
.method public abstract listFiles()[Landroidx/documentfile/provider/DocumentFile;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract renameTo(Ljava/lang/String;)Z
|
||||
.param p1 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/NonNull;
|
||||
.end annotation
|
||||
.end param
|
||||
.end method
|
||||
|
|
|
@ -1,16 +1,22 @@
|
|||
.class Landroidx/documentfile/provider/DocumentsContractApi19;
|
||||
.class public Landroidx/documentfile/provider/DocumentsContractApi19;
|
||||
.super Ljava/lang/Object;
|
||||
.source "DocumentsContractApi19.java"
|
||||
|
||||
|
||||
# static fields
|
||||
.field private static final FLAG_VIRTUAL_DOCUMENT:I = 0x200
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x13
|
||||
.end annotation
|
||||
|
||||
.field private static final TAG:Ljava/lang/String; = "DocumentFile"
|
||||
|
||||
# static fields
|
||||
.field public static final FLAG_VIRTUAL_DOCUMENT:I = 0x200
|
||||
|
||||
.field public static final TAG:Ljava/lang/String; = "DocumentFile"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method private constructor <init>()V
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
@ -125,8 +131,12 @@
|
|||
return v2
|
||||
.end method
|
||||
|
||||
.method private static closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
.method public static closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
.locals 0
|
||||
.param p0 # Ljava/lang/AutoCloseable;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
|
@ -136,7 +146,7 @@
|
|||
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
@ -145,6 +155,7 @@
|
|||
|
||||
:catch_1
|
||||
:cond_0
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
@ -205,13 +216,17 @@
|
|||
:try_start_1
|
||||
const-string v0, "DocumentFile"
|
||||
|
||||
const-string v1, "Failed query: "
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
move-result-object p1
|
||||
const-string v2, "Failed query: "
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
|
@ -245,6 +260,8 @@
|
|||
|
||||
.method public static getName(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "_display_name"
|
||||
|
||||
|
@ -257,8 +274,10 @@
|
|||
return-object p0
|
||||
.end method
|
||||
|
||||
.method private static getRawType(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
|
||||
.method public static getRawType(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
const-string v0, "mime_type"
|
||||
|
||||
|
@ -273,6 +292,8 @@
|
|||
|
||||
.method public static getType(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
|
||||
.locals 0
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
invoke-static {p0, p1}, Landroidx/documentfile/provider/DocumentsContractApi19;->getRawType(Landroid/content/Context;Landroid/net/Uri;)Ljava/lang/String;
|
||||
|
||||
|
@ -371,9 +392,7 @@
|
|||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
const/4 p0, 0x1
|
||||
|
||||
return p0
|
||||
const/4 v1, 0x1
|
||||
|
||||
:cond_1
|
||||
return v1
|
||||
|
@ -407,7 +426,7 @@
|
|||
return-wide p0
|
||||
.end method
|
||||
|
||||
.method private static queryForInt(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;I)I
|
||||
.method public static queryForInt(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;I)I
|
||||
.locals 2
|
||||
|
||||
int-to-long v0, p3
|
||||
|
@ -421,7 +440,7 @@
|
|||
return p1
|
||||
.end method
|
||||
|
||||
.method private static queryForLong(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;J)J
|
||||
.method public static queryForLong(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;J)J
|
||||
.locals 7
|
||||
|
||||
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
||||
|
@ -490,13 +509,17 @@
|
|||
:try_start_1
|
||||
const-string p1, "DocumentFile"
|
||||
|
||||
const-string p2, "Failed query: "
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||||
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
move-result-object p0
|
||||
const-string v0, "Failed query: "
|
||||
|
||||
invoke-virtual {p2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
|
@ -514,8 +537,14 @@
|
|||
throw p0
|
||||
.end method
|
||||
|
||||
.method private static queryForString(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
.method public static queryForString(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 7
|
||||
.param p3 # Ljava/lang/String;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
||||
|
||||
|
@ -583,13 +612,17 @@
|
|||
:try_start_1
|
||||
const-string p1, "DocumentFile"
|
||||
|
||||
const-string p2, "Failed query: "
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||||
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
move-result-object p0
|
||||
const-string v0, "Failed query: "
|
||||
|
||||
invoke-virtual {p2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
.class Landroidx/documentfile/provider/RawDocumentFile;
|
||||
.class public Landroidx/documentfile/provider/RawDocumentFile;
|
||||
.super Landroidx/documentfile/provider/DocumentFile;
|
||||
.source "RawDocumentFile.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mFile:Ljava/io/File;
|
||||
.field public mFile:Ljava/io/File;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/documentfile/provider/DocumentFile;Ljava/io/File;)V
|
||||
.method public constructor <init>(Landroidx/documentfile/provider/DocumentFile;Ljava/io/File;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/documentfile/provider/DocumentFile;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/documentfile/provider/DocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;)V
|
||||
|
||||
|
@ -18,7 +22,7 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method private static deleteContents(Ljava/io/File;)Z
|
||||
.method public static deleteContents(Ljava/io/File;)Z
|
||||
.locals 6
|
||||
|
||||
invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;
|
||||
|
@ -61,13 +65,17 @@
|
|||
|
||||
if-nez v5, :cond_1
|
||||
|
||||
invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v3
|
||||
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v4, "Failed to delete "
|
||||
const-string v5, "Failed to delete "
|
||||
|
||||
invoke-virtual {v4, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
|
@ -89,7 +97,7 @@
|
|||
return v0
|
||||
.end method
|
||||
|
||||
.method private static getTypeForName(Ljava/lang/String;)Ljava/lang/String;
|
||||
.method public static getTypeForName(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
const/16 v0, 0x2e
|
||||
|
@ -156,6 +164,8 @@
|
|||
|
||||
.method public createDirectory(Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
new-instance v0, Ljava/io/File;
|
||||
|
||||
|
@ -193,6 +203,8 @@
|
|||
|
||||
.method public createFile(Ljava/lang/String;Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 1
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
invoke-static {}, Landroid/webkit/MimeTypeMap;->getSingleton()Landroid/webkit/MimeTypeMap;
|
||||
|
||||
|
@ -204,19 +216,9 @@
|
|||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
const-string v0, "."
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string p2, "."
|
||||
|
||||
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
invoke-static {p2, v0, p1}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
|
@ -241,13 +243,17 @@
|
|||
:catch_0
|
||||
move-exception p1
|
||||
|
||||
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||||
new-instance p2, Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object p1
|
||||
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string p2, "Failed to createFile: "
|
||||
const-string v0, "Failed to createFile: "
|
||||
|
||||
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
|
@ -302,6 +308,8 @@
|
|||
|
||||
.method public getType()Ljava/lang/String;
|
||||
.locals 1
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/RawDocumentFile;->mFile:Ljava/io/File;
|
||||
|
||||
|
|
|
@ -1,17 +1,27 @@
|
|||
.class Landroidx/documentfile/provider/SingleDocumentFile;
|
||||
.class public Landroidx/documentfile/provider/SingleDocumentFile;
|
||||
.super Landroidx/documentfile/provider/DocumentFile;
|
||||
.source "SingleDocumentFile.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mContext:Landroid/content/Context;
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x13
|
||||
.end annotation
|
||||
|
||||
.field private mUri:Landroid/net/Uri;
|
||||
|
||||
# instance fields
|
||||
.field public mContext:Landroid/content/Context;
|
||||
|
||||
.field public mUri:Landroid/net/Uri;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
.method public constructor <init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/documentfile/provider/DocumentFile;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/documentfile/provider/DocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;)V
|
||||
|
||||
|
@ -114,6 +124,8 @@
|
|||
|
||||
.method public getName()Ljava/lang/String;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/SingleDocumentFile;->mContext:Landroid/content/Context;
|
||||
|
||||
|
@ -128,6 +140,8 @@
|
|||
|
||||
.method public getType()Ljava/lang/String;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/SingleDocumentFile;->mContext:Landroid/content/Context;
|
||||
|
||||
|
|
|
@ -1,17 +1,27 @@
|
|||
.class Landroidx/documentfile/provider/TreeDocumentFile;
|
||||
.class public Landroidx/documentfile/provider/TreeDocumentFile;
|
||||
.super Landroidx/documentfile/provider/DocumentFile;
|
||||
.source "TreeDocumentFile.java"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field private mContext:Landroid/content/Context;
|
||||
# annotations
|
||||
.annotation build Landroidx/annotation/RequiresApi;
|
||||
value = 0x15
|
||||
.end annotation
|
||||
|
||||
.field private mUri:Landroid/net/Uri;
|
||||
|
||||
# instance fields
|
||||
.field public mContext:Landroid/content/Context;
|
||||
|
||||
.field public mUri:Landroid/net/Uri;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
.method public constructor <init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
.locals 0
|
||||
.param p1 # Landroidx/documentfile/provider/DocumentFile;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/documentfile/provider/DocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;)V
|
||||
|
||||
|
@ -22,8 +32,12 @@
|
|||
return-void
|
||||
.end method
|
||||
|
||||
.method private static closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
.method public static closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
.locals 0
|
||||
.param p0 # Ljava/lang/AutoCloseable;
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
.end param
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
|
@ -33,7 +47,7 @@
|
|||
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
|
||||
|
||||
return-void
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
move-exception p0
|
||||
|
@ -42,11 +56,14 @@
|
|||
|
||||
:catch_1
|
||||
:cond_0
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method private static createFile(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;
|
||||
.method public static createFile(Landroid/content/Context;Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;
|
||||
.locals 0
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
||||
|
@ -99,6 +116,8 @@
|
|||
|
||||
.method public createDirectory(Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 3
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/TreeDocumentFile;->mContext:Landroid/content/Context;
|
||||
|
||||
|
@ -118,16 +137,19 @@
|
|||
|
||||
invoke-direct {v0, p0, v1, p1}, Landroidx/documentfile/provider/TreeDocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
|
||||
return-object v0
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
const/4 v0, 0x0
|
||||
|
||||
return-object p1
|
||||
:goto_0
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public createFile(Ljava/lang/String;Ljava/lang/String;)Landroidx/documentfile/provider/DocumentFile;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/TreeDocumentFile;->mContext:Landroid/content/Context;
|
||||
|
||||
|
@ -145,12 +167,13 @@
|
|||
|
||||
invoke-direct {p2, p0, v0, p1}, Landroidx/documentfile/provider/TreeDocumentFile;-><init>(Landroidx/documentfile/provider/DocumentFile;Landroid/content/Context;Landroid/net/Uri;)V
|
||||
|
||||
return-object p2
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
const/4 p2, 0x0
|
||||
|
||||
return-object p1
|
||||
:goto_0
|
||||
return-object p2
|
||||
.end method
|
||||
|
||||
.method public delete()Z
|
||||
|
@ -195,6 +218,8 @@
|
|||
|
||||
.method public getName()Ljava/lang/String;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/TreeDocumentFile;->mContext:Landroid/content/Context;
|
||||
|
||||
|
@ -209,6 +234,8 @@
|
|||
|
||||
.method public getType()Ljava/lang/String;
|
||||
.locals 2
|
||||
.annotation build Landroidx/annotation/Nullable;
|
||||
.end annotation
|
||||
|
||||
iget-object v0, p0, Landroidx/documentfile/provider/TreeDocumentFile;->mContext:Landroid/content/Context;
|
||||
|
||||
|
@ -367,10 +394,16 @@
|
|||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
:goto_1
|
||||
invoke-static {v8}, Landroidx/documentfile/provider/TreeDocumentFile;->closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
goto :goto_2
|
||||
goto :goto_4
|
||||
|
||||
:catch_0
|
||||
move-exception v1
|
||||
|
@ -378,13 +411,17 @@
|
|||
:try_start_1
|
||||
const-string v2, "DocumentFile"
|
||||
|
||||
const-string v3, "Failed query: "
|
||||
new-instance v3, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
||||
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
move-result-object v1
|
||||
const-string v4, "Failed query: "
|
||||
|
||||
invoke-virtual {v3, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
|
@ -392,9 +429,9 @@
|
|||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
:cond_0
|
||||
invoke-static {v8}, Landroidx/documentfile/provider/TreeDocumentFile;->closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
goto :goto_1
|
||||
|
||||
:goto_2
|
||||
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
||||
|
||||
move-result v1
|
||||
|
@ -411,7 +448,7 @@
|
|||
|
||||
new-array v1, v1, [Landroidx/documentfile/provider/DocumentFile;
|
||||
|
||||
:goto_1
|
||||
:goto_3
|
||||
array-length v2, v0
|
||||
|
||||
if-ge v7, v2, :cond_1
|
||||
|
@ -428,12 +465,12 @@
|
|||
|
||||
add-int/lit8 v7, v7, 0x1
|
||||
|
||||
goto :goto_1
|
||||
goto :goto_3
|
||||
|
||||
:cond_1
|
||||
return-object v1
|
||||
|
||||
:goto_2
|
||||
:goto_4
|
||||
invoke-static {v8}, Landroidx/documentfile/provider/TreeDocumentFile;->closeQuietly(Ljava/lang/AutoCloseable;)V
|
||||
|
||||
throw v0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue