/external/zxing/core/src/main/java/com/google/zxing/pdf417/ |
D | PDF417Writer.java | 20 import com.google.zxing.EncodeHintType; 52 Map<EncodeHintType,?> hints) throws WriterException { in encode() argument 63 if (hints.containsKey(EncodeHintType.PDF417_COMPACT)) { in encode() 64 … encoder.setCompact(Boolean.parseBoolean(hints.get(EncodeHintType.PDF417_COMPACT).toString())); in encode() 66 if (hints.containsKey(EncodeHintType.PDF417_COMPACTION)) { in encode() 67 … encoder.setCompaction(Compaction.valueOf(hints.get(EncodeHintType.PDF417_COMPACTION).toString())); in encode() 69 if (hints.containsKey(EncodeHintType.PDF417_DIMENSIONS)) { in encode() 70 Dimensions dimensions = (Dimensions) hints.get(EncodeHintType.PDF417_DIMENSIONS); in encode() 76 if (hints.containsKey(EncodeHintType.MARGIN)) { in encode() 77 margin = Integer.parseInt(hints.get(EncodeHintType.MARGIN).toString()); in encode() [all …]
|
/external/zxing/core/src/test/java/com/google/zxing/oned/ |
D | Code128WriterTestCase.java | 25 import com.google.zxing.EncodeHintType; 258 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithForcedCodeSetFailureCodeSetABadCharacter() 259 hints.put(EncodeHintType.FORCE_CODE_SET, "A"); in testEncodeWithForcedCodeSetFailureCodeSetABadCharacter() 268 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithForcedCodeSetFailureCodeSetBBadCharacter() 269 hints.put(EncodeHintType.FORCE_CODE_SET, "B"); in testEncodeWithForcedCodeSetFailureCodeSetBBadCharacter() 278 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithForcedCodeSetFailureCodeSetCBadCharactersNonNum() 279 hints.put(EncodeHintType.FORCE_CODE_SET, "C"); in testEncodeWithForcedCodeSetFailureCodeSetCBadCharactersNonNum() 288 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithForcedCodeSetFailureCodeSetCBadCharactersFncCode() 289 hints.put(EncodeHintType.FORCE_CODE_SET, "C"); in testEncodeWithForcedCodeSetFailureCodeSetCBadCharactersFncCode() 298 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithForcedCodeSetFailureCodeSetCWrongAmountOfDigits() [all …]
|
/external/zxing/core/src/test/java/com/google/zxing/qrcode/encoder/ |
D | EncoderTestCase.java | 19 import com.google.zxing.EncodeHintType; 133 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithVersion() 134 hints.put(EncodeHintType.QR_VERSION, 7); in testEncodeWithVersion() 141 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeWithVersionTooSmall() 142 hints.put(EncodeHintType.QR_VERSION, 3); in testEncodeWithVersionTooSmall() 148 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testSimpleUTF8ECI() 149 hints.put(EncodeHintType.CHARACTER_SET, "UTF8"); in testSimpleUTF8ECI() 184 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeKanjiMode() 185 hints.put(EncodeHintType.CHARACTER_SET, "Shift_JIS"); in testEncodeKanjiMode() 221 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testEncodeShiftjisNumeric() [all …]
|
/external/zxing/core/src/main/java/com/google/zxing/datamatrix/ |
D | DataMatrixWriter.java | 20 import com.google.zxing.EncodeHintType; 49 …encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType,?> hints) { in encode() argument 68 … SymbolShapeHint requestedShape = (SymbolShapeHint) hints.get(EncodeHintType.DATA_MATRIX_SHAPE); in encode() 73 Dimension requestedMinSize = (Dimension) hints.get(EncodeHintType.MIN_SIZE); in encode() 78 Dimension requestedMaxSize = (Dimension) hints.get(EncodeHintType.MAX_SIZE); in encode() 88 …boolean hasCompactionHint = hints != null && hints.containsKey(EncodeHintType.DATA_MATRIX_COMPACT)… in encode() 89 Boolean.parseBoolean(hints.get(EncodeHintType.DATA_MATRIX_COMPACT).toString()); in encode() 92 boolean hasGS1FormatHint = hints.containsKey(EncodeHintType.GS1_FORMAT) && in encode() 93 Boolean.parseBoolean(hints.get(EncodeHintType.GS1_FORMAT).toString()); in encode() 96 boolean hasEncodingHint = hints.containsKey(EncodeHintType.CHARACTER_SET); in encode() [all …]
|
/external/zxing/core/src/test/java/com/google/zxing/datamatrix/ |
D | DataMatrixWriterTestCase.java | 20 import com.google.zxing.EncodeHintType; 38 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testDataMatrixImageWriter() 39 hints.put(EncodeHintType.DATA_MATRIX_SHAPE, SymbolShapeHint.FORCE_SQUARE); in testDataMatrixImageWriter() 52 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testDataMatrixWriter() 53 hints.put(EncodeHintType.DATA_MATRIX_SHAPE, SymbolShapeHint.FORCE_SQUARE); in testDataMatrixWriter()
|
/external/zxing/core/src/main/java/com/google/zxing/aztec/ |
D | AztecWriter.java | 20 import com.google.zxing.EncodeHintType; 40 …encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType,?> hints) { in encode() argument 45 if (hints.containsKey(EncodeHintType.CHARACTER_SET)) { in encode() 46 charset = Charset.forName(hints.get(EncodeHintType.CHARACTER_SET).toString()); in encode() 48 if (hints.containsKey(EncodeHintType.ERROR_CORRECTION)) { in encode() 49 eccPercent = Integer.parseInt(hints.get(EncodeHintType.ERROR_CORRECTION).toString()); in encode() 51 if (hints.containsKey(EncodeHintType.AZTEC_LAYERS)) { in encode() 52 layers = Integer.parseInt(hints.get(EncodeHintType.AZTEC_LAYERS).toString()); in encode()
|
/external/zxing/core/src/test/java/com/google/zxing/pdf417/ |
D | PDF417WriterTestCase.java | 23 import com.google.zxing.EncodeHintType; 37 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testDataMatrixImageWriter() 38 hints.put(EncodeHintType.MARGIN, 0); in testDataMatrixImageWriter()
|
/external/zxing/core/src/main/java/com/google/zxing/qrcode/ |
D | QRCodeWriter.java | 20 import com.google.zxing.EncodeHintType; 52 Map<EncodeHintType,?> hints) throws WriterException { in encode() argument 70 if (hints.containsKey(EncodeHintType.ERROR_CORRECTION)) { in encode() 71 …errorCorrectionLevel = ErrorCorrectionLevel.valueOf(hints.get(EncodeHintType.ERROR_CORRECTION).toS… in encode() 73 if (hints.containsKey(EncodeHintType.MARGIN)) { in encode() 74 quietZone = Integer.parseInt(hints.get(EncodeHintType.MARGIN).toString()); in encode()
|
/external/zxing/javase/src/main/java/com/google/zxing/client/j2se/ |
D | CommandLineEncoder.java | 19 import com.google.zxing.EncodeHintType; 54 Map<EncodeHintType, Object> hints = new EnumMap<>(EncodeHintType.class); in main() 56 hints.put(EncodeHintType.ERROR_CORRECTION, config.errorCorrectionLevel); in main()
|
/external/zxing/core/src/main/java/com/google/zxing/oned/ |
D | OneDimensionalCodeWriter.java | 20 import com.google.zxing.EncodeHintType; 51 public boolean[] encode(String contents, Map<EncodeHintType,?> hints) { in encode() argument 72 Map<EncodeHintType,?> hints) { in encode() argument 88 if (hints != null && hints.containsKey(EncodeHintType.MARGIN)) { in encode() 89 sidesMargin = Integer.parseInt(hints.get(EncodeHintType.MARGIN).toString()); in encode()
|
D | Code128Writer.java | 20 import com.google.zxing.EncodeHintType; 74 public boolean[] encode(String contents, Map<EncodeHintType,?> hints) { in encode() argument 78 … boolean hasCompactionHint = hints != null && hints.containsKey(EncodeHintType.CODE128_COMPACT) && in encode() 79 Boolean.parseBoolean(hints.get(EncodeHintType.CODE128_COMPACT).toString()); in encode() 84 private static int check(String contents, Map<EncodeHintType,?> hints) { in check() argument 94 if (hints != null && hints.containsKey(EncodeHintType.FORCE_CODE_SET)) { in check() 95 String codeSetHint = hints.get(EncodeHintType.FORCE_CODE_SET).toString(); in check()
|
D | UPCAWriter.java | 20 import com.google.zxing.EncodeHintType; 45 Map<EncodeHintType,?> hints) { in encode() argument
|
/external/zxing/zxingorg/src/main/java/com/google/zxing/web/ |
D | ChartServlet.java | 23 import com.google.zxing.EncodeHintType; 81 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in doEncode() 82 hints.put(EncodeHintType.MARGIN, parameters.getMargin()); in doEncode() 85 hints.put(EncodeHintType.CHARACTER_SET, parameters.getOutputEncoding().name()); in doEncode() 87 hints.put(EncodeHintType.ERROR_CORRECTION, parameters.getEcLevel()); in doEncode()
|
/external/zxing/core/src/main/java/com/google/zxing/qrcode/encoder/ |
D | Encoder.java | 19 import com.google.zxing.EncodeHintType; 79 Map<EncodeHintType,?> hints) throws WriterException { in encode() argument 85 boolean hasGS1FormatHint = hints != null && hints.containsKey(EncodeHintType.GS1_FORMAT) && in encode() 86 Boolean.parseBoolean(hints.get(EncodeHintType.GS1_FORMAT).toString()); in encode() 87 boolean hasCompactionHint = hints != null && hints.containsKey(EncodeHintType.QR_COMPACT) && in encode() 88 Boolean.parseBoolean(hints.get(EncodeHintType.QR_COMPACT).toString()); in encode() 92 boolean hasEncodingHint = hints != null && hints.containsKey(EncodeHintType.CHARACTER_SET); in encode() 94 encoding = Charset.forName(hints.get(EncodeHintType.CHARACTER_SET).toString()); in encode() 139 if (hints != null && hints.containsKey(EncodeHintType.QR_VERSION)) { in encode() 140 int versionNumber = Integer.parseInt(hints.get(EncodeHintType.QR_VERSION).toString()); in encode() [all …]
|
/external/zxing/core/src/test/java/com/google/zxing/qrcode/ |
D | QRCodeWriterTestCase.java | 20 import com.google.zxing.EncodeHintType; 116 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); 117 hints.put(EncodeHintType.ERROR_CORRECTION, ecLevel);
|
/external/zxing/core/src/test/java/com/google/zxing/aztec/encoder/ |
D | EncoderTest.java | 20 import com.google.zxing.EncodeHintType; 516 Map<EncodeHintType,Object> hints = new EnumMap<>(EncodeHintType.class); in testWriter() 518 hints.put(EncodeHintType.CHARACTER_SET, charset.name()); in testWriter() 520 hints.put(EncodeHintType.ERROR_CORRECTION, eccPercent); in testWriter()
|
/external/zxing/core/src/main/java/com/google/zxing/ |
D | EncodeHintType.java | 24 public enum EncodeHintType { enum
|
D | Writer.java | 56 Map<EncodeHintType,?> hints) in encode() argument
|
D | MultiFormatWriter.java | 56 Map<EncodeHintType,?> hints) throws WriterException { in encode() argument
|
/external/zxing/android/src/com/google/zxing/client/android/encode/ |
D | QRCodeEncoder.java | 20 import com.google.zxing.EncodeHintType; 334 Map<EncodeHintType,Object> hints = null; in encodeAsBitmap() 337 hints = new EnumMap<>(EncodeHintType.class); in encodeAsBitmap() 338 hints.put(EncodeHintType.CHARACTER_SET, encoding); in encodeAsBitmap()
|