Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 25 of 2007) sorted by relevance

12345678910>>...81

/external/ltp/testcases/kernel/syscalls/ptrace/
Dsimple_tracer.c40 #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/
Dtest_decoder.py30 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/grpc-grpc/third_party/nanopb/tests/alltypes_callback/
Ddecode_alltypes_callback.c227 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/
Ddecode_alltypes_callback.c233 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/swiftshader/third_party/llvm-7.0/llvm/test/MC/Disassembler/PowerPC/
Dppc64-encoding-ext.txt3 # 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/llvm/test/MC/Disassembler/PowerPC/
Dppc64-encoding-ext.txt3 # 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/
Ddecode_alltypes_callback.c224 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/tensorflow/tensorflow/python/kernel_tests/
Ddecode_raw_op_test.py36 decode = parsing_ops.decode_raw(in_bytes, out_type=dtypes.uint8)
37 self.assertEqual([2, None], decode.get_shape().as_list())
39 result = decode.eval(feed_dict={in_bytes: ["A", "a"]})
42 result = decode.eval(feed_dict={in_bytes: ["wer", "XYZ"]})
49 decode.eval(feed_dict={in_bytes: ["short", "longer"]})
55 decode = parsing_ops.decode_raw(in_bytes, out_type=dtypes.int16)
56 self.assertEqual([None, None], decode.get_shape().as_list())
58 result = decode.eval(feed_dict={in_bytes: ["AaBC"]})
65 decode.eval(feed_dict={in_bytes: ["123", "456"]})
84 decode = parsing_ops.decode_raw(in_bytes, out_type=dtypes.float16)
[all …]
/external/python/apitools/samples/storage_sample/storage_v1/
Dstorage_v1.py95 result.fields = FLAGS.fields.decode('utf8')
97 result.key = FLAGS.key.decode('utf8')
99 result.oauth_token = FLAGS.oauth_token.decode('utf8')
103 result.quotaUser = FLAGS.quotaUser.decode('utf8')
105 result.trace = FLAGS.trace.decode('utf8')
107 result.userIp = FLAGS.userIp.decode('utf8')
186 bucket=bucket.decode('utf8'),
187 entity=entity.decode('utf8'),
214 bucket=bucket.decode('utf8'),
215 entity=entity.decode('utf8'),
[all …]
/external/python/apitools/samples/bigquery_sample/bigquery_v2/
Dbigquery_v2.py95 result.fields = FLAGS.fields.decode('utf8')
97 result.key = FLAGS.key.decode('utf8')
99 result.oauth_token = FLAGS.oauth_token.decode('utf8')
103 result.quotaUser = FLAGS.quotaUser.decode('utf8')
105 result.trace = FLAGS.trace.decode('utf8')
107 result.userIp = FLAGS.userIp.decode('utf8')
197 projectId=projectId.decode('utf8'),
198 datasetId=datasetId.decode('utf8'),
225 projectId=projectId.decode('utf8'),
226 datasetId=datasetId.decode('utf8'),
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
DX962NamedCurves.java36 Hex.decode("03188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012")),
38 Hex.decode("3045AE6FC8422f64ED579528D38120EAE12196D5"));
58 Hex.decode("03eea2bae7e1497842f2de7769cfe9c989c072ad696f48034a")),
60 Hex.decode("31a92ee2029fd10d901b113e990710f0d21ac6b6"));
80 Hex.decode("027d29778100c65a1da1783716588dce2b8b4aee8e228f1896")),
82 Hex.decode("c469684435deb378c4b65ca9591e2a5763059a2e"));
102 Hex.decode("020ffa963cdca8816ccc33b8642bedf905c3d358573d3f27fbbd3b3cb9aaaf")),
104 Hex.decode("e43bb460f0b80cc0c0b075798e948060f8321b7d"));
124 Hex.decode("0238af09d98727705120c921bb5e9e26296a3cdcf2f35757a0eafd87b830e7")),
126 Hex.decode("e8b4011604095303ca3b8099982be09fcb9ae616"));
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX962NamedCurves.java34 Hex.decode("03188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012")),
36 Hex.decode("3045AE6FC8422f64ED579528D38120EAE12196D5"));
56 Hex.decode("03eea2bae7e1497842f2de7769cfe9c989c072ad696f48034a")),
58 Hex.decode("31a92ee2029fd10d901b113e990710f0d21ac6b6"));
78 Hex.decode("027d29778100c65a1da1783716588dce2b8b4aee8e228f1896")),
80 Hex.decode("c469684435deb378c4b65ca9591e2a5763059a2e"));
100 Hex.decode("020ffa963cdca8816ccc33b8642bedf905c3d358573d3f27fbbd3b3cb9aaaf")),
102 Hex.decode("e43bb460f0b80cc0c0b075798e948060f8321b7d"));
122 Hex.decode("0238af09d98727705120c921bb5e9e26296a3cdcf2f35757a0eafd87b830e7")),
124 Hex.decode("e8b4011604095303ca3b8099982be09fcb9ae616"));
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DSECNamedCurves.java33 return new BigInteger(1, Hex.decode(hex)); in fromHex()
47 byte[] S = Hex.decode("00F50B028E4D696E676875615175290472783FB1");
54 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
73 byte[] S = Hex.decode("002757A1114D696E6768756151755316C05E0BD4");
80 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
99 byte[] S = Hex.decode("000E0D4D696E6768756151750CC03A4473D03679");
106 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
125 byte[] S = Hex.decode("004D696E67687561517512D8F03431FCE63B88F4");
132 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
171 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
[all …]
/external/python/apitools/samples/dns_sample/dns_v1/
Ddns_v1.py95 result.fields = FLAGS.fields.decode('utf8')
97 result.key = FLAGS.key.decode('utf8')
99 result.oauth_token = FLAGS.oauth_token.decode('utf8')
103 result.quotaUser = FLAGS.quotaUser.decode('utf8')
105 result.trace = FLAGS.trace.decode('utf8')
107 result.userIp = FLAGS.userIp.decode('utf8')
192 project=project.decode('utf8'),
193 managedZone=managedZone.decode('utf8'),
223 project=project.decode('utf8'),
224 managedZone=managedZone.decode('utf8'),
[all …]
/external/python/apitools/samples/fusiontables_sample/fusiontables_v1/
Dfusiontables_v1.py95 result.fields = FLAGS.fields.decode('utf8')
97 result.key = FLAGS.key.decode('utf8')
99 result.oauth_token = FLAGS.oauth_token.decode('utf8')
103 result.quotaUser = FLAGS.quotaUser.decode('utf8')
105 result.trace = FLAGS.trace.decode('utf8')
107 result.userIp = FLAGS.userIp.decode('utf8')
183 tableId=tableId.decode('utf8'),
184 columnId=columnId.decode('utf8'),
209 tableId=tableId.decode('utf8'),
210 columnId=columnId.decode('utf8'),
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/sec/
DSECNamedCurves.java37 return new BigInteger(1, Hex.decode(hex)); in fromHex()
51 byte[] S = Hex.decode("00F50B028E4D696E676875615175290472783FB1");
58 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
77 byte[] S = Hex.decode("002757A1114D696E6768756151755316C05E0BD4");
84 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
103 byte[] S = Hex.decode("000E0D4D696E6768756151750CC03A4473D03679");
110 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
129 byte[] S = Hex.decode("004D696E67687561517512D8F03431FCE63B88F4");
136 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
175 X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
[all …]
/external/python/apitools/samples/servicemanagement_sample/servicemanagement_v1/
Dservicemanagement_v1.py119 result.access_token = FLAGS.access_token.decode('utf8')
123 result.bearer_token = FLAGS.bearer_token.decode('utf8')
125 result.callback = FLAGS.callback.decode('utf8')
127 result.fields = FLAGS.fields.decode('utf8')
129 result.key = FLAGS.key.decode('utf8')
131 result.oauth_token = FLAGS.oauth_token.decode('utf8')
137 result.quotaUser = FLAGS.quotaUser.decode('utf8')
139 result.trace = FLAGS.trace.decode('utf8')
141 result.uploadType = FLAGS.uploadType.decode('utf8')
143 result.upload_protocol = FLAGS.upload_protocol.decode('utf8')
[all …]
/external/python/pyasn1/tests/codec/native/
Dtest_decoder.py26 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/python/apitools/samples/iam_sample/iam_v1/
Diam_v1.py119 result.access_token = FLAGS.access_token.decode('utf8')
123 result.bearer_token = FLAGS.bearer_token.decode('utf8')
125 result.callback = FLAGS.callback.decode('utf8')
127 result.fields = FLAGS.fields.decode('utf8')
129 result.key = FLAGS.key.decode('utf8')
131 result.oauth_token = FLAGS.oauth_token.decode('utf8')
137 result.quotaUser = FLAGS.quotaUser.decode('utf8')
139 result.trace = FLAGS.trace.decode('utf8')
141 result.uploadType = FLAGS.uploadType.decode('utf8')
143 result.upload_protocol = FLAGS.upload_protocol.decode('utf8')
[all …]
/external/python/cpython3/Lib/test/
Dtest_multibytecodec.py32 self.assertEqual(b''.decode(enc), '')
130 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0\xcc\xbd'),
132 self.assertEqual(decoder.decode(b'\xe3 \xb8\xb6\xc0\xbb'),
134 self.assertEqual(decoder.decode(b''), '')
138 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c')
139 self.assertRaises(UnicodeDecodeError, decoder.decode, b'', True)
140 self.assertEqual(decoder.decode(b'\xcc'), '\uc774')
142 self.assertEqual(decoder.decode(b'\xc6\xc4\xc0'), '\ud30c')
143 self.assertRaises(UnicodeDecodeError, decoder.decode,
145 self.assertEqual(decoder.decode(b'\xcc'), '\uc774')
[all …]
Dtest_codecs.py51 part1 = d.decode(s[:i])
60 self.assertTrue(not d.decode(state[0]))
67 part2 = d.decode(s[i:], True)
102 result += d.decode(bytes([c]))
105 self.assertEqual(d.decode(b"", True), "")
112 result += d.decode(bytes([c]))
115 self.assertEqual(d.decode(b"", True), "")
387 self.assertRaises(UnicodeDecodeError, test_sequence.decode,
392 self.assertEqual(test_sequence.decode(self.encoding,
395 self.assertEqual(test_sequence.decode(self.encoding, "ignore"),
[all …]
Dtest_uu.py46 return self.buffer.getvalue().decode(self._encoding, self._errors)
80 uu.decode(inp, out)
88 uu.decode(inp, out)
95 uu.decode(inp, out)
104 uu.decode(inp, out)
131 uu.decode(inp, out, quiet=True)
136 decoded = codecs.decode(encodedtext, "uu_codec")
150 sys.stdin = FakeIO(plaintext.decode("ascii"))
154 encodedtextwrapped(0o666, "t1").decode("ascii"))
157 sys.stdin = FakeIO(encodedtextwrapped(0o666, "t1").decode("ascii"))
[all …]
/external/python/cpython2/Lib/test/
Dtest_multibytecodec.py31 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/v8/src/snapshot/
Dreferences.h70 return SpaceBits::decode(bitfield_) != kSpecialValueSpace || in is_valid()
71 SpecialValueTypeBits::decode(bitfield_) != kInvalidValue; in is_valid()
75 return SpaceBits::decode(bitfield_) <= LAST_SPACE; in is_back_reference()
80 return static_cast<AllocationSpace>(SpaceBits::decode(bitfield_)); in space()
90 return ChunkIndexBits::decode(bitfield_); in chunk_index()
94 DCHECK_EQ(MAP_SPACE, SpaceBits::decode(bitfield_)); in map_index()
99 return SpaceBits::decode(bitfield_) == kSpecialValueSpace && in is_off_heap_backing_store_reference()
100 SpecialValueTypeBits::decode(bitfield_) == kOffHeapBackingStore; in is_off_heap_backing_store_reference()
109 DCHECK_EQ(LO_SPACE, SpaceBits::decode(bitfield_)); in large_object_index()
114 return SpaceBits::decode(bitfield_) == kSpecialValueSpace && in is_attached_reference()
[all …]
/external/python/pyasn1/tests/codec/cer/
Dtest_decoder.py23 assert decoder.decode(ints2octs((1, 1, 255))) == (1, null)
26 assert decoder.decode(ints2octs((1, 1, 0))) == (0, null)
30 decoder.decode(ints2octs((1, 0)))
36 decoder.decode(ints2octs((1, 2, 0, 0)))
42 assert decoder.decode(
47 assert decoder.decode(
56 assert decoder.decode(
61 assert decoder.decode(

12345678910>>...81