First Upload

Just the APK
Force update disabled, will only work offline.
This commit is contained in:
supermegamestre
2026-01-26 00:26:29 -03:00
commit 4bbd74a497
44413 changed files with 11043538 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
.class public final Lcom/google/zxing/aztec/encoder/AztecCode;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public codeWords:I
.field public compact:Z
.field public layers:I
.field public matrix:Lcom/google/zxing/common/BitMatrix;
.field public size:I
# direct methods
.method public constructor <init>()V
.locals 0
.line 26
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public getMatrix()Lcom/google/zxing/common/BitMatrix;
.locals 1
iget-object v0, p0, Lcom/google/zxing/aztec/encoder/AztecCode;->matrix:Lcom/google/zxing/common/BitMatrix;
return-object v0
.end method
.method public setCodeWords(I)V
.locals 0
iput p1, p0, Lcom/google/zxing/aztec/encoder/AztecCode;->codeWords:I
return-void
.end method
.method public setCompact(Z)V
.locals 0
iput-boolean p1, p0, Lcom/google/zxing/aztec/encoder/AztecCode;->compact:Z
return-void
.end method
.method public setLayers(I)V
.locals 0
iput p1, p0, Lcom/google/zxing/aztec/encoder/AztecCode;->layers:I
return-void
.end method
.method public setMatrix(Lcom/google/zxing/common/BitMatrix;)V
.locals 0
iput-object p1, p0, Lcom/google/zxing/aztec/encoder/AztecCode;->matrix:Lcom/google/zxing/common/BitMatrix;
return-void
.end method
.method public setSize(I)V
.locals 0
iput p1, p0, Lcom/google/zxing/aztec/encoder/AztecCode;->size:I
return-void
.end method

View File

