/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/ |
D | ares_expand_name.c | 38 static int name_length(const unsigned char *encoded, const unsigned char *abuf, 65 int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, in ares_expand_name() argument 76 nlen.sig = name_length(encoded, abuf, alen); in ares_expand_name() 93 if ((*encoded & INDIR_MASK) == INDIR_MASK) in ares_expand_name() 102 p = encoded; in ares_expand_name() 109 *enclen = aresx_uztosl(p + 2U - encoded); in ares_expand_name() 129 *enclen = aresx_uztosl(p + 1U - encoded); in ares_expand_name() 143 static int name_length(const unsigned char *encoded, const unsigned char *abuf, in name_length() argument 149 if (encoded >= abuf + alen) in name_length() 152 while (*encoded) in name_length() [all …]
|
/external/pdfium/fxbarcode/oned/ |
D | BC_OnedEAN8Writer_unittest.cpp | 16 uint8_t* encoded; in TEST() local 21 encoded = writer.Encode("", BCFORMAT_EAN_8, width, height); in TEST() 22 EXPECT_EQ(nullptr, encoded); in TEST() 23 FX_Free(encoded); in TEST() 25 encoded = writer.Encode("123", BCFORMAT_EAN_8, width, height); in TEST() 26 EXPECT_EQ(nullptr, encoded); in TEST() 27 FX_Free(encoded); in TEST() 29 encoded = writer.Encode("1234567", BCFORMAT_EAN_8, width, height); in TEST() 30 EXPECT_EQ(nullptr, encoded); in TEST() 31 FX_Free(encoded); in TEST() [all …]
|
D | BC_OnedEAN13Writer_unittest.cpp | 16 uint8_t* encoded; in TEST() local 21 encoded = writer.Encode("", BCFORMAT_EAN_13, width, height); in TEST() 22 EXPECT_EQ(nullptr, encoded); in TEST() 23 FX_Free(encoded); in TEST() 25 encoded = writer.Encode("123", BCFORMAT_EAN_13, width, height); in TEST() 26 EXPECT_EQ(nullptr, encoded); in TEST() 27 FX_Free(encoded); in TEST() 29 encoded = writer.Encode("123456789012", BCFORMAT_EAN_13, width, height); in TEST() 30 EXPECT_EQ(nullptr, encoded); in TEST() 31 FX_Free(encoded); in TEST() [all …]
|
D | BC_OnedCode39Writer_unittest.cpp | 40 uint8_t* encoded; in TEST() local 43 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); in TEST() 54 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 55 FX_Free(encoded); in TEST() 59 encoded = writer.Encode("PDFIUM", BCFORMAT_CODE_39, width, height); in TEST() 70 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 71 FX_Free(encoded); in TEST() 78 uint8_t* encoded; in TEST() local 81 encoded = writer.Encode("", BCFORMAT_CODE_39, width, height); in TEST() 88 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() [all …]
|
D | BC_OnedUPCAWriter_unittest.cpp | 19 uint8_t* encoded = writer.Encode("", BCFORMAT_UPC_A, width, height); in TEST() local 20 EXPECT_EQ(nullptr, encoded); in TEST() 21 FX_Free(encoded); in TEST() 23 encoded = writer.Encode("123", BCFORMAT_UPC_A, width, height); in TEST() 24 EXPECT_EQ(nullptr, encoded); in TEST() 25 FX_Free(encoded); in TEST() 27 encoded = writer.Encode("12345678901", BCFORMAT_UPC_A, width, height); in TEST() 28 EXPECT_EQ(nullptr, encoded); in TEST() 29 FX_Free(encoded); in TEST() 31 encoded = writer.Encode("1234567890123", BCFORMAT_UPC_A, width, height); in TEST() [all …]
|
D | BC_OnedCodaBarWriter_unittest.cpp | 25 uint8_t* encoded = writer.Encode("", BCFORMAT_CODABAR, width, height); in TEST() local 32 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 34 FX_Free(encoded); in TEST() 36 encoded = writer.Encode("123", BCFORMAT_CODABAR, width, height); in TEST() 46 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 48 FX_Free(encoded); in TEST() 50 encoded = writer.Encode("-$./:+", BCFORMAT_CODABAR, width, height); in TEST() 65 EXPECT_EQ(expected[i] != ' ', !!encoded[i]) << i; in TEST() 67 FX_Free(encoded); in TEST() 69 encoded = writer.Encode("456.987987987/001", BCFORMAT_CODABAR, width, height); in TEST() [all …]
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | nested_structure_coder_test.py | 45 encoded = self._coder.encode_structure(structure) 50 self.assertEqual(expected, encoded) 51 decoded = self._coder.decode_proto(encoded) 57 encoded = self._coder.encode_structure(structure) 65 self.assertEqual(expected, encoded) 66 decoded = self._coder.decode_proto(encoded) 72 encoded = self._coder.encode_structure(structure) 78 self.assertEqual(expected, encoded) 79 decoded = self._coder.decode_proto(encoded) 86 encoded = self._coder.encode_structure(structure) [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | LazyEncodedSequence.java | 14 private byte[] encoded; field in LazyEncodedSequence 16 LazyEncodedSequence(byte[] encoded) throws IOException in LazyEncodedSequence() argument 21 this.encoded = encoded; in LazyEncodedSequence() 33 if (null != encoded) in getObjects() 35 return new LazyConstructionEnumeration(encoded); in getObjects() 79 if (null != encoded) in encodedLength() 81 return 1 + StreamUtil.calculateBodyLength(encoded.length) + encoded.length; in encodedLength() 89 if (null != encoded) in encode() 91 out.writeEncoded(withTag, BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded); in encode() 115 if (null != encoded) in force() [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
D | LazyEncodedSequence.java | 14 private byte[] encoded; field in LazyEncodedSequence 16 LazyEncodedSequence(byte[] encoded) throws IOException in LazyEncodedSequence() argument 21 this.encoded = encoded; in LazyEncodedSequence() 33 if (null != encoded) in getObjects() 35 return new LazyConstructionEnumeration(encoded); in getObjects() 79 if (null != encoded) in encodedLength() 81 return 1 + StreamUtil.calculateBodyLength(encoded.length) + encoded.length; in encodedLength() 89 if (null != encoded) in encode() 91 out.writeEncoded(withTag, BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded); in encode() 115 if (null != encoded) in force() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | LazyEncodedSequence.java | 13 private byte[] encoded; field in LazyEncodedSequence 15 LazyEncodedSequence(byte[] encoded) throws IOException in LazyEncodedSequence() argument 20 this.encoded = encoded; in LazyEncodedSequence() 32 if (null != encoded) in getObjects() 34 return new LazyConstructionEnumeration(encoded); in getObjects() 78 if (null != encoded) in encodedLength() 80 return 1 + StreamUtil.calculateBodyLength(encoded.length) + encoded.length; in encodedLength() 88 if (null != encoded) in encode() 90 out.writeEncoded(withTag, BERTags.SEQUENCE | BERTags.CONSTRUCTED, encoded); in encode() 114 if (null != encoded) in force() [all …]
|
/external/webrtc/logging/rtc_event_log/encoder/ |
D | blob_encoding_unittest.cc | 29 const std::string encoded = EncodeBlobs(blobs); in TestEncodingAndDecoding() local 30 ASSERT_FALSE(encoded.empty()); in TestEncodingAndDecoding() 33 DecodeBlobs(encoded, blobs.size()); in TestEncodingAndDecoding() 92 const std::string encoded = EncodeBlobs({"a"}); in TEST() local 93 ASSERT_FALSE(encoded.empty()); in TEST() 94 TestGracefulErrorHandling(encoded, 0); in TEST() 98 std::string encoded = EncodeBlobs({"ab"}); in TEST() local 99 ASSERT_FALSE(encoded.empty()); in TEST() 100 ASSERT_EQ(encoded[0], 0x02); in TEST() 101 encoded[0] = 0x01; in TEST() [all …]
|
/external/rust/crates/idna/benches/ |
D | all.rs | 9 let encoded = "abc.xn--mgbcm"; in to_unicode_puny_label() localVariable 11 bench.iter(|| config.to_unicode(black_box(encoded))); in to_unicode_puny_label() 15 let encoded = "example.com"; in to_unicode_ascii() localVariable 17 bench.iter(|| config.to_unicode(black_box(encoded))); in to_unicode_ascii() 21 let encoded = "Beispiel.xn--vermgensberater-ctb"; in to_unicode_merged_label() localVariable 23 bench.iter(|| config.to_unicode(black_box(encoded))); in to_unicode_merged_label() 27 let encoded = "abc.ابج"; in to_ascii_puny_label() localVariable 29 bench.iter(|| config.to_ascii(black_box(encoded))); in to_ascii_puny_label() 33 let encoded = "example.com"; in to_ascii_simple() localVariable 35 bench.iter(|| config.to_ascii(black_box(encoded))); in to_ascii_simple() [all …]
|
/external/rust/crates/quiche/deps/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/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/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLX25519PublicKey.java | 20 byte[] encoded = keySpec.getEncoded(); in OpenSSLX25519PublicKey() 21 if (encoded == null || !"X.509".equals(keySpec.getFormat())) { in OpenSSLX25519PublicKey() 25 …reambleLength = matchesPreamble(X509_PREAMBLE, encoded) | matchesPreamble(X509_PREAMBLE_WITH_NULL,… in OpenSSLX25519PublicKey() 30 uCoordinate = Arrays.copyOfRange(encoded, preambleLength, encoded.length); in OpenSSLX25519PublicKey() 33 private static int matchesPreamble(byte[] preamble, byte[] encoded) { in matchesPreamble() argument 34 if (encoded.length != (preamble.length + X25519_KEY_SIZE_BYTES)) { in matchesPreamble() 39 cmp |= encoded[i] ^ preamble[i]; in matchesPreamble() 67 byte[] encoded = Arrays.copyOf(X509_PREAMBLE, X509_PREAMBLE.length + X25519_KEY_SIZE_BYTES); in getEncoded() 68 System.arraycopy(uCoordinate, 0, encoded, X509_PREAMBLE.length, uCoordinate.length); in getEncoded() 69 return encoded; in getEncoded()
|
D | OpenSSLX25519PrivateKey.java | 20 byte[] encoded = keySpec.getEncoded(); in OpenSSLX25519PrivateKey() 21 if (encoded == null || !"PKCS#8".equals(keySpec.getFormat())) { in OpenSSLX25519PrivateKey() 25 …ambleLength = matchesPreamble(PKCS8_PREAMBLE, encoded) | matchesPreamble(PKCS8_PREAMBLE_WITH_NULL,… in OpenSSLX25519PrivateKey() 30 uCoordinate = Arrays.copyOfRange(encoded, PKCS8_PREAMBLE.length, encoded.length); in OpenSSLX25519PrivateKey() 33 private static int matchesPreamble(byte[] preamble, byte[] encoded) { in matchesPreamble() argument 34 if (encoded.length != (preamble.length + X25519_KEY_SIZE_BYTES)) { in matchesPreamble() 39 cmp |= encoded[i] ^ preamble[i]; in matchesPreamble() 67 byte[] encoded = Arrays.copyOf(PKCS8_PREAMBLE, PKCS8_PREAMBLE.length + uCoordinate.length); in getEncoded() 68 System.arraycopy(uCoordinate, 0, encoded, PKCS8_PREAMBLE.length, uCoordinate.length); in getEncoded() 69 return encoded; in getEncoded()
|
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 | OpenSSLXDHKeyFactory.java | 86 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 87 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 90 …blicKey publicKey = (OpenSSLX25519PublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 95 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 96 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 99 …Key privateKey = (OpenSSLX25519PrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 104 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 108 } else if (encoded == null) { in engineGetKeySpec() 111 @SuppressWarnings("unchecked") T result = (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec() 114 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLX25519PublicKey.java | 24 byte[] encoded = keySpec.getEncoded(); in OpenSSLX25519PublicKey() 25 if (encoded == null || !"X.509".equals(keySpec.getFormat())) { in OpenSSLX25519PublicKey() 29 …reambleLength = matchesPreamble(X509_PREAMBLE, encoded) | matchesPreamble(X509_PREAMBLE_WITH_NULL,… in OpenSSLX25519PublicKey() 34 uCoordinate = Arrays.copyOfRange(encoded, preambleLength, encoded.length); in OpenSSLX25519PublicKey() 37 private static int matchesPreamble(byte[] preamble, byte[] encoded) { in matchesPreamble() argument 38 if (encoded.length != (preamble.length + X25519_KEY_SIZE_BYTES)) { in matchesPreamble() 43 cmp |= encoded[i] ^ preamble[i]; in matchesPreamble() 71 byte[] encoded = Arrays.copyOf(X509_PREAMBLE, X509_PREAMBLE.length + X25519_KEY_SIZE_BYTES); in getEncoded() 72 System.arraycopy(uCoordinate, 0, encoded, X509_PREAMBLE.length, uCoordinate.length); in getEncoded() 73 return encoded; in getEncoded()
|
D | OpenSSLX25519PrivateKey.java | 24 byte[] encoded = keySpec.getEncoded(); in OpenSSLX25519PrivateKey() 25 if (encoded == null || !"PKCS#8".equals(keySpec.getFormat())) { in OpenSSLX25519PrivateKey() 29 …ambleLength = matchesPreamble(PKCS8_PREAMBLE, encoded) | matchesPreamble(PKCS8_PREAMBLE_WITH_NULL,… in OpenSSLX25519PrivateKey() 34 uCoordinate = Arrays.copyOfRange(encoded, PKCS8_PREAMBLE.length, encoded.length); in OpenSSLX25519PrivateKey() 37 private static int matchesPreamble(byte[] preamble, byte[] encoded) { in matchesPreamble() argument 38 if (encoded.length != (preamble.length + X25519_KEY_SIZE_BYTES)) { in matchesPreamble() 43 cmp |= encoded[i] ^ preamble[i]; in matchesPreamble() 71 byte[] encoded = Arrays.copyOf(PKCS8_PREAMBLE, PKCS8_PREAMBLE.length + uCoordinate.length); in getEncoded() 72 System.arraycopy(uCoordinate, 0, encoded, PKCS8_PREAMBLE.length, uCoordinate.length); in getEncoded() 73 return encoded; in getEncoded()
|
D | OpenSSLECKeyFactory.java | 98 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 99 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 102 ECPublicKey ecKey = (ECPublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 113 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 114 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 118 (ECPrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 124 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 128 } else if (encoded == null) { in engineGetKeySpec() 131 @SuppressWarnings("unchecked") T result = (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec() 134 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
D | OpenSSLXDHKeyFactory.java | 88 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 89 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 92 …blicKey publicKey = (OpenSSLX25519PublicKey) engineGeneratePublic(new X509EncodedKeySpec(encoded)); in engineGetKeySpec() 97 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 98 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec() 101 …Key privateKey = (OpenSSLX25519PrivateKey) engineGeneratePrivate(new PKCS8EncodedKeySpec(encoded)); in engineGetKeySpec() 106 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() 110 } else if (encoded == null) { in engineGetKeySpec() 113 @SuppressWarnings("unchecked") T result = (T) new PKCS8EncodedKeySpec(encoded); in engineGetKeySpec() 116 final byte[] encoded = key.getEncoded(); in engineGetKeySpec() [all …]
|
/external/webrtc/modules/audio_coding/codecs/opus/ |
D | audio_decoder_opus.cc | 58 int AudioDecoderOpusImpl::DecodeInternal(const uint8_t* encoded, in DecodeInternal() argument 66 WebRtcOpus_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal() 73 int AudioDecoderOpusImpl::DecodeRedundantInternal(const uint8_t* encoded, in DecodeRedundantInternal() argument 78 if (!PacketHasFec(encoded, encoded_len)) { in DecodeRedundantInternal() 80 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal() 86 int ret = WebRtcOpus_DecodeFec(dec_state_, encoded, encoded_len, decoded, in DecodeRedundantInternal() 98 int AudioDecoderOpusImpl::PacketDuration(const uint8_t* encoded, in PacketDuration() argument 100 return WebRtcOpus_DurationEst(dec_state_, encoded, encoded_len); in PacketDuration() 103 int AudioDecoderOpusImpl::PacketDurationRedundant(const uint8_t* encoded, in PacketDurationRedundant() argument 105 if (!PacketHasFec(encoded, encoded_len)) { in PacketDurationRedundant() [all …]
|
/external/tensorflow/tensorflow/python/keras/preprocessing/ |
D | text_test.py | 32 encoded = 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 = 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 = preprocessing_text.hashing_trick(text, 5) 68 self.assertEqual(len(encoded), 6) [all …]
|
/external/rust/crates/flate2/tests/ |
D | empty-read.rs | 11 let encoded: Vec<u8> = encoder.finish().unwrap(); in deflate_decoder_empty_read() localVariable 12 let mut decoder = flate2::read::DeflateDecoder::new(encoded.as_slice()); in deflate_decoder_empty_read() 24 let mut encoded = Vec::new(); in deflate_encoder_empty_read() localVariable 25 encoder.read_to_end(&mut encoded).unwrap(); in deflate_encoder_empty_read() 26 let mut decoder = flate2::read::DeflateDecoder::new(encoded.as_slice()); in deflate_encoder_empty_read() 37 let encoded: Vec<u8> = encoder.finish().unwrap(); in gzip_decoder_empty_read() localVariable 38 let mut decoder = flate2::read::GzDecoder::new(encoded.as_slice()); in gzip_decoder_empty_read() 50 let mut encoded = Vec::new(); in gzip_encoder_empty_read() localVariable 51 encoder.read_to_end(&mut encoded).unwrap(); in gzip_encoder_empty_read() 52 let mut decoder = flate2::read::GzDecoder::new(encoded.as_slice()); in gzip_encoder_empty_read() [all …]
|