/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source_unittest.cc | 223 const auto& decoded = event_packet.android_log().events(); in TEST_F() local 225 EXPECT_EQ(decoded[0].log_id(), protos::gen::AndroidLogId::LID_SYSTEM); in TEST_F() 226 EXPECT_EQ(decoded[0].pid(), 7546); in TEST_F() 227 EXPECT_EQ(decoded[0].tid(), 8991); in TEST_F() 228 EXPECT_EQ(decoded[0].uid(), 1000); in TEST_F() 229 EXPECT_EQ(decoded[0].prio(), protos::gen::AndroidLogPriority::PRIO_INFO); in TEST_F() 230 EXPECT_EQ(decoded[0].timestamp(), 1546125239679172326ULL); in TEST_F() 231 EXPECT_EQ(decoded[0].tag(), "ActivityManager"); in TEST_F() 233 decoded[0].message(), in TEST_F() 236 EXPECT_EQ(decoded[1].log_id(), protos::gen::AndroidLogId::LID_DEFAULT); in TEST_F() [all …]
|
/external/rust/android-crates-io/crates/der/src/asn1/ |
D | real.rs | 301 let decoded = f64::from_der(encoded).unwrap(); in encdec_normal() localVariable 303 (decoded - val).abs() < f64::EPSILON, in encdec_normal() 306 decoded in encdec_normal() 321 let decoded = f64::from_der(encoded).unwrap(); in encdec_normal() localVariable 323 (decoded - val).abs() < f64::EPSILON, in encdec_normal() 326 decoded in encdec_normal() 341 let decoded = f64::from_der(encoded).unwrap(); in encdec_normal() localVariable 343 (decoded - val).abs() < f64::EPSILON, in encdec_normal() 346 decoded in encdec_normal() 361 let decoded = f64::from_der(encoded).unwrap(); in encdec_normal() localVariable [all …]
|
/external/curl/tests/unit/ |
D | unit1302.c | 55 unsigned char *decoded; variable 121 rc = Curl_base64_decode("aWlpaQ==", &decoded, &size); 124 verify_memory(decoded, "iiii", 4); 125 Curl_safefree(decoded); 127 rc = Curl_base64_decode("aWlp", &decoded, &size); 130 verify_memory(decoded, "iii", 3); 131 Curl_safefree(decoded); 133 rc = Curl_base64_decode("aWk=", &decoded, &size); 136 verify_memory(decoded, "ii", 2); 137 Curl_safefree(decoded); [all …]
|
/external/cronet/stable/net/server/ |
D | web_socket_encoder_unittest.cc | 188 std::string decoded; in TEST_F() local 192 server_->DecodeFrame(encoded, &bytes_consumed, &decoded)); in TEST_F() 193 EXPECT_EQ("ClientToServer", decoded); in TEST_F() 198 server_->DecodeFrame(partial, &bytes_consumed, &decoded)); in TEST_F() 202 server_->DecodeFrame(extra, &bytes_consumed, &decoded)); in TEST_F() 203 EXPECT_EQ("ClientToServer", decoded); in TEST_F() 208 server_->DecodeFrame(std::string("abcde"), &bytes_consumed, &decoded)); in TEST_F() 216 std::string decoded; in TEST_F() local 220 client_->DecodeFrame(encoded, &bytes_consumed, &decoded)); in TEST_F() 221 EXPECT_EQ("ServerToClient", decoded); in TEST_F() [all …]
|
/external/cronet/tot/net/server/ |
D | web_socket_encoder_unittest.cc | 188 std::string decoded; in TEST_F() local 192 server_->DecodeFrame(encoded, &bytes_consumed, &decoded)); in TEST_F() 193 EXPECT_EQ("ClientToServer", decoded); in TEST_F() 198 server_->DecodeFrame(partial, &bytes_consumed, &decoded)); in TEST_F() 202 server_->DecodeFrame(extra, &bytes_consumed, &decoded)); in TEST_F() 203 EXPECT_EQ("ClientToServer", decoded); in TEST_F() 208 server_->DecodeFrame(std::string("abcde"), &bytes_consumed, &decoded)); in TEST_F() 216 std::string decoded; in TEST_F() local 220 client_->DecodeFrame(encoded, &bytes_consumed, &decoded)); in TEST_F() 221 EXPECT_EQ("ServerToClient", decoded); in TEST_F() [all …]
|
/external/kotlinx.serialization/formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ |
D | ProtobufAbsenceTest.kt | 49 val decoded = ProtoBuf.decodeFromByteArray<DefaultValue>(bytes) in testDefaultValue() constant 50 assertEquals(42, decoded.i) in testDefaultValue() 58 val decoded = ProtoBuf.decodeFromByteArray<NullableValue>(bytes) in testNullableValue() constant 59 assertEquals(null, decoded.i) in testNullableValue() 69 val decoded = ProtoBuf.decodeFromByteArray<DefaultAndNullValue>(bytes) in testDefaultAndNullValue() constant 70 assertEquals(42, decoded.i) in testDefaultAndNullValue() 79 val decoded = ProtoBuf.decodeFromByteArray<SimpleList>(bytes) in testSimpleList() constant 80 assertEquals(emptyList(), decoded.l) in testSimpleList() 88 val decoded = ProtoBuf.decodeFromByteArray<DefaultList>(bytes) in testDefaultList() constant 89 assertEquals(listOf(42), decoded.l) in testDefaultList() [all …]
|
/external/rust/android-crates-io/crates/flate2/tests/ |
D | empty-read.rs | 12 let mut decoded = Vec::new(); in deflate_decoder_empty_read() localVariable 13 decoder.read_to_end(&mut decoded).unwrap(); in deflate_decoder_empty_read() 14 assert_eq!(decoded.as_slice(), original); in deflate_decoder_empty_read() 25 let mut decoded = Vec::new(); in deflate_encoder_empty_read() localVariable 26 decoder.read_to_end(&mut decoded).unwrap(); in deflate_encoder_empty_read() 27 assert_eq!(decoded.as_slice(), original); in deflate_encoder_empty_read() 38 let mut decoded = Vec::new(); in gzip_decoder_empty_read() localVariable 39 decoder.read_to_end(&mut decoded).unwrap(); in gzip_decoder_empty_read() 40 assert_eq!(decoded.as_slice(), original); in gzip_decoder_empty_read() 51 let mut decoded = Vec::new(); in gzip_encoder_empty_read() localVariable [all …]
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/flate2-1.0.35/tests/ |
D | empty-read.rs | 12 let mut decoded = Vec::new(); in deflate_decoder_empty_read() localVariable 13 decoder.read_to_end(&mut decoded).unwrap(); in deflate_decoder_empty_read() 14 assert_eq!(decoded.as_slice(), original); in deflate_decoder_empty_read() 25 let mut decoded = Vec::new(); in deflate_encoder_empty_read() localVariable 26 decoder.read_to_end(&mut decoded).unwrap(); in deflate_encoder_empty_read() 27 assert_eq!(decoded.as_slice(), original); in deflate_encoder_empty_read() 38 let mut decoded = Vec::new(); in gzip_decoder_empty_read() localVariable 39 decoder.read_to_end(&mut decoded).unwrap(); in gzip_decoder_empty_read() 40 assert_eq!(decoded.as_slice(), original); in gzip_decoder_empty_read() 51 let mut decoded = Vec::new(); in gzip_encoder_empty_read() localVariable [all …]
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/flate2-1.0.35/tests/ |
D | empty-read.rs | 12 let mut decoded = Vec::new(); in deflate_decoder_empty_read() localVariable 13 decoder.read_to_end(&mut decoded).unwrap(); in deflate_decoder_empty_read() 14 assert_eq!(decoded.as_slice(), original); in deflate_decoder_empty_read() 25 let mut decoded = Vec::new(); in deflate_encoder_empty_read() localVariable 26 decoder.read_to_end(&mut decoded).unwrap(); in deflate_encoder_empty_read() 27 assert_eq!(decoded.as_slice(), original); in deflate_encoder_empty_read() 38 let mut decoded = Vec::new(); in gzip_decoder_empty_read() localVariable 39 decoder.read_to_end(&mut decoded).unwrap(); in gzip_decoder_empty_read() 40 assert_eq!(decoded.as_slice(), original); in gzip_decoder_empty_read() 51 let mut decoded = Vec::new(); in gzip_encoder_empty_read() localVariable [all …]
|
/external/python/cpython3/Modules/ |
D | _codecsmodule.c | 165 PyObject *codec_tuple(PyObject *decoded, in codec_tuple() argument 168 if (decoded == NULL) in codec_tuple() 170 return Py_BuildValue("Nn", decoded, len); in codec_tuple() 186 PyObject *decoded = PyBytes_DecodeEscape(data->buf, data->len, in _codecs_escape_decode_impl() local 188 return codec_tuple(decoded, data->len); in _codecs_escape_decode_impl() 269 PyObject *decoded = PyUnicode_DecodeUTF7Stateful(data->buf, data->len, in _codecs_utf_7_decode_impl() local 272 return codec_tuple(decoded, consumed); in _codecs_utf_7_decode_impl() 289 PyObject *decoded = PyUnicode_DecodeUTF8Stateful(data->buf, data->len, in _codecs_utf_8_decode_impl() local 292 return codec_tuple(decoded, consumed); in _codecs_utf_8_decode_impl() 311 PyObject *decoded = PyUnicode_DecodeUTF16Stateful(data->buf, data->len, in _codecs_utf_16_decode_impl() local [all …]
|
/external/aws-sdk-java-v2/utils/src/test/java/software/amazon/awssdk/utils/ |
D | Base16LowerCodecTest.java | 44 byte[] decoded = Base16.decode(b16); in testVectorsPerRfc4648() 45 assertTrue(Arrays.equals(source, decoded)); in testVectorsPerRfc4648() 46 decoded = Base16Lower.decode(b16); in testVectorsPerRfc4648() 47 assertTrue(Arrays.equals(source, decoded)); in testVectorsPerRfc4648() 54 byte[] decoded = null; in testCodecConsistency() 62 decoded = Base16.decode(b16Encoded); in testCodecConsistency() 63 assertTrue(Arrays.equals(decoded, digest)); in testCodecConsistency() 64 decoded = Base16Lower.decode(b16Encoded); in testCodecConsistency() 65 assertTrue(Arrays.equals(decoded, digest)); in testCodecConsistency() 68 decoded = Base16.decode(b16Encoded.toLowerCase()); in testCodecConsistency() [all …]
|
D | Base16CodecTest.java | 44 byte[] decoded = Base16.decode(b16); in testVectorsPerRfc4648() 45 assertTrue(Arrays.equals(source, decoded)); in testVectorsPerRfc4648() 46 decoded = Base16Lower.decode(b16); in testVectorsPerRfc4648() 47 assertTrue(Arrays.equals(source, decoded)); in testVectorsPerRfc4648() 54 byte[] decoded = null; in testCodecConsistency() 62 decoded = Base16.decode(b16Encoded); in testCodecConsistency() 63 assertTrue(Arrays.equals(decoded, digest)); in testCodecConsistency() 64 decoded = Base16Lower.decode(b16Encoded); in testCodecConsistency() 65 assertTrue(Arrays.equals(decoded, digest)); in testCodecConsistency() 68 decoded = Base16.decode(b16Encoded.toLowerCase()); in testCodecConsistency() [all …]
|
/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/handlers/ |
D | DecodeUrlEncodedResponseInterceptorTest.java | 129 …ListObjectsResponse decoded = (ListObjectsResponse) INTERCEPTOR.modifyResponse(ctx, new ExecutionA… in encodingTypeSet_decodesListObjectsResponseParts() local 131 assertDecoded(decoded::delimiter, " delimiter"); in encodingTypeSet_decodesListObjectsResponseParts() 132 assertDecoded(decoded::nextMarker, " nextmarker"); in encodingTypeSet_decodesListObjectsResponseParts() 133 assertDecoded(decoded::prefix, " prefix"); in encodingTypeSet_decodesListObjectsResponseParts() 134 assertDecoded(decoded::marker, " marker"); in encodingTypeSet_decodesListObjectsResponseParts() 135 assertKeysAreDecoded(decoded.contents()); in encodingTypeSet_decodesListObjectsResponseParts() 136 assertCommonPrefixesAreDecoded(decoded.commonPrefixes()); in encodingTypeSet_decodesListObjectsResponseParts() 143 …ListObjectsV2Response decoded = (ListObjectsV2Response) INTERCEPTOR.modifyResponse(ctx, new Execut… in encodingTypeSet_decodesListObjectsV2ResponseParts() local 145 assertDecoded(decoded::delimiter, " delimiter"); in encodingTypeSet_decodesListObjectsV2ResponseParts() 146 assertDecoded(decoded::prefix, " prefix"); in encodingTypeSet_decodesListObjectsV2ResponseParts() [all …]
|
/external/moshi/kotlin/tests/src/test/kotlin/com/squareup/moshi/kotlin/reflect/ |
D | KotlinJsonAdapterTest.kt | 49 val decoded = jsonAdapter.fromJson("""{"a":4,"b":6}""")!! in <lambda>() constant 50 assertThat(decoded.a).isEqualTo(4) in <lambda>() 51 assertThat(decoded.b).isEqualTo(6) in <lambda>() 65 val decoded = jsonAdapter.fromJson("""{"a":3,"b":5}""")!! in <lambda>() constant 66 assertThat(decoded.a).isEqualTo(3) in <lambda>() 67 assertThat(decoded.b).isEqualTo(5) in <lambda>() 83 val decoded = jsonAdapter.fromJson("""{"a":4,"b":6}""")!! in <lambda>() constant 84 assertThat(decoded.a).isEqualTo(4) in <lambda>() 85 assertThat(decoded.b).isEqualTo(6) in <lambda>() 99 val decoded = jsonAdapter.fromJson("""{"a":4,"b":6}""")!! in <lambda>() constant [all …]
|
/external/moshi/kotlin/tests/codegen-only/src/test/kotlin/com/squareup/moshi/kotlin/codegen/ |
D | GeneratedAdaptersTest.kt | 360 val decoded = jsonAdapter.fromJson("""{"a":4,"b":6}""")!! in <lambda>() constant 361 assertThat(decoded.a).isEqualTo(4) in <lambda>() 362 assertThat(decoded.b).isEqualTo(6) in <lambda>() 377 val decoded = jsonAdapter.fromJson("""{"a":3,"b":5}""")!! in <lambda>() constant 378 assertThat(decoded.a).isEqualTo(3) in <lambda>() 379 assertThat(decoded.b).isEqualTo(5) in <lambda>() 398 val decoded = jsonAdapter.fromJson("""{"a":4,"b":6}""")!! in <lambda>() constant 399 assertThat(decoded.a).isEqualTo(4) in <lambda>() 400 assertThat(decoded.b).isEqualTo(6) in <lambda>() 418 val decoded = jsonAdapter.fromJson("""{"a":4,"b":6}""")!! in <lambda>() constant [all …]
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | nested_structure_coder_test.py | 48 decoded = nested_structure_coder.decode_proto(encoded) 49 self.assertEqual(structure, decoded) 63 decoded = nested_structure_coder.decode_proto(encoded) 64 self.assertEqual(structure, decoded) 76 decoded = nested_structure_coder.decode_proto(encoded) 77 self.assertIsInstance(decoded["a"], int) 78 self.assertEqual(structure, decoded) 92 decoded = nested_structure_coder.decode_proto(encoded) 93 self.assertEqual(structure, decoded) 112 decoded = nested_structure_coder.decode_proto(encoded) [all …]
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/base64-0.13.1/src/read/ |
D | decoder_tests.rs | 88 let mut decoded = Vec::new(); in handles_short_read_from_delegate() localVariable 93 decoded.clear(); in handles_short_read_from_delegate() 112 let decoded_len = decoder.read_to_end(&mut decoded).unwrap(); in handles_short_read_from_delegate() 114 assert_eq!(&bytes[..], &decoded[..]); in handles_short_read_from_delegate() 123 let mut decoded = Vec::new(); in read_in_short_increments() localVariable 128 decoded.clear(); in read_in_short_increments() 133 decoded.extend(iter::repeat(0).take(size * 3)); in read_in_short_increments() 145 consume_with_short_reads_and_validate(&mut rng, &bytes[..], &mut decoded, &mut decoder); in read_in_short_increments() 154 let mut decoded = Vec::new(); in read_in_short_increments_with_short_delegate_reads() localVariable 159 decoded.clear(); in read_in_short_increments_with_short_delegate_reads() [all …]
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/base64-0.13.1/src/read/ |
D | decoder_tests.rs | 88 let mut decoded = Vec::new(); in handles_short_read_from_delegate() localVariable 93 decoded.clear(); in handles_short_read_from_delegate() 112 let decoded_len = decoder.read_to_end(&mut decoded).unwrap(); in handles_short_read_from_delegate() 114 assert_eq!(&bytes[..], &decoded[..]); in handles_short_read_from_delegate() 123 let mut decoded = Vec::new(); in read_in_short_increments() localVariable 128 decoded.clear(); in read_in_short_increments() 133 decoded.extend(iter::repeat(0).take(size * 3)); in read_in_short_increments() 145 consume_with_short_reads_and_validate(&mut rng, &bytes[..], &mut decoded, &mut decoder); in read_in_short_increments() 154 let mut decoded = Vec::new(); in read_in_short_increments_with_short_delegate_reads() localVariable 159 decoded.clear(); in read_in_short_increments_with_short_delegate_reads() [all …]
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | _codecs_jp.c | 88 Py_UCS4 decoded; in DECODER() local 113 if (TRYMAP_DEC(cp932ext, decoded, c, c2)) in DECODER() 114 OUTCHAR(decoded); in DECODER() 124 if (TRYMAP_DEC(jisx0208, decoded, c, c2)) in DECODER() 125 OUTCHAR(decoded); in DECODER() 245 Py_UCS4 code, decoded; in DECODER() local 275 else if (TRYMAP_DEC(jisx0213_2_bmp, decoded, c2, c3)) in DECODER() 276 OUTCHAR(decoded); in DECODER() 282 else if (TRYMAP_DEC(jisx0212, decoded, c2, c3)) in DECODER() 283 OUTCHAR(decoded); in DECODER() [all …]
|
/external/coreboot/tests/lib/ |
D | b64_decode-test.c | 29 uint8_t *decoded; in test_b64_decode() local 33 decoded = malloc(strlen(messages[i].enc) * sizeof(char)); in test_b64_decode() 35 res = b64_decode((uint8_t *)messages[i].enc, strlen(messages[i].enc), decoded); in test_b64_decode() 38 assert_string_equal((const char *)decoded, messages[i].dec); in test_b64_decode() 40 free(decoded); in test_b64_decode() 44 decoded = malloc(strlen(invalid[i]) * sizeof(char)); in test_b64_decode() 46 res = b64_decode((uint8_t *)invalid[i], strlen(invalid[i]), decoded); in test_b64_decode() 50 free(decoded); in test_b64_decode()
|
/external/python/apitools/apitools/base/protorpclite/ |
D | protojson_test.py | 301 decoded = protojson.decode_message( 304 self.assertEquals(decoded.an_integer, 1) 305 self.assertEquals(1, len(decoded.all_unrecognized_fields())) 306 self.assertEquals('unknown_val', decoded.all_unrecognized_fields()[0]) 308 decoded.get_unrecognized_field_info('unknown_val')) 312 decoded = protojson.decode_message( 316 self.assertEquals(decoded.an_integer, 1) 317 self.assertEquals(3, len(decoded.all_unrecognized_fields())) 318 self.assertFalse(1001 in decoded.all_unrecognized_fields()) 319 self.assertTrue('1001' in decoded.all_unrecognized_fields()) [all …]
|
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/ |
D | libjpeg_decoder_test.cc | 64 unsigned char decoded[kDecodedSize]; in TEST() local 66 status = decoder->DecodeImage(string_ref, kExpectedImageDimensions, decoded, in TEST() 71 std::vector<uint8_t> decoded_vec(decoded, decoded + kDecodedSize); in TEST() 86 unsigned char decoded[kDecodedSize]; in TEST() local 88 status = decoder->DecodeImage(string_ref, kExpectedImageDimensions, decoded, in TEST() 93 std::vector<uint8_t> decoded_vec(decoded, decoded + kDecodedSize); in TEST() 126 unsigned char decoded[decoded_size]; in TEST() local 127 status = decoder->DecodeImage(string_ref, kExpectedImageDimensions, decoded, in TEST() 146 unsigned char decoded[kDecodedSize]; in TEST() local 150 decoded, kDecodedSize); in TEST() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 415 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument 416 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing() 417 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing() local 418 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing() local 422 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument 423 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators() 430 decoded, in testEncodingWithSeparators() local 436 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument 437 testEncodes(encoding, decoded, encoded); in testEncoding() 438 testDecodes(encoding, encoded, decoded); in testEncoding() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | BaseEncodingTest.java | 415 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument 416 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing() 417 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing() local 418 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing() local 422 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument 423 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators() 430 decoded, in testEncodingWithSeparators() local 436 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument 437 testEncodes(encoding, decoded, encoded); in testEncoding() 438 testDecodes(encoding, encoded, decoded); in testEncoding() [all …]
|
/external/rust/android-crates-io/crates/toml_edit/tests/ |
D | encoder.rs | 16 decoded: &toml_test_harness::Decoded, in decoded_to_document() 18 let item = root_from_decoded(decoded)?; in decoded_to_document() 25 decoded: &toml_test_harness::Decoded, in root_from_decoded() 27 match decoded { in root_from_decoded() 46 decoded: &toml_test_harness::Decoded, in from_decoded() 48 let value = match decoded { in from_decoded() 59 decoded: &toml_test_harness::DecodedValue, in from_decoded_value() 61 let value: toml_edit::Value = match decoded { in from_decoded_value() 96 decoded: &std::collections::HashMap<String, toml_test_harness::Decoded>, in from_table() 98 decoded in from_table() [all …]
|