apkfuckery/com.discord/smali/f/g/e.smali
2020-05-11 21:22:21 +02:00

1462 lines
30 KiB
Smali

.class public final Lf/g/e;
.super Landroid/widget/FrameLayout;
.source "CameraPreview.kt"
# interfaces
.implements Lf/g/h/c;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/g/e$d;,
Lf/g/e$b;,
Lf/g/e$e;,
Lf/g/e$a;,
Lf/g/e$c;
}
.end annotation
# instance fields
.field public d:Lf/g/e$b;
.field public e:Lf/g/e$e;
.field public f:Lf/g/e$a;
.field public g:Lf/g/e$c;
.field public h:I
.field public i:I
.field public j:I
.field public k:Lf/g/j/c;
.field public l:Lf/g/j/c;
.field public m:Lf/g/j/c;
.field public n:Lf/g/j/b;
.field public o:F
.field public p:Lf/g/j/a;
.field public q:Lcom/camerakit/preview/CameraSurfaceTexture;
.field public r:Lf/g/h/b;
.field public final s:Lcom/camerakit/preview/CameraSurfaceView;
.field public final t:Lz/a/x;
.field public u:Lkotlin/coroutines/Continuation;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;"
}
.end annotation
.end field
.field public v:Lkotlin/coroutines/Continuation;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;"
}
.end annotation
.end field
.field public final w:Lf/g/h/a;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 4
const-string v0, "context"
if-eqz p1, :cond_3
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
sget-object p1, Lf/g/e$b;->g:Lf/g/e$b;
iput-object p1, p0, Lf/g/e;->d:Lf/g/e$b;
sget-object p1, Lf/g/e$e;->e:Lf/g/e$e;
iput-object p1, p0, Lf/g/e;->e:Lf/g/e$e;
sget-object p1, Lf/g/e$a;->k:Lf/g/e$a;
iput-object p1, p0, Lf/g/e;->f:Lf/g/e$a;
new-instance p1, Lf/g/j/c;
const/4 v1, 0x0
invoke-direct {p1, v1, v1}, Lf/g/j/c;-><init>(II)V
iput-object p1, p0, Lf/g/e;->k:Lf/g/j/c;
new-instance p1, Lf/g/j/c;
invoke-direct {p1, v1, v1}, Lf/g/j/c;-><init>(II)V
iput-object p1, p0, Lf/g/e;->l:Lf/g/j/c;
new-instance p1, Lf/g/j/c;
invoke-direct {p1, v1, v1}, Lf/g/j/c;-><init>(II)V
iput-object p1, p0, Lf/g/e;->m:Lf/g/j/c;
sget-object p1, Lf/g/j/b;->d:Lf/g/j/b;
iput-object p1, p0, Lf/g/e;->n:Lf/g/j/b;
const/high16 p1, 0x40000000 # 2.0f
iput p1, p0, Lf/g/e;->o:F
sget-object p1, Lf/g/j/a;->d:Lf/g/j/a;
iput-object p1, p0, Lf/g/e;->p:Lf/g/j/a;
new-instance p1, Lcom/camerakit/preview/CameraSurfaceView;
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object v2
invoke-static {v2, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p1, v2}, Lcom/camerakit/preview/CameraSurfaceView;-><init>(Landroid/content/Context;)V
iput-object p1, p0, Lf/g/e;->s:Lcom/camerakit/preview/CameraSurfaceView;
new-instance p1, Lz/a/u1;
const/4 v2, 0x1
const-string v3, "CAMERA"
invoke-direct {p1, v2, v3}, Lz/a/u1;-><init>(ILjava/lang/String;)V
iput-object p1, p0, Lf/g/e;->t:Lz/a/x;
new-instance p1, Lf/g/h/f;
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
if-ne v1, v2, :cond_0
new-instance v0, Lf/g/h/g/a;
invoke-direct {v0, p0}, Lf/g/h/g/a;-><init>(Lf/g/h/c;)V
goto :goto_0
:cond_0
if-nez v1, :cond_2
new-instance v1, Lf/g/h/h/a;
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object v2
invoke-static {v2, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v1, p0, v2}, Lf/g/h/h/a;-><init>(Lf/g/h/c;Landroid/content/Context;)V
move-object v0, v1
:goto_0
invoke-direct {p1, v0}, Lf/g/h/f;-><init>(Lf/g/h/a;)V
iput-object p1, p0, Lf/g/e;->w:Lf/g/h/a;
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object p1
const-string v0, "window"
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_1
check-cast p1, Landroid/view/WindowManager;
invoke-interface {p1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
move-result-object p1
const-string v0, "windowManager.defaultDisplay"
invoke-static {p1, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Landroid/view/Display;->getRotation()I
move-result p1
mul-int/lit8 p1, p1, 0x5a
iput p1, p0, Lf/g/e;->h:I
iget-object p1, p0, Lf/g/e;->s:Lcom/camerakit/preview/CameraSurfaceView;
new-instance v0, Lf/g/d;
invoke-direct {v0, p0}, Lf/g/d;-><init>(Lf/g/e;)V
invoke-virtual {p1, v0}, Lcom/camerakit/preview/CameraSurfaceView;->setCameraSurfaceTextureListener(Lf/g/i/a;)V
iget-object p1, p0, Lf/g/e;->s:Lcom/camerakit/preview/CameraSurfaceView;
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
return-void
:cond_1
new-instance p1, Ly/l;
const-string v0, "null cannot be cast to non-null type android.view.WindowManager"
invoke-direct {p1, v0}, Ly/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
new-instance p1, Ly/g;
invoke-direct {p1}, Ly/g;-><init>()V
throw p1
:cond_3
invoke-static {v0}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public final synthetic a(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
new-instance v0, Ly/s/f;
invoke-static {p1}, Lf/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
invoke-direct {v0, p1}, Ly/s/f;-><init>(Lkotlin/coroutines/Continuation;)V
sget-object p1, Lf/g/e$a;->j:Lf/g/e$a;
invoke-virtual {p0, p1}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
iget-object p1, p0, Lf/g/e;->w:Lf/g/h/a;
invoke-interface {p1}, Lf/g/h/a;->release()V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
sget-object v1, Ly/i;->d:Ly/i$a;
invoke-interface {v0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
invoke-virtual {v0}, Ly/s/f;->getOrThrow()Ljava/lang/Object;
move-result-object p1
sget-object v0, Ly/s/g/a;->d:Ly/s/g/a;
return-object p1
.end method
.method public final a(Lf/g/e$d;)V
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_0
sget-object v1, Lz/a/w0;->d:Lz/a/w0;
iget-object v2, p0, Lf/g/e;->t:Lz/a/x;
const/4 v3, 0x0
new-instance v4, Lf/g/e$f;
invoke-direct {v4, p0, p1, v0}, Lf/g/e$f;-><init>(Lf/g/e;Lf/g/e$d;Lkotlin/coroutines/Continuation;)V
const/4 v5, 0x2
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lf/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lz/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
return-void
:cond_0
const-string p1, "callback"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public a(Lf/g/h/b;)V
.locals 3
const/4 v0, 0x0
if-eqz p1, :cond_1
sget-object v1, Lf/g/e$a;->e:Lf/g/e$a;
invoke-virtual {p0, v1}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
iput-object p1, p0, Lf/g/e;->r:Lf/g/h/b;
iget-object p1, p0, Lf/g/e;->u:Lkotlin/coroutines/Continuation;
if-eqz p1, :cond_0
sget-object v1, Lkotlin/Unit;->a:Lkotlin/Unit;
sget-object v2, Ly/i;->d:Ly/i$a;
invoke-interface {p1, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:cond_0
iput-object v0, p0, Lf/g/e;->u:Lkotlin/coroutines/Continuation;
return-void
:cond_1
const-string p1, "cameraAttributes"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public final synthetic b(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
new-instance v0, Ly/s/f;
invoke-static {p1}, Lf/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
invoke-direct {v0, p1}, Ly/s/f;-><init>(Lkotlin/coroutines/Continuation;)V
iput-object v0, p0, Lf/g/e;->u:Lkotlin/coroutines/Continuation;
sget-object p1, Lf/g/e$a;->d:Lf/g/e$a;
invoke-virtual {p0, p1}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
iget-object p1, p0, Lf/g/e;->w:Lf/g/h/a;
iget-object v1, p0, Lf/g/e;->p:Lf/g/j/a;
invoke-interface {p1, v1}, Lf/g/h/a;->a(Lf/g/j/a;)V
invoke-virtual {v0}, Ly/s/f;->getOrThrow()Ljava/lang/Object;
move-result-object p1
sget-object v0, Ly/s/g/a;->d:Ly/s/g/a;
return-object p1
.end method
.method public final b(Lf/g/j/a;)V
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_0
sget-object v1, Lz/a/w0;->d:Lz/a/w0;
iget-object v2, p0, Lf/g/e;->t:Lz/a/x;
const/4 v3, 0x0
new-instance v4, Lf/g/e$i;
invoke-direct {v4, p0, p1, v0}, Lf/g/e$i;-><init>(Lf/g/e;Lf/g/j/a;Lkotlin/coroutines/Continuation;)V
const/4 v5, 0x2
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lf/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lz/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
return-void
:cond_0
const-string p1, "facing"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
throw v0
.end method
.method public final synthetic c(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 16
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
move-object/from16 v0, p0
new-instance v1, Ly/s/f;
invoke-static/range {p1 .. p1}, Lf/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object v2
invoke-direct {v1, v2}, Ly/s/f;-><init>(Lkotlin/coroutines/Continuation;)V
iput-object v1, v0, Lf/g/e;->v:Lkotlin/coroutines/Continuation;
iget-object v2, v0, Lf/g/e;->q:Lcom/camerakit/preview/CameraSurfaceTexture;
iget-object v3, v0, Lf/g/e;->r:Lf/g/h/b;
const/4 v4, 0x0
if-eqz v2, :cond_10
if-eqz v3, :cond_10
sget-object v5, Lf/g/e$a;->f:Lf/g/e$a;
invoke-virtual {v0, v5}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
iget-object v5, v0, Lf/g/e;->p:Lf/g/j/a;
sget-object v6, Lf/g/f;->b:[I
invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I
move-result v5
aget v5, v6, v5
const/4 v6, 0x2
const/4 v7, 0x1
if-eq v5, v7, :cond_1
if-ne v5, v6, :cond_0
invoke-interface {v3}, Lf/g/h/b;->b()I
move-result v5
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getDisplayOrientation()I
move-result v8
add-int/2addr v8, v5
rem-int/lit16 v8, v8, 0x168
rsub-int v5, v8, 0x168
rem-int/lit16 v5, v5, 0x168
goto :goto_0
:cond_0
new-instance v1, Ly/g;
invoke-direct {v1}, Ly/g;-><init>()V
throw v1
:cond_1
invoke-interface {v3}, Lf/g/h/b;->b()I
move-result v5
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getDisplayOrientation()I
move-result v8
sub-int/2addr v5, v8
add-int/lit16 v5, v5, 0x168
rem-int/lit16 v5, v5, 0x168
:goto_0
invoke-virtual {v0, v5}, Lf/g/e;->setPreviewOrientation(I)V
iget-object v5, v0, Lf/g/e;->p:Lf/g/j/a;
sget-object v8, Lf/g/f;->c:[I
invoke-virtual {v5}, Ljava/lang/Enum;->ordinal()I
move-result v5
aget v5, v8, v5
if-eq v5, v7, :cond_3
if-ne v5, v6, :cond_2
invoke-interface {v3}, Lf/g/h/b;->b()I
move-result v5
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getDisplayOrientation()I
move-result v6
add-int/2addr v6, v5
add-int/lit16 v6, v6, 0x168
rem-int/lit16 v6, v6, 0x168
goto :goto_1
:cond_2
new-instance v1, Ly/g;
invoke-direct {v1}, Ly/g;-><init>()V
throw v1
:cond_3
invoke-interface {v3}, Lf/g/h/b;->b()I
move-result v5
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getDisplayOrientation()I
move-result v6
sub-int/2addr v5, v6
add-int/lit16 v5, v5, 0x168
rem-int/lit16 v6, v5, 0x168
:goto_1
invoke-virtual {v0, v6}, Lf/g/e;->setCaptureOrientation(I)V
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getDisplayOrientation()I
move-result v5
invoke-virtual {v2, v5}, Lcom/camerakit/preview/CameraSurfaceTexture;->a(I)V
invoke-interface {v3}, Lf/g/h/b;->a()[Lf/g/j/c;
move-result-object v5
const-string v6, "sizes"
if-eqz v5, :cond_f
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewOrientation()I
move-result v8
rem-int/lit16 v8, v8, 0xb4
if-nez v8, :cond_4
const/4 v8, 0x1
goto :goto_2
:cond_4
const/4 v8, 0x0
:goto_2
if-ne v8, v7, :cond_5
new-instance v7, Lf/g/j/c;
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getWidth()I
move-result v8
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getHeight()I
move-result v10
invoke-direct {v7, v8, v10}, Lf/g/j/c;-><init>(II)V
goto :goto_3
:cond_5
if-nez v8, :cond_e
new-instance v7, Lf/g/j/c;
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getHeight()I
move-result v8
invoke-virtual/range {p0 .. p0}, Landroid/widget/FrameLayout;->getWidth()I
move-result v10
invoke-direct {v7, v8, v10}, Lf/g/j/c;-><init>(II)V
:goto_3
const-string v8, "null cannot be cast to non-null type kotlin.Array<kotlin.Any?>"
if-eqz v5, :cond_d
invoke-static {v5}, Lf/o/a/j/a;->sort([Ljava/lang/Object;)V
invoke-static {v5}, Lf/o/a/j/a;->last([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v10
check-cast v10, Lf/g/j/c;
array-length v11, v5
const v12, 0x7fffffff
move-object v12, v10
const/4 v10, 0x0
const v13, 0x7fffffff
:goto_4
if-ge v10, v11, :cond_7
aget-object v14, v5, v10
iget v15, v14, Lf/g/j/c;->d:I
iget v9, v7, Lf/g/j/c;->d:I
if-lt v15, v9, :cond_6
iget v9, v14, Lf/g/j/c;->e:I
iget v15, v7, Lf/g/j/c;->e:I
if-lt v9, v15, :cond_6
invoke-virtual {v14}, Lf/g/j/c;->a()I
move-result v9
if-ge v9, v13, :cond_6
invoke-virtual {v14}, Lf/g/j/c;->a()I
move-result v9
move v13, v9
move-object v12, v14
:cond_6
add-int/lit8 v10, v10, 0x1
goto :goto_4
:cond_7
invoke-virtual {v0, v12}, Lf/g/e;->setPreviewSize(Lf/g/j/c;)V
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewSize()Lf/g/j/c;
move-result-object v5
iget v5, v5, Lf/g/j/c;->d:I
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewSize()Lf/g/j/c;
move-result-object v7
iget v7, v7, Lf/g/j/c;->e:I
invoke-virtual {v2, v5, v7}, Landroid/graphics/SurfaceTexture;->setDefaultBufferSize(II)V
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewOrientation()I
move-result v5
rem-int/lit16 v5, v5, 0xb4
if-eqz v5, :cond_8
new-instance v5, Lf/g/j/c;
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewSize()Lf/g/j/c;
move-result-object v7
iget v7, v7, Lf/g/j/c;->e:I
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewSize()Lf/g/j/c;
move-result-object v9
iget v9, v9, Lf/g/j/c;->d:I
invoke-direct {v5, v7, v9}, Lf/g/j/c;-><init>(II)V
goto :goto_5
:cond_8
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewSize()Lf/g/j/c;
move-result-object v5
:goto_5
invoke-virtual {v2, v5}, Lcom/camerakit/preview/CameraSurfaceTexture;->a(Lf/g/j/c;)V
invoke-interface {v3}, Lf/g/h/b;->c()[Lf/g/j/c;
move-result-object v3
if-eqz v3, :cond_c
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getImageMegaPixels()F
move-result v4
const v5, 0xf4240
int-to-float v5, v5
mul-float v4, v4, v5
float-to-int v4, v4
if-eqz v3, :cond_b
invoke-static {v3}, Lf/o/a/j/a;->sort([Ljava/lang/Object;)V
invoke-static {v3}, Lf/o/a/j/a;->last([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lf/g/j/c;
array-length v6, v3
move-object v7, v5
const/4 v5, 0x0
:goto_6
if-ge v5, v6, :cond_a
aget-object v8, v3, v5
invoke-virtual {v8}, Lf/g/j/c;->a()I
move-result v9
sub-int v9, v4, v9
invoke-static {v9}, Ljava/lang/Math;->abs(I)I
move-result v9
invoke-virtual {v7}, Lf/g/j/c;->a()I
move-result v10
sub-int v10, v4, v10
invoke-static {v10}, Ljava/lang/Math;->abs(I)I
move-result v10
if-ge v9, v10, :cond_9
move-object v7, v8
:cond_9
add-int/lit8 v5, v5, 0x1
goto :goto_6
:cond_a
invoke-virtual {v0, v7}, Lf/g/e;->setPhotoSize(Lf/g/j/c;)V
iget-object v3, v0, Lf/g/e;->w:Lf/g/h/a;
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewOrientation()I
move-result v4
invoke-interface {v3, v4}, Lf/g/h/a;->setPreviewOrientation(I)V
iget-object v3, v0, Lf/g/e;->w:Lf/g/h/a;
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPreviewSize()Lf/g/j/c;
move-result-object v4
invoke-interface {v3, v4}, Lf/g/h/a;->setPreviewSize(Lf/g/j/c;)V
iget-object v3, v0, Lf/g/e;->w:Lf/g/h/a;
invoke-virtual/range {p0 .. p0}, Lf/g/e;->getPhotoSize()Lf/g/j/c;
move-result-object v4
invoke-interface {v3, v4}, Lf/g/h/a;->setPhotoSize(Lf/g/j/c;)V
iget-object v3, v0, Lf/g/e;->w:Lf/g/h/a;
invoke-interface {v3, v2}, Lf/g/h/a;->a(Landroid/graphics/SurfaceTexture;)V
goto :goto_7
:cond_b
new-instance v1, Ly/l;
invoke-direct {v1, v8}, Ly/l;-><init>(Ljava/lang/String;)V
throw v1
:cond_c
invoke-static {v6}, Ly/v/b/j;->a(Ljava/lang/String;)V
throw v4
:cond_d
new-instance v1, Ly/l;
invoke-direct {v1, v8}, Ly/l;-><init>(Ljava/lang/String;)V
throw v1
:cond_e
new-instance v1, Ly/g;
invoke-direct {v1}, Ly/g;-><init>()V
throw v1
:cond_f
invoke-static {v6}, Ly/v/b/j;->a(Ljava/lang/String;)V
throw v4
:cond_10
new-instance v2, Ljava/lang/IllegalStateException;
invoke-direct {v2}, Ljava/lang/IllegalStateException;-><init>()V
sget-object v3, Ly/i;->d:Ly/i$a;
invoke-static {v2}, Lf/o/a/j/a;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v2
invoke-interface {v1, v2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
iput-object v4, v0, Lf/g/e;->v:Lkotlin/coroutines/Continuation;
:goto_7
invoke-virtual {v1}, Ly/s/f;->getOrThrow()Ljava/lang/Object;
move-result-object v1
sget-object v2, Ly/s/g/a;->d:Ly/s/g/a;
return-object v1
.end method
.method public c()V
.locals 3
sget-object v0, Lf/g/e$a;->g:Lf/g/e$a;
invoke-virtual {p0, v0}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
iget-object v0, p0, Lf/g/e;->v:Lkotlin/coroutines/Continuation;
if-eqz v0, :cond_0
sget-object v1, Lkotlin/Unit;->a:Lkotlin/Unit;
sget-object v2, Ly/i;->d:Ly/i$a;
invoke-interface {v0, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
:cond_0
const/4 v0, 0x0
iput-object v0, p0, Lf/g/e;->v:Lkotlin/coroutines/Continuation;
return-void
.end method
.method public final synthetic d(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/Continuation<",
"-",
"Lkotlin/Unit;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
new-instance v0, Ly/s/f;
invoke-static {p1}, Lf/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
move-result-object p1
invoke-direct {v0, p1}, Ly/s/f;-><init>(Lkotlin/coroutines/Continuation;)V
sget-object p1, Lf/g/e$a;->h:Lf/g/e$a;
invoke-virtual {p0, p1}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
iget-object p1, p0, Lf/g/e;->w:Lf/g/h/a;
invoke-interface {p1}, Lf/g/h/a;->b()V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
sget-object v1, Ly/i;->d:Ly/i$a;
invoke-interface {v0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
invoke-virtual {v0}, Ly/s/f;->getOrThrow()Ljava/lang/Object;
move-result-object p1
sget-object v0, Ly/s/g/a;->d:Ly/s/g/a;
return-object p1
.end method
.method public d()V
.locals 1
sget-object v0, Lf/g/e$a;->i:Lf/g/e$a;
invoke-virtual {p0, v0}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
return-void
.end method
.method public final e()V
.locals 6
sget-object v0, Lz/a/w0;->d:Lz/a/w0;
iget-object v1, p0, Lf/g/e;->t:Lz/a/x;
new-instance v3, Lf/g/e$g;
const/4 v2, 0x0
invoke-direct {v3, p0, v2}, Lf/g/e$g;-><init>(Lf/g/e;Lkotlin/coroutines/Continuation;)V
const/4 v4, 0x2
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lf/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lz/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
return-void
.end method
.method public final f()V
.locals 6
sget-object v0, Lz/a/w0;->d:Lz/a/w0;
iget-object v1, p0, Lf/g/e;->t:Lz/a/x;
new-instance v3, Lf/g/e$h;
const/4 v2, 0x0
invoke-direct {v3, p0, v2}, Lf/g/e$h;-><init>(Lf/g/e;Lkotlin/coroutines/Continuation;)V
const/4 v4, 0x2
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lf/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lz/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
return-void
.end method
.method public final g()V
.locals 6
sget-object v0, Lz/a/w0;->d:Lz/a/w0;
iget-object v1, p0, Lf/g/e;->t:Lz/a/x;
new-instance v3, Lf/g/e$j;
const/4 v2, 0x0
invoke-direct {v3, p0, v2}, Lf/g/e$j;-><init>(Lf/g/e;Lkotlin/coroutines/Continuation;)V
const/4 v4, 0x2
const/4 v5, 0x0
invoke-static/range {v0 .. v5}, Lf/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lz/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
return-void
.end method
.method public final getCameraState()Lf/g/e$a;
.locals 1
iget-object v0, p0, Lf/g/e;->f:Lf/g/e$a;
return-object v0
.end method
.method public final getCaptureOrientation()I
.locals 1
iget v0, p0, Lf/g/e;->j:I
return v0
.end method
.method public final getDisplayOrientation()I
.locals 1
iget v0, p0, Lf/g/e;->h:I
return v0
.end method
.method public final getFlash()Lf/g/j/b;
.locals 1
iget-object v0, p0, Lf/g/e;->n:Lf/g/j/b;
return-object v0
.end method
.method public final getImageMegaPixels()F
.locals 1
iget v0, p0, Lf/g/e;->o:F
return v0
.end method
.method public final getLifecycleState()Lf/g/e$b;
.locals 1
iget-object v0, p0, Lf/g/e;->d:Lf/g/e$b;
return-object v0
.end method
.method public final getListener()Lf/g/e$c;
.locals 1
iget-object v0, p0, Lf/g/e;->g:Lf/g/e$c;
return-object v0
.end method
.method public final getPhotoSize()Lf/g/j/c;
.locals 1
iget-object v0, p0, Lf/g/e;->m:Lf/g/j/c;
return-object v0
.end method
.method public final getPreviewOrientation()I
.locals 1
iget v0, p0, Lf/g/e;->i:I
return v0
.end method
.method public final getPreviewSize()Lf/g/j/c;
.locals 1
iget-object v0, p0, Lf/g/e;->k:Lf/g/j/c;
return-object v0
.end method
.method public final getSurfaceSize()Lf/g/j/c;
.locals 1
iget-object v0, p0, Lf/g/e;->q:Lcom/camerakit/preview/CameraSurfaceTexture;
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/camerakit/preview/CameraSurfaceTexture;->b()Lf/g/j/c;
move-result-object v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Lf/g/e;->l:Lf/g/j/c;
:goto_0
return-object v0
.end method
.method public final getSurfaceState()Lf/g/e$e;
.locals 1
iget-object v0, p0, Lf/g/e;->e:Lf/g/e$e;
return-object v0
.end method
.method public onCameraClosed()V
.locals 1
sget-object v0, Lf/g/e$a;->k:Lf/g/e$a;
invoke-virtual {p0, v0}, Lf/g/e;->setCameraState(Lf/g/e$a;)V
return-void
.end method
.method public final setCameraState(Lf/g/e$a;)V
.locals 2
if-eqz p1, :cond_5
iput-object p1, p0, Lf/g/e;->f:Lf/g/e$a;
sget-object v0, Lf/g/f;->a:[I
invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I
move-result p1
aget p1, v0, p1
const/4 v0, 0x1
if-eq p1, v0, :cond_3
const/4 v0, 0x2
if-eq p1, v0, :cond_2
const/4 v0, 0x3
if-eq p1, v0, :cond_1
const/4 v0, 0x4
if-eq p1, v0, :cond_0
goto :goto_0
:cond_0
iget-object p1, p0, Lf/g/e;->g:Lf/g/e$c;
if-eqz p1, :cond_4
check-cast p1, Lcom/camerakit/CameraKitView$a;
iget-object v0, p1, Lcom/camerakit/CameraKitView$a;->a:Lcom/camerakit/CameraKitView;
iget-object v1, v0, Lcom/camerakit/CameraKitView;->r:Lcom/camerakit/CameraKitView$d;
if-eqz v1, :cond_4
new-instance v1, Lf/g/b;
invoke-direct {v1, p1}, Lf/g/b;-><init>(Lcom/camerakit/CameraKitView$a;)V
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
goto :goto_0
:cond_1
iget-object p1, p0, Lf/g/e;->g:Lf/g/e$c;
if-eqz p1, :cond_4
check-cast p1, Lcom/camerakit/CameraKitView$a;
iget-object p1, p1, Lcom/camerakit/CameraKitView$a;->a:Lcom/camerakit/CameraKitView;
iget-object p1, p1, Lcom/camerakit/CameraKitView;->s:Lcom/camerakit/CameraKitView$i;
goto :goto_0
:cond_2
iget-object p1, p0, Lf/g/e;->g:Lf/g/e$c;
if-eqz p1, :cond_4
check-cast p1, Lcom/camerakit/CameraKitView$a;
iget-object p1, p1, Lcom/camerakit/CameraKitView$a;->a:Lcom/camerakit/CameraKitView;
iget-object p1, p1, Lcom/camerakit/CameraKitView;->s:Lcom/camerakit/CameraKitView$i;
goto :goto_0
:cond_3
iget-object p1, p0, Lf/g/e;->g:Lf/g/e$c;
if-eqz p1, :cond_4
check-cast p1, Lcom/camerakit/CameraKitView$a;
iget-object v0, p1, Lcom/camerakit/CameraKitView$a;->a:Lcom/camerakit/CameraKitView;
iget-object v1, v0, Lcom/camerakit/CameraKitView;->r:Lcom/camerakit/CameraKitView$d;
if-eqz v1, :cond_4
new-instance v1, Lf/g/a;
invoke-direct {v1, p1}, Lf/g/a;-><init>(Lcom/camerakit/CameraKitView$a;)V
invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
:cond_4
:goto_0
return-void
:cond_5
const-string p1, "state"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final setCaptureOrientation(I)V
.locals 0
iput p1, p0, Lf/g/e;->j:I
return-void
.end method
.method public final setDisplayOrientation(I)V
.locals 0
iput p1, p0, Lf/g/e;->h:I
return-void
.end method
.method public final setFlash(Lf/g/j/b;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lf/g/e;->n:Lf/g/j/b;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final setImageMegaPixels(F)V
.locals 0
iput p1, p0, Lf/g/e;->o:F
return-void
.end method
.method public final setLifecycleState(Lf/g/e$b;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lf/g/e;->d:Lf/g/e$b;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final setListener(Lf/g/e$c;)V
.locals 0
iput-object p1, p0, Lf/g/e;->g:Lf/g/e$c;
return-void
.end method
.method public final setPhotoSize(Lf/g/j/c;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lf/g/e;->m:Lf/g/j/c;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final setPreviewOrientation(I)V
.locals 0
iput p1, p0, Lf/g/e;->i:I
return-void
.end method
.method public final setPreviewSize(Lf/g/j/c;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lf/g/e;->k:Lf/g/j/c;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final setSurfaceSize(Lf/g/j/c;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lf/g/e;->l:Lf/g/j/c;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final setSurfaceState(Lf/g/e$e;)V
.locals 0
if-eqz p1, :cond_0
iput-object p1, p0, Lf/g/e;->e:Lf/g/e$e;
return-void
:cond_0
const-string p1, "<set-?>"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method