@@ -0,0 +1,147 @@
.class public final Lcom/google/zxing/aztec/encoder/BinaryShiftToken;
.super Lcom/google/zxing/aztec/encoder/Token;
.source "SourceFile"
# instance fields
.field public final binaryShiftByteCount:S
.field public final binaryShiftStart:S
# direct methods
.method public constructor <init>(Lcom/google/zxing/aztec/encoder/Token;II)V
.locals 0
.line 29
invoke-direct {p0, p1}, Lcom/google/zxing/aztec/encoder/Token;-><init>(Lcom/google/zxing/aztec/encoder/Token;)V
int-to-short p1, p2
iput-short p1, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftStart:S
int-to-short p1, p3
iput-short p1, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftByteCount:S
return-void
.end method
# virtual methods
.method public appendTo(Lcom/google/zxing/common/BitArray;[B)V
.locals 5
const/4 v0, 0x0
:goto_0
iget-short v1, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftByteCount:S
if-ge v0, v1, :cond_4
const/16 v2, 0x3e
const/16 v3, 0x1f
if-eqz v0, :cond_0
if-ne v0, v3, :cond_3
if-gt v1, v2, :cond_3
:cond_0
const/4 v1, 0x5
.line 40
invoke-virtual {p1, v3, v1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
iget-short v4, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftByteCount:S
if-le v4, v2, :cond_1
add-int/lit8 v4, v4, -0x1f
const/16 v1, 0x10
.line 42
invoke-virtual {p1, v4, v1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
goto :goto_1
:cond_1
if-nez v0, :cond_2
.line 45
invoke-static {v4, v3}, Ljava/lang/Math;->min(II)I
move-result v2
invoke-virtual {p1, v2, v1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
goto :goto_1
:cond_2
add-int/lit8 v4, v4, -0x1f
.line 48
invoke-virtual {p1, v4, v1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
:cond_3
:goto_1
iget-short v1, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftStart:S
add-int/2addr v1, v0
.line 51
aget-byte v1, p2, v1
const/16 v2, 0x8
invoke-virtual {p1, v1, v2}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_4
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 57
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "<"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-short v1, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftStart:S
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, "::"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-short v1, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftStart:S
iget-short v2, p0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;->binaryShiftByteCount:S
add-int/2addr v1, v2
add-int/lit8 v1, v1, -0x1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const/16 v1, 0x3e
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,68 @@
.class public Lcom/google/zxing/aztec/encoder/HighLevelEncoder$1;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Ljava/util/Comparator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->encode()Lcom/google/zxing/common/BitArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/google/zxing/aztec/encoder/HighLevelEncoder;
# direct methods
.method public constructor <init>(Lcom/google/zxing/aztec/encoder/HighLevelEncoder;)V
.locals 0
iput-object p1, p0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder$1;->this$0:Lcom/google/zxing/aztec/encoder/HighLevelEncoder;
.line 192
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public compare(Lcom/google/zxing/aztec/encoder/State;Lcom/google/zxing/aztec/encoder/State;)I
.locals 0
.line 195
invoke-virtual {p1}, Lcom/google/zxing/aztec/encoder/State;->getBitCount()I
move-result p1
invoke-virtual {p2}, Lcom/google/zxing/aztec/encoder/State;->getBitCount()I
move-result p2
sub-int/2addr p1, p2
return p1
.end method
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
.locals 0
.line 192
check-cast p1, Lcom/google/zxing/aztec/encoder/State;
check-cast p2, Lcom/google/zxing/aztec/encoder/State;
invoke-virtual {p0, p1, p2}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder$1;->compare(Lcom/google/zxing/aztec/encoder/State;Lcom/google/zxing/aztec/encoder/State;)I
move-result p1
return p1
.end method

View File

@@ -0,0 +1,956 @@
.class public final Lcom/google/zxing/aztec/encoder/HighLevelEncoder;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final CHAR_MAP:[[I
.field public static final LATCH_TABLE:[[I
.field public static final MODE_NAMES:[Ljava/lang/String;
.field public static final SHIFT_TABLE:[[I
# instance fields
.field public final text:[B
# direct methods
.method static constructor <clinit>()V
.locals 12
const-string v0, "MIXED"
const-string v1, "PUNCT"
const-string v2, "UPPER"
const-string v3, "LOWER"
const-string v4, "DIGIT"
filled-new-array {v2, v3, v4, v0, v1}, [Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->MODE_NAMES:[Ljava/lang/String;
const/4 v0, 0x5
new-array v1, v0, [[I
const/4 v2, 0x0
const v3, 0x5001c
const v4, 0x5001e
const v5, 0x5001d
const v6, 0xa03be
filled-new-array {v2, v3, v4, v5, v6}, [I
move-result-object v7
aput-object v7, v1, v2
const v7, 0x901ee
filled-new-array {v7, v2, v4, v5, v6}, [I
move-result-object v7
const/4 v8, 0x1
aput-object v7, v1, v8
const v7, 0x901dd
const v9, 0xe3bbe
const v10, 0x4000e
const v11, 0x901dc
filled-new-array {v10, v11, v2, v7, v9}, [I
move-result-object v7
const/4 v9, 0x2
aput-object v7, v1, v9
filled-new-array {v5, v3, v6, v2, v4}, [I
move-result-object v3
const/4 v4, 0x3
aput-object v3, v1, v4
const v3, 0xa03fe
const v5, 0xa03fd
const v6, 0x5001f
const v7, 0xa03fc
filled-new-array {v6, v7, v3, v5, v2}, [I
move-result-object v3
const/4 v5, 0x4
aput-object v3, v1, v5
sput-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->LATCH_TABLE:[[I
const/16 v1, 0x100
filled-new-array {v0, v1}, [I
move-result-object v0
sget-object v1, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
.line 97
invoke-static {v1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [[I
sput-object v0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 99
aget-object v0, v0, v2
const/16 v1, 0x20
aput v8, v0, v1
const/16 v0, 0x41
:goto_0
const/16 v3, 0x5a
if-gt v0, v3, :cond_0
sget-object v3, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 101
aget-object v3, v3, v2
add-int/lit8 v6, v0, -0x3f
aput v6, v3, v0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
sget-object v0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 103
aget-object v0, v0, v8
aput v8, v0, v1
const/16 v0, 0x61
:goto_1
const/16 v3, 0x7a
if-gt v0, v3, :cond_1
sget-object v3, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 105
aget-object v3, v3, v8
add-int/lit8 v6, v0, -0x5f
aput v6, v3, v0
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_1
sget-object v0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 107
aget-object v0, v0, v9
aput v8, v0, v1
const/16 v0, 0x30
:goto_2
const/16 v1, 0x39
if-gt v0, v1, :cond_2
sget-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 109
aget-object v1, v1, v9
add-int/lit8 v3, v0, -0x2e
aput v3, v1, v0
add-int/lit8 v0, v0, 0x1
goto :goto_2
:cond_2
sget-object v0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 111
aget-object v0, v0, v9
const/16 v1, 0x2c
const/16 v3, 0xc
aput v3, v0, v1
const/16 v1, 0xd
const/16 v3, 0x2e
.line 112
aput v1, v0, v3
const/16 v0, 0x1c
new-array v1, v0, [I
fill-array-data v1, :array_0
move v3, v2
:goto_3
if-ge v3, v0, :cond_3
sget-object v6, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 119
aget-object v6, v6, v4
aget v7, v1, v3
aput v3, v6, v7
add-int/lit8 v3, v3, 0x1
goto :goto_3
:cond_3
const/16 v1, 0x1f
new-array v3, v1, [I
fill-array-data v3, :array_1
move v6, v2
:goto_4
if-ge v6, v1, :cond_5
.line 127
aget v7, v3, v6
if-lez v7, :cond_4
sget-object v10, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 128
aget-object v10, v10, v5
aput v6, v10, v7
:cond_4
add-int/lit8 v6, v6, 0x1
goto :goto_4
:cond_5
const/4 v1, 0x6
filled-new-array {v1, v1}, [I
move-result-object v1
sget-object v3, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
.line 135
invoke-static {v3, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
move-result-object v1
check-cast v1, [[I
sput-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
.line 137
array-length v3, v1
move v6, v2
:goto_5
if-ge v6, v3, :cond_6
aget-object v7, v1, v6
const/4 v10, -0x1
.line 138
invoke-static {v7, v10}, Ljava/util/Arrays;->fill([II)V
add-int/lit8 v6, v6, 0x1
goto :goto_5
:cond_6
sget-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
.line 140
aget-object v3, v1, v2
aput v2, v3, v5
.line 142
aget-object v3, v1, v8
aput v2, v3, v5
.line 143
aput v0, v3, v2
.line 145
aget-object v0, v1, v4
aput v2, v0, v5
.line 147
aget-object v0, v1, v9
aput v2, v0, v5
const/16 v1, 0xf
.line 148
aput v1, v0, v2
return-void
nop
:array_0
.array-data 4
0x0
0x20
0x1
0x2
0x3
0x4
0x5
0x6
0x7
0x8
0x9
0xa
0xb
0xc
0xd
0x1b
0x1c
0x1d
0x1e
0x1f
0x40
0x5c
0x5e
0x5f
0x60
0x7c
0x7e
0x7f
.end array-data
:array_1
.array-data 4
0x0
0xd
0x0
0x0
0x0
0x0
0x21
0x27
0x23
0x24
0x25
0x26
0x27
0x28
0x29
0x2a
0x2b
0x2c
0x2d
0x2e
0x2f
0x3a
0x3b
0x3c
0x3d
0x3e
0x3f
0x5b
0x5d
0x7b
0x7d
.end array-data
.end method
.method public constructor <init>([B)V
.locals 0
.line 153
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->text:[B
return-void
.end method
.method public static simplifyStates(Ljava/lang/Iterable;)Ljava/util/Collection;
.locals 5
.line 287
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
.line 288
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_3
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/zxing/aztec/encoder/State;
.line 290
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_0
:goto_1
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_2
.line 291
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lcom/google/zxing/aztec/encoder/State;
.line 292
invoke-virtual {v3, v1}, Lcom/google/zxing/aztec/encoder/State;->isBetterThanOrEqualTo(Lcom/google/zxing/aztec/encoder/State;)Z
move-result v4
if-eqz v4, :cond_1
goto :goto_0
.line 296
:cond_1
invoke-virtual {v1, v3}, Lcom/google/zxing/aztec/encoder/State;->isBetterThanOrEqualTo(Lcom/google/zxing/aztec/encoder/State;)Z
move-result v3
if-eqz v3, :cond_0
.line 297
invoke-interface {v2}, Ljava/util/Iterator;->remove()V
goto :goto_1
.line 301
:cond_2
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_3
return-object v0
.end method
.method public static updateStateForPair(Lcom/google/zxing/aztec/encoder/State;IILjava/util/Collection;)V
.locals 4
.line 263
invoke-virtual {p0, p1}, Lcom/google/zxing/aztec/encoder/State;->endBinaryShift(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object v0
const/4 v1, 0x4
.line 265
invoke-virtual {v0, v1, p2}, Lcom/google/zxing/aztec/encoder/State;->latchAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
move-result-object v2
invoke-interface {p3, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
.line 266
invoke-virtual {p0}, Lcom/google/zxing/aztec/encoder/State;->getMode()I
move-result v2
if-eq v2, v1, :cond_0
.line 269
invoke-virtual {v0, v1, p2}, Lcom/google/zxing/aztec/encoder/State;->shiftAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
move-result-object v2
invoke-interface {p3, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:cond_0
const/4 v2, 0x3
const/4 v3, 0x1
if-eq p2, v2, :cond_1
if-ne p2, v1, :cond_2
:cond_1
rsub-int/lit8 p2, p2, 0x10
const/4 v1, 0x2
.line 274
invoke-virtual {v0, v1, p2}, Lcom/google/zxing/aztec/encoder/State;->latchAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
move-result-object p2
.line 275
invoke-virtual {p2, v1, v3}, Lcom/google/zxing/aztec/encoder/State;->latchAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
move-result-object p2
.line 276
invoke-interface {p3, p2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
.line 278
:cond_2
invoke-virtual {p0}, Lcom/google/zxing/aztec/encoder/State;->getBinaryShiftByteCount()I
move-result p2
if-lez p2, :cond_3
.line 281
invoke-virtual {p0, p1}, Lcom/google/zxing/aztec/encoder/State;->addBinaryShiftChar(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object p0
add-int/2addr p1, v3
invoke-virtual {p0, p1}, Lcom/google/zxing/aztec/encoder/State;->addBinaryShiftChar(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object p0
.line 282
invoke-interface {p3, p0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:cond_3
return-void
.end method
.method public static updateStateListForPair(Ljava/lang/Iterable;II)Ljava/util/Collection;
.locals 2
.line 255
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
.line 256
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/zxing/aztec/encoder/State;
.line 257
invoke-static {v1, p1, p2, v0}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->updateStateForPair(Lcom/google/zxing/aztec/encoder/State;IILjava/util/Collection;)V
goto :goto_0
.line 259
:cond_0
invoke-static {v0}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->simplifyStates(Ljava/lang/Iterable;)Ljava/util/Collection;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public encode()Lcom/google/zxing/common/BitArray;
.locals 8
.line 161
sget-object v0, Lcom/google/zxing/aztec/encoder/State;->INITIAL_STATE:Lcom/google/zxing/aztec/encoder/State;
invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
const/4 v1, 0x0
move v2, v1
:goto_0
iget-object v3, p0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->text:[B
.line 162
array-length v4, v3
if-ge v2, v4, :cond_7
add-int/lit8 v4, v2, 0x1
.line 164
array-length v5, v3
if-ge v4, v5, :cond_0
aget-byte v5, v3, v4
goto :goto_1
:cond_0
move v5, v1
.line 165
:goto_1
aget-byte v3, v3, v2
const/16 v6, 0xd
if-eq v3, v6, :cond_5
const/16 v6, 0x2c
const/16 v7, 0x20
if-eq v3, v6, :cond_4
const/16 v6, 0x2e
if-eq v3, v6, :cond_3
const/16 v6, 0x3a
if-eq v3, v6, :cond_2
:cond_1
move v3, v1
goto :goto_2
:cond_2
if-ne v5, v7, :cond_1
const/4 v3, 0x5
goto :goto_2
:cond_3
if-ne v5, v7, :cond_1
const/4 v3, 0x3
goto :goto_2
:cond_4
if-ne v5, v7, :cond_1
const/4 v3, 0x4
goto :goto_2
:cond_5
const/16 v3, 0xa
if-ne v5, v3, :cond_1
const/4 v3, 0x2
:goto_2
if-lez v3, :cond_6
.line 184
invoke-static {v0, v2, v3}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->updateStateListForPair(Ljava/lang/Iterable;II)Ljava/util/Collection;
move-result-object v0
move v2, v4
goto :goto_3
.line 188
:cond_6
invoke-virtual {p0, v0, v2}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->updateStateListForChar(Ljava/lang/Iterable;I)Ljava/util/Collection;
move-result-object v0
:goto_3
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 192
:cond_7
new-instance v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder$1;
invoke-direct {v1, p0}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder$1;-><init>(Lcom/google/zxing/aztec/encoder/HighLevelEncoder;)V
invoke-static {v0, v1}, Ljava/util/Collections;->min(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/zxing/aztec/encoder/State;
iget-object v1, p0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->text:[B
.line 199
invoke-virtual {v0, v1}, Lcom/google/zxing/aztec/encoder/State;->toBitArray([B)Lcom/google/zxing/common/BitArray;
move-result-object v0
return-object v0
.end method
.method public final updateStateForChar(Lcom/google/zxing/aztec/encoder/State;ILjava/util/Collection;)V
.locals 7
iget-object v0, p0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->text:[B
.line 217
aget-byte v0, v0, p2
and-int/lit16 v0, v0, 0xff
int-to-char v0, v0
sget-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 218
invoke-virtual {p1}, Lcom/google/zxing/aztec/encoder/State;->getMode()I
move-result v2
aget-object v1, v1, v2
aget v1, v1, v0
const/4 v2, 0x0
if-lez v1, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
move v1, v2
:goto_0
const/4 v3, 0x0
:goto_1
const/4 v4, 0x4
if-gt v2, v4, :cond_5
sget-object v4, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
.line 221
aget-object v4, v4, v2
aget v4, v4, v0
if-lez v4, :cond_4
if-nez v3, :cond_1
.line 225
invoke-virtual {p1, p2}, Lcom/google/zxing/aztec/encoder/State;->endBinaryShift(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object v3
:cond_1
if-eqz v1, :cond_2
.line 228
invoke-virtual {p1}, Lcom/google/zxing/aztec/encoder/State;->getMode()I
move-result v5
if-eq v2, v5, :cond_2
const/4 v5, 0x2
if-ne v2, v5, :cond_3
.line 233
:cond_2
invoke-virtual {v3, v2, v4}, Lcom/google/zxing/aztec/encoder/State;->latchAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
move-result-object v5
.line 234
invoke-interface {p3, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:cond_3
if-nez v1, :cond_4
sget-object v5, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
.line 237
invoke-virtual {p1}, Lcom/google/zxing/aztec/encoder/State;->getMode()I
move-result v6
aget-object v5, v5, v6
aget v5, v5, v2
if-ltz v5, :cond_4
.line 240
invoke-virtual {v3, v2, v4}, Lcom/google/zxing/aztec/encoder/State;->shiftAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
move-result-object v4
.line 241
invoke-interface {p3, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:cond_4
add-int/lit8 v2, v2, 0x1
goto :goto_1
.line 245
:cond_5
invoke-virtual {p1}, Lcom/google/zxing/aztec/encoder/State;->getBinaryShiftByteCount()I
move-result v1
if-gtz v1, :cond_6
sget-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
invoke-virtual {p1}, Lcom/google/zxing/aztec/encoder/State;->getMode()I
move-result v2
aget-object v1, v1, v2
aget v0, v1, v0
if-nez v0, :cond_7
.line 249
:cond_6
invoke-virtual {p1, p2}, Lcom/google/zxing/aztec/encoder/State;->addBinaryShiftChar(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object p1
.line 250
invoke-interface {p3, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
:cond_7
return-void
.end method
.method public final updateStateListForChar(Ljava/lang/Iterable;I)Ljava/util/Collection;
.locals 2
.line 206
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
.line 207
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/zxing/aztec/encoder/State;
.line 208
invoke-virtual {p0, v1, p2, v0}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->updateStateForChar(Lcom/google/zxing/aztec/encoder/State;ILjava/util/Collection;)V
goto :goto_0
.line 210
:cond_0
invoke-static {v0}, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->simplifyStates(Ljava/lang/Iterable;)Ljava/util/Collection;
move-result-object p1
return-object p1
.end method

View File

@@ -0,0 +1,96 @@
.class public final Lcom/google/zxing/aztec/encoder/SimpleToken;
.super Lcom/google/zxing/aztec/encoder/Token;
.source "SourceFile"
# instance fields
.field public final bitCount:S
.field public final value:S
# direct methods
.method public constructor <init>(Lcom/google/zxing/aztec/encoder/Token;II)V
.locals 0
.line 28
invoke-direct {p0, p1}, Lcom/google/zxing/aztec/encoder/Token;-><init>(Lcom/google/zxing/aztec/encoder/Token;)V
int-to-short p1, p2
iput-short p1, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->value:S
int-to-short p1, p3
iput-short p1, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->bitCount:S
return-void
.end method
# virtual methods
.method public appendTo(Lcom/google/zxing/common/BitArray;[B)V
.locals 1
iget-short p2, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->value:S
iget-short v0, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->bitCount:S
.line 35
invoke-virtual {p1, p2, v0}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 4
iget-short v0, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->value:S
iget-short v1, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->bitCount:S
const/4 v2, 0x1
shl-int v3, v2, v1
sub-int/2addr v3, v2
and-int/2addr v0, v3
shl-int v1, v2, v1
or-int/2addr v0, v1
.line 42
new-instance v1, Ljava/lang/StringBuilder;
const-string v3, "<"
invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-short v3, p0, Lcom/google/zxing/aztec/encoder/SimpleToken;->bitCount:S
shl-int v3, v2, v3
or-int/2addr v0, v3
invoke-static {v0}, Ljava/lang/Integer;->toBinaryString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {v0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v0, 0x3e
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,474 @@
.class public final Lcom/google/zxing/aztec/encoder/State;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final INITIAL_STATE:Lcom/google/zxing/aztec/encoder/State;
# instance fields
.field public final binaryShiftByteCount:I
.field public final bitCount:I
.field public final mode:I
.field public final token:Lcom/google/zxing/aztec/encoder/Token;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 30
new-instance v0, Lcom/google/zxing/aztec/encoder/State;
sget-object v1, Lcom/google/zxing/aztec/encoder/Token;->EMPTY:Lcom/google/zxing/aztec/encoder/Token;
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2, v2}, Lcom/google/zxing/aztec/encoder/State;-><init>(Lcom/google/zxing/aztec/encoder/Token;III)V
sput-object v0, Lcom/google/zxing/aztec/encoder/State;->INITIAL_STATE:Lcom/google/zxing/aztec/encoder/State;
return-void
.end method
.method public constructor <init>(Lcom/google/zxing/aztec/encoder/Token;III)V
.locals 0
.line 44
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/zxing/aztec/encoder/State;->token:Lcom/google/zxing/aztec/encoder/Token;
iput p2, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
iput p3, p0, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
iput p4, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
return-void
.end method
# virtual methods
.method public addBinaryShiftChar(I)Lcom/google/zxing/aztec/encoder/State;
.locals 6
iget-object v0, p0, Lcom/google/zxing/aztec/encoder/State;->token:Lcom/google/zxing/aztec/encoder/Token;
iget v1, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
iget v2, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
const/4 v3, 0x4
if-eq v1, v3, :cond_0
const/4 v3, 0x2
if-ne v1, v3, :cond_1
.line 109
:cond_0
sget-object v3, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->LATCH_TABLE:[[I
aget-object v1, v3, v1
const/4 v3, 0x0
aget v1, v1, v3
const v4, 0xffff
and-int/2addr v4, v1
shr-int/lit8 v1, v1, 0x10
.line 110
invoke-virtual {v0, v4, v1}, Lcom/google/zxing/aztec/encoder/Token;->add(II)Lcom/google/zxing/aztec/encoder/Token;
move-result-object v0
add-int/2addr v2, v1
move v1, v3
:cond_1
iget v3, p0, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
if-eqz v3, :cond_4
const/16 v4, 0x1f
if-ne v3, v4, :cond_2
goto :goto_0
:cond_2
const/16 v4, 0x3e
if-ne v3, v4, :cond_3
const/16 v4, 0x9
goto :goto_1
:cond_3
const/16 v4, 0x8
goto :goto_1
:cond_4
:goto_0
const/16 v4, 0x12
.line 117
:goto_1
new-instance v5, Lcom/google/zxing/aztec/encoder/State;
add-int/lit8 v3, v3, 0x1
add-int/2addr v2, v4
invoke-direct {v5, v0, v1, v3, v2}, Lcom/google/zxing/aztec/encoder/State;-><init>(Lcom/google/zxing/aztec/encoder/Token;III)V
iget v0, v5, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
const/16 v1, 0x81e
if-ne v0, v1, :cond_5
add-int/lit8 p1, p1, 0x1
.line 120
invoke-virtual {v5, p1}, Lcom/google/zxing/aztec/encoder/State;->endBinaryShift(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object v5
:cond_5
return-object v5
.end method
.method public endBinaryShift(I)Lcom/google/zxing/aztec/encoder/State;
.locals 4
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
if-nez v0, :cond_0
return-object p0
:cond_0
iget-object v1, p0, Lcom/google/zxing/aztec/encoder/State;->token:Lcom/google/zxing/aztec/encoder/Token;
sub-int/2addr p1, v0
.line 132
invoke-virtual {v1, p1, v0}, Lcom/google/zxing/aztec/encoder/Token;->addBinaryShift(II)Lcom/google/zxing/aztec/encoder/Token;
move-result-object p1
.line 134
new-instance v0, Lcom/google/zxing/aztec/encoder/State;
iget v1, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
const/4 v2, 0x0
iget v3, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
invoke-direct {v0, p1, v1, v2, v3}, Lcom/google/zxing/aztec/encoder/State;-><init>(Lcom/google/zxing/aztec/encoder/Token;III)V
return-object v0
.end method
.method public getBinaryShiftByteCount()I
.locals 1
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
return v0
.end method
.method public getBitCount()I
.locals 1
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
return v0
.end method
.method public getMode()I
.locals 1
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
return v0
.end method
.method public isBetterThanOrEqualTo(Lcom/google/zxing/aztec/encoder/State;)Z
.locals 3
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
.line 140
sget-object v1, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->LATCH_TABLE:[[I
iget v2, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
aget-object v1, v1, v2
iget v2, p1, Lcom/google/zxing/aztec/encoder/State;->mode:I
aget v1, v1, v2
shr-int/lit8 v1, v1, 0x10
add-int/2addr v0, v1
.line 141
iget v1, p1, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
if-lez v1, :cond_1
iget v2, p0, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
if-eqz v2, :cond_0
if-le v2, v1, :cond_1
:cond_0
add-int/lit8 v0, v0, 0xa
.line 145
:cond_1
iget p1, p1, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
if-gt v0, p1, :cond_2
const/4 p1, 0x1
return p1
:cond_2
const/4 p1, 0x0
return p1
.end method
.method public latchAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
.locals 4
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
iget-object v1, p0, Lcom/google/zxing/aztec/encoder/State;->token:Lcom/google/zxing/aztec/encoder/Token;
iget v2, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
if-eq p1, v2, :cond_0
.line 80
sget-object v3, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->LATCH_TABLE:[[I
aget-object v2, v3, v2
aget v2, v2, p1
const v3, 0xffff
and-int/2addr v3, v2
shr-int/lit8 v2, v2, 0x10
.line 81
invoke-virtual {v1, v3, v2}, Lcom/google/zxing/aztec/encoder/Token;->add(II)Lcom/google/zxing/aztec/encoder/Token;
move-result-object v1
add-int/2addr v0, v2
:cond_0
const/4 v2, 0x2
if-ne p1, v2, :cond_1
const/4 v2, 0x4
goto :goto_0
:cond_1
const/4 v2, 0x5
.line 85
:goto_0
invoke-virtual {v1, p2, v2}, Lcom/google/zxing/aztec/encoder/Token;->add(II)Lcom/google/zxing/aztec/encoder/Token;
move-result-object p2
.line 86
new-instance v1, Lcom/google/zxing/aztec/encoder/State;
const/4 v3, 0x0
add-int/2addr v0, v2
invoke-direct {v1, p2, p1, v3, v0}, Lcom/google/zxing/aztec/encoder/State;-><init>(Lcom/google/zxing/aztec/encoder/Token;III)V
return-object v1
.end method
.method public shiftAndAppend(II)Lcom/google/zxing/aztec/encoder/State;
.locals 5
iget-object v0, p0, Lcom/google/zxing/aztec/encoder/State;->token:Lcom/google/zxing/aztec/encoder/Token;
iget v1, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
const/4 v2, 0x2
const/4 v3, 0x5
if-ne v1, v2, :cond_0
const/4 v2, 0x4
goto :goto_0
:cond_0
move v2, v3
.line 96
:goto_0
sget-object v4, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
aget-object v1, v4, v1
aget p1, v1, p1
invoke-virtual {v0, p1, v2}, Lcom/google/zxing/aztec/encoder/Token;->add(II)Lcom/google/zxing/aztec/encoder/Token;
move-result-object p1
.line 97
invoke-virtual {p1, p2, v3}, Lcom/google/zxing/aztec/encoder/Token;->add(II)Lcom/google/zxing/aztec/encoder/Token;
move-result-object p1
.line 98
new-instance p2, Lcom/google/zxing/aztec/encoder/State;
iget v0, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
iget v1, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
add-int/2addr v1, v2
add-int/2addr v1, v3
const/4 v2, 0x0
invoke-direct {p2, p1, v0, v2, v1}, Lcom/google/zxing/aztec/encoder/State;-><init>(Lcom/google/zxing/aztec/encoder/Token;III)V
return-object p2
.end method
.method public toBitArray([B)Lcom/google/zxing/common/BitArray;
.locals 3
.line 151
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
.line 152
array-length v1, p1
invoke-virtual {p0, v1}, Lcom/google/zxing/aztec/encoder/State;->endBinaryShift(I)Lcom/google/zxing/aztec/encoder/State;
move-result-object v1
iget-object v1, v1, Lcom/google/zxing/aztec/encoder/State;->token:Lcom/google/zxing/aztec/encoder/Token;
:goto_0
if-eqz v1, :cond_0
.line 153
invoke-interface {v0, v1}, Ljava/util/Deque;->addFirst(Ljava/lang/Object;)V
.line 152
invoke-virtual {v1}, Lcom/google/zxing/aztec/encoder/Token;->getPrevious()Lcom/google/zxing/aztec/encoder/Token;
move-result-object v1
goto :goto_0
.line 155
:cond_0
new-instance v1, Lcom/google/zxing/common/BitArray;
invoke-direct {v1}, Lcom/google/zxing/common/BitArray;-><init>()V
.line 157
invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/zxing/aztec/encoder/Token;
.line 158
invoke-virtual {v2, v1, p1}, Lcom/google/zxing/aztec/encoder/Token;->appendTo(Lcom/google/zxing/common/BitArray;[B)V
goto :goto_1
:cond_1
return-object v1
.end method
.method public toString()Ljava/lang/String;
.locals 3
.line 166
sget-object v0, Lcom/google/zxing/aztec/encoder/HighLevelEncoder;->MODE_NAMES:[Ljava/lang/String;
iget v1, p0, Lcom/google/zxing/aztec/encoder/State;->mode:I
aget-object v0, v0, v1
iget v1, p0, Lcom/google/zxing/aztec/encoder/State;->bitCount:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
iget v2, p0, Lcom/google/zxing/aztec/encoder/State;->binaryShiftByteCount:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
filled-new-array {v0, v1, v2}, [Ljava/lang/Object;
move-result-object v0
const-string v1, "%s bits=%d bytes=%d"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method

View File

@@ -0,0 +1,76 @@
.class public abstract Lcom/google/zxing/aztec/encoder/Token;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final EMPTY:Lcom/google/zxing/aztec/encoder/Token;
# instance fields
.field public final previous:Lcom/google/zxing/aztec/encoder/Token;
# direct methods
.method static constructor <clinit>()V
.locals 3
.line 23
new-instance v0, Lcom/google/zxing/aztec/encoder/SimpleToken;
const/4 v1, 0x0
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/zxing/aztec/encoder/SimpleToken;-><init>(Lcom/google/zxing/aztec/encoder/Token;II)V
sput-object v0, Lcom/google/zxing/aztec/encoder/Token;->EMPTY:Lcom/google/zxing/aztec/encoder/Token;
return-void
.end method
.method public constructor <init>(Lcom/google/zxing/aztec/encoder/Token;)V
.locals 0
.line 27
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/zxing/aztec/encoder/Token;->previous:Lcom/google/zxing/aztec/encoder/Token;
return-void
.end method
# virtual methods
.method public final add(II)Lcom/google/zxing/aztec/encoder/Token;
.locals 1
.line 36
new-instance v0, Lcom/google/zxing/aztec/encoder/SimpleToken;
invoke-direct {v0, p0, p1, p2}, Lcom/google/zxing/aztec/encoder/SimpleToken;-><init>(Lcom/google/zxing/aztec/encoder/Token;II)V
return-object v0
.end method
.method public final addBinaryShift(II)Lcom/google/zxing/aztec/encoder/Token;
.locals 1
.line 41
new-instance v0, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;
invoke-direct {v0, p0, p1, p2}, Lcom/google/zxing/aztec/encoder/BinaryShiftToken;-><init>(Lcom/google/zxing/aztec/encoder/Token;II)V
return-object v0
.end method
.method public abstract appendTo(Lcom/google/zxing/common/BitArray;[B)V
.end method
.method public final getPrevious()Lcom/google/zxing/aztec/encoder/Token;
.locals 1
iget-object v0, p0, Lcom/google/zxing/aztec/encoder/Token;->previous:Lcom/google/zxing/aztec/encoder/Token;
return-object v0
.end method