/external/pdfium/fxbarcode/oned/ |
D | BC_OnedEAN8Writer_unittest.cpp | 14 uint8_t* encoded; in TEST() local 19 encoded = writer.Encode("", BCFORMAT_EAN_8, width, height); in TEST() 20 EXPECT_EQ(nullptr, encoded); in TEST() 21 FX_Free(encoded); in TEST() 23 encoded = writer.Encode("123", BCFORMAT_EAN_8, width, height); in TEST() 24 EXPECT_EQ(nullptr, encoded); in TEST() 25 FX_Free(encoded); in TEST() 27 encoded = writer.Encode("1234567", BCFORMAT_EAN_8, width, height); in TEST() 28 EXPECT_EQ(nullptr, encoded); in TEST() 29 FX_Free(encoded); in TEST() [all …]
|
D | BC_OnedEAN13Writer_unittest.cpp | 14 uint8_t* encoded; in TEST() local 19 encoded = writer.Encode("", BCFORMAT_EAN_13, width, height); in TEST() 20 EXPECT_EQ(nullptr, encoded); in TEST() 21 FX_Free(encoded); in TEST() 23 encoded = writer.Encode("123", BCFORMAT_EAN_13, width, height); in TEST() 24 EXPECT_EQ(nullptr, encoded); in TEST() 25 FX_Free(encoded); in TEST() 27 encoded = writer.Encode("123456789012", BCFORMAT_EAN_13, width, height); in TEST() 28 EXPECT_EQ(nullptr, encoded); in TEST() 29 FX_Free(encoded); in TEST() [all …]
|
D | BC_OnedUPCAWriter_unittest.cpp | 21 uint8_t* encoded = writer.Encode("", BCFORMAT_UPC_A, width, height); in TEST() local 22 EXPECT_EQ(nullptr, encoded); in TEST() 23 FX_Free(encoded); in TEST() 25 encoded = writer.Encode("123", BCFORMAT_UPC_A, width, height); in TEST() 26 EXPECT_EQ(nullptr, encoded); in TEST() 27 FX_Free(encoded); in TEST() 29 encoded = writer.Encode("12345678901", BCFORMAT_UPC_A, width, height); in TEST() 30 EXPECT_EQ(nullptr, encoded); in TEST() 31 FX_Free(encoded); in TEST() 33 encoded = writer.Encode("1234567890123", BCFORMAT_UPC_A, width, height); in TEST() [all …]
|
D | BC_OnedCode39Writer_unittest.cpp | 39 uint8_t* encoded; in TEST() local 42 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); in TEST() 52 FX_Free(encoded); in TEST() 56 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); in TEST() 66 FX_Free(encoded); in TEST() 73 uint8_t* encoded; in TEST() local 76 encoded = writer.Encode("", BCFORMAT_CODE_39, width, height); in TEST() 83 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 85 FX_Free(encoded); in TEST() 87 encoded = writer.Encode("123", BCFORMAT_CODE_39, width, height); in TEST() [all …]
|
D | BC_OnedCodaBarWriter_unittest.cpp | 24 uint8_t* encoded = writer.Encode("", BCFORMAT_CODABAR, width, height); in TEST() local 31 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 33 FX_Free(encoded); in TEST() 35 encoded = writer.Encode("123", BCFORMAT_CODABAR, width, height); in TEST() 45 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 47 FX_Free(encoded); in TEST() 49 encoded = writer.Encode("-$./:+", BCFORMAT_CODABAR, width, height); in TEST() 64 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 66 FX_Free(encoded); in TEST() 68 encoded = writer.Encode("456.987987987/001", BCFORMAT_CODABAR, width, height); in TEST() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | LazyEncodedSequence.java | 12 private byte[] encoded; field in LazyEncodedSequence 15 byte[] encoded) in LazyEncodedSequence() argument 18 this.encoded = encoded; in LazyEncodedSequence() 23 Enumeration en = new LazyConstructionEnumeration(encoded); in parse() 30 encoded = null; in parse() 35 if (encoded != null) in getObjectAt() 45 if (encoded == null) in getObjects() 50 return new LazyConstructionEnumeration(encoded); in getObjects() 55 if (encoded != null) in size() 65 if (encoded != null) in toDERObject() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | LazyEncodedSequence.java | 13 private byte[] encoded; field in LazyEncodedSequence 16 byte[] encoded) in LazyEncodedSequence() argument 19 this.encoded = encoded; in LazyEncodedSequence() 24 Enumeration en = new LazyConstructionEnumeration(encoded); in parse() 31 encoded = null; in parse() 36 if (encoded != null) in getObjectAt() 46 if (encoded == null) in getObjects() 51 return new LazyConstructionEnumeration(encoded); in getObjects() 56 if (encoded != null) in size() 66 if (encoded != null) in toDERObject() [all …]
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | nested_structure_coder_test.py | 39 encoded = self._coder.encode_structure(structure) 44 self.assertEqual(expected, encoded) 45 decoded = self._coder.decode_proto(encoded) 51 encoded = self._coder.encode_structure(structure) 59 self.assertEqual(expected, encoded) 60 decoded = self._coder.decode_proto(encoded) 66 encoded = self._coder.encode_structure(structure) 72 self.assertEqual(expected, encoded) 73 decoded = self._coder.decode_proto(encoded) 80 encoded = self._coder.encode_structure(structure) [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
D | audio_decoder_opus.cc | 28 int AudioDecoderOpus::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument 36 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal() 43 int AudioDecoderOpus::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument 48 if (!PacketHasFec(encoded, encoded_len)) { in DecodeRedundantInternal() 50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal() 56 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, in DecodeRedundantInternal() 68 int AudioDecoderOpus::PacketDuration(const uint8_t* encoded, in PacketDuration() argument 70 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); in PacketDuration() 73 int AudioDecoderOpus::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument 75 if (!PacketHasFec(encoded, encoded_len)) { in PacketDurationRedundant() [all …]
|
/external/syzkaller/vendor/golang.org/x/net/idna/ |
D | punycode.go | 34 func decode(encoded string) (string, error) { 35 if encoded == "" { 38 pos := 1 + strings.LastIndex(encoded, "-") 40 return "", punyError(encoded) 42 if pos == len(encoded) { 43 return encoded[:len(encoded)-1], nil 45 output := make([]rune, 0, len(encoded)) 47 for _, r := range encoded[:pos-1] { 52 for pos < len(encoded) { 55 if pos == len(encoded) { [all …]
|
/external/boringssl/src/crypto/base64/ |
D | base64_test.cc | 45 const char *encoded; member 138 std::string encoded(RemoveNewlines(t.encoded)); in TEST_P() local 139 EXPECT_EQ(Bytes(encoded), Bytes(out, len)); in TEST_P() 150 const std::string encoded(RemoveNewlines(t.encoded)); in TEST_P() local 151 std::vector<uint8_t> out_vec(encoded.size()); in TEST_P() 156 (const uint8_t *)encoded.data(), encoded.size()); in TEST_P() 172 std::string encoded(RemoveNewlines(t.encoded)); in TEST_P() local 174 std::vector<uint8_t> out_vec(encoded.size()); in TEST_P() 179 EVP_DecodeBlock(out, (const uint8_t *)encoded.data(), encoded.size()); in TEST_P() 217 EXPECT_EQ(Bytes(t.encoded), Bytes(out, total)); in TEST_P() [all …]
|
/external/tensorflow/tensorflow/python/keras/preprocessing/ |
D | text_test.py | 32 encoded = keras.preprocessing.text.one_hot(text, 5) 33 self.assertEqual(len(encoded), 6) 34 self.assertLessEqual(np.max(encoded), 4) 35 self.assertGreaterEqual(np.min(encoded), 0) 39 encoded = keras.preprocessing.text.one_hot(text, 5) 40 self.assertEqual(len(encoded), 6) 41 self.assertLessEqual(np.max(encoded), 4) 42 self.assertGreaterEqual(np.min(encoded), 0) 67 encoded = keras.preprocessing.text.hashing_trick(text, 5) 68 self.assertEqual(len(encoded), 6) [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 310 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument 311 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing() 312 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing() 313 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing() 317 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument 318 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators() 324 Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded))); in testEncodingWithSeparators() 329 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument 330 testEncodes(encoding, decoded, encoded); in testEncoding() 331 testDecodes(encoding, encoded, decoded); in testEncoding() [all …]
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLECKeyFactory.java | 96 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 97 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 100 ECPublicKey ecKey = (ECPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 111 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 112 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 116 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 122 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 126 } else if (encoded == null) { in engineGetKeySpec() 129 @SuppressWarnings("unchecked") T result = (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec() 132 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
D | OpenSSLRSAKeyFactory.java | 97 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 98 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 102 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 129 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 130 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 134 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 147 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 148 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 152 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 158 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
D | X509PublicKey.java | 31 private final byte[] encoded; field in X509PublicKey 33 X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument 35 this.encoded = encoded; in X509PublicKey() 50 return encoded; in getEncoded() 55 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString() 64 result = prime * result + Arrays.hashCode(encoded); in hashCode() 82 if (!Arrays.equals(encoded, other.encoded)) in equals()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECKeyFactory.java | 100 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 101 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 104 ECPublicKey ecKey = (ECPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 115 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 116 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 120 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 126 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 130 } else if (encoded == null) { in engineGetKeySpec() 133 @SuppressWarnings("unchecked") T result = (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec() 136 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
D | OpenSSLRSAKeyFactory.java | 102 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 103 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 107 (RSAPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 134 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 135 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 139 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 152 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 153 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 157 (RSAPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 163 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
D | X509PublicKey.java | 32 private final byte[] encoded; field in X509PublicKey 35 X509PublicKey(String algorithm, byte[] encoded) { in X509PublicKey() argument 37 this.encoded = encoded; in X509PublicKey() 52 return encoded; in getEncoded() 57 return "X509PublicKey [algorithm=" + algorithm + ", encoded=" + Arrays.toString(encoded) in toString() 66 result = prime * result + Arrays.hashCode(encoded); in hashCode() 84 if (!Arrays.equals(encoded, other.encoded)) in equals()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ |
D | audio_decoder.cc | 20 int AudioDecoder::Decode(const uint8_t* encoded, size_t encoded_len, in Decode() argument 24 int duration = PacketDuration(encoded, encoded_len); in Decode() 29 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in Decode() 33 int AudioDecoder::DecodeRedundant(const uint8_t* encoded, size_t encoded_len, in DecodeRedundant() argument 37 int duration = PacketDurationRedundant(encoded, encoded_len); in DecodeRedundant() 42 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundant() 46 int AudioDecoder::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument 50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal() 70 int AudioDecoder::PacketDuration(const uint8_t* encoded, in PacketDuration() argument 75 int AudioDecoder::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument [all …]
|
/external/grpc-grpc/test/core/slice/ |
D | percent_encoding_test.cc | 29 #define TEST_VECTOR(raw, encoded, dict) \ argument 30 test_vector(raw, sizeof(raw) - 1, encoded, sizeof(encoded) - 1, dict) 32 #define TEST_NONCONFORMANT_VECTOR(encoded, permissive_unencoded, dict) \ argument 33 test_nonconformant_vector(encoded, sizeof(encoded) - 1, \ 37 static void test_vector(const char* raw, size_t raw_length, const char* encoded, in test_vector() argument 41 gpr_dump(encoded, encoded_length, GPR_DUMP_HEX | GPR_DUMP_ASCII); in test_vector() 48 grpc_slice_from_copied_buffer(encoded, encoded_length); in test_vector() 81 static void test_nonconformant_vector(const char* encoded, in test_nonconformant_vector() argument 90 gpr_dump(encoded, encoded_length, GPR_DUMP_HEX | GPR_DUMP_ASCII); in test_nonconformant_vector() 99 grpc_slice_from_copied_buffer(encoded, encoded_length); in test_nonconformant_vector()
|
/external/python/cpython3/Lib/email/ |
D | _encoded_words.py | 67 def decode_q(encoded): argument 68 encoded = encoded.replace(b'_', b' ') 69 return _q_byte_subber(encoded), [] 100 def decode_b(encoded): argument 103 pad_err = len(encoded) % 4 107 base64.b64decode(encoded + missing_padding, validate=True), 118 base64.b64decode(encoded, validate=False), 126 base64.b64decode(encoded + b'==', validate=False), 136 return encoded, [errors.InvalidBase64LengthDefect()] 230 encoded = _cte_encoders[encoding](bstring) [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | BaseCipherSpi.java | 114 byte[] encoded = key.getEncoded(); in engineWrap() 115 if (encoded == null) in engineWrap() 124 return engineDoFinal(encoded, 0, encoded.length); in engineWrap() 128 return wrapEngine.wrap(encoded, 0, encoded.length); in engineWrap() 143 byte[] encoded; in engineUnwrap() 148 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); in engineUnwrap() 152 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length); in engineUnwrap() 176 return new SecretKeySpec(encoded, wrappedKeyAlgorithm); in engineUnwrap() 186 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); in engineUnwrap() 212 return kf.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | BaseCipherSpi.java | 118 byte[] encoded = key.getEncoded(); in engineWrap() 119 if (encoded == null) in engineWrap() 128 return engineDoFinal(encoded, 0, encoded.length); in engineWrap() 132 return wrapEngine.wrap(encoded, 0, encoded.length); in engineWrap() 147 byte[] encoded; in engineUnwrap() 152 encoded = engineDoFinal(wrappedKey, 0, wrappedKey.length); in engineUnwrap() 156 encoded = wrapEngine.unwrap(wrappedKey, 0, wrappedKey.length); in engineUnwrap() 180 return new SecretKeySpec(encoded, wrappedKeyAlgorithm); in engineUnwrap() 190 PrivateKeyInfo in = PrivateKeyInfo.getInstance(encoded); in engineUnwrap() 216 return kf.generatePublic(new X509EncodedKeySpec(encoded)); in engineUnwrap() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/g711/ |
D | g711_interface.c | 17 uint8_t* encoded) { in WebRtcG711_EncodeA() argument 20 encoded[n] = linear_to_alaw(speechIn[n]); in WebRtcG711_EncodeA() 26 uint8_t* encoded) { in WebRtcG711_EncodeU() argument 29 encoded[n] = linear_to_ulaw(speechIn[n]); in WebRtcG711_EncodeU() 33 size_t WebRtcG711_DecodeA(const uint8_t* encoded, in WebRtcG711_DecodeA() argument 39 decoded[n] = alaw_to_linear(encoded[n]); in WebRtcG711_DecodeA() 44 size_t WebRtcG711_DecodeU(const uint8_t* encoded, in WebRtcG711_DecodeU() argument 50 decoded[n] = ulaw_to_linear(encoded[n]); in WebRtcG711_DecodeU()
|