639 lines
16 KiB
Smali
639 lines
16 KiB
Smali
.class Landroidx/core/graphics/TypefaceCompatApi21Impl;
|
|
.super Landroidx/core/graphics/TypefaceCompatBaseImpl;
|
|
.source "TypefaceCompatApi21Impl.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final ADD_FONT_WEIGHT_STYLE_METHOD:Ljava/lang/String; = "addFontWeightStyle"
|
|
|
|
.field private static final CREATE_FROM_FAMILIES_WITH_DEFAULT_METHOD:Ljava/lang/String; = "createFromFamiliesWithDefault"
|
|
|
|
.field private static final FONT_FAMILY_CLASS:Ljava/lang/String; = "android.graphics.FontFamily"
|
|
|
|
.field private static final TAG:Ljava/lang/String; = "TypefaceCompatApi21Impl"
|
|
|
|
.field private static sAddFontWeightStyle:Ljava/lang/reflect/Method; = null
|
|
|
|
.field private static sCreateFromFamiliesWithDefault:Ljava/lang/reflect/Method; = null
|
|
|
|
.field private static sFontFamily:Ljava/lang/Class; = null
|
|
|
|
.field private static sFontFamilyCtor:Ljava/lang/reflect/Constructor; = null
|
|
|
|
.field private static sHasInitBeenCalled:Z = false
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Landroidx/core/graphics/TypefaceCompatBaseImpl;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static addFontWeightStyle(Ljava/lang/Object;Ljava/lang/String;IZ)Z
|
|
.locals 3
|
|
|
|
invoke-static {}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->init()V
|
|
|
|
:try_start_0
|
|
sget-object v0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sAddFontWeightStyle:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
aput-object p2, v1, p1
|
|
|
|
const/4 p1, 0x2
|
|
|
|
invoke-static {p3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p2
|
|
|
|
aput-object p2, v1, p1
|
|
|
|
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
:goto_0
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private static createFromFamiliesWithDefault(Ljava/lang/Object;)Landroid/graphics/Typeface;
|
|
.locals 4
|
|
|
|
invoke-static {}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->init()V
|
|
|
|
:try_start_0
|
|
sget-object v0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sFontFamily:Ljava/lang/Class;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v0, v2, p0}, Ljava/lang/reflect/Array;->set(Ljava/lang/Object;ILjava/lang/Object;)V
|
|
|
|
sget-object p0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sCreateFromFamiliesWithDefault:Ljava/lang/reflect/Method;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
invoke-virtual {p0, v3, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Landroid/graphics/Typeface;
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
:goto_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private getFile(Landroid/os/ParcelFileDescriptor;)Ljava/io/File;
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:try_start_0
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "/proc/self/fd/"
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Landroid/os/ParcelFileDescriptor;->getFd()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/system/Os;->readlink(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/system/Os;->stat(Ljava/lang/String;)Landroid/system/StructStat;
|
|
|
|
move-result-object v1
|
|
|
|
iget v1, v1, Landroid/system/StructStat;->st_mode:I
|
|
|
|
invoke-static {v1}, Landroid/system/OsConstants;->S_ISREG(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
:try_end_0
|
|
.catch Landroid/system/ErrnoException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v1
|
|
|
|
:catch_0
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private static init()V
|
|
.locals 9
|
|
|
|
sget-boolean v0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sHasInitBeenCalled:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
sput-boolean v0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sHasInitBeenCalled:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
const-string v2, "android.graphics.FontFamily"
|
|
|
|
invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
new-array v4, v3, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "addFontWeightStyle"
|
|
|
|
const/4 v6, 0x3
|
|
|
|
new-array v6, v6, [Ljava/lang/Class;
|
|
|
|
const-class v7, Ljava/lang/String;
|
|
|
|
aput-object v7, v6, v3
|
|
|
|
sget-object v7, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
aput-object v7, v6, v0
|
|
|
|
const/4 v7, 0x2
|
|
|
|
sget-object v8, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
aput-object v8, v6, v7
|
|
|
|
invoke-virtual {v2, v5, v6}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v2, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
const-class v7, Landroid/graphics/Typeface;
|
|
|
|
const-string v8, "createFromFamiliesWithDefault"
|
|
|
|
new-array v0, v0, [Ljava/lang/Class;
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v6
|
|
|
|
aput-object v6, v0, v3
|
|
|
|
invoke-virtual {v7, v8, v0}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-object v0, v1
|
|
|
|
move-object v1, v4
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
:goto_0
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "TypefaceCompatApi21Impl"
|
|
|
|
invoke-static {v3, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
move-object v0, v1
|
|
|
|
move-object v2, v0
|
|
|
|
move-object v5, v2
|
|
|
|
:goto_1
|
|
sput-object v1, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sFontFamilyCtor:Ljava/lang/reflect/Constructor;
|
|
|
|
sput-object v2, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sFontFamily:Ljava/lang/Class;
|
|
|
|
sput-object v5, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sAddFontWeightStyle:Ljava/lang/reflect/Method;
|
|
|
|
sput-object v0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sCreateFromFamiliesWithDefault:Ljava/lang/reflect/Method;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static newFamily()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
invoke-static {}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->init()V
|
|
|
|
:try_start_0
|
|
sget-object v0, Landroidx/core/graphics/TypefaceCompatApi21Impl;->sFontFamilyCtor:Ljava/lang/reflect/Constructor;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2
|
|
.catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception v0
|
|
|
|
:goto_0
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createFromFontFamilyFilesResourceEntry(Landroid/content/Context;Landroidx/core/content/res/FontResourcesParserCompat$FontFamilyFilesResourceEntry;Landroid/content/res/Resources;I)Landroid/graphics/Typeface;
|
|
.locals 7
|
|
|
|
invoke-static {}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->newFamily()Ljava/lang/Object;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {p2}, Landroidx/core/content/res/FontResourcesParserCompat$FontFamilyFilesResourceEntry;->getEntries()[Landroidx/core/content/res/FontResourcesParserCompat$FontFileResourceEntry;
|
|
|
|
move-result-object p2
|
|
|
|
array-length v0, p2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_3
|
|
|
|
aget-object v2, p2, v1
|
|
|
|
invoke-static {p1}, Landroidx/core/graphics/TypefaceCompatUtil;->getTempFile(Landroid/content/Context;)Ljava/io/File;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
return-object v4
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {v2}, Landroidx/core/content/res/FontResourcesParserCompat$FontFileResourceEntry;->getResourceId()I
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v3, p3, v5}, Landroidx/core/graphics/TypefaceCompatUtil;->copyToFile(Ljava/io/File;Landroid/content/res/Resources;I)Z
|
|
|
|
move-result v5
|
|
:try_end_0
|
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->delete()Z
|
|
|
|
return-object v4
|
|
|
|
:cond_1
|
|
:try_start_1
|
|
invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v2}, Landroidx/core/content/res/FontResourcesParserCompat$FontFileResourceEntry;->getWeight()I
|
|
|
|
move-result v6
|
|
|
|
invoke-virtual {v2}, Landroidx/core/content/res/FontResourcesParserCompat$FontFileResourceEntry;->isItalic()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-static {p4, v5, v6, v2}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->addFontWeightStyle(Ljava/lang/Object;Ljava/lang/String;IZ)Z
|
|
|
|
move-result v2
|
|
:try_end_1
|
|
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->delete()Z
|
|
|
|
return-object v4
|
|
|
|
:cond_2
|
|
invoke-virtual {v3}, Ljava/io/File;->delete()Z
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-virtual {v3}, Ljava/io/File;->delete()Z
|
|
|
|
throw p1
|
|
|
|
:catch_0
|
|
invoke-virtual {v3}, Ljava/io/File;->delete()Z
|
|
|
|
return-object v4
|
|
|
|
:cond_3
|
|
invoke-static {p4}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->createFromFamiliesWithDefault(Ljava/lang/Object;)Landroid/graphics/Typeface;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public createFromFontInfo(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroidx/core/provider/FontsContractCompat$FontInfo;I)Landroid/graphics/Typeface;
|
|
.locals 2
|
|
|
|
array-length v0, p3
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-gtz v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p3, p4}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->findBestInfo([Landroidx/core/provider/FontsContractCompat$FontInfo;I)Landroidx/core/provider/FontsContractCompat$FontInfo;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object p4
|
|
|
|
:try_start_0
|
|
invoke-virtual {p3}, Landroidx/core/provider/FontsContractCompat$FontInfo;->getUri()Landroid/net/Uri;
|
|
|
|
move-result-object p3
|
|
|
|
const-string v0, "r"
|
|
|
|
invoke-virtual {p4, p3, v0, p2}, Landroid/content/ContentResolver;->openFileDescriptor(Landroid/net/Uri;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/os/ParcelFileDescriptor;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroid/os/ParcelFileDescriptor;->close()V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:cond_1
|
|
return-object v1
|
|
|
|
:cond_2
|
|
:try_start_1
|
|
invoke-direct {p0, p2}, Landroidx/core/graphics/TypefaceCompatApi21Impl;->getFile(Landroid/os/ParcelFileDescriptor;)Ljava/io/File;
|
|
|
|
move-result-object p3
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
invoke-virtual {p3}, Ljava/io/File;->canRead()Z
|
|
|
|
move-result p4
|
|
|
|
if-nez p4, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-static {p3}, Landroid/graphics/Typeface;->createFromFile(Ljava/io/File;)Landroid/graphics/Typeface;
|
|
|
|
move-result-object p1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_3
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
:try_start_2
|
|
invoke-virtual {p2}, Landroid/os/ParcelFileDescriptor;->close()V
|
|
:try_end_2
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
:cond_4
|
|
return-object p1
|
|
|
|
:cond_5
|
|
:goto_0
|
|
:try_start_3
|
|
new-instance p3, Ljava/io/FileInputStream;
|
|
|
|
invoke-virtual {p2}, Landroid/os/ParcelFileDescriptor;->getFileDescriptor()Ljava/io/FileDescriptor;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-direct {p3, p4}, Ljava/io/FileInputStream;-><init>(Ljava/io/FileDescriptor;)V
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_3
|
|
|
|
:try_start_4
|
|
invoke-super {p0, p1, p3}, Landroidx/core/graphics/TypefaceCompatBaseImpl;->createFromInputStream(Landroid/content/Context;Ljava/io/InputStream;)Landroid/graphics/Typeface;
|
|
|
|
move-result-object p1
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_0
|
|
|
|
:try_start_5
|
|
invoke-virtual {p3}, Ljava/io/FileInputStream;->close()V
|
|
:try_end_5
|
|
.catchall {:try_start_5 .. :try_end_5} :catchall_3
|
|
|
|
if-eqz p2, :cond_6
|
|
|
|
:try_start_6
|
|
invoke-virtual {p2}, Landroid/os/ParcelFileDescriptor;->close()V
|
|
:try_end_6
|
|
.catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_0
|
|
|
|
:cond_6
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
:try_start_7
|
|
throw p1
|
|
:try_end_7
|
|
.catchall {:try_start_7 .. :try_end_7} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
:try_start_8
|
|
invoke-virtual {p3}, Ljava/io/FileInputStream;->close()V
|
|
:try_end_8
|
|
.catchall {:try_start_8 .. :try_end_8} :catchall_2
|
|
|
|
:catchall_2
|
|
:try_start_9
|
|
throw p1
|
|
:try_end_9
|
|
.catchall {:try_start_9 .. :try_end_9} :catchall_3
|
|
|
|
:catchall_3
|
|
move-exception p1
|
|
|
|
:try_start_a
|
|
throw p1
|
|
:try_end_a
|
|
.catchall {:try_start_a .. :try_end_a} :catchall_4
|
|
|
|
:catchall_4
|
|
move-exception p1
|
|
|
|
if-eqz p2, :cond_7
|
|
|
|
:try_start_b
|
|
invoke-virtual {p2}, Landroid/os/ParcelFileDescriptor;->close()V
|
|
:try_end_b
|
|
.catchall {:try_start_b .. :try_end_b} :catchall_5
|
|
|
|
:catchall_5
|
|
:cond_7
|
|
:try_start_c
|
|
throw p1
|
|
:try_end_c
|
|
.catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_0
|
|
|
|
:catch_0
|
|
return-object v1
|
|
.end method
|