mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
291 lines
6.6 KiB
Smali
291 lines
6.6 KiB
Smali
.class public final Lcom/google/zxing/Result;
|
|
.super Ljava/lang/Object;
|
|
.source "Result.java"
|
|
|
|
|
|
# instance fields
|
|
.field private final format:Lcom/google/zxing/BarcodeFormat;
|
|
|
|
.field private final numBits:I
|
|
|
|
.field private final rawBytes:[B
|
|
|
|
.field private resultMetadata:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Lcom/google/zxing/ResultMetadataType;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private resultPoints:[Lcom/google/zxing/ResultPoint;
|
|
|
|
.field private final text:Ljava/lang/String;
|
|
|
|
.field private final timestamp:J
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;[BI[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;J)V
|
|
.locals 0
|
|
|
|
.line 58
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/zxing/Result;->text:Ljava/lang/String;
|
|
|
|
iput-object p2, p0, Lcom/google/zxing/Result;->rawBytes:[B
|
|
|
|
iput p3, p0, Lcom/google/zxing/Result;->numBits:I
|
|
|
|
iput-object p4, p0, Lcom/google/zxing/Result;->resultPoints:[Lcom/google/zxing/ResultPoint;
|
|
|
|
iput-object p5, p0, Lcom/google/zxing/Result;->format:Lcom/google/zxing/BarcodeFormat;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
iput-wide p6, p0, Lcom/google/zxing/Result;->timestamp:J
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;[B[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;)V
|
|
.locals 7
|
|
|
|
.line 41
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v5
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p3
|
|
|
|
move-object v4, p4
|
|
|
|
invoke-direct/range {v0 .. v6}, Lcom/google/zxing/Result;-><init>(Ljava/lang/String;[B[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;[B[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;J)V
|
|
.locals 9
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 49
|
|
:cond_0
|
|
array-length v0, p2
|
|
|
|
mul-int/lit8 v0, v0, 0x8
|
|
|
|
:goto_0
|
|
move v4, v0
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move-object v3, p2
|
|
|
|
move-object v5, p3
|
|
|
|
move-object v6, p4
|
|
|
|
move-wide v7, p5
|
|
|
|
invoke-direct/range {v1 .. v8}, Lcom/google/zxing/Result;-><init>(Ljava/lang/String;[BI[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public addResultPoints([Lcom/google/zxing/ResultPoint;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/google/zxing/Result;->resultPoints:[Lcom/google/zxing/ResultPoint;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/zxing/Result;->resultPoints:[Lcom/google/zxing/ResultPoint;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 136
|
|
array-length v1, p1
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
.line 137
|
|
array-length v1, v0
|
|
|
|
array-length v2, p1
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
new-array v1, v1, [Lcom/google/zxing/ResultPoint;
|
|
|
|
.line 138
|
|
array-length v2, v0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v3, v1, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 139
|
|
array-length v0, v0
|
|
|
|
array-length v2, p1
|
|
|
|
invoke-static {p1, v3, v1, v0, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
iput-object v1, p0, Lcom/google/zxing/Result;->resultPoints:[Lcom/google/zxing/ResultPoint;
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public getBarcodeFormat()Lcom/google/zxing/BarcodeFormat;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->format:Lcom/google/zxing/BarcodeFormat;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getNumBits()I
|
|
.locals 0
|
|
|
|
iget p0, p0, Lcom/google/zxing/Result;->numBits:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public getRawBytes()[B
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->rawBytes:[B
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getResultMetadata()Ljava/util/Map;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Lcom/google/zxing/ResultMetadataType;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getResultPoints()[Lcom/google/zxing/ResultPoint;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->resultPoints:[Lcom/google/zxing/ResultPoint;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getText()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->text:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getTimestamp()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/google/zxing/Result;->timestamp:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public putAllMetadata(Ljava/util/Map;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Lcom/google/zxing/ResultMetadataType;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput-object p1, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
return-void
|
|
|
|
.line 127
|
|
:cond_0
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public putMetadata(Lcom/google/zxing/ResultMetadataType;Ljava/lang/Object;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 117
|
|
new-instance v0, Ljava/util/EnumMap;
|
|
|
|
const-class v1, Lcom/google/zxing/ResultMetadataType;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/EnumMap;-><init>(Ljava/lang/Class;)V
|
|
|
|
iput-object v0, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
:cond_0
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->resultMetadata:Ljava/util/Map;
|
|
|
|
.line 119
|
|
invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/google/zxing/Result;->text:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|