/external/llvm-project/libcxx/test/std/containers/sequences/list/list.cons/ |
D | deduct.pass.cpp | 38 std::list lst(std::begin(arr), std::end(arr)); in main() local 40 static_assert(std::is_same_v<decltype(lst), std::list<int>>, ""); in main() 41 assert(std::equal(lst.begin(), lst.end(), std::begin(arr), std::end(arr))); in main() 46 std::list lst(std::begin(arr), std::end(arr), std::allocator<long>()); in main() 47 static_assert(std::is_same_v<decltype(lst)::value_type, long>, ""); in main() 48 assert(lst.size() == 4); in main() 49 auto it = lst.begin(); in main() 63 std::list lst(1, A{}); // list (size_type, T) in main() local 64 static_assert(std::is_same_v<decltype(lst)::value_type, A>, ""); in main() 65 static_assert(std::is_same_v<decltype(lst)::allocator_type, std::allocator<A>>, ""); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.cons/ |
D | deduct.pass.cpp | 39 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/ |
D | expand_filegroups.py | 29 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/rust/crates/grpcio-sys/grpc/tools/buildgen/plugins/ |
D | expand_filegroups.py | 29 def uniquify(lst): argument 31 for el in lst: 62 for lst in FILEGROUP_LISTS: 63 fg[lst] = fg.get(lst, []) 64 fg['own_%s' % lst] = list(fg[lst]) 98 for lst in FILEGROUP_LISTS: 99 vals = cur.get(lst, []) 100 vals.extend(filegroups[uses].get(lst, [])) 101 cur[lst] = vals 129 for lst in FILEGROUP_LISTS: [all …]
|
/external/fonttools/Lib/fontTools/varLib/ |
D | merger.py | 74 def mergeObjects(self, out, lst, exclude=()): argument 77 for item in lst: 81 if not all(keys == sorted(vars(v).keys()) for v in lst): 83 got=[sorted(vars(v).keys()) for v in lst] 91 values = [getattr(table, key) for table in lst] 98 def mergeLists(self, out, lst): argument 99 if not allEqualTo(out, lst, len): 100 raise LengthsDiffer(self, expected=len(out), got=[len(x) for x in lst]) 101 for i,(value,values) in enumerate(zip(out, zip(*lst))): 108 def mergeThings(self, out, lst): argument [all …]
|
/external/fastrpc/inc/ |
D | pls.h | 55 struct PLS* lst; member 84 struct PLS* lst, *next; in pls_thread_deinit() local 85 lst = me->lst; in pls_thread_deinit() 86 me->lst = 0; in pls_thread_deinit() 87 while(lst) { in pls_thread_deinit() 88 next = lst->next; in pls_thread_deinit() 89 if(lst->dtor) { in pls_thread_deinit() 90 FARF(HIGH, "pls dtor %p", lst->dtor); in pls_thread_deinit() 91 lst->dtor((void*)lst->data); in pls_thread_deinit() 93 free(lst); in pls_thread_deinit() [all …]
|
/external/fonttools/Lib/fontTools/ |
D | merge.py | 40 def equal(lst): argument 41 lst = list(lst) 42 t = iter(lst) 44 assert all(item == first for item in t), "Expected all items to be equal: %s" % lst 47 def first(lst): argument 48 return next(iter(lst)) 50 def recalculate(lst): argument 53 def current_time(lst): argument 56 def bitwise_and(lst): argument 57 return reduce(operator.and_, lst) [all …]
|
/external/python/pybind11/tests/ |
D | test_opaque_types.py | 8 lst = m.StringList() 9 lst.push_back("Element 1") 10 lst.push_back("Element 2") 11 assert m.print_opaque_list(lst) == "Opaque list: [Element 1, Element 2]" 12 assert lst.back() == "Element 2" 14 for i, k in enumerate(lst, start=1): 16 lst.pop_back() 17 assert m.print_opaque_list(lst) == "Opaque list: [Element 1]" 22 cvp.stringList = lst
|
D | test_stl.py | 11 lst = m.cast_vector() 12 assert lst == [1] 13 lst.append(2) 14 assert m.load_vector(lst) 15 assert m.load_vector(tuple(lst)) 29 lst = m.cast_deque() 30 assert lst == [1] 31 lst.append(2) 32 assert m.load_deque(lst) 33 assert m.load_deque(tuple(lst)) [all …]
|
D | test_call_policies.py | 96 lst = [p] 97 lst.append(lst) # creates a circular reference 99 del p, lst 118 lst = [p] 119 lst.append(lst) # creates a circular reference 121 del p, lst 143 lst = [p] 144 lst.append(lst) # creates a circular reference 146 del p, lst
|
/external/llvm-project/llvm/test/MC/VE/ |
D | VFMAX.s | 14 # CHECK-INST: vfrmax.d.lst %vix, %v22, %vm15 16 vfrmax.d.lst %vix, %v22, %vm15 18 # CHECK-INST: vfrmax.s.lst %v63, %v60, %vm2 20 vfrmax.s.lst %v63, %v60, %vm2 26 # CHECK-INST: vfrmax.s.lst %vix, %vix, %vm2 28 vfrmax.s.lst %vix, %vix, %vm2 38 # CHECK-INST: vfrmin.d.lst %vix, %v22, %vm15 40 vfrmin.d.lst %vix, %v22, %vm15 42 # CHECK-INST: vfrmin.s.lst %v63, %v60, %vm2 44 vfrmin.s.lst %v63, %v60, %vm2 [all …]
|
D | VMAXS.s | 14 # CHECK-INST: vrmaxs.w.lst.sx %vix, %v22, %vm15 16 vrmaxs.w.lst.sx %vix, %v22, %vm15 18 # CHECK-INST: vrmaxs.w.lst.zx %v63, %v60, %vm2 20 vrmaxs.w.lst.zx %v63, %v60, %vm2 26 # CHECK-INST: vrmaxs.w.lst.zx %vix, %vix, %vm2 28 vrmaxs.w.lst.zx %vix, %vix, %vm2 38 # CHECK-INST: vrmins.w.lst.sx %vix, %v22, %vm15 40 vrmins.w.lst.sx %vix, %v22, %vm15 42 # CHECK-INST: vrmins.w.lst.zx %v63, %v60, %vm2 44 vrmins.w.lst.zx %v63, %v60, %vm2 [all …]
|
D | VMAXX.s | 14 # CHECK-INST: vrmaxs.l.lst %vix, %v22, %vm15 16 vrmaxs.l.lst %vix, %v22, %vm15 18 # CHECK-INST: vrmins.l.lst %v63, %v60, %vm2 20 vrmins.l.lst %v63, %v60, %vm2 26 # CHECK-INST: vrmins.l.lst %vix, %vix, %vm2 28 vrmins.l.lst %vix, %vix, %vm2
|
/external/python/cpython3/Modules/ |
D | _queuemodule.c | 19 PyObject *lst; member 35 Py_XDECREF(self->lst); in simplequeue_dealloc() 44 Py_VISIT(self->lst); in simplequeue_traverse() 64 self->lst = PyList_New(0); in simplequeue_new_impl() 72 if (self->lst == NULL) { in simplequeue_new_impl() 100 if (PyList_Append(self->lst, item) < 0) in _queue_SimpleQueue_put_impl() 135 n = PyList_GET_SIZE(self->lst); in simplequeue_pop_item() 138 item = PyList_GET_ITEM(self->lst, self->lst_pos); in simplequeue_pop_item() 140 PyList_SET_ITEM(self->lst, self->lst_pos, Py_None); in simplequeue_pop_item() 145 if (PyList_SetSlice(self->lst, 0, self->lst_pos, NULL)) { in simplequeue_pop_item() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_list.py | 64 lst = [4, 5, 6, 7] 65 n = int((sys.maxsize*2+2) // len(lst)) 68 self.assertRaises((MemoryError, OverflowError), mul, lst, n) 69 self.assertRaises((MemoryError, OverflowError), imul, lst, n) 205 lst.clear() 208 lst = [X()] 210 lst.index(lst) 217 lst = L([X()]) 218 lst.count(lst) 220 lst = L([X()]) [all …]
|
D | test_index.py | 169 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 …]
|
/external/deqp/modules/gles31/scripts/ |
D | genutil.py | 105 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/ |
D | genutil.py | 105 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/gles2/scripts/ |
D | genutil.py | 105 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/catch2/scripts/ |
D | benchmarkCompile.py | 8 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/webrtc/rtc_tools/py_event_log_analyzer/ |
D | misc.py | 69 lst = data[:] 71 lst[i] = lst[i - 1] + (lst[i] - lst[i - 1] + 73 return lst
|
/external/python/jinja/tests/ |
D | test_runtime.py | 19 lst = [10] 21 assert excepted_render == t.render(lst=lst) 26 lst = [10] 28 assert excepted_render == t.render(lst=lst)
|
/external/python/cpython2/Lib/test/ |
D | test_index.py | 154 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/scapy/scapy/modules/ |
D | voip.py | 48 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/fastrpc/src/ |
D | platform_libs.c | 69 static int pl_init_lst(struct platform_lib* (*lst[])(void)) { in pl_init_lst() 72 for(ii = 0; lst[ii] != 0; ++ii) { in pl_init_lst() 73 nErr = pl_lib_init(lst[ii]); in pl_init_lst() 89 static void pl_deinit_lst(struct platform_lib* (*lst[])(void)) { in pl_deinit_lst() 91 for(size = 0; lst[size] != 0; ++size) {;} in pl_deinit_lst() 93 pl_lib_deinit(lst[ii]); in pl_deinit_lst()
|