Home
last modified time | relevance | path

Searched refs:lst (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/external/libcxx/test/std/containers/sequences/list/list.cons/
Ddeduct.pass.cpp39 std::list lst(std::begin(arr), std::end(arr)); in main() local
41 static_assert(std::is_same_v<decltype(lst), std::list<int>>, ""); in main()
42 assert(std::equal(lst.begin(), lst.end(), std::begin(arr), std::end(arr))); in main()
47 std::list lst(std::begin(arr), std::end(arr), std::allocator<long>()); in main()
48 static_assert(std::is_same_v<decltype(lst)::value_type, long>, ""); in main()
49 assert(lst.size() == 4); in main()
50 auto it = lst.begin(); in main()
64 std::list lst(1, A{}); // list (size_type, T) in main() local
65 static_assert(std::is_same_v<decltype(lst)::value_type, A>, ""); in main()
66 static_assert(std::is_same_v<decltype(lst)::allocator_type, std::allocator<A>>, ""); in main()
[all …]
/external/grpc-grpc/tools/buildgen/plugins/
Dexpand_filegroups.py29 def uniquify(lst): argument
31 for el in lst:
61 for lst in FILEGROUP_LISTS:
62 fg[lst] = fg.get(lst, [])
63 fg['own_%s' % lst] = list(fg[lst])
95 for lst in FILEGROUP_LISTS:
96 vals = cur.get(lst, [])
97 vals.extend(filegroups[uses].get(lst, []))
98 cur[lst] = vals
124 for lst in FILEGROUP_LISTS:
[all …]
/external/fonttools/Lib/fontTools/varLib/
Dmerger.py61 def mergeObjects(self, out, lst, exclude=()): argument
63 assert all(keys == sorted(vars(v).keys()) for v in lst), \
64 (keys, [sorted(vars(v).keys()) for v in lst])
71 values = [getattr(table, key) for table in lst]
78 def mergeLists(self, out, lst): argument
79 assert allEqualTo(out, lst, len), (len(out), [len(v) for v in lst])
80 for i,(value,values) in enumerate(zip(out, zip(*lst))):
87 def mergeThings(self, out, lst): argument
89 assert allEqualTo(out, lst, type), (out, lst)
92 mergerFunc(self, out, lst)
[all …]
/external/fonttools/Lib/fontTools/
Dmerge.py45 def equal(lst): argument
46 lst = list(lst)
47 t = iter(lst)
49 assert all(item == first for item in t), "Expected all items to be equal: %s" % lst
52 def first(lst): argument
53 return next(iter(lst))
55 def recalculate(lst): argument
58 def current_time(lst): argument
61 def bitwise_and(lst): argument
62 return reduce(operator.and_, lst)
[all …]
/external/u-boot/fs/ubifs/
Dmaster.c181 if (c->lst.empty_lebs < 0 || c->lst.empty_lebs > c->main_lebs - 2) { in validate_master()
186 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) { in validate_master()
191 if (c->lst.total_free < 0 || c->lst.total_free > main_sz || in validate_master()
192 c->lst.total_free & 7) { in validate_master()
197 if (c->lst.total_dirty < 0 || (c->lst.total_dirty & 7)) { in validate_master()
202 if (c->lst.total_used < 0 || (c->lst.total_used & 7)) { in validate_master()
207 if (c->lst.total_free + c->lst.total_dirty + in validate_master()
208 c->lst.total_used > main_sz) { in validate_master()
213 if (c->lst.total_dead + c->lst.total_dark + in validate_master()
214 c->lst.total_used + c->bi.old_idx_sz > main_sz) { in validate_master()
[all …]
Dlprops.c540 ubifs_assert(c->lst.empty_lebs >= 0 && in ubifs_change_lp()
541 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp()
544 ubifs_assert(c->lst.taken_empty_lebs >= 0); in ubifs_change_lp()
545 ubifs_assert(c->lst.taken_empty_lebs <= c->lst.empty_lebs); in ubifs_change_lp()
546 ubifs_assert(!(c->lst.total_free & 7) && !(c->lst.total_dirty & 7)); in ubifs_change_lp()
547 ubifs_assert(!(c->lst.total_dead & 7) && !(c->lst.total_dark & 7)); in ubifs_change_lp()
548 ubifs_assert(!(c->lst.total_used & 7)); in ubifs_change_lp()
563 c->lst.taken_empty_lebs -= 1; in ubifs_change_lp()
570 c->lst.total_dead -= old_spc; in ubifs_change_lp()
572 c->lst.total_dark -= ubifs_calc_dark(c, old_spc); in ubifs_change_lp()
[all …]
/external/deqp/modules/gles31/scripts/
Dgenutil.py105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toUint(lst): return [Uint(int(v.x)) for v in lst] argument
118 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
[all …]
/external/deqp/modules/gles3/scripts/
Dgenutil.py105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toUint(lst): return [Uint(int(v.x)) for v in lst] argument
118 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
119 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
120 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
[all …]
/external/python/cpython3/Modules/
D_queuemodule.c20 PyObject *lst; member
36 Py_XDECREF(self->lst); in simplequeue_dealloc()
45 Py_VISIT(self->lst); in simplequeue_traverse()
65 self->lst = PyList_New(0); in simplequeue_new_impl()
73 if (self->lst == NULL) { in simplequeue_new_impl()
101 if (PyList_Append(self->lst, item) < 0) in _queue_SimpleQueue_put_impl()
136 n = PyList_GET_SIZE(self->lst); in simplequeue_pop_item()
139 item = PyList_GET_ITEM(self->lst, self->lst_pos); in simplequeue_pop_item()
141 PyList_SET_ITEM(self->lst, self->lst_pos, Py_None); in simplequeue_pop_item()
146 if (PyList_SetSlice(self->lst, 0, self->lst_pos, NULL)) { in simplequeue_pop_item()
[all …]
/external/deqp/modules/gles2/scripts/
Dgenutil.py105 def shuffled(lst): argument
106 tmp = lst[:]
110 def repeatToLength(lst, toLength): argument
111 return (toLength / len(lst)) * lst + lst[: toLength % len(lst)]
115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst] argument
116 def toInt(lst): return [Scalar(int(v.x)) for v in lst] argument
117 def toBool(lst): return [Scalar(bool(v.x)) for v in lst] argument
118 def toVec4(lst): return [v.toFloat().toVec4() for v in lst] argument
119 def toVec3(lst): return [v.toFloat().toVec3() for v in lst] argument
120 def toVec2(lst): return [v.toFloat().toVec2() for v in lst] argument
[all …]
/external/toybox/toys/pending/
Dvi.c123 struct linelist *lst = text; in write_file() local
129 while (lst) { in write_file()
130 fprintf(fp, "%s\n", lst->line->str_data); in write_file()
131 lst = lst->down; in write_file()
138 struct linelist *lst = c_r;//cursor position or 0 in linelist_load() local
147 lst = (struct linelist*)dlist_add((struct double_list**)&lst, in linelist_load()
149 lst->line->alloc_len = alc; in linelist_load()
150 lst->line->str_len = 0; in linelist_load()
151 lst->line->str_data = line; in linelist_load()
152 text = lst; in linelist_load()
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/
Dfirmware_log.py167 average = lambda lst: float(sum(lst)) / len(lst) argument
168 get_sums = lambda lst: [sum(count) for count in zip(*lst)] argument
169 _pct = lambda lst: float(lst[0]) / lst[1] * 100 argument
177 _missed_pct = lambda lst: (float(lst[1] - lst[0]) / lst[1] * 100 argument
178 if lst[1] != 0 else 0)
183 pct_by_numbers = lambda lst: _pct(get_sums(lst)) argument
192 pct_by_missed_numbers = lambda lst: _missed_pct(get_sums(lst)) argument
198 pct_by_cases_neq = lambda lst: _pct( argument
199 [len([pair for pair in lst if pair[0] != pair[1]]), len(lst)])
207 pct_by_cases_less = lambda lst: _pct( argument
[all …]
/external/python/cpython3/Lib/test/
Dtest_index.py169 lst = list('ab!cdefghi!j')
170 del lst[self.o]
171 del lst[self.n]
172 lst[self.o] = 'X'
173 lst[self.n] = 'Y'
174 self.assertEqual(lst, list('abYdefghXj'))
176 lst = [5, 6, 7, 8, 9, 10, 11]
177 lst.__setitem__(self.n, "here")
178 self.assertEqual(lst, [5, 6, "here", 8, 9, 10, 11])
179 lst.__delitem__(self.n)
[all …]
Dtest_buffer.py176 lst = [0] * n
178 lst[i] = gen_item(fmt, obj)
179 return lst
240 def atomp(lst): argument
242 return not isinstance(lst, list)
244 def listp(lst): argument
245 return isinstance(lst, list)
247 def prod(lst): argument
249 if len(lst) == 0:
251 x = lst[0]
[all …]
/external/catch2/scripts/
DbenchmarkCompile.py8 def median(lst): argument
9 lst = sorted(lst)
10 mid, odd = divmod(len(lst), 2)
12 return lst[mid]
14 return (lst[mid - 1] + lst[mid]) / 2.0
16 def mean(lst): argument
17 return float(sum(lst)) / max(len(lst), 1)
/external/python/cpython2/Lib/test/
Dtest_index.py154 lst = list('ab!cdefghi!j')
155 del lst[self.o]
156 del lst[self.n]
157 lst[self.o] = 'X'
158 lst[self.n] = 'Y'
159 self.assertEqual(lst, list('abYdefghXj'))
161 lst = [5, 6, 7, 8, 9, 10, 11]
162 lst.__setitem__(self.n, "here")
163 self.assertEqual(lst, [5, 6, "here", 8, 9, 10, 11])
164 lst.__delitem__(self.n)
[all …]
/external/toolchain-utils/cros_utils/
Dpstat.py502 def printcc(lst, extra=2): argument
512 if type(lst[0]) not in [ListType, TupleType]:
513 lst = [lst]
515 list2print = copy.deepcopy(lst)
516 for i in range(len(lst)):
517 if lst[i] == [
519 ] or lst[i] == '\n' or lst[i] == 'dashes' or lst[i] == '' or lst[i] == ['']:
529 for row in lst:
582 lst = inlst * 1
583 for i in range(len(lst)):
[all …]
/external/scapy/scapy/modules/
Dvoip.py48 def voip_play(s1, lst=None, **kargs): argument
87 if lst is None:
90 for p in lst:
96 def voip_play1(s1, lst=None, **kargs): argument
99 return voip_play(s1, lst, **kargs)
133 def voip_play3(lst=None,**kargs): argument
146 if lst is None:
149 for p in lst:
/external/python/cpython2/Tools/bgen/bgen/
DbgenGenerator.py191 fmt, lst = self.getargsFormatArgs(sep)
192 Output("if (!PyArg_ParseTuple(_args, \"%s\"%s))", fmt, lst)
204 lst = ""
213 lst = lst + sep + args
214 return fmt, lst
252 fmt, lst = self.mkvalueFormatArgs(sep)
257 Output("_res = Py_BuildValue(\"%s\"%s);", fmt, lst)
267 lst = ""
274 lst = lst + sep + arg.mkvalueArgs()
275 return fmt, lst
/external/skqp/tools/skqp/
Dgn_to_bp.py142 def strip_slashes(lst): argument
143 return {str(p.lstrip('/')) for p in lst}
177 def bpfmt(indent, lst, sort=True): argument
179 lst = sorted(lst)
180 return ('\n' + ' '*indent).join('"%s",' % v for v in lst)
/external/skia/tools/skqp/
Dgn_to_bp.py140 def strip_slashes(lst): argument
141 return {str(p.lstrip('/')) for p in lst}
175 def bpfmt(indent, lst, sort=True): argument
177 lst = sorted(lst)
178 return ('\n' + ' '*indent).join('"%s",' % v for v in lst)
/external/python/cpython2/Lib/test/crashers/
Dmutation_inside_cyclegc.py19 del lst[:]
25 lst = [str(i)] variable
30 while lst:
31 keepalive.append(lst[:])
/external/python/cpython3/Lib/test/crashers/
Dmutation_inside_cyclegc.py19 del lst[:]
25 lst = [str(i)] variable
30 while lst:
31 keepalive.append(lst[:])
/external/swiftshader/third_party/llvm-7.0/llvm/test/TableGen/
Dforeach-multiclass.td70 multiclass B<int x, list<int> lst> {
71 foreach i = lst in {
100 multiclass E<list<int> lst, int x>
102 foreach i = lst in
109 multiclass F<list<int> lst> {
110 foreach i = lst in
111 foreach j = !foldl([]<int>, lst, lhs, x,
/external/python/cpython2/Lib/
Drfc822.py139 self.headers = lst = []
166 lst.append(line)
179 lst.append(line)
244 lst = []
252 lst.append(line)
253 return lst
263 lst = []
272 lst.append(line)
273 return lst
284 lst = self.getfirstmatchingheader(name)
[all …]

12345678910>>...12