This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,46 @@
.class final Lcom/google/zxing/qrcode/encoder/BlockPair;
.super Ljava/lang/Object;
.source "BlockPair.java"
# instance fields
.field private final dataBytes:[B
.field private final errorCorrectionBytes:[B
# direct methods
.method public constructor <init>([B[B)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/zxing/qrcode/encoder/BlockPair;->dataBytes:[B
.line 3
iput-object p2, p0, Lcom/google/zxing/qrcode/encoder/BlockPair;->errorCorrectionBytes:[B
return-void
.end method
# virtual methods
.method public getDataBytes()[B
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/BlockPair;->dataBytes:[B
return-object v0
.end method
.method public getErrorCorrectionBytes()[B
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/BlockPair;->errorCorrectionBytes:[B
return-object v0
.end method
@@ -0,0 +1,271 @@
.class public final Lcom/google/zxing/qrcode/encoder/ByteMatrix;
.super Ljava/lang/Object;
.source "ByteMatrix.java"
# instance fields
.field private final bytes:[[B
.field private final height:I
.field private final width:I
# direct methods
.method public constructor <init>(II)V
.locals 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x2
new-array v0, v0, [I
const/4 v1, 0x1
aput p1, v0, v1
const/4 v1, 0x0
aput p2, v0, v1
.line 2
const-class v1, B
invoke-static {v1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [[B
iput-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
.line 3
iput p1, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
.line 4
iput p2, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
return-void
.end method
# virtual methods
.method public clear(B)V
.locals 4
const/4 v0, 0x0
move v1, v0
.line 1
:goto_0
iget v2, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
if-lt v1, v2, :cond_0
return-void
:cond_0
move v2, v0
.line 2
:goto_1
iget v3, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
if-lt v2, v3, :cond_1
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 3
:cond_1
iget-object v3, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
aget-object v3, v3, v1
aput-byte p1, v3, v2
add-int/lit8 v2, v2, 0x1
goto :goto_1
.end method
.method public get(II)B
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
aget-object p2, v0, p2
aget-byte p1, p2, p1
return p1
.end method
.method public getArray()[[B
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
return-object v0
.end method
.method public getHeight()I
.locals 1
.line 1
iget v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
return v0
.end method
.method public getWidth()I
.locals 1
.line 1
iget v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
return v0
.end method
.method public set(IIB)V
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
aget-object p2, v0, p2
aput-byte p3, p2, p1
return-void
.end method
.method public set(III)V
.locals 1
.line 2
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
aget-object p2, v0, p2
int-to-byte p3, p3
aput-byte p3, p2, p1
return-void
.end method
.method public set(IIZ)V
.locals 1
.line 3
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
aget-object p2, v0, p2
int-to-byte p3, p3
aput-byte p3, p2, p1
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 6
.line 1
new-instance v0, Ljava/lang/StringBuilder;
iget v1, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
mul-int/lit8 v1, v1, 0x2
iget v2, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
mul-int/2addr v1, v2
add-int/lit8 v1, v1, 0x2
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const/4 v1, 0x0
move v2, v1
.line 2
:goto_0
iget v3, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->height:I
if-lt v2, v3, :cond_0
.line 3
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
move v3, v1
.line 4
:goto_1
iget v4, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->width:I
if-lt v3, v4, :cond_1
const/16 v3, 0xa
.line 5
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 6
:cond_1
iget-object v4, p0, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->bytes:[[B
aget-object v4, v4, v2
aget-byte v4, v4, v3
if-eqz v4, :cond_3
const/4 v5, 0x1
if-eq v4, v5, :cond_2
const-string v4, " "
.line 7
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_2
:cond_2
const-string v4, " 1"
.line 8
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_2
:cond_3
const-string v4, " 0"
.line 9
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_2
add-int/lit8 v3, v3, 0x1
goto :goto_1
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,798 @@
.class final Lcom/google/zxing/qrcode/encoder/MaskUtil;
.super Ljava/lang/Object;
.source "MaskUtil.java"
# static fields
.field private static final N1:I = 0x3
.field private static final N2:I = 0x3
.field private static final N3:I = 0x28
.field private static final N4:I = 0xa
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static applyMaskPenaltyRule1(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)I
.locals 2
const/4 v0, 0x1
.line 1
invoke-static {p0, v0}, Lcom/google/zxing/qrcode/encoder/MaskUtil;->applyMaskPenaltyRule1Internal(Lcom/google/zxing/qrcode/encoder/ByteMatrix;Z)I
move-result v0
const/4 v1, 0x0
invoke-static {p0, v1}, Lcom/google/zxing/qrcode/encoder/MaskUtil;->applyMaskPenaltyRule1Internal(Lcom/google/zxing/qrcode/encoder/ByteMatrix;Z)I
move-result p0
add-int/2addr v0, p0
return v0
.end method
.method private static applyMaskPenaltyRule1Internal(Lcom/google/zxing/qrcode/encoder/ByteMatrix;Z)I
.locals 10
if-eqz p1, :cond_0
.line 1
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
move-result v0
goto :goto_0
:cond_0
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
move-result v0
:goto_0
if-eqz p1, :cond_1
.line 2
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
move-result v1
goto :goto_1
:cond_1
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
move-result v1
.line 3
:goto_1
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getArray()[[B
move-result-object p0
const/4 v2, 0x0
move v3, v2
move v4, v3
:goto_2
if-lt v3, v0, :cond_2
return v4
:cond_2
const/4 v5, -0x1
move v6, v2
move v7, v6
:goto_3
const/4 v8, 0x5
if-lt v6, v1, :cond_4
if-le v7, v8, :cond_3
add-int/lit8 v7, v7, -0x5
add-int/lit8 v7, v7, 0x3
add-int/2addr v7, v4
move v4, v7
:cond_3
add-int/lit8 v3, v3, 0x1
goto :goto_2
:cond_4
if-eqz p1, :cond_5
.line 4
aget-object v9, p0, v3
aget-byte v9, v9, v6
goto :goto_4
:cond_5
aget-object v9, p0, v6
aget-byte v9, v9, v3
:goto_4
if-ne v9, v5, :cond_6
add-int/lit8 v7, v7, 0x1
goto :goto_5
:cond_6
if-lt v7, v8, :cond_7
add-int/lit8 v7, v7, -0x5
add-int/lit8 v7, v7, 0x3
add-int/2addr v4, v7
:cond_7
const/4 v5, 0x1
move v7, v5
move v5, v9
:goto_5
add-int/lit8 v6, v6, 0x1
goto :goto_3
.end method
.method public static applyMaskPenaltyRule2(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)I
.locals 10
.line 1
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getArray()[[B
move-result-object v0
.line 2
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
move-result v1
.line 3
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
move-result p0
const/4 v2, 0x0
move v3, v2
move v4, v3
:goto_0
add-int/lit8 v5, p0, -0x1
if-lt v3, v5, :cond_0
mul-int/lit8 v4, v4, 0x3
return v4
:cond_0
move v5, v2
:goto_1
add-int/lit8 v6, v1, -0x1
if-lt v5, v6, :cond_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 4
:cond_1
aget-object v6, v0, v3
aget-byte v6, v6, v5
.line 5
aget-object v7, v0, v3
add-int/lit8 v8, v5, 0x1
aget-byte v7, v7, v8
if-ne v6, v7, :cond_2
add-int/lit8 v7, v3, 0x1
aget-object v9, v0, v7
aget-byte v5, v9, v5
if-ne v6, v5, :cond_2
aget-object v5, v0, v7
aget-byte v5, v5, v8
if-ne v6, v5, :cond_2
add-int/lit8 v4, v4, 0x1
:cond_2
move v5, v8
goto :goto_1
.end method
.method public static applyMaskPenaltyRule3(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)I
.locals 10
.line 1
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getArray()[[B
move-result-object v0
.line 2
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
move-result v1
.line 3
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
move-result p0
const/4 v2, 0x0
move v3, v2
move v4, v3
:goto_0
if-lt v3, p0, :cond_0
return v4
:cond_0
move v5, v2
:goto_1
if-lt v5, v1, :cond_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
add-int/lit8 v6, v5, 0x6
const/4 v7, 0x1
if-ge v6, v1, :cond_4
.line 4
aget-object v8, v0, v3
aget-byte v8, v8, v5
if-ne v8, v7, :cond_4
.line 5
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x1
aget-byte v8, v8, v9
if-nez v8, :cond_4
.line 6
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x2
aget-byte v8, v8, v9
if-ne v8, v7, :cond_4
.line 7
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x3
aget-byte v8, v8, v9
if-ne v8, v7, :cond_4
.line 8
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x4
aget-byte v8, v8, v9
if-ne v8, v7, :cond_4
.line 9
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x5
aget-byte v8, v8, v9
if-nez v8, :cond_4
.line 10
aget-object v8, v0, v3
aget-byte v6, v8, v6
if-ne v6, v7, :cond_4
add-int/lit8 v6, v5, 0xa
if-ge v6, v1, :cond_2
.line 11
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x7
aget-byte v8, v8, v9
if-nez v8, :cond_2
.line 12
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x8
aget-byte v8, v8, v9
if-nez v8, :cond_2
.line 13
aget-object v8, v0, v3
add-int/lit8 v9, v5, 0x9
aget-byte v8, v8, v9
if-nez v8, :cond_2
.line 14
aget-object v8, v0, v3
aget-byte v6, v8, v6
if-eqz v6, :cond_3
:cond_2
add-int/lit8 v6, v5, -0x4
if-ltz v6, :cond_4
.line 15
aget-object v8, v0, v3
add-int/lit8 v9, v5, -0x1
aget-byte v8, v8, v9
if-nez v8, :cond_4
.line 16
aget-object v8, v0, v3
add-int/lit8 v9, v5, -0x2
aget-byte v8, v8, v9
if-nez v8, :cond_4
.line 17
aget-object v8, v0, v3
add-int/lit8 v9, v5, -0x3
aget-byte v8, v8, v9
if-nez v8, :cond_4
.line 18
aget-object v8, v0, v3
aget-byte v6, v8, v6
if-nez v6, :cond_4
:cond_3
add-int/lit8 v4, v4, 0x28
:cond_4
add-int/lit8 v6, v3, 0x6
if-ge v6, p0, :cond_7
.line 19
aget-object v8, v0, v3
aget-byte v8, v8, v5
if-ne v8, v7, :cond_7
add-int/lit8 v8, v3, 0x1
.line 20
aget-object v8, v0, v8
aget-byte v8, v8, v5
if-nez v8, :cond_7
add-int/lit8 v8, v3, 0x2
.line 21
aget-object v8, v0, v8
aget-byte v8, v8, v5
if-ne v8, v7, :cond_7
add-int/lit8 v8, v3, 0x3
.line 22
aget-object v8, v0, v8
aget-byte v8, v8, v5
if-ne v8, v7, :cond_7
add-int/lit8 v8, v3, 0x4
.line 23
aget-object v8, v0, v8
aget-byte v8, v8, v5
if-ne v8, v7, :cond_7
add-int/lit8 v8, v3, 0x5
.line 24
aget-object v8, v0, v8
aget-byte v8, v8, v5
if-nez v8, :cond_7
.line 25
aget-object v6, v0, v6
aget-byte v6, v6, v5
if-ne v6, v7, :cond_7
add-int/lit8 v6, v3, 0xa
if-ge v6, p0, :cond_5
add-int/lit8 v7, v3, 0x7
.line 26
aget-object v7, v0, v7
aget-byte v7, v7, v5
if-nez v7, :cond_5
add-int/lit8 v7, v3, 0x8
.line 27
aget-object v7, v0, v7
aget-byte v7, v7, v5
if-nez v7, :cond_5
add-int/lit8 v7, v3, 0x9
.line 28
aget-object v7, v0, v7
aget-byte v7, v7, v5
if-nez v7, :cond_5
.line 29
aget-object v6, v0, v6
aget-byte v6, v6, v5
if-eqz v6, :cond_6
:cond_5
add-int/lit8 v6, v3, -0x4
if-ltz v6, :cond_7
add-int/lit8 v7, v3, -0x1
.line 30
aget-object v7, v0, v7
aget-byte v7, v7, v5
if-nez v7, :cond_7
add-int/lit8 v7, v3, -0x2
.line 31
aget-object v7, v0, v7
aget-byte v7, v7, v5
if-nez v7, :cond_7
add-int/lit8 v7, v3, -0x3
.line 32
aget-object v7, v0, v7
aget-byte v7, v7, v5
if-nez v7, :cond_7
.line 33
aget-object v6, v0, v6
aget-byte v6, v6, v5
if-nez v6, :cond_7
:cond_6
add-int/lit8 v4, v4, 0x28
:cond_7
add-int/lit8 v5, v5, 0x1
goto/16 :goto_1
.end method
.method public static applyMaskPenaltyRule4(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)I
.locals 10
.line 1
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getArray()[[B
move-result-object v0
.line 2
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
move-result v1
.line 3
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
move-result v2
const/4 v3, 0x0
move v4, v3
move v5, v4
:goto_0
if-lt v4, v2, :cond_0
.line 4
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
move-result v0
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
move-result p0
mul-int/2addr p0, v0
int-to-double v0, v5
int-to-double v2, p0
div-double/2addr v0, v2
const-wide/high16 v2, 0x3fe0000000000000L # 0.5
sub-double/2addr v0, v2
.line 5
invoke-static {v0, v1}, Ljava/lang/Math;->abs(D)D
move-result-wide v0
const-wide/high16 v2, 0x4034000000000000L # 20.0
mul-double/2addr v0, v2
double-to-int p0, v0
mul-int/lit8 p0, p0, 0xa
return p0
.line 6
:cond_0
aget-object v6, v0, v4
move v7, v3
:goto_1
if-lt v7, v1, :cond_1
add-int/lit8 v4, v4, 0x1
goto :goto_0
.line 7
:cond_1
aget-byte v8, v6, v7
const/4 v9, 0x1
if-ne v8, v9, :cond_2
add-int/lit8 v5, v5, 0x1
:cond_2
add-int/lit8 v7, v7, 0x1
goto :goto_1
.end method
.method public static getDataMaskBit(III)Z
.locals 1
const/4 v0, 0x1
packed-switch p0, :pswitch_data_0
.line 1
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance p2, Ljava/lang/StringBuilder;
const-string v0, "Invalid mask pattern: "
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:pswitch_0
mul-int p0, p2, p1
.line 2
rem-int/lit8 p0, p0, 0x3
add-int/2addr p2, p1
and-int/lit8 p1, p2, 0x1
add-int/2addr p0, p1
and-int/2addr p0, v0
goto :goto_1
:pswitch_1
mul-int/2addr p2, p1
and-int/lit8 p0, p2, 0x1
.line 3
rem-int/lit8 p2, p2, 0x3
add-int/2addr p2, p0
goto :goto_0
:pswitch_2
mul-int/2addr p2, p1
and-int/lit8 p0, p2, 0x1
.line 4
rem-int/lit8 p2, p2, 0x3
add-int/2addr p0, p2
goto :goto_1
:pswitch_3
ushr-int/lit8 p0, p2, 0x1
.line 5
div-int/lit8 p1, p1, 0x3
add-int/2addr p1, p0
and-int/lit8 p0, p1, 0x1
goto :goto_1
:pswitch_4
add-int/2addr p2, p1
.line 6
rem-int/lit8 p0, p2, 0x3
goto :goto_1
.line 7
:pswitch_5
rem-int/lit8 p0, p1, 0x3
goto :goto_1
:pswitch_6
add-int/2addr p2, p1
:goto_0
:pswitch_7
and-int/lit8 p0, p2, 0x1
:goto_1
if-nez p0, :cond_0
return v0
:cond_0
const/4 p0, 0x0
return p0
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_6
:pswitch_7
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,242 @@
.class public final Lcom/google/zxing/qrcode/encoder/QRCode;
.super Ljava/lang/Object;
.source "QRCode.java"
# static fields
.field public static final NUM_MASK_PATTERNS:I = 0x8
# instance fields
.field private ecLevel:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.field private maskPattern:I
.field private matrix:Lcom/google/zxing/qrcode/encoder/ByteMatrix;
.field private mode:Lcom/google/zxing/qrcode/decoder/Mode;
.field private version:Lcom/google/zxing/qrcode/decoder/Version;
# direct methods
.method public constructor <init>()V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, -0x1
.line 2
iput v0, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->maskPattern:I
return-void
.end method
.method public static isValidMaskPattern(I)Z
.locals 1
if-ltz p0, :cond_0
const/16 v0, 0x8
if-ge p0, v0, :cond_0
const/4 p0, 0x1
return p0
:cond_0
const/4 p0, 0x0
return p0
.end method
# virtual methods
.method public getECLevel()Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->ecLevel:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
return-object v0
.end method
.method public getMaskPattern()I
.locals 1
.line 1
iget v0, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->maskPattern:I
return v0
.end method
.method public getMatrix()Lcom/google/zxing/qrcode/encoder/ByteMatrix;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->matrix:Lcom/google/zxing/qrcode/encoder/ByteMatrix;
return-object v0
.end method
.method public getMode()Lcom/google/zxing/qrcode/decoder/Mode;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->mode:Lcom/google/zxing/qrcode/decoder/Mode;
return-object v0
.end method
.method public getVersion()Lcom/google/zxing/qrcode/decoder/Version;
.locals 1
.line 1
iget-object v0, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->version:Lcom/google/zxing/qrcode/decoder/Version;
return-object v0
.end method
.method public setECLevel(Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->ecLevel:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
return-void
.end method
.method public setMaskPattern(I)V
.locals 0
.line 1
iput p1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->maskPattern:I
return-void
.end method
.method public setMatrix(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->matrix:Lcom/google/zxing/qrcode/encoder/ByteMatrix;
return-void
.end method
.method public setMode(Lcom/google/zxing/qrcode/decoder/Mode;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->mode:Lcom/google/zxing/qrcode/decoder/Mode;
return-void
.end method
.method public setVersion(Lcom/google/zxing/qrcode/decoder/Version;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->version:Lcom/google/zxing/qrcode/decoder/Version;
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0xc8
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v1, "<<\n"
.line 2
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " mode: "
.line 3
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 4
iget-object v1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->mode:Lcom/google/zxing/qrcode/decoder/Mode;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "\n ecLevel: "
.line 5
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 6
iget-object v1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->ecLevel:Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "\n version: "
.line 7
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 8
iget-object v1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->version:Lcom/google/zxing/qrcode/decoder/Version;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, "\n maskPattern: "
.line 9
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 10
iget v1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->maskPattern:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
.line 11
iget-object v1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->matrix:Lcom/google/zxing/qrcode/encoder/ByteMatrix;
if-nez v1, :cond_0
const-string v1, "\n matrix: null\n"
.line 12
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_0
const-string v1, "\n matrix:\n"
.line 13
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 14
iget-object v1, p0, Lcom/google/zxing/qrcode/encoder/QRCode;->matrix:Lcom/google/zxing/qrcode/encoder/ByteMatrix;
invoke-virtual {v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
const-string v1, ">>\n"
.line 15
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.line 16
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method