/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source_unittest.cc | 220 const auto& decoded = packet->android_log().events(); in TEST_F() local 222 EXPECT_EQ(decoded.Get(0).log_id(), protos::AndroidLogId::LID_SYSTEM); in TEST_F() 223 EXPECT_EQ(decoded.Get(0).pid(), 7546); in TEST_F() 224 EXPECT_EQ(decoded.Get(0).tid(), 8991); in TEST_F() 225 EXPECT_EQ(decoded.Get(0).uid(), 1000); in TEST_F() 226 EXPECT_EQ(decoded.Get(0).prio(), protos::AndroidLogPriority::PRIO_INFO); in TEST_F() 227 EXPECT_EQ(decoded.Get(0).timestamp(), 1546125239679172326LL); in TEST_F() 228 EXPECT_EQ(decoded.Get(0).tag(), "ActivityManager"); in TEST_F() 230 decoded.Get(0).message(), in TEST_F() 233 EXPECT_EQ(decoded.Get(1).log_id(), protos::AndroidLogId::LID_DEFAULT); in TEST_F() [all …]
|
/external/curl/tests/unit/ |
D | unit1302.c | 51 unsigned char *decoded; variable 105 rc = Curl_base64_decode("aWlpaQ==", &decoded, &size); 108 verify_memory(decoded, "iiii", 4); 109 Curl_safefree(decoded); 111 rc = Curl_base64_decode("aWlp", &decoded, &size); 114 verify_memory(decoded, "iii", 3); 115 Curl_safefree(decoded); 117 rc = Curl_base64_decode("aWk=", &decoded, &size); 120 verify_memory(decoded, "ii", 2); 121 Curl_safefree(decoded); [all …]
|
/external/grpc-grpc/test/core/slice/ |
D | b64_test.cc | 166 grpc_slice decoded; in test_unpadded_decode() local 169 decoded = grpc_base64_decode("Zm9vYmFy", 0); in test_unpadded_decode() 170 GPR_ASSERT(!GRPC_SLICE_IS_EMPTY(decoded)); in test_unpadded_decode() 171 GPR_ASSERT(grpc_slice_str_cmp(decoded, "foobar") == 0); in test_unpadded_decode() 172 grpc_slice_unref(decoded); in test_unpadded_decode() 174 decoded = grpc_base64_decode("Zm9vYmE", 0); in test_unpadded_decode() 175 GPR_ASSERT(!GRPC_SLICE_IS_EMPTY(decoded)); in test_unpadded_decode() 176 GPR_ASSERT(grpc_slice_str_cmp(decoded, "fooba") == 0); in test_unpadded_decode() 177 grpc_slice_unref(decoded); in test_unpadded_decode() 179 decoded = grpc_base64_decode("Zm9vYg", 0); in test_unpadded_decode() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | huffman_codec.cpp | 165 std::string decoded; in TEST() local 167 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 168 EXPECT_EQ("l", decoded); in TEST() 170 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 171 EXPECT_EQ("i", decoded); in TEST() 173 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 174 EXPECT_EQ("n", decoded); in TEST() 176 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 177 EXPECT_EQ("u", decoded); in TEST() 179 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | huffman_codec.cpp | 165 std::string decoded; in TEST() local 167 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 168 EXPECT_EQ("l", decoded); in TEST() 170 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 171 EXPECT_EQ("i", decoded); in TEST() 173 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 174 EXPECT_EQ("n", decoded); in TEST() 176 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() 177 EXPECT_EQ("u", decoded); in TEST() 179 ASSERT_TRUE(huffman.DecodeFromStream(read_bit, &decoded)); in TEST() [all …]
|
/external/python/cpython3/Modules/ |
D | _codecsmodule.c | 163 PyObject *codec_tuple(PyObject *decoded, in codec_tuple() argument 166 if (decoded == NULL) in codec_tuple() 168 return Py_BuildValue("Nn", decoded, len); in codec_tuple() 184 PyObject *decoded = PyBytes_DecodeEscape(data->buf, data->len, in _codecs_escape_decode_impl() local 186 return codec_tuple(decoded, data->len); in _codecs_escape_decode_impl() 299 PyObject *decoded = PyUnicode_DecodeUTF7Stateful(data->buf, data->len, in _codecs_utf_7_decode_impl() local 302 return codec_tuple(decoded, consumed); in _codecs_utf_7_decode_impl() 319 PyObject *decoded = PyUnicode_DecodeUTF8Stateful(data->buf, data->len, in _codecs_utf_8_decode_impl() local 322 return codec_tuple(decoded, consumed); in _codecs_utf_8_decode_impl() 341 PyObject *decoded = PyUnicode_DecodeUTF16Stateful(data->buf, data->len, in _codecs_utf_16_decode_impl() local [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() local 313 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing() local 317 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument 318 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators() 323 testEncoding(encoding.withSeparator(separator, sepLength), decoded, in testEncodingWithSeparators() local 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/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 …]
|
D | _codecs_cn.c | 36 else if (TRYMAP_DEC(gb2312, decoded, dc1 ^ 0x80, dc2 ^ 0x80)) { \ 37 OUTCHAR(decoded); \ 39 else if (TRYMAP_DEC(gbkext, decoded, dc1, dc2)) { \ 40 OUTCHAR(decoded); \ 94 Py_UCS4 decoded; in DECODER() local 103 if (TRYMAP_DEC(gb2312, decoded, c ^ 0x80, INBYTE2 ^ 0x80)) { in DECODER() 104 OUTCHAR(decoded); in DECODER() 155 Py_UCS4 decoded; in DECODER() local 263 Py_UCS4 decoded; in DECODER() local 314 else if (TRYMAP_DEC(gb18030ext, decoded, c, c2)) in DECODER() [all …]
|
D | _codecs_tw.c | 49 Py_UCS4 decoded; in DECODER() local 58 if (TRYMAP_DEC(big5, decoded, c, INBYTE2)) { in DECODER() 59 OUTCHAR(decoded); in DECODER() 108 Py_UCS4 decoded; in DECODER() local 118 if (TRYMAP_DEC(cp950ext, decoded, c, INBYTE2)) in DECODER() 119 OUTCHAR(decoded); in DECODER() 120 else if (TRYMAP_DEC(big5, decoded, c, INBYTE2)) in DECODER() 121 OUTCHAR(decoded); in DECODER()
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | nested_structure_coder_test.py | 45 decoded = self._coder.decode_proto(encoded) 46 self.assertEqual(structure, decoded) 60 decoded = self._coder.decode_proto(encoded) 61 self.assertEqual(structure, decoded) 73 decoded = self._coder.decode_proto(encoded) 74 self.assertIsInstance(decoded["a"], int) 75 self.assertEqual(structure, decoded) 89 decoded = self._coder.decode_proto(encoded) 90 self.assertEqual(structure, decoded) 109 decoded = self._coder.decode_proto(encoded) [all …]
|
/external/protobuf/src/google/protobuf/stubs/ |
D | strutil_unittest.cc | 500 string decoded("this junk should be ignored"); in TEST() local 502 StringPiece(encode_buffer, cypher_length), &decoded)); in TEST() 503 EXPECT_EQ(decoded.size(), base64_tests[i].plain_length); in TEST() 504 EXPECT_EQ_ARRAY(decoded.size(), decoded, base64_tests[i].plaintext, i); in TEST() 521 EXPECT_EQ(decoded.size(), base64_tests[i].plain_length); in TEST() 522 EXPECT_EQ_ARRAY(decoded.size(), decoded, base64_tests[i].plaintext, i); in TEST() 532 EXPECT_EQ(decoded.size(), base64_tests[i].plain_length); in TEST() 533 EXPECT_EQ_ARRAY(decoded.size(), decoded, base64_tests[i].plaintext, i); in TEST() 559 EXPECT_EQ(decoded.size(), base64_tests[i].plain_length); in TEST() 560 EXPECT_EQ_ARRAY(decoded.size(), decoded, base64_tests[i].plaintext, i); in TEST() [all …]
|
/external/python/apitools/apitools/base/protorpclite/ |
D | protojson_test.py | 284 decoded = protojson.decode_message( 287 self.assertEquals(decoded.an_integer, 1) 288 self.assertEquals(1, len(decoded.all_unrecognized_fields())) 289 self.assertEquals('unknown_val', decoded.all_unrecognized_fields()[0]) 291 decoded.get_unrecognized_field_info('unknown_val')) 295 decoded = protojson.decode_message( 299 self.assertEquals(decoded.an_integer, 1) 300 self.assertEquals(3, len(decoded.all_unrecognized_fields())) 301 self.assertFalse(1001 in decoded.all_unrecognized_fields()) 302 self.assertTrue('1001' in decoded.all_unrecognized_fields()) [all …]
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
D | DecodeJob.java | 108 Resource<T> decoded = loadFromCache(resultKey.getOriginalKey()); in decodeSourceFromCache() local 112 return transformEncodeAndTranscode(decoded); in decodeSourceFromCache() 127 Resource<T> decoded = decodeSource(); in decodeFromSource() local 128 return transformEncodeAndTranscode(decoded); in decodeFromSource() 136 private Resource<Z> transformEncodeAndTranscode(Resource<T> decoded) { in transformEncodeAndTranscode() argument 138 Resource<T> transformed = transform(decoded); in transformEncodeAndTranscode() 166 Resource<T> decoded = null; in decodeSource() local 176 decoded = decodeFromSourceData(data); in decodeSource() 180 return decoded; in decodeSource() 184 final Resource<T> decoded; in decodeFromSourceData() local [all …]
|
/external/python/cpython2/Modules/ |
D | _codecsmodule.c | 240 PyObject *decoded = NULL; in utf_7_decode() local 247 decoded = PyUnicode_DecodeUTF7Stateful(pbuf.buf, pbuf.len, errors, in utf_7_decode() 250 if (decoded == NULL) in utf_7_decode() 252 return codec_tuple(decoded, consumed); in utf_7_decode() 263 PyObject *decoded = NULL; in utf_8_decode() local 270 decoded = PyUnicode_DecodeUTF8Stateful(pbuf.buf, pbuf.len, errors, in utf_8_decode() 273 if (decoded == NULL) in utf_8_decode() 275 return codec_tuple(decoded, consumed); in utf_8_decode() 287 PyObject *decoded; in utf_16_decode() local 293 decoded = PyUnicode_DecodeUTF16Stateful(pbuf.buf, pbuf.len, errors, in utf_16_decode() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/g722/ |
D | audio_decoder_g722.cc | 36 int16_t* decoded, in DecodeInternal() argument 41 WebRtcG722_Decode(dec_state_, encoded, encoded_len, decoded, &temp_type); in DecodeInternal() 75 int16_t* decoded, in DecodeInternal() argument 84 encoded_len / 2, decoded, &temp_type); in DecodeInternal() 87 encoded_len / 2, &decoded[decoded_len], &temp_type); in DecodeInternal() 92 int16_t temp = decoded[k]; in DecodeInternal() 93 memmove(&decoded[2 * k - ret + 2], &decoded[2 * k - ret + 1], in DecodeInternal() 95 decoded[2 * k - ret + 1] = temp; in DecodeInternal()
|
/external/guava/guava-gwt/test-super/com/google/common/io/super/com/google/common/io/ |
D | BaseEncodingTest.java | 244 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithCasing() argument 245 testEncodingWithSeparators(encoding, decoded, encoded); in testEncodingWithCasing() 246 testEncodingWithSeparators(encoding.upperCase(), decoded, Ascii.toUpperCase(encoded)); in testEncodingWithCasing() local 247 testEncodingWithSeparators(encoding.lowerCase(), decoded, Ascii.toLowerCase(encoded)); in testEncodingWithCasing() local 251 BaseEncoding encoding, String decoded, String encoded) { in testEncodingWithSeparators() argument 252 testEncoding(encoding, decoded, encoded); in testEncodingWithSeparators() 257 testEncoding(encoding.withSeparator(separator, sepLength), decoded, in testEncodingWithSeparators() local 263 private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) { in testEncoding() argument 264 testEncodes(encoding, decoded, encoded); in testEncoding() 265 testDecodes(encoding, encoded, decoded); in testEncoding() [all …]
|
/external/webrtc/webrtc/base/ |
D | urlencode.cc | 156 InternalUrlEncodeString(const std::string & decoded, in InternalUrlEncodeString() argument 159 int needed_length = static_cast<int>(decoded.length()) * 3 + 1; in InternalUrlEncodeString() 161 InternalUrlEncode(decoded.c_str(), buf, needed_length, in InternalUrlEncodeString() 167 UrlEncodeString(const std::string & decoded) { in UrlEncodeString() argument 168 return InternalUrlEncodeString(decoded, true, false); in UrlEncodeString() 172 UrlEncodeStringWithoutEncodingSpaceAsPlus(const std::string & decoded) { in UrlEncodeStringWithoutEncodingSpaceAsPlus() argument 173 return InternalUrlEncodeString(decoded, false, false); in UrlEncodeStringWithoutEncodingSpaceAsPlus() 177 UrlEncodeStringForOnlyUnsafeChars(const std::string & decoded) { in UrlEncodeStringForOnlyUnsafeChars() argument 178 return InternalUrlEncodeString(decoded, false, true); in UrlEncodeStringForOnlyUnsafeChars()
|
/external/python/cpython3/Lib/email/ |
D | quoprimime.py | 241 decoded = '' 246 decoded += eol 254 decoded += c 263 decoded += unquote(line[i:i+3]) 267 decoded += c 271 decoded += eol 273 if encoded[-1] not in '\r\n' and decoded.endswith(eol): 274 decoded = decoded[:-1] 275 return decoded
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | LowerCaseBase16EncodingTest.java | 70 private static void testEncoding(String decoded, String encoded) { in testEncoding() argument 71 testEncodes(decoded, encoded); in testEncoding() 72 testDecodes(encoded, decoded); in testEncoding() 75 private static void testEncodes(String decoded, String encoded) { in testEncodes() argument 76 assertThat(LowerCaseBase16Encoding.encodeToString(decoded.getBytes(CHARSET))) in testEncodes() 80 private static void testDecodes(String encoded, String decoded) { in testDecodes() argument 81 assertThat(LowerCaseBase16Encoding.decodeToBytes(encoded)).isEqualTo(decoded.getBytes(CHARSET)); in testDecodes()
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
D | CssTokens.java | 782 int decoded = readCodepoint(); 783 if (decoded == '\\') { 784 decoded = consumeAndDecodeEscapeSequence(); 789 if (decoded >= 0 && isIdentPart(decoded)) { 791 && '0' <= decoded && decoded <= '9') { 800 sb.appendCodePoint(decoded); 801 last = decoded; 1078 int decoded = ch; 1091 decoded = consumeAndDecodeEscapeSequence(); 1092 if (decoded < 0) { [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ |
D | audio_decoder.cc | 22 int16_t* decoded, SpeechType* speech_type) { in Decode() argument 29 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in Decode() 35 int16_t* decoded, SpeechType* speech_type) { in DecodeRedundant() argument 42 return DecodeRedundantInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundant() 48 int sample_rate_hz, int16_t* decoded, in DecodeRedundantInternal() argument 50 return DecodeInternal(encoded, encoded_len, sample_rate_hz, decoded, in DecodeRedundantInternal() 56 size_t AudioDecoder::DecodePlc(size_t num_frames, int16_t* decoded) { in DecodePlc() argument
|
/external/jsoncpp/src/lib_json/ |
D | json_reader.cpp | 499 Value decoded; in decodeNumber() local 500 if (!decodeNumber(token, decoded)) in decodeNumber() 502 currentValue() = decoded; in decodeNumber() 508 bool Reader::decodeNumber(Token& token, Value& decoded) { in decodeNumber() argument 515 return decodeDouble(token, decoded); in decodeNumber() 542 return decodeDouble(token, decoded); in decodeNumber() 548 decoded = -Value::LargestInt(value); in decodeNumber() 550 decoded = Value::LargestInt(value); in decodeNumber() 552 decoded = value; in decodeNumber() 557 Value decoded; in decodeDouble() local [all …]
|
/external/python/cpython2/Lib/email/ |
D | quoprimime.py | 278 decoded = '' 283 decoded += eol 291 decoded += c 300 decoded += unquote(line[i:i+3]) 304 decoded += c 308 decoded += eol 310 if not encoded.endswith(eol) and decoded.endswith(eol): 311 decoded = decoded[:-1] 312 return decoded
|
D | header.py | 76 decoded = [] 81 decoded.append((line, None)) 88 if decoded and decoded[-1][1] is None: 89 decoded[-1] = (decoded[-1][0] + SPACE + unenc, None) 91 decoded.append((unenc, None)) 112 if decoded and decoded[-1][1] == charset: 113 decoded[-1] = (decoded[-1][0] + dec, decoded[-1][1]) 115 decoded.append((dec, charset)) 117 return decoded
|