191 lines
4.6 KiB
Smali
191 lines
4.6 KiB
Smali
.class final Lcom/google/mlkit/acceleration/internal/zzb;
|
|
.super Lcom/google/mlkit/acceleration/internal/zzn;
|
|
.source "com.google.mlkit:acceleration@@16.0.0-beta1"
|
|
|
|
|
|
# instance fields
|
|
.field private zza:Z
|
|
|
|
.field private zzb:I
|
|
|
|
.field private zzc:F
|
|
|
|
.field private zzd:I
|
|
|
|
.field private zze:B
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/google/mlkit/acceleration/internal/zzn;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final zza(F)Lcom/google/mlkit/acceleration/internal/zzn;
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zzc:F
|
|
|
|
iget-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
or-int/lit8 p1, p1, 0x4
|
|
|
|
int-to-byte p1, p1
|
|
|
|
iput-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final zzb(Z)Lcom/google/mlkit/acceleration/internal/zzn;
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zza:Z
|
|
|
|
iget-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
or-int/lit8 p1, p1, 0x1
|
|
|
|
int-to-byte p1, p1
|
|
|
|
iput-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final zzc(I)Lcom/google/mlkit/acceleration/internal/zzn;
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zzd:I
|
|
|
|
iget-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
or-int/lit8 p1, p1, 0x8
|
|
|
|
int-to-byte p1, p1
|
|
|
|
iput-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final zzd(I)Lcom/google/mlkit/acceleration/internal/zzn;
|
|
.locals 0
|
|
|
|
iput p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zzb:I
|
|
|
|
iget-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
or-int/lit8 p1, p1, 0x2
|
|
|
|
int-to-byte p1, p1
|
|
|
|
iput-byte p1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final zze()Lcom/google/mlkit/acceleration/internal/MiniBenchmarkResult;
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-byte v0, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
const/16 v1, 0xf
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-byte v1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
and-int/lit8 v1, v1, 0x1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const-string v1, " logged"
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_0
|
|
iget-byte v1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
and-int/lit8 v1, v1, 0x2
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
const-string v1, " stabilityStatus"
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_1
|
|
iget-byte v1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
and-int/lit8 v1, v1, 0x4
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
const-string v1, " correctnessScore"
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_2
|
|
iget-byte v1, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zze:B
|
|
|
|
and-int/lit8 v1, v1, 0x8
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
const-string v1, " runLatencyMs"
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
:cond_3
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "Missing required properties:"
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 6
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_4
|
|
new-instance v0, Lcom/google/mlkit/acceleration/internal/AutoValue_MiniBenchmarkResult;
|
|
|
|
iget-boolean v3, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zza:Z
|
|
|
|
iget v4, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zzb:I
|
|
|
|
iget v5, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zzc:F
|
|
|
|
iget v6, p0, Lcom/google/mlkit/acceleration/internal/zzb;->zzd:I
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v2, v0
|
|
|
|
invoke-direct/range {v2 .. v7}, Lcom/google/mlkit/acceleration/internal/AutoValue_MiniBenchmarkResult;-><init>(ZIFILcom/google/mlkit/acceleration/internal/zzc;)V
|
|
|
|
return-object v0
|
|
.end method
|