2325 lines
41 KiB
Smali
2325 lines
41 KiB
Smali
.class final Lcom/google/zxing/qrcode/encoder/MatrixUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "MatrixUtil.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final POSITION_ADJUSTMENT_PATTERN:[[I
|
|
|
|
.field private static final POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE:[[I
|
|
|
|
.field private static final POSITION_DETECTION_PATTERN:[[I
|
|
|
|
.field private static final TYPE_INFO_COORDINATES:[[I
|
|
|
|
.field private static final TYPE_INFO_MASK_PATTERN:I = 0x5412
|
|
|
|
.field private static final TYPE_INFO_POLY:I = 0x537
|
|
|
|
.field private static final VERSION_INFO_POLY:I = 0x1f25
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 18
|
|
|
|
const/4 v0, 0x7
|
|
|
|
new-array v1, v0, [[I
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 1
|
|
fill-array-data v2, :array_0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
new-array v2, v0, [I
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput v4, v2, v3
|
|
|
|
const/4 v5, 0x6
|
|
|
|
aput v4, v2, v5
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-array v2, v0, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
const/4 v6, 0x2
|
|
|
|
aput v4, v2, v6
|
|
|
|
const/4 v7, 0x3
|
|
|
|
aput v4, v2, v7
|
|
|
|
const/4 v8, 0x4
|
|
|
|
aput v4, v2, v8
|
|
|
|
aput v4, v2, v5
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
new-array v2, v0, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
aput v4, v2, v6
|
|
|
|
aput v4, v2, v7
|
|
|
|
aput v4, v2, v8
|
|
|
|
aput v4, v2, v5
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
new-array v2, v0, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
aput v4, v2, v6
|
|
|
|
aput v4, v2, v7
|
|
|
|
aput v4, v2, v8
|
|
|
|
aput v4, v2, v5
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
new-array v2, v0, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
aput v4, v2, v5
|
|
|
|
const/4 v9, 0x5
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 2
|
|
fill-array-data v2, :array_1
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
.line 3
|
|
sput-object v1, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_DETECTION_PATTERN:[[I
|
|
|
|
new-array v1, v9, [[I
|
|
|
|
new-array v2, v9, [I
|
|
|
|
.line 4
|
|
fill-array-data v2, :array_2
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
new-array v2, v9, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
aput v4, v2, v8
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-array v2, v9, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
aput v4, v2, v6
|
|
|
|
aput v4, v2, v8
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
new-array v2, v9, [I
|
|
|
|
aput v4, v2, v3
|
|
|
|
aput v4, v2, v8
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
new-array v2, v9, [I
|
|
|
|
.line 5
|
|
fill-array-data v2, :array_3
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
.line 6
|
|
sput-object v1, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN:[[I
|
|
|
|
const/16 v1, 0x28
|
|
|
|
new-array v1, v1, [[I
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 7
|
|
fill-array-data v2, :array_4
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 8
|
|
fill-array-data v2, :array_5
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 9
|
|
fill-array-data v2, :array_6
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 10
|
|
fill-array-data v2, :array_7
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 11
|
|
fill-array-data v2, :array_8
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 12
|
|
fill-array-data v2, :array_9
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 13
|
|
fill-array-data v2, :array_a
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 14
|
|
fill-array-data v2, :array_b
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 15
|
|
fill-array-data v2, :array_c
|
|
|
|
const/16 v10, 0x8
|
|
|
|
aput-object v2, v1, v10
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 16
|
|
fill-array-data v2, :array_d
|
|
|
|
const/16 v11, 0x9
|
|
|
|
aput-object v2, v1, v11
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 17
|
|
fill-array-data v2, :array_e
|
|
|
|
const/16 v12, 0xa
|
|
|
|
aput-object v2, v1, v12
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 18
|
|
fill-array-data v2, :array_f
|
|
|
|
const/16 v13, 0xb
|
|
|
|
aput-object v2, v1, v13
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 19
|
|
fill-array-data v2, :array_10
|
|
|
|
const/16 v14, 0xc
|
|
|
|
aput-object v2, v1, v14
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 20
|
|
fill-array-data v2, :array_11
|
|
|
|
const/16 v15, 0xd
|
|
|
|
aput-object v2, v1, v15
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 21
|
|
fill-array-data v2, :array_12
|
|
|
|
const/16 v16, 0xe
|
|
|
|
aput-object v2, v1, v16
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 22
|
|
fill-array-data v2, :array_13
|
|
|
|
const/16 v15, 0xf
|
|
|
|
aput-object v2, v1, v15
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 23
|
|
fill-array-data v2, :array_14
|
|
|
|
const/16 v17, 0x10
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 24
|
|
fill-array-data v2, :array_15
|
|
|
|
const/16 v17, 0x11
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 25
|
|
fill-array-data v2, :array_16
|
|
|
|
const/16 v17, 0x12
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 26
|
|
fill-array-data v2, :array_17
|
|
|
|
const/16 v17, 0x13
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 27
|
|
fill-array-data v2, :array_18
|
|
|
|
const/16 v17, 0x14
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 28
|
|
fill-array-data v2, :array_19
|
|
|
|
const/16 v17, 0x15
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 29
|
|
fill-array-data v2, :array_1a
|
|
|
|
const/16 v17, 0x16
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 30
|
|
fill-array-data v2, :array_1b
|
|
|
|
const/16 v17, 0x17
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 31
|
|
fill-array-data v2, :array_1c
|
|
|
|
const/16 v17, 0x18
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 32
|
|
fill-array-data v2, :array_1d
|
|
|
|
const/16 v17, 0x19
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 33
|
|
fill-array-data v2, :array_1e
|
|
|
|
const/16 v17, 0x1a
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 34
|
|
fill-array-data v2, :array_1f
|
|
|
|
const/16 v17, 0x1b
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 35
|
|
fill-array-data v2, :array_20
|
|
|
|
const/16 v17, 0x1c
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 36
|
|
fill-array-data v2, :array_21
|
|
|
|
const/16 v17, 0x1d
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 37
|
|
fill-array-data v2, :array_22
|
|
|
|
const/16 v17, 0x1e
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 38
|
|
fill-array-data v2, :array_23
|
|
|
|
const/16 v17, 0x1f
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 39
|
|
fill-array-data v2, :array_24
|
|
|
|
const/16 v17, 0x20
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 40
|
|
fill-array-data v2, :array_25
|
|
|
|
const/16 v17, 0x21
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 41
|
|
fill-array-data v2, :array_26
|
|
|
|
const/16 v17, 0x22
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 42
|
|
fill-array-data v2, :array_27
|
|
|
|
const/16 v17, 0x23
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 43
|
|
fill-array-data v2, :array_28
|
|
|
|
const/16 v17, 0x24
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 44
|
|
fill-array-data v2, :array_29
|
|
|
|
const/16 v17, 0x25
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 45
|
|
fill-array-data v2, :array_2a
|
|
|
|
const/16 v17, 0x26
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
.line 46
|
|
fill-array-data v2, :array_2b
|
|
|
|
const/16 v17, 0x27
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
.line 47
|
|
sput-object v1, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE:[[I
|
|
|
|
new-array v1, v15, [[I
|
|
|
|
new-array v2, v6, [I
|
|
|
|
aput v10, v2, v3
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 48
|
|
fill-array-data v2, :array_2c
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 49
|
|
fill-array-data v2, :array_2d
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 50
|
|
fill-array-data v2, :array_2e
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 51
|
|
fill-array-data v2, :array_2f
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 52
|
|
fill-array-data v2, :array_30
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 53
|
|
fill-array-data v2, :array_31
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
new-array v2, v6, [I
|
|
|
|
.line 54
|
|
fill-array-data v2, :array_32
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
new-array v0, v6, [I
|
|
|
|
.line 55
|
|
fill-array-data v0, :array_33
|
|
|
|
aput-object v0, v1, v10
|
|
|
|
new-array v0, v6, [I
|
|
|
|
.line 56
|
|
fill-array-data v0, :array_34
|
|
|
|
aput-object v0, v1, v11
|
|
|
|
new-array v0, v6, [I
|
|
|
|
.line 57
|
|
fill-array-data v0, :array_35
|
|
|
|
aput-object v0, v1, v12
|
|
|
|
new-array v0, v6, [I
|
|
|
|
.line 58
|
|
fill-array-data v0, :array_36
|
|
|
|
aput-object v0, v1, v13
|
|
|
|
new-array v0, v6, [I
|
|
|
|
.line 59
|
|
fill-array-data v0, :array_37
|
|
|
|
aput-object v0, v1, v14
|
|
|
|
new-array v0, v6, [I
|
|
|
|
.line 60
|
|
fill-array-data v0, :array_38
|
|
|
|
const/16 v2, 0xd
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
new-array v0, v6, [I
|
|
|
|
aput v10, v0, v4
|
|
|
|
aput-object v0, v1, v16
|
|
|
|
.line 61
|
|
sput-object v1, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->TYPE_INFO_COORDINATES:[[I
|
|
|
|
return-void
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_1
|
|
.array-data 4
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_2
|
|
.array-data 4
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_3
|
|
.array-data 4
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_4
|
|
.array-data 4
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_5
|
|
.array-data 4
|
|
0x6
|
|
0x12
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_6
|
|
.array-data 4
|
|
0x6
|
|
0x16
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_7
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_8
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_9
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_a
|
|
.array-data 4
|
|
0x6
|
|
0x16
|
|
0x26
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_b
|
|
.array-data 4
|
|
0x6
|
|
0x18
|
|
0x2a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_c
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x2e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_d
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x32
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_e
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_f
|
|
.array-data 4
|
|
0x6
|
|
0x20
|
|
0x3a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_10
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_11
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x2e
|
|
0x42
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_12
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x30
|
|
0x46
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_13
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x32
|
|
0x4a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_14
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_15
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x38
|
|
0x52
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_16
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_17
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
0x5a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_18
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x32
|
|
0x48
|
|
0x5e
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_19
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x32
|
|
0x4a
|
|
0x62
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1a
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
0x66
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1b
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x36
|
|
0x50
|
|
0x6a
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1c
|
|
.array-data 4
|
|
0x6
|
|
0x20
|
|
0x3a
|
|
0x54
|
|
0x6e
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1d
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
0x72
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1e
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
0x5a
|
|
0x76
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1f
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x32
|
|
0x4a
|
|
0x62
|
|
0x7a
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_20
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
0x66
|
|
0x7e
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_21
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x34
|
|
0x4e
|
|
0x68
|
|
0x82
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_22
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x38
|
|
0x52
|
|
0x6c
|
|
0x86
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_23
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3c
|
|
0x56
|
|
0x70
|
|
0x8a
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_24
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
0x72
|
|
0x8e
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_25
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
0x5a
|
|
0x76
|
|
0x92
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_26
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
0x66
|
|
0x7e
|
|
0x96
|
|
.end array-data
|
|
|
|
:array_27
|
|
.array-data 4
|
|
0x6
|
|
0x18
|
|
0x32
|
|
0x4c
|
|
0x66
|
|
0x80
|
|
0x9a
|
|
.end array-data
|
|
|
|
:array_28
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x36
|
|
0x50
|
|
0x6a
|
|
0x84
|
|
0x9e
|
|
.end array-data
|
|
|
|
:array_29
|
|
.array-data 4
|
|
0x6
|
|
0x20
|
|
0x3a
|
|
0x54
|
|
0x6e
|
|
0x88
|
|
0xa2
|
|
.end array-data
|
|
|
|
:array_2a
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x36
|
|
0x52
|
|
0x6e
|
|
0x8a
|
|
0xa6
|
|
.end array-data
|
|
|
|
:array_2b
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
0x72
|
|
0x8e
|
|
0xaa
|
|
.end array-data
|
|
|
|
:array_2c
|
|
.array-data 4
|
|
0x8
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_2d
|
|
.array-data 4
|
|
0x8
|
|
0x2
|
|
.end array-data
|
|
|
|
:array_2e
|
|
.array-data 4
|
|
0x8
|
|
0x3
|
|
.end array-data
|
|
|
|
:array_2f
|
|
.array-data 4
|
|
0x8
|
|
0x4
|
|
.end array-data
|
|
|
|
:array_30
|
|
.array-data 4
|
|
0x8
|
|
0x5
|
|
.end array-data
|
|
|
|
:array_31
|
|
.array-data 4
|
|
0x8
|
|
0x7
|
|
.end array-data
|
|
|
|
:array_32
|
|
.array-data 4
|
|
0x8
|
|
0x8
|
|
.end array-data
|
|
|
|
:array_33
|
|
.array-data 4
|
|
0x7
|
|
0x8
|
|
.end array-data
|
|
|
|
:array_34
|
|
.array-data 4
|
|
0x5
|
|
0x8
|
|
.end array-data
|
|
|
|
:array_35
|
|
.array-data 4
|
|
0x4
|
|
0x8
|
|
.end array-data
|
|
|
|
:array_36
|
|
.array-data 4
|
|
0x3
|
|
0x8
|
|
.end array-data
|
|
|
|
:array_37
|
|
.array-data 4
|
|
0x2
|
|
0x8
|
|
.end array-data
|
|
|
|
:array_38
|
|
.array-data 4
|
|
0x1
|
|
0x8
|
|
.end array-data
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static buildMatrix(Lcom/google/zxing/common/BitArray;Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;Lcom/google/zxing/qrcode/decoder/Version;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p4}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->clearMatrix(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 2
|
|
invoke-static {p2, p4}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedBasicPatterns(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 3
|
|
invoke-static {p1, p3, p4}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedTypeInfo(Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 4
|
|
invoke-static {p2, p4}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->maybeEmbedVersionInfo(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 5
|
|
invoke-static {p0, p3, p4}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedDataBits(Lcom/google/zxing/common/BitArray;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static calculateBCHCode(II)I
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->findMSBSet(I)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v1, v0, -0x1
|
|
|
|
shl-int/2addr p0, v1
|
|
|
|
.line 2
|
|
:goto_0
|
|
invoke-static {p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->findMSBSet(I)I
|
|
|
|
move-result v1
|
|
|
|
if-ge v1, v0, :cond_0
|
|
|
|
return p0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->findMSBSet(I)I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
shl-int v1, p1, v1
|
|
|
|
xor-int/2addr p0, v1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public static clearMatrix(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->clear(B)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedBasicPatterns(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionDetectionPatternsAndSeparators(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedDarkDotAtLeftBottomCorner(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 3
|
|
invoke-static {p0, p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->maybeEmbedPositionAdjustmentPatterns(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 4
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedTimingPatterns(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static embedDarkDotAtLeftBottomCorner(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p0, v1, v0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p0, v1, v0, v2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
invoke-direct {p0}, Lcom/google/zxing/WriterException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static embedDataBits(Lcom/google/zxing/common/BitArray;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
.line 2
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
const/4 v2, -0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v5, v2
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
if-gtz v0, :cond_1
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p1
|
|
|
|
if-ne v4, p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
new-instance p1, Lcom/google/zxing/WriterException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "Not all bits consumed: "
|
|
|
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v0, 0x2f
|
|
|
|
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p0
|
|
|
|
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}, Lcom/google/zxing/WriterException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
const/4 v6, 0x6
|
|
|
|
if-ne v0, v6, :cond_2
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:cond_2
|
|
:goto_1
|
|
if-ltz v1, :cond_8
|
|
|
|
.line 5
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v6
|
|
|
|
if-lt v1, v6, :cond_3
|
|
|
|
goto :goto_5
|
|
|
|
:cond_3
|
|
move v6, v3
|
|
|
|
:goto_2
|
|
const/4 v7, 0x2
|
|
|
|
if-lt v6, v7, :cond_4
|
|
|
|
add-int/2addr v1, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
sub-int v7, v0, v6
|
|
|
|
.line 6
|
|
invoke-virtual {p2, v7, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v8
|
|
|
|
invoke-static {v8}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_5
|
|
|
|
goto :goto_4
|
|
|
|
.line 7
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result v8
|
|
|
|
if-ge v4, v8, :cond_6
|
|
|
|
.line 8
|
|
invoke-virtual {p0, v4}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v8
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_6
|
|
move v8, v3
|
|
|
|
:goto_3
|
|
if-eq p1, v2, :cond_7
|
|
|
|
.line 9
|
|
invoke-static {p1, v7, v1}, Lcom/google/zxing/qrcode/encoder/MaskUtil;->getDataMaskBit(III)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_7
|
|
|
|
xor-int/lit8 v8, v8, 0x1
|
|
|
|
.line 10
|
|
:cond_7
|
|
invoke-virtual {p2, v7, v1, v8}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
:goto_4
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
:goto_5
|
|
neg-int v5, v5
|
|
|
|
add-int/2addr v1, v5
|
|
|
|
add-int/lit8 v0, v0, -0x2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private static embedHorizontalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/16 v2, 0x8
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
add-int v2, p0, v1
|
|
|
|
.line 1
|
|
invoke-virtual {p2, v2, p1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2, v2, p1, v0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_1
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
invoke-direct {p0}, Lcom/google/zxing/WriterException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private static embedPositionAdjustmentPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x5
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
move v3, v0
|
|
|
|
:goto_1
|
|
if-lt v3, v2, :cond_1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int v4, p0, v3
|
|
|
|
add-int v5, p1, v1
|
|
|
|
.line 1
|
|
sget-object v6, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN:[[I
|
|
|
|
aget-object v6, v6, v1
|
|
|
|
aget v6, v6, v3
|
|
|
|
invoke-virtual {p2, v4, v5, v6}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
.method private static embedPositionDetectionPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x7
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
move v3, v0
|
|
|
|
:goto_1
|
|
if-lt v3, v2, :cond_1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int v4, p0, v3
|
|
|
|
add-int v5, p1, v1
|
|
|
|
.line 1
|
|
sget-object v6, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_DETECTION_PATTERN:[[I
|
|
|
|
aget-object v6, v6, v1
|
|
|
|
aget v6, v6, v3
|
|
|
|
invoke-virtual {p2, v4, v5, v6}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
.method private static embedPositionDetectionPatternsAndSeparators(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_DETECTION_PATTERN:[[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
array-length v0, v0
|
|
|
|
.line 2
|
|
invoke-static {v1, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionDetectionPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
invoke-static {v2, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionDetectionPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
invoke-static {v1, v2, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionDetectionPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
const/4 v0, 0x7
|
|
|
|
.line 5
|
|
invoke-static {v1, v0, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedHorizontalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x8
|
|
|
|
invoke-static {v2, v0, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedHorizontalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x8
|
|
|
|
invoke-static {v1, v2, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedHorizontalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 8
|
|
invoke-static {v0, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
invoke-static {v2, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v1, v0
|
|
|
|
invoke-static {v0, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static embedTimingPatterns(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 6
|
|
|
|
const/16 v0, 0x8
|
|
|
|
move v1, v0
|
|
|
|
.line 1
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 2
|
|
rem-int/lit8 v3, v2, 0x2
|
|
|
|
const/4 v4, 0x6
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v1, v4}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v5}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v1, v4, v3}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {p0, v4, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v5}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 6
|
|
invoke-virtual {p0, v4, v1, v3}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
:cond_2
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public static embedTypeInfo(Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/zxing/common/BitArray;
|
|
|
|
invoke-direct {v0}, Lcom/google/zxing/common/BitArray;-><init>()V
|
|
|
|
.line 2
|
|
invoke-static {p0, p1, v0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->makeTypeInfoBits(Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;ILcom/google/zxing/common/BitArray;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
move p1, p0
|
|
|
|
.line 3
|
|
:goto_0
|
|
invoke-virtual {v0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result v1
|
|
|
|
if-lt p1, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {v0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
sub-int/2addr v1, p1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v1
|
|
|
|
.line 5
|
|
sget-object v3, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->TYPE_INFO_COORDINATES:[[I
|
|
|
|
aget-object v4, v3, p1
|
|
|
|
aget v4, v4, p0
|
|
|
|
.line 6
|
|
aget-object v3, v3, p1
|
|
|
|
aget v3, v3, v2
|
|
|
|
.line 7
|
|
invoke-virtual {p2, v4, v3, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-ge p1, v3, :cond_1
|
|
|
|
.line 8
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v4
|
|
|
|
sub-int/2addr v4, p1
|
|
|
|
sub-int/2addr v4, v2
|
|
|
|
.line 9
|
|
invoke-virtual {p2, v4, v3, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 10
|
|
:cond_1
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x7
|
|
|
|
add-int/lit8 v4, p1, -0x8
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
.line 11
|
|
invoke-virtual {p2, v3, v4, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
:goto_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private static embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x7
|
|
|
|
if-lt v1, v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
add-int v2, p1, v1
|
|
|
|
.line 1
|
|
invoke-virtual {p2, p0, v2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v3}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p2, p0, v2, v0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_1
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
invoke-direct {p0}, Lcom/google/zxing/WriterException;-><init>()V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static findMSBSet(I)I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez p0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
ushr-int/lit8 p0, p0, 0x1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method private static isEmpty(I)Z
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static makeTypeInfoBits(Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;ILcom/google/zxing/common/BitArray;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/QRCode;->isValidMaskPattern(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;->getBits()I
|
|
|
|
move-result p0
|
|
|
|
shl-int/lit8 p0, p0, 0x3
|
|
|
|
or-int/2addr p0, p1
|
|
|
|
const/4 p1, 0x5
|
|
|
|
.line 3
|
|
invoke-virtual {p2, p0, p1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
const/16 p1, 0x537
|
|
|
|
.line 4
|
|
invoke-static {p0, p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->calculateBCHCode(II)I
|
|
|
|
move-result p0
|
|
|
|
const/16 p1, 0xa
|
|
|
|
.line 5
|
|
invoke-virtual {p2, p0, p1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 6
|
|
new-instance p0, Lcom/google/zxing/common/BitArray;
|
|
|
|
invoke-direct {p0}, Lcom/google/zxing/common/BitArray;-><init>()V
|
|
|
|
const/16 p1, 0x5412
|
|
|
|
const/16 v0, 0xf
|
|
|
|
.line 7
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 8
|
|
invoke-virtual {p2, p0}, Lcom/google/zxing/common/BitArray;->xor(Lcom/google/zxing/common/BitArray;)V
|
|
|
|
.line 9
|
|
invoke-virtual {p2}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p0
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 10
|
|
:cond_0
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "should not happen but we got: "
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/zxing/WriterException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
.line 11
|
|
:cond_1
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
const-string p1, "Invalid mask pattern"
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/zxing/WriterException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static makeVersionInfoBits(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/common/BitArray;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x6
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, 0x1f25
|
|
|
|
invoke-static {p0, v0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->calculateBCHCode(II)I
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, 0xc
|
|
|
|
.line 3
|
|
invoke-virtual {p1, p0, v0}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, 0x12
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "should not happen but we got: "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/zxing/WriterException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private static maybeEmbedPositionAdjustmentPatterns(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
|
|
|
|
move-result p0
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
.line 3
|
|
sget-object v0, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE:[[I
|
|
|
|
aget-object v1, v0, p0
|
|
|
|
.line 4
|
|
aget-object p0, v0, p0
|
|
|
|
array-length p0, p0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v2, v0
|
|
|
|
:goto_0
|
|
if-lt v2, p0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
move v3, v0
|
|
|
|
:goto_1
|
|
if-lt v3, p0, :cond_2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_2
|
|
aget v4, v1, v2
|
|
|
|
.line 6
|
|
aget v5, v1, v3
|
|
|
|
const/4 v6, -0x1
|
|
|
|
if-eq v5, v6, :cond_4
|
|
|
|
if-ne v4, v6, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
.line 7
|
|
:cond_3
|
|
invoke-virtual {p1, v5, v4}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v6
|
|
|
|
invoke-static {v6}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
add-int/lit8 v5, v5, -0x2
|
|
|
|
add-int/lit8 v4, v4, -0x2
|
|
|
|
.line 8
|
|
invoke-static {v5, v4, p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionAdjustmentPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
.method public static maybeEmbedVersionInfo(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Lcom/google/zxing/WriterException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x7
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Lcom/google/zxing/common/BitArray;
|
|
|
|
invoke-direct {v0}, Lcom/google/zxing/common/BitArray;-><init>()V
|
|
|
|
.line 3
|
|
invoke-static {p0, v0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->makeVersionInfoBits(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/common/BitArray;)V
|
|
|
|
const/16 p0, 0x11
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
const/4 v3, 0x6
|
|
|
|
if-lt v2, v3, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
move v3, v1
|
|
|
|
:goto_1
|
|
const/4 v4, 0x3
|
|
|
|
if-lt v3, v4, :cond_2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_2
|
|
invoke-virtual {v0, p0}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v4
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v5
|
|
|
|
add-int/lit8 v5, v5, -0xb
|
|
|
|
add-int/2addr v5, v3
|
|
|
|
invoke-virtual {p1, v2, v5, v4}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v5
|
|
|
|
add-int/lit8 v5, v5, -0xb
|
|
|
|
add-int/2addr v5, v3
|
|
|
|
invoke-virtual {p1, v5, v2, v4}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
.end method
|