212 lines
4.8 KiB
Smali
212 lines
4.8 KiB
Smali
.class public final Lx/c1;
|
|
.super Ljava/lang/Object;
|
|
.source "SingleImageProxyBundle.java"
|
|
|
|
# interfaces
|
|
.implements Lx/k0;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:I
|
|
|
|
.field public final b:Landroidx/camera/core/p1;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/camera/core/p1;I)V
|
|
.locals 0
|
|
.param p1 # Landroidx/camera/core/p1;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"imageProxy",
|
|
"captureId"
|
|
}
|
|
.end annotation
|
|
|
|
.line 8
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 9
|
|
iput p2, p0, Lx/c1;->a:I
|
|
|
|
.line 10
|
|
iput-object p1, p0, Lx/c1;->b:Landroidx/camera/core/p1;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroidx/camera/core/p1;Ljava/lang/String;)V
|
|
.locals 1
|
|
.param p1 # Landroidx/camera/core/p1;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"imageProxy",
|
|
"tagBundleKey"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
invoke-interface {p1}, Landroidx/camera/core/p1;->f1()Landroidx/camera/core/o1;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-interface {v0}, Landroidx/camera/core/o1;->b()Lx/g1;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p2}, Lx/g1;->d(Ljava/lang/String;)Ljava/lang/Integer;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lx/c1;->a:I
|
|
|
|
.line 5
|
|
iput-object p1, p0, Lx/c1;->b:Landroidx/camera/core/p1;
|
|
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "ImageProxy has no associated tag"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 7
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "ImageProxy has no associated ImageInfo"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Ljava/util/List;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lx/c1;->a:I
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b(I)Lcom/google/common/util/concurrent/ListenableFuture;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"captureId"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)",
|
|
"Lcom/google/common/util/concurrent/ListenableFuture<",
|
|
"Landroidx/camera/core/p1;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lx/c1;->a:I
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Capture id does not exist in the bundle"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {p1}, Landroidx/camera/core/impl/utils/futures/f;->f(Ljava/lang/Throwable;)Lcom/google/common/util/concurrent/ListenableFuture;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object p1, p0, Lx/c1;->b:Landroidx/camera/core/p1;
|
|
|
|
invoke-static {p1}, Landroidx/camera/core/impl/utils/futures/f;->h(Ljava/lang/Object;)Lcom/google/common/util/concurrent/ListenableFuture;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/c1;->b:Landroidx/camera/core/p1;
|
|
|
|
invoke-interface {v0}, Landroidx/camera/core/p1;->close()V
|
|
|
|
return-void
|
|
.end method
|