958 lines
15 KiB
Smali
958 lines
15 KiB
Smali
.class public final Lcom/google/zxing/common/BitArray;
|
|
.super Ljava/lang/Object;
|
|
.source "BitArray.java"
|
|
|
|
|
|
# instance fields
|
|
.field private bits:[I
|
|
|
|
.field private size:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
iput v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [I
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(I)V
|
|
.locals 0
|
|
|
|
.line 4
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 5
|
|
iput p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
.line 6
|
|
invoke-static {p1}, Lcom/google/zxing/common/BitArray;->makeArray(I)[I
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private ensureCapacity(I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v0, v0
|
|
|
|
shl-int/lit8 v0, v0, 0x5
|
|
|
|
if-le p1, v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lcom/google/zxing/common/BitArray;->makeArray(I)[I
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v0, v2, p1, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 4
|
|
iput-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static makeArray(I)[I
|
|
.locals 0
|
|
|
|
add-int/lit8 p0, p0, 0x1f
|
|
|
|
shr-int/lit8 p0, p0, 0x5
|
|
|
|
.line 1
|
|
new-array p0, p0, [I
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public appendBit(Z)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/zxing/common/BitArray;->ensureCapacity(I)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
iget-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
shr-int/lit8 v2, v0, 0x5
|
|
|
|
aget v3, p1, v2
|
|
|
|
and-int/lit8 v0, v0, 0x1f
|
|
|
|
shl-int v0, v1, v0
|
|
|
|
or-int/2addr v0, v3
|
|
|
|
aput v0, p1, v2
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
iput p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public appendBitArray(Lcom/google/zxing/common/BitArray;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p1, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
invoke-direct {p0, v1}, Lcom/google/zxing/common/BitArray;->ensureCapacity(I)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-lt v1, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p1, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p0, v2}, Lcom/google/zxing/common/BitArray;->appendBit(Z)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public appendBits(II)V
|
|
.locals 2
|
|
|
|
if-ltz p2, :cond_2
|
|
|
|
const/16 v0, 0x20
|
|
|
|
if-gt p2, v0, :cond_2
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
add-int/2addr v0, p2
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/zxing/common/BitArray;->ensureCapacity(I)V
|
|
|
|
:goto_0
|
|
if-gtz p2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, p2, -0x1
|
|
|
|
shr-int v0, p1, v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
.line 2
|
|
:goto_1
|
|
invoke-virtual {p0, v1}, Lcom/google/zxing/common/BitArray;->appendBit(Z)V
|
|
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "Num bits must be between 0 and 32"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public clear()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v0, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-lt v2, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v3, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
aput v1, v3, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public flip(I)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
shr-int/lit8 v1, p1, 0x5
|
|
|
|
aget v2, v0, v1
|
|
|
|
and-int/lit8 p1, p1, 0x1f
|
|
|
|
const/4 v3, 0x1
|
|
|
|
shl-int p1, v3, p1
|
|
|
|
xor-int/2addr p1, v2
|
|
|
|
aput p1, v0, v1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public get(I)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
shr-int/lit8 v1, p1, 0x5
|
|
|
|
aget v0, v0, v1
|
|
|
|
and-int/lit8 p1, p1, 0x1f
|
|
|
|
const/4 v1, 0x1
|
|
|
|
shl-int p1, v1, p1
|
|
|
|
and-int/2addr p1, v0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getBitArray()[I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getNextSet(I)I
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
shr-int/lit8 v0, p1, 0x5
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
aget v1, v1, v0
|
|
|
|
and-int/lit8 p1, p1, 0x1f
|
|
|
|
const/4 v2, 0x1
|
|
|
|
shl-int p1, v2, p1
|
|
|
|
sub-int/2addr p1, v2
|
|
|
|
not-int p1, p1
|
|
|
|
and-int/2addr p1, v1
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_2
|
|
|
|
shl-int/lit8 v0, v0, 0x5
|
|
|
|
.line 3
|
|
invoke-static {p1}, Ljava/lang/Integer;->numberOfTrailingZeros(I)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
.line 4
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
if-le p1, v0, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
:cond_1
|
|
return p1
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v1, p1
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 6
|
|
iget p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
return p1
|
|
|
|
.line 7
|
|
:cond_3
|
|
aget p1, p1, v0
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public getNextUnset(I)I
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
shr-int/lit8 v0, p1, 0x5
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
aget v1, v1, v0
|
|
|
|
not-int v1, v1
|
|
|
|
and-int/lit8 p1, p1, 0x1f
|
|
|
|
const/4 v2, 0x1
|
|
|
|
shl-int p1, v2, p1
|
|
|
|
sub-int/2addr p1, v2
|
|
|
|
not-int p1, p1
|
|
|
|
and-int/2addr p1, v1
|
|
|
|
:goto_0
|
|
if-eqz p1, :cond_2
|
|
|
|
shl-int/lit8 v0, v0, 0x5
|
|
|
|
.line 3
|
|
invoke-static {p1}, Ljava/lang/Integer;->numberOfTrailingZeros(I)I
|
|
|
|
move-result p1
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
.line 4
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
if-le p1, v0, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
:cond_1
|
|
return p1
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v1, p1
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 6
|
|
iget p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
return p1
|
|
|
|
.line 7
|
|
:cond_3
|
|
aget p1, p1, v0
|
|
|
|
not-int p1, p1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public getSize()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSizeInBytes()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
add-int/lit8 v0, v0, 0x7
|
|
|
|
shr-int/lit8 v0, v0, 0x3
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isRange(IIZ)Z
|
|
.locals 10
|
|
|
|
if-lt p2, p1, :cond_8
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p2, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v1, -0x1
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
shr-int/lit8 v2, p1, 0x5
|
|
|
|
shr-int/lit8 v3, p2, 0x5
|
|
|
|
move v4, v2
|
|
|
|
:goto_0
|
|
if-le v4, v3, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
const/4 v5, 0x0
|
|
|
|
const/16 v6, 0x1f
|
|
|
|
if-le v4, v2, :cond_2
|
|
|
|
move v7, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
and-int/lit8 v7, p1, 0x1f
|
|
|
|
:goto_1
|
|
if-ge v4, v3, :cond_3
|
|
|
|
move v8, v6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
and-int/lit8 v8, p2, 0x1f
|
|
|
|
:goto_2
|
|
if-nez v7, :cond_4
|
|
|
|
if-ne v8, v6, :cond_4
|
|
|
|
move v6, v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move v6, v5
|
|
|
|
:goto_3
|
|
if-le v7, v8, :cond_7
|
|
|
|
.line 1
|
|
:goto_4
|
|
iget-object v7, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
aget v7, v7, v4
|
|
|
|
and-int/2addr v7, v6
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move v6, v5
|
|
|
|
:goto_5
|
|
if-eq v7, v6, :cond_6
|
|
|
|
return v5
|
|
|
|
:cond_6
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
shl-int v9, v0, v7
|
|
|
|
or-int/2addr v6, v9
|
|
|
|
add-int/lit8 v7, v7, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
.line 2
|
|
:cond_8
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public reverse()V
|
|
.locals 7
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v0, v0
|
|
|
|
new-array v0, v0, [I
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-lt v2, v1, :cond_0
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
sub-int v3, v1, v2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v3}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
shr-int/lit8 v3, v2, 0x5
|
|
|
|
.line 5
|
|
aget v5, v0, v3
|
|
|
|
and-int/lit8 v6, v2, 0x1f
|
|
|
|
shl-int/2addr v4, v6
|
|
|
|
or-int/2addr v4, v5
|
|
|
|
aput v4, v0, v3
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public set(I)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
shr-int/lit8 v1, p1, 0x5
|
|
|
|
aget v2, v0, v1
|
|
|
|
and-int/lit8 p1, p1, 0x1f
|
|
|
|
const/4 v3, 0x1
|
|
|
|
shl-int p1, v3, p1
|
|
|
|
or-int/2addr p1, v2
|
|
|
|
aput p1, v0, v1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBulk(II)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
shr-int/lit8 p1, p1, 0x5
|
|
|
|
aput p2, v0, p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRange(II)V
|
|
.locals 8
|
|
|
|
if-lt p2, p1, :cond_6
|
|
|
|
if-ne p2, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, -0x1
|
|
|
|
add-int/2addr p2, v0
|
|
|
|
shr-int/lit8 v1, p1, 0x5
|
|
|
|
shr-int/lit8 v2, p2, 0x5
|
|
|
|
move v3, v1
|
|
|
|
:goto_0
|
|
if-le v3, v2, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 v4, 0x0
|
|
|
|
const/16 v5, 0x1f
|
|
|
|
if-le v3, v1, :cond_2
|
|
|
|
move v6, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
and-int/lit8 v6, p1, 0x1f
|
|
|
|
:goto_1
|
|
if-ge v3, v2, :cond_3
|
|
|
|
move v7, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
and-int/lit8 v7, p2, 0x1f
|
|
|
|
:goto_2
|
|
if-nez v6, :cond_4
|
|
|
|
if-ne v7, v5, :cond_4
|
|
|
|
move v4, v0
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
:goto_3
|
|
if-le v6, v7, :cond_5
|
|
|
|
.line 1
|
|
:goto_4
|
|
iget-object v5, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
aget v6, v5, v3
|
|
|
|
or-int/2addr v4, v6
|
|
|
|
aput v4, v5, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
const/4 v5, 0x1
|
|
|
|
shl-int/2addr v5, v6
|
|
|
|
or-int/2addr v4, v5
|
|
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
.line 2
|
|
:cond_6
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public toBytes(I[BII)V
|
|
.locals 6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-lt v1, p4, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
move v2, v0
|
|
|
|
move v3, v2
|
|
|
|
:goto_1
|
|
const/16 v4, 0x8
|
|
|
|
if-lt v2, v4, :cond_1
|
|
|
|
add-int v2, p3, v1
|
|
|
|
int-to-byte v3, v3
|
|
|
|
.line 1
|
|
aput-byte v3, p2, v2
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_1
|
|
invoke-virtual {p0, p1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
rsub-int/lit8 v4, v2, 0x7
|
|
|
|
const/4 v5, 0x1
|
|
|
|
shl-int v4, v5, v4
|
|
|
|
or-int/2addr v3, v4
|
|
|
|
:cond_2
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/zxing/common/BitArray;->size:I
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
and-int/lit8 v2, v1, 0x7
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
const/16 v2, 0x20
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {p0, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/16 v2, 0x58
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/16 v2, 0x2e
|
|
|
|
:goto_1
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public xor(Lcom/google/zxing/common/BitArray;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v0, v0
|
|
|
|
iget-object v1, p1, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v1, v1
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
array-length v2, v1
|
|
|
|
if-lt v0, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
aget v2, v1, v0
|
|
|
|
iget-object v3, p1, Lcom/google/zxing/common/BitArray;->bits:[I
|
|
|
|
aget v3, v3, v0
|
|
|
|
xor-int/2addr v2, v3
|
|
|
|
aput v2, v1, v0
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Sizes don\'t match"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|