/external/ltp/testcases/kernel/syscalls/ptrace/ |
D | simple_tracer.c | 40 #define decode(reg) _decode(#reg, pt->reg) macro 48 decode(p0); in decode_regs() 49 decode(r0); in decode_regs() 50 decode(r1); in decode_regs() 51 decode(r2); in decode_regs() 52 decode(r3); in decode_regs() 53 decode(r4); in decode_regs() 54 decode(r5); in decode_regs() 59 decode(eax); in decode_regs() 60 decode(ebx); in decode_regs() [all …]
|
/external/python/pyasn1/tests/codec/ber/ |
D | test_decoder.py | 30 assert decoder.decode(ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1))) == (1, null) 33 assert decoder.decode(ints2octs((0x1f, 2, 1, 0)))[0].tagSet == univ.Integer.tagSet 37 …assert decoder.decode(ints2octs((0x9f, 0x80, 0x00, 0x02, 0x01, 0x02)), asn1Spec=integer) == decode… 43 … assert decoder.decode(ints2octs((0x1f, 2, 1, 0))) == decoder.decode(ints2octs((0x1f, 2, 1, 0))) 48 assert decoder.decode(ints2octs((2, 1, 12))) == (12, null) 51 assert decoder.decode(ints2octs((2, 1, 244))) == (-12, null) 54 assert decoder.decode(ints2octs((2, 0))) == (0, null) 57 assert decoder.decode(ints2octs((2, 1, 0))) == (0, null) 60 assert decoder.decode(ints2octs((2, 1, 255))) == (-1, null) 63 assert decoder.decode( [all …]
|
/external/rust/crates/tokio-util/tests/ |
D | codecs.rs | 12 assert_eq!("abc", codec.decode(buf).unwrap().unwrap()); in bytes_decoder() 13 assert_eq!(None, codec.decode(buf).unwrap()); in bytes_decoder() 14 assert_eq!(None, codec.decode(buf).unwrap()); in bytes_decoder() 16 assert_eq!("a", codec.decode(buf).unwrap().unwrap()); in bytes_decoder() 52 assert_eq!("line 1", codec.decode(buf).unwrap().unwrap()); in lines_decoder() 53 assert_eq!("line 2", codec.decode(buf).unwrap().unwrap()); in lines_decoder() 54 assert_eq!("line 3", codec.decode(buf).unwrap().unwrap()); in lines_decoder() 55 assert_eq!("", codec.decode(buf).unwrap().unwrap()); in lines_decoder() 56 assert_eq!(None, codec.decode(buf).unwrap()); in lines_decoder() 59 assert_eq!(None, codec.decode(buf).unwrap()); in lines_decoder() [all …]
|
/external/pigweed/pw_tokenizer/py/ |
D | decode_test.py | 23 from pw_tokenizer import decode 41 self.assertEqual(decode.decode(fmt, encoded, True), decoded) 46 decode.decode('Why, %c', b'\x01', True), 51 decode.decode('%sXY%+ldxy%u', b'\x83N\x80!\x01\x02', True), 60 decode.decode('%s%lld%9u', b'\x82$\x80\x80', True), 69 decode.decode('%c', b'\xff\xff\xff\xff\x0f', True), 74 self.assertEqual(decode.decode('Why, %c', b'\x01'), 'Why, %c') 76 self.assertEqual(decode.decode('%s %d', b'\x01!'), '! %d') 81 decode.decode('Hello: %p', b'\x00', True), 'Hello: 0x00000000' 84 decode.decode('%p%d%d', b'\x02\x80', True), [all …]
|
/external/grpc-grpc/third_party/nanopb/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 227 alltypes.req_int32.funcs.decode = &read_varint; in check_alltypes() 230 alltypes.req_int64.funcs.decode = &read_varint; in check_alltypes() 233 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes() 236 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes() 239 alltypes.req_uint64.funcs.decode = &read_varint; in check_alltypes() 242 alltypes.req_sint32.funcs.decode = &read_svarint; in check_alltypes() 245 alltypes.req_sint64.funcs.decode = &read_svarint; in check_alltypes() 248 alltypes.req_bool.funcs.decode = &read_varint; in check_alltypes() 251 alltypes.req_fixed32.funcs.decode = &read_fixed32; in check_alltypes() 254 alltypes.req_sfixed32.funcs.decode = &read_fixed32; in check_alltypes() [all …]
|
/external/nanopb-c/tests/alltypes_callback/ |
D | decode_alltypes_callback.c | 233 alltypes.req_int32.funcs.decode = &read_varint; in check_alltypes() 236 alltypes.req_int64.funcs.decode = &read_varint; in check_alltypes() 239 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes() 242 alltypes.req_uint32.funcs.decode = &read_varint; in check_alltypes() 245 alltypes.req_uint64.funcs.decode = &read_varint; in check_alltypes() 248 alltypes.req_sint32.funcs.decode = &read_svarint; in check_alltypes() 251 alltypes.req_sint64.funcs.decode = &read_svarint; in check_alltypes() 254 alltypes.req_bool.funcs.decode = &read_varint; in check_alltypes() 257 alltypes.req_fixed32.funcs.decode = &read_fixed32; in check_alltypes() 260 alltypes.req_sfixed32.funcs.decode = &read_fixed32; in check_alltypes() [all …]
|
/external/llvm/test/MC/Disassembler/PowerPC/ |
D | ppc64-encoding-ext.txt | 3 # FIXME: decode as beqlr 0 7 # FIXME: decode as beqlr 1 11 # FIXME: decode as beqlr 2 15 # FIXME: decode as beqlr 3 19 # FIXME: decode as beqlr 4 23 # FIXME: decode as beqlr 5 27 # FIXME: decode as beqlr 6 31 # FIXME: decode as beqlr 7 299 # FIXME: decode as bltlr 2 303 # FIXME: decode as bltlr 0 [all …]
|
/external/nanopb-c/tests/alltypes_proto3_callback/ |
D | decode_alltypes_callback.c | 224 alltypes.rep_int32.funcs.decode = &read_repeated_varint; in check_alltypes() 227 alltypes.rep_int64.funcs.decode = &read_repeated_varint; in check_alltypes() 230 alltypes.rep_uint32.funcs.decode = &read_repeated_varint; in check_alltypes() 233 alltypes.rep_uint64.funcs.decode = &read_repeated_varint; in check_alltypes() 236 alltypes.rep_sint32.funcs.decode = &read_repeated_svarint; in check_alltypes() 239 alltypes.rep_sint64.funcs.decode = &read_repeated_svarint; in check_alltypes() 242 alltypes.rep_bool.funcs.decode = &read_repeated_varint; in check_alltypes() 245 alltypes.rep_fixed32.funcs.decode = &read_repeated_fixed32; in check_alltypes() 248 alltypes.rep_sfixed32.funcs.decode = &read_repeated_fixed32; in check_alltypes() 251 alltypes.rep_float.funcs.decode = &read_repeated_fixed32; in check_alltypes() [all …]
|
/external/openthread/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_base64.data | 91 Base64 decode (Illegal character) 94 Base64 decode (Too much equal signs) 97 Base64 decode (Invalid char after equal signs) 100 Base64 decode (Space inside string) 103 Base64 decode "Zm9vYmFy" (no newline nor '\0' at end) 106 Base64 decode "Zm9vYmFy\n" (LF at end) 109 Base64 decode "Zm9vYmFy\r\n" (CRLF at end) 112 Base64 decode "Zm9vYmFy\r" (CR at end) 115 Base64 decode "Zm9vYmFy " (SP at end) 118 Base64 decode "Zm9vYmFy \n" (SP+LF at end) [all …]
|
/external/mbedtls/tests/suites/ |
D | test_suite_base64.data | 91 Base64 decode (Illegal character) 94 Base64 decode (Too much equal signs) 97 Base64 decode (Invalid char after equal signs) 100 Base64 decode (Space inside string) 103 Base64 decode "Zm9vYmFy" (no newline nor '\0' at end) 106 Base64 decode "Zm9vYmFy\n" (LF at end) 109 Base64 decode "Zm9vYmFy\r\n" (CRLF at end) 112 Base64 decode "Zm9vYmFy\r" (CR at end) 115 Base64 decode "Zm9vYmFy " (SP at end) 118 Base64 decode "Zm9vYmFy \n" (SP+LF at end) [all …]
|
/external/rust/crates/protobuf-json-mapping/src/ |
D | base64.rs | 87 pub fn decode(input: &str) -> Result<Vec<u8>, FromBase64Error> { in decode() function 190 assert_eq!(decode("").unwrap(), b""); in test_decode_basic() 191 assert_eq!(decode("Zg==").unwrap(), b"f"); in test_decode_basic() 192 assert_eq!(decode("Zm8=").unwrap(), b"fo"); in test_decode_basic() 193 assert_eq!(decode("Zm9v").unwrap(), b"foo"); in test_decode_basic() 194 assert_eq!(decode("Zm9vYg==").unwrap(), b"foob"); in test_decode_basic() 195 assert_eq!(decode("Zm9vYmE=").unwrap(), b"fooba"); in test_decode_basic() 196 assert_eq!(decode("Zm9vYmFy").unwrap(), b"foobar"); in test_decode_basic() 201 assert_eq!(decode("Zm9vYmFy").unwrap(), b"foobar"); in test_decode() 206 assert_eq!(decode("Zm9v\r\nYmFy").unwrap(), b"foobar"); in test_decode_newlines() [all …]
|
/external/pigweed/pw_tokenizer/ts/ |
D | printf_decoder_test.ts | 45 expect(printfDecoder.decode('Hello %s', argFromString('Computer'))).toEqual( 49 printfDecoder.decode( 58 printfDecoder.decode( 71 .decode(testcase[0], argFromStringBinary(testcase[4]))) 77 .decode(testcase[2], argFromStringBinary(testcase[4]))) 84 printfDecoder.decode( 93 expect(printfDecoder.decode('Number %d', arg)).toEqual('Number -32768'); 95 printfDecoder.decode('Numbers %u and %d', argsConcat(arg, arg)) 97 expect(printfDecoder.decode('Growth is %u%', arg)).toEqual( 104 printfDecoder.decode('Battery: 100%c', argFromStringBinary('\x4a')) [all …]
|
/external/python/pyasn1/tests/codec/cer/ |
D | test_decoder.py | 27 assert decoder.decode(ints2octs((1, 1, 255))) == (1, null) 30 assert decoder.decode(ints2octs((1, 1, 0))) == (0, null) 34 decoder.decode(ints2octs((1, 0))) 40 decoder.decode(ints2octs((1, 2, 0, 0))) 46 assert decoder.decode( 51 assert decoder.decode( 60 assert decoder.decode( 65 assert decoder.decode( 87 s, r = decoder.decode( 97 s, r = decoder.decode( [all …]
|
/external/starlark-go/starlark/testdata/ |
D | json.star | 6 assert.eq(dir(json), ["decode", "encode", "indent"]) 40 ## json.decode 42 assert.eq(json.decode("null"), None) 43 assert.eq(json.decode("true"), True) 44 assert.eq(json.decode("false"), False) 45 assert.eq(json.decode("-123"), -123) 46 assert.eq(json.decode("-0"), -0) 47 assert.eq(json.decode("3539537889086624823140625"), 3539537889086624823140625) 48 assert.eq(json.decode("3539537889086624823140625.0"), float(3539537889086624823140625)) 49 assert.eq(json.decode("3.539537889086625e+24"), 3.539537889086625e+24) [all …]
|
/external/python/pyasn1/tests/codec/der/ |
D | test_decoder.py | 28 assert decoder.decode( 34 decoder.decode( 44 assert decoder.decode( 55 assert decoder.decode( 61 decoder.decode( 71 decoder.decode( 95 s, r = decoder.decode( 104 s, r = decoder.decode( 114 s, r = decoder.decode( 126 s, r = decoder.decode( [all …]
|
/external/rust/crates/coset/src/key/ |
D | tests.rs | 176 hex::decode("6b4ad240073b99cad65ab8417ce29c6844ad0ae77ce8b3f7e41233f5b9129465") in test_cose_key_encode() 178 hex::decode("a7dc1c39391ab300f7b1787b6e569a031dd0750fe2509b880a41f06666fff785") in test_cose_key_encode() 196 hex::decode("aabbcc").unwrap(), in test_cose_key_encode() 221 keyset_data.extend_from_slice(&hex::decode(key_data).unwrap()); in test_cose_key_encode() 238 … hex::decode("65eda5a12577c2bae829437fe338701a10aaa375e1bb5b5de108de439c08551d").unwrap(), in test_rfc8152_public_cose_key_decode() 239 … hex::decode("1e52ed75701163f7f9e40ddf9f341b3dc9ba860af7e0ca7ca7e9eecd0084d19c").unwrap(), in test_rfc8152_public_cose_key_decode() 253 … hex::decode("bac5b11cad8f99f9c72b05cf4b9e26d244dc189f745228255a219a86d6a09eff").unwrap(), in test_rfc8152_public_cose_key_decode() 254 … hex::decode("20138bf82dc1b6d562be0fa54ab7804a3a64b6d72ccfed6b6fb6ed28bbfc117e").unwrap(), in test_rfc8152_public_cose_key_decode() 267 …hex::decode("0072992cb3ac08ecf3e5c63dedec0d51a8c1f79ef2f82f94f3c737bf5de7986671eac625fe8257bbd0394… in test_rfc8152_public_cose_key_decode() 268 …hex::decode("01dca6947bce88bc5790485ac97427342bc35f887d86d65a089377e247e60baa55e4e8501e2ada5724ac5… in test_rfc8152_public_cose_key_decode() [all …]
|
/external/python/pyasn1/tests/codec/native/ |
D | test_decoder.py | 26 decoder.decode('', asn1Spec='not an Asn1Item') 35 assert decoder.decode(12, asn1Spec=univ.Integer()) == univ.Integer(12) 38 assert decoder.decode(-12, asn1Spec=univ.Integer()) == univ.Integer(-12) 43 assert decoder.decode(True, asn1Spec=univ.Boolean()) == univ.Boolean(True) 46 assert decoder.decode(False, asn1Spec=univ.Boolean()) == univ.Boolean(False) 51 … assert decoder.decode('11111111', asn1Spec=univ.BitString()) == univ.BitString(hexValue='ff') 56 …assert decoder.decode('Quick brown fox', asn1Spec=univ.OctetString()) == univ.OctetString('Quick b… 61 assert decoder.decode(None, asn1Spec=univ.Null()) == univ.Null('') 66 …assert decoder.decode('1.3.6.11', asn1Spec=univ.ObjectIdentifier()) == univ.ObjectIdentifier('1.3.… 71 assert decoder.decode(1.33, asn1Spec=univ.Real()) == univ.Real(1.33) [all …]
|
/external/crosvm/common/p9/src/protocol/ |
D | messages.rs | 247 fn decode<R: Read>(reader: &mut R) -> io::Result<Self> { in decode() method 248 let byte_size: u32 = WireFormat::decode(reader)?; in decode() 265 let tag: u16 = WireFormat::decode(reader)?; in decode() 275 TVERSION => Ok(Tmessage::Version(WireFormat::decode(reader)?)), in decode_message() 276 TFLUSH => Ok(Tmessage::Flush(WireFormat::decode(reader)?)), in decode_message() 277 TWALK => Ok(Tmessage::Walk(WireFormat::decode(reader)?)), in decode_message() 278 TREAD => Ok(Tmessage::Read(WireFormat::decode(reader)?)), in decode_message() 279 TWRITE => Ok(Tmessage::Write(WireFormat::decode(reader)?)), in decode_message() 280 TCLUNK => Ok(Tmessage::Clunk(WireFormat::decode(reader)?)), in decode_message() 281 TREMOVE => Ok(Tmessage::Remove(WireFormat::decode(reader)?)), in decode_message() [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_multibytecodec.py | 31 self.assertEqual(''.decode(enc), u'') 122 self.assertEqual(decoder.decode('\xc6\xc4\xc0\xcc\xbd'), 124 self.assertEqual(decoder.decode('\xe3 \xb8\xb6\xc0\xbb'), 126 self.assertEqual(decoder.decode(''), u'') 130 self.assertEqual(decoder.decode('\xc6\xc4\xc0'), u'\ud30c') 131 self.assertRaises(UnicodeDecodeError, decoder.decode, '', True) 132 self.assertEqual(decoder.decode('\xcc'), u'\uc774') 134 self.assertEqual(decoder.decode('\xc6\xc4\xc0'), u'\ud30c') 135 self.assertRaises(UnicodeDecodeError, decoder.decode, '\xcc\xbd', True) 136 self.assertEqual(decoder.decode('\xcc'), u'\uc774') [all …]
|
/external/tcpdump/ |
D | print-esp.c | 421 char *decode, struct sa_list *sa) in espprint_decode_encalgo() argument 428 colon = strchr(decode, ':'); in espprint_decode_encalgo() 430 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode); in espprint_decode_encalgo() 435 if (strlen(decode) > strlen("-hmac96") && in espprint_decode_encalgo() 436 !strcmp(decode + strlen(decode) - strlen("-hmac96"), in espprint_decode_encalgo() 438 p = strstr(decode, "-hmac96"); in espprint_decode_encalgo() 442 if (strlen(decode) > strlen("-cbc") && in espprint_decode_encalgo() 443 !strcmp(decode + strlen(decode) - strlen("-cbc"), "-cbc")) { in espprint_decode_encalgo() 444 p = strstr(decode, "-cbc"); in espprint_decode_encalgo() 447 evp = EVP_get_cipherbyname(decode); in espprint_decode_encalgo() [all …]
|
/external/cronet/third_party/protobuf/ruby/tests/ |
D | encode_decode_test.rb | 19 m = A::B::C::TestMessage.decode(from) 29 m = A::B::C::TestMessage.decode(from) 39 m = A::B::C::TestMessage.decode(from) 49 m = A::B::C::TestMessage.decode(from) 59 m = A::B::C::TestMessage.decode(from) 118 msg_out = A::B::C::TestMessage.decode(msg_encoded) 122 A::B::C::TestMessage.decode(msg_encoded, { recursion_limit: 4 }) 125 msg_out = A::B::C::TestMessage.decode(msg_encoded, { recursion_limit: 5 }) 143 msg_out = A::B::C::TestMessage.decode(msg_encoded) 151 msg_out = A::B::C::TestMessage.decode(msg_encoded)
|
/external/protobuf/ruby/tests/ |
D | encode_decode_test.rb | 19 m = A::B::C::TestMessage.decode(from) 29 m = A::B::C::TestMessage.decode(from) 39 m = A::B::C::TestMessage.decode(from) 49 m = A::B::C::TestMessage.decode(from) 59 m = A::B::C::TestMessage.decode(from) 118 msg_out = A::B::C::TestMessage.decode(msg_encoded) 122 A::B::C::TestMessage.decode(msg_encoded, { recursion_limit: 4 }) 125 msg_out = A::B::C::TestMessage.decode(msg_encoded, { recursion_limit: 5 }) 143 msg_out = A::B::C::TestMessage.decode(msg_encoded) 151 msg_out = A::B::C::TestMessage.decode(msg_encoded)
|
/external/python/cpython3/Lib/test/ |
D | test_codecs.py | 78 part1 = d.decode(s[:i]) 87 self.assertTrue(not d.decode(state[0])) 94 part2 = d.decode(s[i:], True) 129 result += d.decode(bytes([c])) 132 self.assertEqual(d.decode(b"", True), "") 139 result += d.decode(bytes([c])) 142 self.assertEqual(d.decode(b"", True), "") 414 self.assertRaises(UnicodeDecodeError, test_sequence.decode, 419 self.assertEqual(test_sequence.decode(self.encoding, 422 self.assertEqual(test_sequence.decode(self.encoding, "ignore"), [all …]
|
D | test_multibytecodec.py | 37 self.assertEqual(b''.decode(enc), '') 235 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0\xcc\xbd'), 237 self.assertEqual(decoder.decode(b'\xe3 \xb8\xb6\xc0\xbb'), 239 self.assertEqual(decoder.decode(b''), '') 243 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c') 244 self.assertRaises(UnicodeDecodeError, decoder.decode, b'', True) 245 self.assertEqual(decoder.decode(b'\xcc'), '\uc774') 247 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c') 248 self.assertRaises(UnicodeDecodeError, decoder.decode, 250 self.assertEqual(decoder.decode(b'\xcc'), '\uc774') [all …]
|
/external/nanopb-c/tests/callbacks/ |
D | decode_callbacks.c | 73 testmessage.submsg.stringvalue.funcs.decode = &print_string; in main() 75 testmessage.submsg.int32value.funcs.decode = &print_int32; in main() 77 testmessage.submsg.fixed32value.funcs.decode = &print_fixed32; in main() 79 testmessage.submsg.fixed64value.funcs.decode = &print_fixed64; in main() 82 testmessage.stringvalue.funcs.decode = &print_string; in main() 84 testmessage.int32value.funcs.decode = &print_int32; in main() 86 testmessage.fixed32value.funcs.decode = &print_fixed32; in main() 88 testmessage.fixed64value.funcs.decode = &print_fixed64; in main() 90 testmessage.repeatedstring.funcs.decode = &print_string; in main()
|