2019-10-03 02:31:26 +00:00
|
|
|
.class public Lcom/camerakit/CameraKitView;
|
|
|
|
.super Lcom/camerakit/c;
|
|
|
|
.source "CameraKitView.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/camerakit/CameraKitView$a;,
|
|
|
|
Lcom/camerakit/CameraKitView$c;,
|
|
|
|
Lcom/camerakit/CameraKitView$e;,
|
|
|
|
Lcom/camerakit/CameraKitView$f;,
|
|
|
|
Lcom/camerakit/CameraKitView$d;,
|
|
|
|
Lcom/camerakit/CameraKitView$ErrorListener;,
|
|
|
|
Lcom/camerakit/CameraKitView$g;,
|
|
|
|
Lcom/camerakit/CameraKitView$b;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private static nl:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private static nm:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private mT:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private mU:F
|
|
|
|
|
|
|
|
.field private mV:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.field private mW:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.field private mZ:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private na:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private nb:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.field private nc:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
.field private nd:I
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private ne:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private nf:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private ng:Lcom/camerakit/CameraKitView$d;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private nh:Lcom/camerakit/CameraKitView$b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private ni:Lcom/camerakit/CameraKitView$g;
|
2019-10-09 23:16:36 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private nj:Lcom/camerakit/CameraKitView$ErrorListener;
|
2019-10-09 23:16:36 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private nk:Lcom/camerakit/CameraKitView$f;
|
2019-10-09 23:16:36 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
.field private nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/camerakit/c;-><init>(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/camerakit/CameraKitView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/camerakit/c;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/camerakit/CameraKitView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/camerakit/c;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/camerakit/CameraKitView;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic a(Lcom/camerakit/CameraKitView;)Lcom/camerakit/CameraKitView$b;
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p0, p0, Lcom/camerakit/CameraKitView;->nh:Lcom/camerakit/CameraKitView$b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
sget-object v0, Lcom/camerakit/R$a;->CameraKitView:[I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_android_adjustViewBounds:I
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-boolean p2, p0, Lcom/camerakit/CameraKitView;->mT:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_aspectRatio:I
|
|
|
|
|
|
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v1}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->mU:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_facing:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->mV:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p2, Lcom/camerakit/CameraKitView;->nl:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lcom/camerakit/b/a;->pc:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne p2, v1, :cond_0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput v2, p0, Lcom/camerakit/CameraKitView;->mV:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_flash:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->mW:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p2, Lcom/camerakit/CameraKitView;->nm:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lcom/camerakit/b/b;->pf:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-ne p2, v0, :cond_1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput v2, p0, Lcom/camerakit/CameraKitView;->mW:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_focus:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v2}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->mZ:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_zoomFactor:I
|
|
|
|
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->na:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_permissions:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v2}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_imageMegaPixels:I
|
|
|
|
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getFloat(IF)F
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->ne:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/camerakit/R$a;->CameraKitView_camera_imageJpegQuality:I
|
|
|
|
|
|
|
|
const/16 v0, 0x64
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getInteger(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p2, p0, Lcom/camerakit/CameraKitView;->nf:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
|
|
|
|
new-instance p1, Lcom/camerakit/a;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lcom/camerakit/a;-><init>(Landroid/content/Context;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-object p1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/camerakit/CameraKitView;->addView(Landroid/view/View;)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
new-instance p2, Lcom/camerakit/CameraKitView$1;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/camerakit/CameraKitView$1;-><init>(Lcom/camerakit/CameraKitView;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lcom/camerakit/a;->setListener(Lcom/camerakit/a$d;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic b(Lcom/camerakit/CameraKitView;)Lcom/camerakit/CameraKitView$g;
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p0, p0, Lcom/camerakit/CameraKitView;->ni:Lcom/camerakit/CameraKitView$g;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private getMissingPermissions()Ljava/util/List;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v2, 0x17
|
|
|
|
|
|
|
|
if-ge v1, v2, :cond_0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v1, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
or-int/lit8 v2, v1, 0x1
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
if-ne v2, v1, :cond_1
|
|
|
|
|
|
|
|
const-string v1, "android.permission.CAMERA"
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v1, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
or-int/lit8 v2, v1, 0x2
|
|
|
|
|
|
|
|
if-ne v2, v1, :cond_2
|
|
|
|
|
|
|
|
const-string v1, "android.permission.RECORD_AUDIO"
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v1, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
or-int/lit8 v2, v1, 0x4
|
|
|
|
|
|
|
|
if-ne v2, v1, :cond_3
|
|
|
|
|
|
|
|
const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_3
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v1, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
or-int/lit8 v2, v1, 0x8
|
|
|
|
|
|
|
|
if-ne v2, v1, :cond_4
|
|
|
|
|
|
|
|
const-string v1, "android.permission.ACCESS_FINE_LOCATION"
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lcom/camerakit/CameraKitView$e;)V
|
|
|
|
.locals 5
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
new-instance v1, Lcom/camerakit/CameraKitView$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/camerakit/CameraKitView$2;-><init>(Lcom/camerakit/CameraKitView;Lcom/camerakit/CameraKitView$e;)V
|
|
|
|
|
|
|
|
const-string p1, "callback"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v1, p1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p1, Lkotlinx/coroutines/bb;->bks:Lkotlinx/coroutines/bb;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast p1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v2, v0, Lcom/camerakit/a;->nK:Lkotlinx/coroutines/ab;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v2, Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
new-instance v3, Lcom/camerakit/a$g;
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v3, v0, v1, v4}, Lcom/camerakit/a$g;-><init>(Lcom/camerakit/a;Lcom/camerakit/a$e;Lkotlin/coroutines/Continuation;)V
|
|
|
|
|
|
|
|
check-cast v3, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-static {p1, v2, v3, v0}, Lkotlinx/coroutines/e;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;I)Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getAdjustViewBounds()Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-boolean v0, p0, Lcom/camerakit/CameraKitView;->mT:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getAspectRatio()F
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->mU:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCameraListener()Lcom/camerakit/CameraKitView$b;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nh:Lcom/camerakit/CameraKitView$b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getErrorListener()Lcom/camerakit/CameraKitView$ErrorListener;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nj:Lcom/camerakit/CameraKitView$ErrorListener;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getFacing()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->mV:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getFlash()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->mW:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getFocus()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->mZ:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getGestureListener()Lcom/camerakit/CameraKitView$d;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->ng:Lcom/camerakit/CameraKitView$d;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getImageMegaPixels()F
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->ne:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPermissions()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPhotoResolution()Lcom/camerakit/b/c;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a;->getPhotoSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-virtual {v0}, Lcom/camerakit/b/c;->cb()I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a;->getPhotoSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPreviewEffect()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->nc:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPreviewListener()Lcom/camerakit/CameraKitView$g;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->ni:Lcom/camerakit/CameraKitView$g;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPreviewResolution()Lcom/camerakit/b/c;
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a;->getPreviewSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-virtual {v0}, Lcom/camerakit/b/c;->cb()I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a;->getPreviewSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSensorPreset()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->nb:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getZoomFactor()F
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->na:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onMeasure(II)V
|
|
|
|
.locals 5
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-boolean v0, p0, Lcom/camerakit/CameraKitView;->mT:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
|
|
|
|
const/4 v2, -0x2
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Lcom/camerakit/CameraKitView$a;
|
|
|
|
|
|
|
|
const-string p2, "android:adjustViewBounds=true while both layout_width and layout_height are setView to wrap_content - only 1 is allowed."
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Lcom/camerakit/CameraKitView$a;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
iget v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/high16 v4, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_3
|
|
|
|
|
|
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v1, p0, Lcom/camerakit/CameraKitView;->mU:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
cmpl-float v2, v1, v3
|
|
|
|
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
|
|
|
|
int-to-float p1, v0
|
|
|
|
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
invoke-static {p1, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/camerakit/a;->getSurfaceSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-virtual {v1}, Lcom/camerakit/b/c;->cb()I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_5
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/camerakit/a;->getSurfaceSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
iget v1, p1, Lcom/camerakit/b/c;->height:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
|
|
|
|
iget p1, p1, Lcom/camerakit/b/c;->width:I
|
|
|
|
|
|
|
|
int-to-float p1, p1
|
|
|
|
|
|
|
|
mul-float v0, v0, p1
|
|
|
|
|
|
|
|
float-to-int p1, v0
|
|
|
|
|
|
|
|
invoke-static {p1, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
|
|
|
|
if-ne v0, v2, :cond_5
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v1, p0, Lcom/camerakit/CameraKitView;->mU:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
cmpl-float v2, v1, v3
|
|
|
|
|
|
|
|
if-lez v2, :cond_4
|
|
|
|
|
|
|
|
int-to-float p2, v0
|
|
|
|
|
|
|
|
mul-float p2, p2, v1
|
|
|
|
|
|
|
|
float-to-int p2, p2
|
|
|
|
|
|
|
|
invoke-static {p2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/camerakit/a;->getSurfaceSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-virtual {v1}, Lcom/camerakit/b/c;->cb()I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_5
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p2, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Lcom/camerakit/a;->getSurfaceSize()Lcom/camerakit/b/c;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
iget v1, p2, Lcom/camerakit/b/c;->width:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
div-float/2addr v0, v1
|
|
|
|
|
|
|
|
iget p2, p2, Lcom/camerakit/b/c;->height:I
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
mul-float v0, v0, p2
|
|
|
|
|
|
|
|
float-to-int p2, v0
|
|
|
|
|
|
|
|
invoke-static {p2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_1
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/camerakit/c;->onMeasure(II)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onPause()V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->isInEditMode()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bb;->bks:Lkotlinx/coroutines/bb;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v2, v0, Lcom/camerakit/a;->nK:Lkotlinx/coroutines/ab;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v2, Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
new-instance v3, Lcom/camerakit/a$h;
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v3, v0, v4}, Lcom/camerakit/a$h;-><init>(Lcom/camerakit/a;Lkotlin/coroutines/Continuation;)V
|
|
|
|
|
|
|
|
check-cast v3, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v0}, Lkotlinx/coroutines/e;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;I)Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onResume()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->isInEditMode()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a;->bT()V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onStart()V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->isInEditMode()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0}, Lcom/camerakit/CameraKitView;->getMissingPermissions()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v2, 0x17
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-lt v1, v2, :cond_7
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_7
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
instance-of v2, v1, Landroid/content/ContextWrapper;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
instance-of v2, v1, Landroid/app/Activity;
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
move-object v2, v1
|
|
|
|
|
|
|
|
check-cast v2, Landroid/app/Activity;
|
|
|
|
|
|
|
|
move-object v3, v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast v1, Landroid/content/ContextWrapper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
check-cast v4, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroid/app/Activity;->shouldShowRequestPermissionRationale(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-nez v5, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-lez v0, :cond_5
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, [Ljava/lang/String;
|
|
|
|
|
|
|
|
const v1, 0x18323
|
|
|
|
|
|
|
|
invoke-virtual {v3, v0, v1}, Landroid/app/Activity;->requestPermissions([Ljava/lang/String;I)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_7
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->mW:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/camerakit/CameraKitView;->setFlash(I)V
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->ne:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/camerakit/CameraKitView;->setImageMegaPixels(F)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->getFacing()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_8
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lcom/camerakit/b/a;->pb:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_8
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lcom/camerakit/b/a;->pc:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
:goto_2
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object v0, Lcom/camerakit/CameraKitView;->nl:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lcom/camerakit/CameraKitView;->nl:Lcom/camerakit/b/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
const-string v2, "facing"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v2, Lkotlinx/coroutines/bb;->bks:Lkotlinx/coroutines/bb;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v2, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v4, v0, Lcom/camerakit/a;->nK:Lkotlinx/coroutines/ab;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v4, Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
new-instance v5, Lcom/camerakit/a$j;
|
|
|
|
|
|
|
|
invoke-direct {v5, v0, v1, v3}, Lcom/camerakit/a$j;-><init>(Lcom/camerakit/a;Lcom/camerakit/b/a;Lkotlin/coroutines/Continuation;)V
|
|
|
|
|
|
|
|
check-cast v5, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-static {v2, v4, v5, v0}, Lkotlinx/coroutines/e;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;I)Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onStop()V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->isInEditMode()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v1, Lkotlinx/coroutines/bb;->bks:Lkotlinx/coroutines/bb;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v1, Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v2, v0, Lcom/camerakit/a;->nK:Lkotlinx/coroutines/ab;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
check-cast v2, Lkotlin/coroutines/CoroutineContext;
|
|
|
|
|
|
|
|
new-instance v3, Lcom/camerakit/a$k;
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v3, v0, v4}, Lcom/camerakit/a$k;-><init>(Lcom/camerakit/a;Lkotlin/coroutines/Continuation;)V
|
|
|
|
|
|
|
|
check-cast v3, Lkotlin/jvm/functions/Function2;
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v3, v0}, Lkotlinx/coroutines/e;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function2;I)Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setAdjustViewBounds(Z)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-boolean p1, p0, Lcom/camerakit/CameraKitView;->mT:Z
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setAspectRatio(F)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->mU:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCameraListener(Lcom/camerakit/CameraKitView$b;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-object p1, p0, Lcom/camerakit/CameraKitView;->nh:Lcom/camerakit/CameraKitView$b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setErrorListener(Lcom/camerakit/CameraKitView$ErrorListener;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-object p1, p0, Lcom/camerakit/CameraKitView;->nj:Lcom/camerakit/CameraKitView$ErrorListener;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setFacing(I)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->mV:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p1, Lcom/camerakit/CameraKitView$3;->nu:[I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object v0, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a;->getLifecycleState()Lcom/camerakit/a$c;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/camerakit/a$c;->ordinal()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
aget p1, p1, v0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->onStop()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->onStart()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->onResume()V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->onStop()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/camerakit/CameraKitView;->onStart()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setFlash(I)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->mW:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_2
|
|
|
|
|
|
|
|
const/4 v0, 0x2
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_0
|
|
|
|
new-instance p1, Lcom/camerakit/CameraKitView$a;
|
|
|
|
|
|
|
|
const-string v0, "FLASH_TORCH is not supported in this version of CameraKit."
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lcom/camerakit/CameraKitView$a;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Lcom/camerakit/CameraKitView$a;
|
|
|
|
|
|
|
|
const-string v0, "FLASH_AUTO is not supported in this version of CameraKit."
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lcom/camerakit/CameraKitView$a;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p1, Lcom/camerakit/b/b;->pf:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object p1, Lcom/camerakit/CameraKitView;->nm:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object p1, Lcom/camerakit/b/b;->pe:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sput-object p1, Lcom/camerakit/CameraKitView;->nm:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Lcom/camerakit/CameraKitView$a; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
:goto_0
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
sget-object v0, Lcom/camerakit/CameraKitView;->nm:Lcom/camerakit/b/b;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/camerakit/a;->setFlash(Lcom/camerakit/b/b;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/camerakit/CameraKitView$a;->getMessage()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "CameraException: Flash"
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setFocus(I)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->mZ:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setFrameCallback(Lcom/camerakit/CameraKitView$c;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setGestureListener(Lcom/camerakit/CameraKitView$d;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-object p1, p0, Lcom/camerakit/CameraKitView;->ng:Lcom/camerakit/CameraKitView$d;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setImageMegaPixels(F)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->ne:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget-object p1, p0, Lcom/camerakit/CameraKitView;->nn:Lcom/camerakit/a;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iget v0, p0, Lcom/camerakit/CameraKitView;->ne:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/camerakit/a;->setImageMegaPixels(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPermissions(I)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->nd:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPermissionsListener(Lcom/camerakit/CameraKitView$f;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-object p1, p0, Lcom/camerakit/CameraKitView;->nk:Lcom/camerakit/CameraKitView$f;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPreviewEffect(I)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->nc:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPreviewListener(Lcom/camerakit/CameraKitView$g;)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput-object p1, p0, Lcom/camerakit/CameraKitView;->ni:Lcom/camerakit/CameraKitView$g;
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSensorPreset(I)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->nb:I
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setZoomFactor(F)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-10-10 02:17:24 +00:00
|
|
|
iput p1, p0, Lcom/camerakit/CameraKitView;->na:F
|
2019-10-03 02:31:26 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|