150 lines
4.6 KiB
Smali
150 lines
4.6 KiB
Smali
.class public final Landroidx/camera/camera2/internal/d1;
|
|
.super Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;
|
|
.source "CaptureCallbackAdapter.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lx/i;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lx/i;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"cameraCaptureCallback"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;-><init>()V
|
|
|
|
const-string v0, "cameraCaptureCallback is null"
|
|
|
|
.line 2
|
|
invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 3
|
|
iput-object p1, p0, Landroidx/camera/camera2/internal/d1;->a:Lx/i;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onCaptureCompleted(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)V
|
|
.locals 1
|
|
.param p1 # Landroid/hardware/camera2/CameraCaptureSession;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/hardware/camera2/CaptureRequest;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/hardware/camera2/TotalCaptureResult;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"session",
|
|
"request",
|
|
"result"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;->onCaptureCompleted(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/TotalCaptureResult;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Landroid/hardware/camera2/CaptureRequest;->getTag()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
instance-of p2, p1, Lx/g1;
|
|
|
|
const-string v0, "The tagBundle object from the CaptureResult is not a TagBundle object."
|
|
|
|
invoke-static {p2, v0}, Lr1/o;->b(ZLjava/lang/Object;)V
|
|
|
|
.line 4
|
|
check-cast p1, Lx/g1;
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-static {}, Lx/g1;->b()Lx/g1;
|
|
|
|
move-result-object p1
|
|
|
|
.line 6
|
|
:goto_0
|
|
iget-object p2, p0, Landroidx/camera/camera2/internal/d1;->a:Lx/i;
|
|
|
|
new-instance v0, Landroidx/camera/camera2/internal/f;
|
|
|
|
invoke-direct {v0, p1, p3}, Landroidx/camera/camera2/internal/f;-><init>(Lx/g1;Landroid/hardware/camera2/CaptureResult;)V
|
|
|
|
invoke-virtual {p2, v0}, Lx/i;->b(Landroidx/camera/core/impl/c;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCaptureFailed(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureFailure;)V
|
|
.locals 0
|
|
.param p1 # Landroid/hardware/camera2/CameraCaptureSession;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Landroid/hardware/camera2/CaptureRequest;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/hardware/camera2/CaptureFailure;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"session",
|
|
"request",
|
|
"failure"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/hardware/camera2/CameraCaptureSession$CaptureCallback;->onCaptureFailed(Landroid/hardware/camera2/CameraCaptureSession;Landroid/hardware/camera2/CaptureRequest;Landroid/hardware/camera2/CaptureFailure;)V
|
|
|
|
.line 2
|
|
new-instance p1, Landroidx/camera/core/impl/CameraCaptureFailure;
|
|
|
|
sget-object p2, Landroidx/camera/core/impl/CameraCaptureFailure$Reason;->ERROR:Landroidx/camera/core/impl/CameraCaptureFailure$Reason;
|
|
|
|
invoke-direct {p1, p2}, Landroidx/camera/core/impl/CameraCaptureFailure;-><init>(Landroidx/camera/core/impl/CameraCaptureFailure$Reason;)V
|
|
|
|
.line 3
|
|
iget-object p2, p0, Landroidx/camera/camera2/internal/d1;->a:Lx/i;
|
|
|
|
invoke-virtual {p2, p1}, Lx/i;->c(Landroidx/camera/core/impl/CameraCaptureFailure;)V
|
|
|
|
return-void
|
|
.end method
|