tmap/smali/s/m.smali
2022-06-10 21:38:30 +09:00

140 lines
4.0 KiB
Smali

.class public Ls/m;
.super Ls/l;
.source "CameraManagerCompatApi29Impl.java"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x1d
.end annotation
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"context"
}
.end annotation
.line 1
invoke-direct {p0, p1}, Ls/l;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method public c(Ljava/lang/String;)Landroid/hardware/camera2/CameraCharacteristics;
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"cameraId"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/camera/camera2/internal/compat/CameraAccessExceptionCompat;
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Ls/n;->a:Landroid/hardware/camera2/CameraManager;
invoke-virtual {v0, p1}, Landroid/hardware/camera2/CameraManager;->getCameraCharacteristics(Ljava/lang/String;)Landroid/hardware/camera2/CameraCharacteristics;
move-result-object p1
:try_end_0
.catch Landroid/hardware/camera2/CameraAccessException; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
move-exception p1
.line 2
invoke-static {p1}, Landroidx/camera/camera2/internal/compat/CameraAccessExceptionCompat;->toCameraAccessExceptionCompat(Landroid/hardware/camera2/CameraAccessException;)Landroidx/camera/camera2/internal/compat/CameraAccessExceptionCompat;
move-result-object p1
throw p1
.end method
.method public d(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/hardware/camera2/CameraDevice$StateCallback;)V
.locals 1
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroid/hardware/camera2/CameraDevice$StateCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/RequiresPermission;
value = "android.permission.CAMERA"
.end annotation
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0
}
names = {
"cameraId",
"executor",
"callback"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Landroidx/camera/camera2/internal/compat/CameraAccessExceptionCompat;
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Ls/n;->a:Landroid/hardware/camera2/CameraManager;
invoke-virtual {v0, p1, p2, p3}, Landroid/hardware/camera2/CameraManager;->openCamera(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/hardware/camera2/CameraDevice$StateCallback;)V
:try_end_0
.catch Landroid/hardware/camera2/CameraAccessException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
.line 2
invoke-static {p1}, Landroidx/camera/camera2/internal/compat/CameraAccessExceptionCompat;->toCameraAccessExceptionCompat(Landroid/hardware/camera2/CameraAccessException;)Landroidx/camera/camera2/internal/compat/CameraAccessExceptionCompat;
move-result-object p1
throw p1
.end method