- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
2109 lines
38 KiB
Smali
2109 lines
38 KiB
Smali
.class public abstract Lcom/google/zxing/qrcode/encoder/MatrixUtil;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final POSITION_ADJUSTMENT_PATTERN:[[I
|
|
|
|
.field public static final POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE:[[I
|
|
|
|
.field public static final POSITION_DETECTION_PATTERN:[[I
|
|
|
|
.field public static final TYPE_INFO_COORDINATES:[[I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 18
|
|
|
|
const/4 v0, 0x7
|
|
|
|
new-array v1, v0, [[I
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_2
|
|
|
|
const/4 v5, 0x2
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_3
|
|
|
|
const/4 v6, 0x3
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_4
|
|
|
|
const/4 v7, 0x4
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_5
|
|
|
|
const/4 v8, 0x5
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_6
|
|
|
|
const/4 v9, 0x6
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
sput-object v1, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_DETECTION_PATTERN:[[I
|
|
|
|
new-array v1, v8, [[I
|
|
|
|
filled-new-array {v4, v4, v4, v4, v4}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
filled-new-array {v4, v3, v3, v3, v4}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
filled-new-array {v4, v3, v4, v3, v4}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
filled-new-array {v4, v3, v3, v3, v4}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
filled-new-array {v4, v4, v4, v4, v4}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
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
|
|
|
|
fill-array-data v2, :array_7
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_8
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_9
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_a
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_b
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_c
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_d
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_e
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_f
|
|
|
|
const/16 v10, 0x8
|
|
|
|
aput-object v2, v1, v10
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_10
|
|
|
|
const/16 v11, 0x9
|
|
|
|
aput-object v2, v1, v11
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_11
|
|
|
|
const/16 v12, 0xa
|
|
|
|
aput-object v2, v1, v12
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_12
|
|
|
|
const/16 v13, 0xb
|
|
|
|
aput-object v2, v1, v13
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_13
|
|
|
|
const/16 v14, 0xc
|
|
|
|
aput-object v2, v1, v14
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_14
|
|
|
|
const/16 v15, 0xd
|
|
|
|
aput-object v2, v1, v15
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_15
|
|
|
|
const/16 v16, 0xe
|
|
|
|
aput-object v2, v1, v16
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_16
|
|
|
|
const/16 v15, 0xf
|
|
|
|
aput-object v2, v1, v15
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_17
|
|
|
|
const/16 v17, 0x10
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_18
|
|
|
|
const/16 v17, 0x11
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_19
|
|
|
|
const/16 v17, 0x12
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1a
|
|
|
|
const/16 v17, 0x13
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1b
|
|
|
|
const/16 v17, 0x14
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1c
|
|
|
|
const/16 v17, 0x15
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1d
|
|
|
|
const/16 v17, 0x16
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1e
|
|
|
|
const/16 v17, 0x17
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_1f
|
|
|
|
const/16 v17, 0x18
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_20
|
|
|
|
const/16 v17, 0x19
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_21
|
|
|
|
const/16 v17, 0x1a
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_22
|
|
|
|
const/16 v17, 0x1b
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_23
|
|
|
|
const/16 v17, 0x1c
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_24
|
|
|
|
const/16 v17, 0x1d
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_25
|
|
|
|
const/16 v17, 0x1e
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_26
|
|
|
|
const/16 v17, 0x1f
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_27
|
|
|
|
const/16 v17, 0x20
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_28
|
|
|
|
const/16 v17, 0x21
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_29
|
|
|
|
const/16 v17, 0x22
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_2a
|
|
|
|
const/16 v17, 0x23
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_2b
|
|
|
|
const/16 v17, 0x24
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_2c
|
|
|
|
const/16 v17, 0x25
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_2d
|
|
|
|
const/16 v17, 0x26
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
new-array v2, v0, [I
|
|
|
|
fill-array-data v2, :array_2e
|
|
|
|
const/16 v17, 0x27
|
|
|
|
aput-object v2, v1, v17
|
|
|
|
sput-object v1, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE:[[I
|
|
|
|
new-array v1, v15, [[I
|
|
|
|
filled-new-array {v10, v3}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
filled-new-array {v10, v4}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
filled-new-array {v10, v5}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
filled-new-array {v10, v6}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
filled-new-array {v10, v7}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
filled-new-array {v10, v8}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
filled-new-array {v10, v0}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
filled-new-array {v10, v10}, [I
|
|
|
|
move-result-object v2
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
filled-new-array {v0, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v10
|
|
|
|
filled-new-array {v8, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v11
|
|
|
|
filled-new-array {v7, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v12
|
|
|
|
filled-new-array {v6, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v13
|
|
|
|
filled-new-array {v5, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v14
|
|
|
|
filled-new-array {v4, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v2, 0xd
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
filled-new-array {v3, v10}, [I
|
|
|
|
move-result-object v0
|
|
|
|
aput-object v0, v1, v16
|
|
|
|
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
|
|
0x0
|
|
0x0
|
|
0x0
|
|
0x0
|
|
0x0
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_2
|
|
.array-data 4
|
|
0x1
|
|
0x0
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x0
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_3
|
|
.array-data 4
|
|
0x1
|
|
0x0
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x0
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_4
|
|
.array-data 4
|
|
0x1
|
|
0x0
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x0
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_5
|
|
.array-data 4
|
|
0x1
|
|
0x0
|
|
0x0
|
|
0x0
|
|
0x0
|
|
0x0
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_6
|
|
.array-data 4
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
0x1
|
|
.end array-data
|
|
|
|
:array_7
|
|
.array-data 4
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_8
|
|
.array-data 4
|
|
0x6
|
|
0x12
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_9
|
|
.array-data 4
|
|
0x6
|
|
0x16
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_a
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_b
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_c
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_d
|
|
.array-data 4
|
|
0x6
|
|
0x16
|
|
0x26
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_e
|
|
.array-data 4
|
|
0x6
|
|
0x18
|
|
0x2a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_f
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x2e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_10
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x32
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_11
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_12
|
|
.array-data 4
|
|
0x6
|
|
0x20
|
|
0x3a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_13
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_14
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x2e
|
|
0x42
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_15
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x30
|
|
0x46
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_16
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x32
|
|
0x4a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_17
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_18
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x38
|
|
0x52
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_19
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1a
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
0x5a
|
|
-0x1
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1b
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x32
|
|
0x48
|
|
0x5e
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1c
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x32
|
|
0x4a
|
|
0x62
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1d
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
0x66
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1e
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x36
|
|
0x50
|
|
0x6a
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_1f
|
|
.array-data 4
|
|
0x6
|
|
0x20
|
|
0x3a
|
|
0x54
|
|
0x6e
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_20
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
0x72
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_21
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
0x5a
|
|
0x76
|
|
-0x1
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_22
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x32
|
|
0x4a
|
|
0x62
|
|
0x7a
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_23
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
0x66
|
|
0x7e
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_24
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x34
|
|
0x4e
|
|
0x68
|
|
0x82
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_25
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x38
|
|
0x52
|
|
0x6c
|
|
0x86
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_26
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3c
|
|
0x56
|
|
0x70
|
|
0x8a
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_27
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
0x72
|
|
0x8e
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_28
|
|
.array-data 4
|
|
0x6
|
|
0x22
|
|
0x3e
|
|
0x5a
|
|
0x76
|
|
0x92
|
|
-0x1
|
|
.end array-data
|
|
|
|
:array_29
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x36
|
|
0x4e
|
|
0x66
|
|
0x7e
|
|
0x96
|
|
.end array-data
|
|
|
|
:array_2a
|
|
.array-data 4
|
|
0x6
|
|
0x18
|
|
0x32
|
|
0x4c
|
|
0x66
|
|
0x80
|
|
0x9a
|
|
.end array-data
|
|
|
|
:array_2b
|
|
.array-data 4
|
|
0x6
|
|
0x1c
|
|
0x36
|
|
0x50
|
|
0x6a
|
|
0x84
|
|
0x9e
|
|
.end array-data
|
|
|
|
:array_2c
|
|
.array-data 4
|
|
0x6
|
|
0x20
|
|
0x3a
|
|
0x54
|
|
0x6e
|
|
0x88
|
|
0xa2
|
|
.end array-data
|
|
|
|
:array_2d
|
|
.array-data 4
|
|
0x6
|
|
0x1a
|
|
0x36
|
|
0x52
|
|
0x6e
|
|
0x8a
|
|
0xa6
|
|
.end array-data
|
|
|
|
:array_2e
|
|
.array-data 4
|
|
0x6
|
|
0x1e
|
|
0x3a
|
|
0x56
|
|
0x72
|
|
0x8e
|
|
0xaa
|
|
.end array-data
|
|
.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
|
|
|
|
.line 137
|
|
invoke-static {p4}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->clearMatrix(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 138
|
|
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 140
|
|
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 142
|
|
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 144
|
|
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
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 309
|
|
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 312
|
|
:goto_0
|
|
invoke-static {p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->findMSBSet(I)I
|
|
|
|
move-result v1
|
|
|
|
if-lt v1, v0, :cond_0
|
|
|
|
.line 313
|
|
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
|
|
|
|
:cond_0
|
|
return p0
|
|
|
|
.line 305
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "0 polynomial"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static clearMatrix(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 127
|
|
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
|
|
|
|
.line 155
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionDetectionPatternsAndSeparators(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 157
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedDarkDotAtLeftBottomCorner(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 160
|
|
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 162
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedTimingPatterns(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedDarkDotAtLeftBottomCorner(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 3
|
|
|
|
.line 377
|
|
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 380
|
|
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 378
|
|
: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
|
|
|
|
.line 227
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
.line 228
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, -0x1
|
|
|
|
move v4, v2
|
|
|
|
move v5, v3
|
|
|
|
:goto_0
|
|
if-lez v0, :cond_6
|
|
|
|
const/4 v6, 0x6
|
|
|
|
if-ne v0, v6, :cond_0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:cond_0
|
|
:goto_1
|
|
if-ltz v1, :cond_5
|
|
|
|
.line 234
|
|
invoke-virtual {p2}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v6
|
|
|
|
if-ge v1, v6, :cond_5
|
|
|
|
move v6, v2
|
|
|
|
:goto_2
|
|
const/4 v7, 0x2
|
|
|
|
if-ge v6, v7, :cond_4
|
|
|
|
sub-int v7, v0, v6
|
|
|
|
.line 238
|
|
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-eqz v8, :cond_3
|
|
|
|
.line 242
|
|
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result v8
|
|
|
|
if-ge v4, v8, :cond_1
|
|
|
|
.line 243
|
|
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_1
|
|
move v8, v2
|
|
|
|
:goto_3
|
|
if-eq p1, v3, :cond_2
|
|
|
|
.line 252
|
|
invoke-static {p1, v7, v1}, Lcom/google/zxing/qrcode/encoder/MaskUtil;->getDataMaskBit(III)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
xor-int/lit8 v8, v8, 0x1
|
|
|
|
.line 255
|
|
:cond_2
|
|
invoke-virtual {p2, v7, v1, v8}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
:cond_3
|
|
add-int/lit8 v6, v6, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
add-int/2addr v1, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
neg-int v5, v5
|
|
|
|
add-int/2addr v1, v5
|
|
|
|
add-int/lit8 v0, v0, -0x2
|
|
|
|
goto :goto_0
|
|
|
|
.line 264
|
|
:cond_6
|
|
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p1
|
|
|
|
if-ne v4, p1, :cond_7
|
|
|
|
return-void
|
|
|
|
.line 265
|
|
:cond_7
|
|
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
|
|
.end method
|
|
|
|
.method public static embedHorizontalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/16 v2, 0x8
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
add-int v2, p0, v1
|
|
|
|
.line 387
|
|
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_0
|
|
|
|
.line 390
|
|
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 388
|
|
:cond_0
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
invoke-direct {p0}, Lcom/google/zxing/WriterException;-><init>()V
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedPositionAdjustmentPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x5
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
sget-object v3, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN:[[I
|
|
|
|
.line 407
|
|
aget-object v3, v3, v1
|
|
|
|
move v4, v0
|
|
|
|
:goto_1
|
|
if-ge v4, v2, :cond_0
|
|
|
|
add-int v5, p0, v4
|
|
|
|
add-int v6, p1, v1
|
|
|
|
.line 409
|
|
aget v7, v3, v4
|
|
|
|
invoke-virtual {p2, v5, v6, v7}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedPositionDetectionPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 8
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x7
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
sget-object v3, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_DETECTION_PATTERN:[[I
|
|
|
|
.line 416
|
|
aget-object v3, v3, v1
|
|
|
|
move v4, v0
|
|
|
|
:goto_1
|
|
if-ge v4, v2, :cond_0
|
|
|
|
add-int v5, p0, v4
|
|
|
|
add-int v6, p1, v1
|
|
|
|
.line 418
|
|
aget v7, v3, v4
|
|
|
|
invoke-virtual {p2, v5, v6, v7}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedPositionDetectionPatternsAndSeparators(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_DETECTION_PATTERN:[[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 426
|
|
aget-object v0, v0, v1
|
|
|
|
array-length v0, v0
|
|
|
|
.line 428
|
|
invoke-static {v1, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionDetectionPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 430
|
|
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 432
|
|
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 437
|
|
invoke-static {v1, v0, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedHorizontalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 439
|
|
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 442
|
|
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 447
|
|
invoke-static {v0, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 449
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/lit8 v2, v2, -0x8
|
|
|
|
invoke-static {v2, v1, p0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
.line 451
|
|
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 public static embedTimingPatterns(Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 6
|
|
|
|
const/16 v0, 0x8
|
|
|
|
move v1, v0
|
|
|
|
.line 362
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
if-ge v1, v2, :cond_2
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
.line 363
|
|
rem-int/lit8 v3, v2, 0x2
|
|
|
|
const/4 v4, 0x6
|
|
|
|
.line 365
|
|
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_0
|
|
|
|
.line 366
|
|
invoke-virtual {p0, v1, v4, v3}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
.line 369
|
|
:cond_0
|
|
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_1
|
|
|
|
.line 370
|
|
invoke-virtual {p0, v4, v1, v3}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(III)V
|
|
|
|
:cond_1
|
|
move v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedTypeInfo(Lcom/google/zxing/qrcode/decoder/ErrorCorrectionLevel;ILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 5
|
|
|
|
.line 168
|
|
new-instance v0, Lcom/google/zxing/common/BitArray;
|
|
|
|
invoke-direct {v0}, Lcom/google/zxing/common/BitArray;-><init>()V
|
|
|
|
.line 169
|
|
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 171
|
|
:goto_0
|
|
invoke-virtual {v0}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result v1
|
|
|
|
if-ge p1, v1, :cond_1
|
|
|
|
.line 174
|
|
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
|
|
|
|
sget-object v3, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->TYPE_INFO_COORDINATES:[[I
|
|
|
|
.line 177
|
|
aget-object v3, v3, p1
|
|
|
|
.line 178
|
|
aget v4, v3, p0
|
|
|
|
.line 179
|
|
aget v3, v3, v2
|
|
|
|
.line 180
|
|
invoke-virtual {p2, v4, v3, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-ge p1, v3, :cond_0
|
|
|
|
.line 184
|
|
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 186
|
|
invoke-virtual {p2, v4, v3, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 190
|
|
:cond_0
|
|
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 v2, v4
|
|
|
|
.line 191
|
|
invoke-virtual {p2, v3, v2, v1}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->set(IIZ)V
|
|
|
|
:goto_1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static embedVerticalSeparationPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
const/4 v2, 0x7
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
add-int v2, p1, v1
|
|
|
|
.line 398
|
|
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_0
|
|
|
|
.line 401
|
|
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 399
|
|
:cond_0
|
|
new-instance p0, Lcom/google/zxing/WriterException;
|
|
|
|
invoke-direct {p0}, Lcom/google/zxing/WriterException;-><init>()V
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static findMSBSet(I)I
|
|
.locals 0
|
|
|
|
.line 275
|
|
invoke-static {p0}, Ljava/lang/Integer;->numberOfLeadingZeros(I)I
|
|
|
|
move-result p0
|
|
|
|
rsub-int/lit8 p0, p0, 0x20
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public 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
|
|
|
|
.line 324
|
|
invoke-static {p1}, Lcom/google/zxing/qrcode/encoder/QRCode;->isValidMaskPattern(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 327
|
|
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 328
|
|
invoke-virtual {p2, p0, p1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
const/16 p1, 0x537
|
|
|
|
.line 330
|
|
invoke-static {p0, p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->calculateBCHCode(II)I
|
|
|
|
move-result p0
|
|
|
|
const/16 p1, 0xa
|
|
|
|
.line 331
|
|
invoke-virtual {p2, p0, p1}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 333
|
|
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 334
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 335
|
|
invoke-virtual {p2, p0}, Lcom/google/zxing/common/BitArray;->xor(Lcom/google/zxing/common/BitArray;)V
|
|
|
|
.line 337
|
|
invoke-virtual {p2}, Lcom/google/zxing/common/BitArray;->getSize()I
|
|
|
|
move-result p0
|
|
|
|
if-ne p0, v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 338
|
|
: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 325
|
|
: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
|
|
|
|
.line 345
|
|
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 346
|
|
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 347
|
|
invoke-virtual {p1, p0, v0}, Lcom/google/zxing/common/BitArray;->appendBits(II)V
|
|
|
|
.line 349
|
|
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 350
|
|
: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 public static maybeEmbedPositionAdjustmentPatterns(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 8
|
|
|
|
.line 457
|
|
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 460
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/google/zxing/qrcode/decoder/Version;->getVersionNumber()I
|
|
|
|
move-result p0
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
sget-object v0, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE:[[I
|
|
|
|
.line 461
|
|
aget-object p0, v0, p0
|
|
|
|
.line 462
|
|
array-length v0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
aget v3, p0, v2
|
|
|
|
if-ltz v3, :cond_2
|
|
|
|
.line 464
|
|
array-length v4, p0
|
|
|
|
move v5, v1
|
|
|
|
:goto_1
|
|
if-ge v5, v4, :cond_2
|
|
|
|
aget v6, p0, v5
|
|
|
|
if-ltz v6, :cond_1
|
|
|
|
.line 465
|
|
invoke-virtual {p1, v6, v3}, Lcom/google/zxing/qrcode/encoder/ByteMatrix;->get(II)B
|
|
|
|
move-result v7
|
|
|
|
invoke-static {v7}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->isEmpty(I)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_1
|
|
|
|
add-int/lit8 v6, v6, -0x2
|
|
|
|
add-int/lit8 v7, v3, -0x2
|
|
|
|
.line 469
|
|
invoke-static {v6, v7, p1}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->embedPositionAdjustmentPattern(IILcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
|
|
:cond_1
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public static maybeEmbedVersionInfo(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/qrcode/encoder/ByteMatrix;)V
|
|
.locals 6
|
|
|
|
.line 199
|
|
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 202
|
|
:cond_0
|
|
new-instance v0, Lcom/google/zxing/common/BitArray;
|
|
|
|
invoke-direct {v0}, Lcom/google/zxing/common/BitArray;-><init>()V
|
|
|
|
.line 203
|
|
invoke-static {p0, v0}, Lcom/google/zxing/qrcode/encoder/MatrixUtil;->makeVersionInfoBits(Lcom/google/zxing/qrcode/decoder/Version;Lcom/google/zxing/common/BitArray;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
const/16 v1, 0x11
|
|
|
|
move v2, p0
|
|
|
|
:goto_0
|
|
const/4 v3, 0x6
|
|
|
|
if-ge v2, v3, :cond_2
|
|
|
|
move v3, p0
|
|
|
|
:goto_1
|
|
const/4 v4, 0x3
|
|
|
|
if-ge v3, v4, :cond_1
|
|
|
|
.line 209
|
|
invoke-virtual {v0, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
|
|
|
move-result v4
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
.line 212
|
|
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 214
|
|
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
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|