Home
last modified time | relevance | path

Searched refs:loads (Results 1 – 25 of 1693) sorted by relevance

12345678910>>...68

/external/python/cpython3/Lib/test/test_json/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
14 rval = self.loads('1', parse_int=float)
19 self.assertEqual(self.loads('{}'), {})
20 self.assertEqual(self.loads('[]'), [])
21 self.assertEqual(self.loads('""'), "")
27 self.assertEqual(self.loads(s), eval(s))
28 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p)
31 od = self.loads(s, object_pairs_hook=OrderedDict)
35 self.assertEqual(self.loads(s, object_pairs_hook=OrderedDict,
39 self.assertEqual(self.loads('{}', object_pairs_hook=OrderedDict),
[all …]
Dtest_unicode.py37 self.assertEqual(self.loads('"' + u + '"'), u)
38 self.assertEqual(self.loads('"z\\ud834\\udd20x"'), u)
44 self.assertEqual(self.loads(s), u)
47 self.assertEqual(type(self.loads('""')), str)
48 self.assertEqual(type(self.loads('"a"')), str)
49 self.assertEqual(type(self.loads('["a"]')[0]), str)
65 self.assertEqual(self.loads(bom + encoded), data)
66 self.assertEqual(self.loads(encoded), data)
67 self.assertRaises(UnicodeDecodeError, self.loads, b'["\x80"]')
72 self.assertEqual(self.loads('"\u2600"'.encode('utf-16-le')),
[all …]
Dtest_enum.py40 self.assertEqual(self.loads(self.dumps(enum)), enum)
47 self.assertEqual(self.loads(self.dumps(enum)), enum)
50 self.assertTrue(isnan(self.loads(self.dumps(enum))))
56 self.assertEqual(self.loads(self.dumps(enum)), enum)
61 self.assertEqual(self.loads(self.dumps(list(BigNum))),
65 self.assertEqual(self.loads(self.dumps(list(FloatNum))),
69 self.assertEqual(self.loads(self.dumps(list(WierdNum)))[:2],
71 self.assertTrue(isnan(self.loads(self.dumps(list(WierdNum)))[2]))
82 nd = self.loads(self.dumps(d))
107 nd = self.loads(self.dumps(d))
Dtest_float.py9 self.assertEqual(self.loads(self.dumps(num)), num)
17 self.assertEqual(self.loads('[23456789012E666]'), [float('inf')])
18 self.assertEqual(self.loads('[-23456789012E666]'), [float('-inf')])
24 self.assertEqual(self.loads(out), [val])
26 res = self.loads(out)
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py9 rval = self.loads('1.1', parse_float=decimal.Decimal)
14 rval = self.loads('1', parse_int=float)
22 rval = self.loads('{ "key" : "value" , "k":"v" }')
26 self.assertEqual(self.loads('{}'), {})
27 self.assertEqual(self.loads('[]'), [])
28 self.assertEqual(self.loads('""'), u"")
29 self.assertIsInstance(self.loads('""'), unicode)
35 self.assertEqual(self.loads(s), eval(s))
36 self.assertEqual(self.loads(s, object_pairs_hook=lambda x: x), p)
39 od = self.loads(s, object_pairs_hook=OrderedDict)
[all …]
Dtest_unicode.py48 self.assertEqual(self.loads('"' + u + '"'), u)
49 self.assertEqual(self.loads('"z\\ud834\\udd20x"'), u)
55 self.assertEqual(self.loads(s), u)
61 self.assertEqual(self.loads(s), eval(s))
62 self.assertEqual(self.loads(s, object_pairs_hook = lambda x: x), p)
63 od = self.loads(s, object_pairs_hook = OrderedDict)
67 self.assertEqual(self.loads(s,
73 self.assertEqual(self.loads(u'{"a": "\xe9"}'.encode('utf-8')),
77 self.assertEqual(type(self.loads(u'""')), unicode)
78 self.assertEqual(type(self.loads(u'"a"')), unicode)
[all …]
Dtest_float.py10 self.assertEqual(self.loads(self.dumps(num)), num)
11 self.assertEqual(self.loads(unicode(self.dumps(num))), num)
17 self.assertEqual(self.loads(self.dumps(num)), num)
18 self.assertEqual(self.loads(unicode(self.dumps(num))), num)
21 self.assertEqual(self.loads('[23456789012E666]'), [float('inf')])
22 self.assertEqual(self.loads('[-23456789012E666]'), [float('-inf')])
28 self.assertEqual(self.loads(out), [val])
30 res = self.loads(out)
44 self.assertEqual(self.loads(self.dumps(val)), val)
Dtest_recursion.py73 self.loads('{"a":' * 100000 + '1' + '}' * 100000)
75 self.loads('{"a":' * 100000 + '[1]' + '}' * 100000)
77 self.loads('[' * 100000 + '1' + ']' * 100000)
80 self.loads(u'{"a":' * 100000 + u'1' + u'}' * 100000)
82 self.loads(u'{"a":' * 100000 + u'[1]' + u'}' * 100000)
84 self.loads(u'[' * 100000 + u'1' + u']' * 100000)
/external/ltp/testcases/kernel/syscalls/sysinfo/
Dsysinfo01.c118 l1 = sys_buf->loads[0] / 60000.0; in main()
119 l2 = sys_buf->loads[1] / 60000.0; in main()
120 l3 = sys_buf->loads[2] / 60000.0; in main()
124 sys_buf->loads[0] = sys_buf->loads[0] / 10; in main()
125 sys_buf->loads[1] = sys_buf->loads[1] / 10; in main()
126 sys_buf->loads[2] = sys_buf->loads[2] / 10; in main()
128 printf("load1 %lu\n", sys_buf->loads[0]); in main()
129 printf("load2 %lu\n", sys_buf->loads[1]); in main()
130 printf("load3 %lu\n", sys_buf->loads[2]); in main()
/external/protobuf/python/google/protobuf/internal/
Djson_format_test.py122 self.assertEqual(json.loads(json_format.MessageToJson(message)),
123 json.loads('{"stringValue": "test", '
155 json.loads(json_format.MessageToJson(message)),
156 json.loads(text))
182 json.loads(json_format.MessageToJson(message, True)),
183 json.loads('{'
223 json.loads(json_format.MessageToJson(message, True)),
224 json.loads('{'
267 json.loads(json_format.MessageToJson(message, True)),
268 json.loads('{'
[all …]
/external/fonttools/Tests/misc/
Dplistlib_test.py142 pl2 = plistlib.loads(data)
162 pl2 = plistlib.loads(data, use_builtin_types=use_builtin_types)
181 pl2 = plistlib.loads(data, use_builtin_types=use_builtin_types)
191 pl2 = plistlib.loads(data, use_builtin_types=use_builtin_types)
198 assert plistlib.loads(plistlib.dumps(data)) == data
205 assert plistlib.loads(plistlib.dumps(data)) == data
210 assert plistlib.loads(plistlib.dumps(data)) == data
219 pl = plistlib.loads(TESTDATA, use_builtin_types=use_builtin_types)
226 pl2 = plistlib.loads(TESTDATA, use_builtin_types=use_builtin_types)
231 pl = plistlib.loads(TESTDATA, use_builtin_types=use_builtin_types)
[all …]
/external/python/cpython3/Lib/test/
Dtest_marshal.py17 new = marshal.loads(marshal.dumps(sample, *extra))
44 got = marshal.loads(s)
51 got = marshal.loads(b'I\xfe\xdc\xba\x98\x76\x54\x32\x10')
53 got = marshal.loads(b'I\x01\x23\x45\x67\x89\xab\xcd\xef')
55 got = marshal.loads(b'I\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f')
57 got = marshal.loads(b'I\xf7\xe6\xd5\xc4\xb3\xa2\x91\x80')
76 got = marshal.loads(s)
80 got = marshal.loads(s)
94 self.helper(marshal.loads(marshal.dumps(s)))
106 new = marshal.loads(marshal.dumps(StopIteration))
[all …]
Dpickletester.py691 self.loads(data)
699 self.assert_is_copy(self._testdata, self.loads(DATA0))
702 self.assert_is_copy(self._testdata, self.loads(DATA1))
705 self.assert_is_copy(self._testdata, self.loads(DATA2))
708 self.assert_is_copy(self._testdata, self.loads(DATA3))
711 self.assert_is_copy(self._testdata, self.loads(DATA4))
733 self.assert_is_copy(X(*args), self.loads(pickle0))
750 self.assert_is_copy(X(*args), self.loads(pickle1))
768 self.assert_is_copy(X(*args), self.loads(pickle2))
773 got = self.loads(data)
[all …]
Dtest_plistlib.py160 pl2 = plistlib.loads(data)
177 pl2 = plistlib.loads(data)
186 pl2 = plistlib.loads(data)
193 self.assertEqual(plistlib.loads(plistlib.dumps(data)), data)
197 self.assertEqual(plistlib.loads(plistlib.dumps(data)), data)
201 self.assertEqual(plistlib.loads(plistlib.dumps(data)), data)
207 pl = plistlib.loads(TESTDATA[fmt],
219 pl2 = plistlib.loads(TESTDATA[fmt], fmt=fmt)
222 pl2 = plistlib.loads(TESTDATA[fmt])
268 pl2 = plistlib.loads(data, dict_type=collections.OrderedDict)
[all …]
Dtest_pickletools.py12 def loads(self, buf, **kwds): member in OptimizedPickleTests
13 return pickle.loads(buf, **kwds)
26 unpickled = pickle.loads(pickled)
31 unpickled2 = pickle.loads(pickled2)
53 unpickled = pickle.loads(pickled)
58 unpickled2 = pickle.loads(pickled2)
/external/python/cpython2/Lib/test/
Dpickletester.py519 self.loads(data)
537 got = self.loads(canned)
546 got = self.loads(data)
580 self.assertEqual(self.loads(p), expected)
602 self.assert_is_copy(X(*args), self.loads(pickle0))
619 self.assert_is_copy(X(*args), self.loads(pickle1))
637 self.assert_is_copy(X(*args), self.loads(pickle2))
653 self.assertRaises(MyErr, self.loads, pickle0)
667 self.assertRaises(MyErr, self.loads, pickle1)
671 self.assertEqual(self.loads("S'a\\x00\\xa0'\n."), 'a\x00\xa0')
[all …]
Dtest_marshal.py21 got = marshal.loads(s)
46 got = marshal.loads(s)
55 new = marshal.loads(marshal.dumps(b))
72 got = marshal.loads(s)
81 got = marshal.loads(s)
85 got = marshal.loads(s)
94 got = marshal.loads(s)
98 got = marshal.loads(s)
114 new = marshal.loads(marshal.dumps(s))
125 new = marshal.loads(marshal.dumps(s))
[all …]
Dtest_xpickle.py43 def loads(self, buf): member in DumpCPickle_LoadPickle
45 return pickle.loads(buf)
55 def loads(self, buf): member in DumpPickle_LoadCPickle
57 return cPickle.loads(buf)
122 def loads(self, input): member in AbstractCompatTests
123 return self.module.loads(input)
144 got = self.loads(pickle)
150 got = self.loads(pickle)
169 u2 = self.loads(p)
Dtest_pickle.py21 def loads(self, buf): member in PickleTests
23 return pickle.loads(buf)
46 def loads(self, buf): member in UnpicklerTests
62 def loads(self, buf): member in PicklerTests
81 def loads(self, buf): member in PersPicklerTests
100 def loads(self, buf): member in PickleBigmemPickleTests
102 return pickle.loads(buf)
Dtest_cpickle.py50 self.loads = cPickle.loads
61 def loads(self, buf): member in cPickleUnpicklerTests
97 def loads(self, buf): member in cPicklePicklerTests
122 def loads(self, *args): member in cPickleListPicklerTests
155 def loads(self, *args): member in cPickleFastPicklerTests
171 b = self.loads(self.dumps(a))
208 def loads(self, buf): member in cPickleBigmemPickleTests
210 return cPickle.loads(buf)
/external/llvm/test/CodeGen/SystemZ/
Dvec-move-02.ll1 ; Test vector loads.
5 ; Test v16i8 loads.
14 ; Test v8i16 loads.
23 ; Test v4i32 loads.
32 ; Test v2i64 loads.
41 ; Test v4f32 loads.
50 ; Test v2f64 loads.
113 ; Test v2i8 loads.
122 ; Test v4i8 loads.
131 ; Test v8i8 loads.
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Dvec-move-02.ll1 ; Test vector loads.
5 ; Test v16i8 loads.
14 ; Test v8i16 loads.
23 ; Test v4i32 loads.
32 ; Test v2i64 loads.
41 ; Test v4f32 loads.
50 ; Test v2f64 loads.
113 ; Test v2i8 loads.
122 ; Test v4i8 loads.
131 ; Test v8i8 loads.
[all …]
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/
Dtrace_event_unittest.py61 log_output = json.loads(f.read() + ']')
84 self.assertEquals(len(json.loads(f.read() + ']')), 1)
96 self.assertEquals(len(json.loads(f.read() + ']')), 1)
99 self.assertEquals(len(json.loads(f.read() + ']')), 2)
104 self.assertEquals(len(json.loads(f.read() + ']')),1)
107 self.assertEquals(len(json.loads(f.read() + ']')), 1)
113 self.assertEquals(len(json.loads(f.read() + ']')), 1)
117 self.assertEquals(len(json.loads(f.read() + ']')), 2)
124 log_output = json.loads(f.read() + ']')
142 log_output = json.loads(f.read() + ']')
[all …]
/external/libhevc/common/arm/
Dihevc_inter_pred_chroma_vert_w16out.s115 ldr r4,[sp,#ht_offset] @loads ht
116 ldr r12,[sp,#coeff_offset] @loads pi1_coeff
118 ldr r6,[sp,#wd_offset] @loads wd
120 vld1.8 {d0},[r12] @loads pi1_coeff
147 vld1.8 {d9},[r6],r2 @loads pu1_src
149 vld1.8 {d5},[r0]! @loads src
151 vld1.8 {d4},[r6],r2 @loads incremented src
153 vld1.8 {d8},[r6],r2 @loads incremented src
156 vld1.8 {d10},[r6] @loads the incremented src
190 vld1.32 {d6[1]},[r6],r2 @loads pu1_src_tmp
[all …]
/external/libchrome/third_party/jinja2/
Didtracking.py36 self.loads = {}
47 self.loads[ident] = load
51 if target in self.loads:
52 return self.loads[target]
73 rv.loads = self.loads.copy()
114 self.loads.update(sym.loads)
126 self.loads[target] = (VAR_LOAD_ALIAS, outer_target)
128 self.loads[target] = (VAR_LOAD_RESOLVE, name)
144 for target, (instr, _) in iteritems(self.loads):

12345678910>>...68