121 lines
3.5 KiB
Smali
121 lines
3.5 KiB
Smali
.class public final Landroidx/core/graphics/ImageDecoderKt;
|
|
.super Ljava/lang/Object;
|
|
.source "ImageDecoder.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final decodeBitmap(Landroid/graphics/ImageDecoder$Source;Lkotlin/jvm/functions/Function3;)Landroid/graphics/Bitmap;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x1c
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/graphics/ImageDecoder$Source;",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Landroid/graphics/ImageDecoder;",
|
|
"-",
|
|
"Landroid/graphics/ImageDecoder$ImageInfo;",
|
|
"-",
|
|
"Landroid/graphics/ImageDecoder$Source;",
|
|
"Lkotlin/Unit;",
|
|
">;)",
|
|
"Landroid/graphics/Bitmap;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroidx/core/graphics/ImageDecoderKt$decodeBitmap$1;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/core/graphics/ImageDecoderKt$decodeBitmap$1;-><init>(Lkotlin/jvm/functions/Function3;)V
|
|
|
|
invoke-static {p0, v0}, Landroid/graphics/ImageDecoder;->decodeBitmap(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "ImageDecoder.decodeBitma\u2026ction(info, source)\n }"
|
|
|
|
invoke-static {p0, p1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "action"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$decodeBitmap"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final decodeDrawable(Landroid/graphics/ImageDecoder$Source;Lkotlin/jvm/functions/Function3;)Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x1c
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/graphics/ImageDecoder$Source;",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Landroid/graphics/ImageDecoder;",
|
|
"-",
|
|
"Landroid/graphics/ImageDecoder$ImageInfo;",
|
|
"-",
|
|
"Landroid/graphics/ImageDecoder$Source;",
|
|
"Lkotlin/Unit;",
|
|
">;)",
|
|
"Landroid/graphics/drawable/Drawable;"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroidx/core/graphics/ImageDecoderKt$decodeDrawable$1;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/core/graphics/ImageDecoderKt$decodeDrawable$1;-><init>(Lkotlin/jvm/functions/Function3;)V
|
|
|
|
invoke-static {p0, v0}, Landroid/graphics/ImageDecoder;->decodeDrawable(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "ImageDecoder.decodeDrawa\u2026ction(info, source)\n }"
|
|
|
|
invoke-static {p0, p1}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const-string p0, "action"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p0, "$this$decodeDrawable"
|
|
|
|
invoke-static {p0}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|