.class public final Le/g/e; .super Landroid/widget/FrameLayout; .source "CameraPreview.kt" # interfaces .implements Le/g/h/c; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Le/g/e$d;, Le/g/e$b;, Le/g/e$e;, Le/g/e$a;, Le/g/e$c; } .end annotation # instance fields .field public d:Le/g/e$b; .field public e:Le/g/e$e; .field public f:Le/g/e$a; .field public g:Le/g/e$c; .field public h:I .field public i:I .field public j:I .field public k:Le/g/j/c; .field public l:Le/g/j/c; .field public m:Le/g/j/c; .field public n:Le/g/j/b; .field public o:F .field public p:Le/g/j/a; .field public q:Lcom/camerakit/preview/CameraSurfaceTexture; .field public r:Le/g/h/b; .field public final s:Lcom/camerakit/preview/CameraSurfaceView; .field public final t:Ly/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:Le/g/h/a; # direct methods .method public constructor (Landroid/content/Context;)V .locals 4 const-string v0, "context" if-eqz p1, :cond_3 invoke-direct {p0, p1}, Landroid/widget/FrameLayout;->(Landroid/content/Context;)V sget-object p1, Le/g/e$b;->g:Le/g/e$b; iput-object p1, p0, Le/g/e;->d:Le/g/e$b; sget-object p1, Le/g/e$e;->e:Le/g/e$e; iput-object p1, p0, Le/g/e;->e:Le/g/e$e; sget-object p1, Le/g/e$a;->k:Le/g/e$a; iput-object p1, p0, Le/g/e;->f:Le/g/e$a; new-instance p1, Le/g/j/c; const/4 v1, 0x0 invoke-direct {p1, v1, v1}, Le/g/j/c;->(II)V iput-object p1, p0, Le/g/e;->k:Le/g/j/c; new-instance p1, Le/g/j/c; invoke-direct {p1, v1, v1}, Le/g/j/c;->(II)V iput-object p1, p0, Le/g/e;->l:Le/g/j/c; new-instance p1, Le/g/j/c; invoke-direct {p1, v1, v1}, Le/g/j/c;->(II)V iput-object p1, p0, Le/g/e;->m:Le/g/j/c; sget-object p1, Le/g/j/b;->d:Le/g/j/b; iput-object p1, p0, Le/g/e;->n:Le/g/j/b; const/high16 p1, 0x40000000 # 2.0f iput p1, p0, Le/g/e;->o:F sget-object p1, Le/g/j/a;->d:Le/g/j/a; iput-object p1, p0, Le/g/e;->p:Le/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}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p1, v2}, Lcom/camerakit/preview/CameraSurfaceView;->(Landroid/content/Context;)V iput-object p1, p0, Le/g/e;->s:Lcom/camerakit/preview/CameraSurfaceView; new-instance p1, Ly/a/u1; const/4 v2, 0x1 const-string v3, "CAMERA" invoke-direct {p1, v2, v3}, Ly/a/u1;->(ILjava/lang/String;)V iput-object p1, p0, Le/g/e;->t:Ly/a/x; new-instance p1, Le/g/h/f; sget v3, Landroid/os/Build$VERSION;->SDK_INT:I if-ne v1, v2, :cond_0 new-instance v0, Le/g/h/g/a; invoke-direct {v0, p0}, Le/g/h/g/a;->(Le/g/h/c;)V goto :goto_0 :cond_0 if-nez v1, :cond_2 new-instance v1, Le/g/h/h/a; invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context; move-result-object v2 invoke-static {v2, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {v1, p0, v2}, Le/g/h/h/a;->(Le/g/h/c;Landroid/content/Context;)V move-object v0, v1 :goto_0 invoke-direct {p1, v0}, Le/g/h/f;->(Le/g/h/a;)V iput-object p1, p0, Le/g/e;->w:Le/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}, Lx/u/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, Le/g/e;->h:I iget-object p1, p0, Le/g/e;->s:Lcom/camerakit/preview/CameraSurfaceView; new-instance v0, Le/g/d; invoke-direct {v0, p0}, Le/g/d;->(Le/g/e;)V invoke-virtual {p1, v0}, Lcom/camerakit/preview/CameraSurfaceView;->setCameraSurfaceTextureListener(Le/g/i/a;)V iget-object p1, p0, Le/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, Lx/l; const-string v0, "null cannot be cast to non-null type android.view.WindowManager" invoke-direct {p1, v0}, Lx/l;->(Ljava/lang/String;)V throw p1 :cond_2 new-instance p1, Lx/g; invoke-direct {p1}, Lx/g;->()V throw p1 :cond_3 invoke-static {v0}, Lx/u/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, Lx/s/f; invoke-static {p1}, Le/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation; move-result-object p1 invoke-direct {v0, p1}, Lx/s/f;->(Lkotlin/coroutines/Continuation;)V sget-object p1, Le/g/e$a;->j:Le/g/e$a; invoke-virtual {p0, p1}, Le/g/e;->setCameraState(Le/g/e$a;)V iget-object p1, p0, Le/g/e;->w:Le/g/h/a; invoke-interface {p1}, Le/g/h/a;->release()V sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit; sget-object v1, Lx/i;->d:Lx/i$a; invoke-interface {v0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V invoke-virtual {v0}, Lx/s/f;->getOrThrow()Ljava/lang/Object; move-result-object p1 sget-object v0, Lx/s/g/a;->d:Lx/s/g/a; return-object p1 .end method .method public final a(Le/g/e$d;)V .locals 7 const/4 v0, 0x0 if-eqz p1, :cond_0 sget-object v1, Ly/a/w0;->d:Ly/a/w0; iget-object v2, p0, Le/g/e;->t:Ly/a/x; const/4 v3, 0x0 new-instance v4, Le/g/e$f; invoke-direct {v4, p0, p1, v0}, Le/g/e$f;->(Le/g/e;Le/g/e$d;Lkotlin/coroutines/Continuation;)V const/4 v5, 0x2 const/4 v6, 0x0 invoke-static/range {v1 .. v6}, Le/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Ly/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job; return-void :cond_0 const-string p1, "callback" invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V throw v0 .end method .method public a(Le/g/h/b;)V .locals 3 const/4 v0, 0x0 if-eqz p1, :cond_1 sget-object v1, Le/g/e$a;->e:Le/g/e$a; invoke-virtual {p0, v1}, Le/g/e;->setCameraState(Le/g/e$a;)V iput-object p1, p0, Le/g/e;->r:Le/g/h/b; iget-object p1, p0, Le/g/e;->u:Lkotlin/coroutines/Continuation; if-eqz p1, :cond_0 sget-object v1, Lkotlin/Unit;->a:Lkotlin/Unit; sget-object v2, Lx/i;->d:Lx/i$a; invoke-interface {p1, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V :cond_0 iput-object v0, p0, Le/g/e;->u:Lkotlin/coroutines/Continuation; return-void :cond_1 const-string p1, "cameraAttributes" invoke-static {p1}, Lx/u/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, Lx/s/f; invoke-static {p1}, Le/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation; move-result-object p1 invoke-direct {v0, p1}, Lx/s/f;->(Lkotlin/coroutines/Continuation;)V iput-object v0, p0, Le/g/e;->u:Lkotlin/coroutines/Continuation; sget-object p1, Le/g/e$a;->d:Le/g/e$a; invoke-virtual {p0, p1}, Le/g/e;->setCameraState(Le/g/e$a;)V iget-object p1, p0, Le/g/e;->w:Le/g/h/a; iget-object v1, p0, Le/g/e;->p:Le/g/j/a; invoke-interface {p1, v1}, Le/g/h/a;->a(Le/g/j/a;)V invoke-virtual {v0}, Lx/s/f;->getOrThrow()Ljava/lang/Object; move-result-object p1 sget-object v0, Lx/s/g/a;->d:Lx/s/g/a; return-object p1 .end method .method public final b(Le/g/j/a;)V .locals 7 const/4 v0, 0x0 if-eqz p1, :cond_0 sget-object v1, Ly/a/w0;->d:Ly/a/w0; iget-object v2, p0, Le/g/e;->t:Ly/a/x; const/4 v3, 0x0 new-instance v4, Le/g/e$i; invoke-direct {v4, p0, p1, v0}, Le/g/e$i;->(Le/g/e;Le/g/j/a;Lkotlin/coroutines/Continuation;)V const/4 v5, 0x2 const/4 v6, 0x0 invoke-static/range {v1 .. v6}, Le/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Ly/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job; return-void :cond_0 const-string p1, "facing" invoke-static {p1}, Lx/u/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, Lx/s/f; invoke-static/range {p1 .. p1}, Le/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation; move-result-object v2 invoke-direct {v1, v2}, Lx/s/f;->(Lkotlin/coroutines/Continuation;)V iput-object v1, v0, Le/g/e;->v:Lkotlin/coroutines/Continuation; iget-object v2, v0, Le/g/e;->q:Lcom/camerakit/preview/CameraSurfaceTexture; iget-object v3, v0, Le/g/e;->r:Le/g/h/b; const/4 v4, 0x0 if-eqz v2, :cond_10 if-eqz v3, :cond_10 sget-object v5, Le/g/e$a;->f:Le/g/e$a; invoke-virtual {v0, v5}, Le/g/e;->setCameraState(Le/g/e$a;)V iget-object v5, v0, Le/g/e;->p:Le/g/j/a; sget-object v6, Le/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}, Le/g/h/b;->b()I move-result v5 invoke-virtual/range {p0 .. p0}, Le/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, Lx/g; invoke-direct {v1}, Lx/g;->()V throw v1 :cond_1 invoke-interface {v3}, Le/g/h/b;->b()I move-result v5 invoke-virtual/range {p0 .. p0}, Le/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}, Le/g/e;->setPreviewOrientation(I)V iget-object v5, v0, Le/g/e;->p:Le/g/j/a; sget-object v8, Le/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}, Le/g/h/b;->b()I move-result v5 invoke-virtual/range {p0 .. p0}, Le/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, Lx/g; invoke-direct {v1}, Lx/g;->()V throw v1 :cond_3 invoke-interface {v3}, Le/g/h/b;->b()I move-result v5 invoke-virtual/range {p0 .. p0}, Le/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}, Le/g/e;->setCaptureOrientation(I)V sget v5, Landroid/os/Build$VERSION;->SDK_INT:I invoke-virtual/range {p0 .. p0}, Le/g/e;->getDisplayOrientation()I move-result v5 invoke-virtual {v2, v5}, Lcom/camerakit/preview/CameraSurfaceTexture;->a(I)V invoke-interface {v3}, Le/g/h/b;->a()[Le/g/j/c; move-result-object v5 const-string v6, "sizes" if-eqz v5, :cond_f invoke-virtual/range {p0 .. p0}, Le/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, Le/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}, Le/g/j/c;->(II)V goto :goto_3 :cond_5 if-nez v8, :cond_e new-instance v7, Le/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}, Le/g/j/c;->(II)V :goto_3 const-string v8, "null cannot be cast to non-null type kotlin.Array" if-eqz v5, :cond_d invoke-static {v5}, Le/o/a/j/a;->sort([Ljava/lang/Object;)V invoke-static {v5}, Le/o/a/j/a;->last([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v10 check-cast v10, Le/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, Le/g/j/c;->d:I iget v9, v7, Le/g/j/c;->d:I if-lt v15, v9, :cond_6 iget v9, v14, Le/g/j/c;->e:I iget v15, v7, Le/g/j/c;->e:I if-lt v9, v15, :cond_6 invoke-virtual {v14}, Le/g/j/c;->a()I move-result v9 if-ge v9, v13, :cond_6 invoke-virtual {v14}, Le/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}, Le/g/e;->setPreviewSize(Le/g/j/c;)V invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewSize()Le/g/j/c; move-result-object v5 iget v5, v5, Le/g/j/c;->d:I invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewSize()Le/g/j/c; move-result-object v7 iget v7, v7, Le/g/j/c;->e:I invoke-virtual {v2, v5, v7}, Landroid/graphics/SurfaceTexture;->setDefaultBufferSize(II)V invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewOrientation()I move-result v5 rem-int/lit16 v5, v5, 0xb4 if-eqz v5, :cond_8 new-instance v5, Le/g/j/c; invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewSize()Le/g/j/c; move-result-object v7 iget v7, v7, Le/g/j/c;->e:I invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewSize()Le/g/j/c; move-result-object v9 iget v9, v9, Le/g/j/c;->d:I invoke-direct {v5, v7, v9}, Le/g/j/c;->(II)V goto :goto_5 :cond_8 invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewSize()Le/g/j/c; move-result-object v5 :goto_5 invoke-virtual {v2, v5}, Lcom/camerakit/preview/CameraSurfaceTexture;->a(Le/g/j/c;)V invoke-interface {v3}, Le/g/h/b;->c()[Le/g/j/c; move-result-object v3 if-eqz v3, :cond_c invoke-virtual/range {p0 .. p0}, Le/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}, Le/o/a/j/a;->sort([Ljava/lang/Object;)V invoke-static {v3}, Le/o/a/j/a;->last([Ljava/lang/Object;)Ljava/lang/Object; move-result-object v5 check-cast v5, Le/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}, Le/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}, Le/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}, Le/g/e;->setPhotoSize(Le/g/j/c;)V iget-object v3, v0, Le/g/e;->w:Le/g/h/a; invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewOrientation()I move-result v4 invoke-interface {v3, v4}, Le/g/h/a;->setPreviewOrientation(I)V iget-object v3, v0, Le/g/e;->w:Le/g/h/a; invoke-virtual/range {p0 .. p0}, Le/g/e;->getPreviewSize()Le/g/j/c; move-result-object v4 invoke-interface {v3, v4}, Le/g/h/a;->setPreviewSize(Le/g/j/c;)V iget-object v3, v0, Le/g/e;->w:Le/g/h/a; invoke-virtual/range {p0 .. p0}, Le/g/e;->getPhotoSize()Le/g/j/c; move-result-object v4 invoke-interface {v3, v4}, Le/g/h/a;->setPhotoSize(Le/g/j/c;)V iget-object v3, v0, Le/g/e;->w:Le/g/h/a; invoke-interface {v3, v2}, Le/g/h/a;->a(Landroid/graphics/SurfaceTexture;)V goto :goto_7 :cond_b new-instance v1, Lx/l; invoke-direct {v1, v8}, Lx/l;->(Ljava/lang/String;)V throw v1 :cond_c invoke-static {v6}, Lx/u/b/j;->a(Ljava/lang/String;)V throw v4 :cond_d new-instance v1, Lx/l; invoke-direct {v1, v8}, Lx/l;->(Ljava/lang/String;)V throw v1 :cond_e new-instance v1, Lx/g; invoke-direct {v1}, Lx/g;->()V throw v1 :cond_f invoke-static {v6}, Lx/u/b/j;->a(Ljava/lang/String;)V throw v4 :cond_10 new-instance v2, Ljava/lang/IllegalStateException; invoke-direct {v2}, Ljava/lang/IllegalStateException;->()V sget-object v3, Lx/i;->d:Lx/i$a; invoke-static {v2}, Le/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, Le/g/e;->v:Lkotlin/coroutines/Continuation; :goto_7 invoke-virtual {v1}, Lx/s/f;->getOrThrow()Ljava/lang/Object; move-result-object v1 sget-object v2, Lx/s/g/a;->d:Lx/s/g/a; return-object v1 .end method .method public c()V .locals 3 sget-object v0, Le/g/e$a;->g:Le/g/e$a; invoke-virtual {p0, v0}, Le/g/e;->setCameraState(Le/g/e$a;)V iget-object v0, p0, Le/g/e;->v:Lkotlin/coroutines/Continuation; if-eqz v0, :cond_0 sget-object v1, Lkotlin/Unit;->a:Lkotlin/Unit; sget-object v2, Lx/i;->d:Lx/i$a; invoke-interface {v0, v1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V :cond_0 const/4 v0, 0x0 iput-object v0, p0, Le/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, Lx/s/f; invoke-static {p1}, Le/o/a/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation; move-result-object p1 invoke-direct {v0, p1}, Lx/s/f;->(Lkotlin/coroutines/Continuation;)V sget-object p1, Le/g/e$a;->h:Le/g/e$a; invoke-virtual {p0, p1}, Le/g/e;->setCameraState(Le/g/e$a;)V iget-object p1, p0, Le/g/e;->w:Le/g/h/a; invoke-interface {p1}, Le/g/h/a;->b()V sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit; sget-object v1, Lx/i;->d:Lx/i$a; invoke-interface {v0, p1}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V invoke-virtual {v0}, Lx/s/f;->getOrThrow()Ljava/lang/Object; move-result-object p1 sget-object v0, Lx/s/g/a;->d:Lx/s/g/a; return-object p1 .end method .method public d()V .locals 1 sget-object v0, Le/g/e$a;->i:Le/g/e$a; invoke-virtual {p0, v0}, Le/g/e;->setCameraState(Le/g/e$a;)V return-void .end method .method public final e()V .locals 6 sget-object v0, Ly/a/w0;->d:Ly/a/w0; iget-object v1, p0, Le/g/e;->t:Ly/a/x; new-instance v3, Le/g/e$g; const/4 v2, 0x0 invoke-direct {v3, p0, v2}, Le/g/e$g;->(Le/g/e;Lkotlin/coroutines/Continuation;)V const/4 v4, 0x2 const/4 v5, 0x0 invoke-static/range {v0 .. v5}, Le/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Ly/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, Ly/a/w0;->d:Ly/a/w0; iget-object v1, p0, Le/g/e;->t:Ly/a/x; new-instance v3, Le/g/e$h; const/4 v2, 0x0 invoke-direct {v3, p0, v2}, Le/g/e$h;->(Le/g/e;Lkotlin/coroutines/Continuation;)V const/4 v4, 0x2 const/4 v5, 0x0 invoke-static/range {v0 .. v5}, Le/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Ly/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, Ly/a/w0;->d:Ly/a/w0; iget-object v1, p0, Le/g/e;->t:Ly/a/x; new-instance v3, Le/g/e$j; const/4 v2, 0x0 invoke-direct {v3, p0, v2}, Le/g/e$j;->(Le/g/e;Lkotlin/coroutines/Continuation;)V const/4 v4, 0x2 const/4 v5, 0x0 invoke-static/range {v0 .. v5}, Le/o/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Ly/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job; return-void .end method .method public final getCameraState()Le/g/e$a; .locals 1 iget-object v0, p0, Le/g/e;->f:Le/g/e$a; return-object v0 .end method .method public final getCaptureOrientation()I .locals 1 iget v0, p0, Le/g/e;->j:I return v0 .end method .method public final getDisplayOrientation()I .locals 1 iget v0, p0, Le/g/e;->h:I return v0 .end method .method public final getFlash()Le/g/j/b; .locals 1 iget-object v0, p0, Le/g/e;->n:Le/g/j/b; return-object v0 .end method .method public final getImageMegaPixels()F .locals 1 iget v0, p0, Le/g/e;->o:F return v0 .end method .method public final getLifecycleState()Le/g/e$b; .locals 1 iget-object v0, p0, Le/g/e;->d:Le/g/e$b; return-object v0 .end method .method public final getListener()Le/g/e$c; .locals 1 iget-object v0, p0, Le/g/e;->g:Le/g/e$c; return-object v0 .end method .method public final getPhotoSize()Le/g/j/c; .locals 1 iget-object v0, p0, Le/g/e;->m:Le/g/j/c; return-object v0 .end method .method public final getPreviewOrientation()I .locals 1 iget v0, p0, Le/g/e;->i:I return v0 .end method .method public final getPreviewSize()Le/g/j/c; .locals 1 iget-object v0, p0, Le/g/e;->k:Le/g/j/c; return-object v0 .end method .method public final getSurfaceSize()Le/g/j/c; .locals 1 iget-object v0, p0, Le/g/e;->q:Lcom/camerakit/preview/CameraSurfaceTexture; if-eqz v0, :cond_0 invoke-virtual {v0}, Lcom/camerakit/preview/CameraSurfaceTexture;->b()Le/g/j/c; move-result-object v0 if-eqz v0, :cond_0 goto :goto_0 :cond_0 iget-object v0, p0, Le/g/e;->l:Le/g/j/c; :goto_0 return-object v0 .end method .method public final getSurfaceState()Le/g/e$e; .locals 1 iget-object v0, p0, Le/g/e;->e:Le/g/e$e; return-object v0 .end method .method public onCameraClosed()V .locals 1 sget-object v0, Le/g/e$a;->k:Le/g/e$a; invoke-virtual {p0, v0}, Le/g/e;->setCameraState(Le/g/e$a;)V return-void .end method .method public final setCameraState(Le/g/e$a;)V .locals 2 if-eqz p1, :cond_5 iput-object p1, p0, Le/g/e;->f:Le/g/e$a; sget-object v0, Le/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, Le/g/e;->g:Le/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, Le/g/b; invoke-direct {v1, p1}, Le/g/b;->(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, Le/g/e;->g:Le/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, Le/g/e;->g:Le/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, Le/g/e;->g:Le/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, Le/g/a; invoke-direct {v1, p1}, Le/g/a;->(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}, Lx/u/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, Le/g/e;->j:I return-void .end method .method public final setDisplayOrientation(I)V .locals 0 iput p1, p0, Le/g/e;->h:I return-void .end method .method public final setFlash(Le/g/j/b;)V .locals 0 if-eqz p1, :cond_0 iput-object p1, p0, Le/g/e;->n:Le/g/j/b; return-void :cond_0 const-string p1, "" invoke-static {p1}, Lx/u/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, Le/g/e;->o:F return-void .end method .method public final setLifecycleState(Le/g/e$b;)V .locals 0 if-eqz p1, :cond_0 iput-object p1, p0, Le/g/e;->d:Le/g/e$b; return-void :cond_0 const-string p1, "" invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public final setListener(Le/g/e$c;)V .locals 0 iput-object p1, p0, Le/g/e;->g:Le/g/e$c; return-void .end method .method public final setPhotoSize(Le/g/j/c;)V .locals 0 if-eqz p1, :cond_0 iput-object p1, p0, Le/g/e;->m:Le/g/j/c; return-void :cond_0 const-string p1, "" invoke-static {p1}, Lx/u/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, Le/g/e;->i:I return-void .end method .method public final setPreviewSize(Le/g/j/c;)V .locals 0 if-eqz p1, :cond_0 iput-object p1, p0, Le/g/e;->k:Le/g/j/c; return-void :cond_0 const-string p1, "" invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public final setSurfaceSize(Le/g/j/c;)V .locals 0 if-eqz p1, :cond_0 iput-object p1, p0, Le/g/e;->l:Le/g/j/c; return-void :cond_0 const-string p1, "" invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public final setSurfaceState(Le/g/e$e;)V .locals 0 if-eqz p1, :cond_0 iput-object p1, p0, Le/g/e;->e:Le/g/e$e; return-void :cond_0 const-string p1, "" invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method