470 lines
13 KiB
Smali
470 lines
13 KiB
Smali
.class public Lcom/otaliastudios/cameraview/CameraView$b;
|
|
.super Ljava/lang/Object;
|
|
.source "CameraView.java"
|
|
|
|
# interfaces
|
|
.implements Lf/m/a/l/l$g;
|
|
.implements Lf/m/a/p/d$c;
|
|
.implements Lf/m/a/o/c$a;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/VisibleForTesting;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/otaliastudios/cameraview/CameraView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = "b"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/String;
|
|
|
|
.field public final b:Lf/m/a/b;
|
|
|
|
.field public final synthetic c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/otaliastudios/cameraview/CameraView;)V
|
|
.locals 1
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const-class p1, Lcom/otaliastudios/cameraview/CameraView$b;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/otaliastudios/cameraview/CameraView$b;->a:Ljava/lang/String;
|
|
|
|
new-instance v0, Lf/m/a/b;
|
|
|
|
invoke-direct {v0, p1}, Lf/m/a/b;-><init>(Ljava/lang/String;)V
|
|
|
|
iput-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/otaliastudios/cameraview/CameraException;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "dispatchError"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
invoke-virtual {v0, v2, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$c;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/otaliastudios/cameraview/CameraView$b$c;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;Lcom/otaliastudios/cameraview/CameraException;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Lf/m/a/n/b;)V
|
|
.locals 5
|
|
.param p1 # Lf/m/a/n/b;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "dispatchFrame:"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
invoke-virtual {p1}, Lf/m/a/n/b;->a()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v1, v4
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const-string v4, "processors:"
|
|
|
|
aput-object v4, v1, v3
|
|
|
|
iget-object v3, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v3, v3, Lcom/otaliastudios/cameraview/CameraView;->v:Ljava/util/List;
|
|
|
|
invoke-interface {v3}, Ljava/util/List;->size()I
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
aput-object v3, v1, v4
|
|
|
|
invoke-virtual {v0, v2, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->v:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Lf/m/a/n/b;->b()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->m:Ljava/util/concurrent/Executor;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$b;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/otaliastudios/cameraview/CameraView$b$b;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;Lf/m/a/n/b;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(F[F[Landroid/graphics/PointF;)V
|
|
.locals 4
|
|
.param p2 # [F
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # [Landroid/graphics/PointF;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "dispatchOnExposureCorrectionChanged"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
invoke-virtual {v0, v3, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$a;
|
|
|
|
invoke-direct {v1, p0, p1, p2, p3}, Lcom/otaliastudios/cameraview/CameraView$b$a;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;F[F[Landroid/graphics/PointF;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Lf/m/a/o/a;ZLandroid/graphics/PointF;)V
|
|
.locals 5
|
|
.param p1 # Lf/m/a/o/a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/graphics/PointF;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x4
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "dispatchOnFocusEnd"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x2
|
|
|
|
aput-object v3, v1, v4
|
|
|
|
const/4 v3, 0x3
|
|
|
|
aput-object p3, v1, v3
|
|
|
|
invoke-virtual {v0, v2, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$f;
|
|
|
|
invoke-direct {v1, p0, p2, p1, p3}, Lcom/otaliastudios/cameraview/CameraView$b$f;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;ZLf/m/a/o/a;Landroid/graphics/PointF;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public e(Lf/m/a/o/a;Landroid/graphics/PointF;)V
|
|
.locals 4
|
|
.param p1 # Lf/m/a/o/a;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/graphics/PointF;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x3
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "dispatchOnFocusStart"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
const/4 v2, 0x1
|
|
|
|
aput-object p1, v1, v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
aput-object p2, v1, v3
|
|
|
|
invoke-virtual {v0, v2, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$e;
|
|
|
|
invoke-direct {v1, p0, p2, p1}, Lcom/otaliastudios/cameraview/CameraView$b$e;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;Landroid/graphics/PointF;Lf/m/a/o/a;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f(F[Landroid/graphics/PointF;)V
|
|
.locals 4
|
|
.param p2 # [Landroid/graphics/PointF;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "dispatchOnZoomChanged"
|
|
|
|
aput-object v3, v1, v2
|
|
|
|
invoke-static {p1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
invoke-virtual {v0, v3, v1}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$g;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/otaliastudios/cameraview/CameraView$b$g;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;F[Landroid/graphics/PointF;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public g()Landroid/content/Context;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public h()V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->q:Lf/m/a/l/l;
|
|
|
|
sget-object v1, Lf/m/a/l/v/c;->f:Lf/m/a/l/v/c;
|
|
|
|
invoke-virtual {v0, v1}, Lf/m/a/l/l;->h(Lf/m/a/l/v/c;)Lf/m/a/v/b;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v1, v1, Lcom/otaliastudios/cameraview/CameraView;->r:Lf/m/a/v/b;
|
|
|
|
invoke-virtual {v0, v1}, Lf/m/a/v/b;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x3
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
const-string v6, "onCameraPreviewStreamSizeChanged:"
|
|
|
|
aput-object v6, v4, v3
|
|
|
|
const-string v3, "swallowing because the preview size has not changed."
|
|
|
|
aput-object v3, v4, v5
|
|
|
|
aput-object v0, v4, v2
|
|
|
|
invoke-virtual {v1, v5, v4}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/otaliastudios/cameraview/CameraView$b;->b:Lf/m/a/b;
|
|
|
|
new-array v4, v4, [Ljava/lang/Object;
|
|
|
|
const-string v6, "onCameraPreviewStreamSizeChanged: posting a requestLayout call."
|
|
|
|
aput-object v6, v4, v3
|
|
|
|
const-string v3, "Preview stream size:"
|
|
|
|
aput-object v3, v4, v5
|
|
|
|
aput-object v0, v4, v2
|
|
|
|
invoke-virtual {v1, v5, v4}, Lf/m/a/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/otaliastudios/cameraview/CameraView$b;->c:Lcom/otaliastudios/cameraview/CameraView;
|
|
|
|
iget-object v0, v0, Lcom/otaliastudios/cameraview/CameraView;->l:Landroid/os/Handler;
|
|
|
|
new-instance v1, Lcom/otaliastudios/cameraview/CameraView$b$d;
|
|
|
|
invoke-direct {v1, p0}, Lcom/otaliastudios/cameraview/CameraView$b$d;-><init>(Lcom/otaliastudios/cameraview/CameraView$b;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
const-string v1, "Preview stream size should not be null here."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|