Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 232) sorted by relevance

12345678910

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
D_weakrefset.py38 def _remove(item, selfref=ref(self)): argument
42 self._pending_removals.append(item)
44 self.data.discard(item)
61 item = itemref()
62 if item is not None:
63 yield item
68 def __contains__(self, item): argument
70 wr = ref(item)
81 def add(self, item): argument
84 self.data.add(ref(item, self._remove))
[all …]
DUserList.py29 def __contains__(self, item): return item in self.data argument
32 def __setitem__(self, i, item): self.data[i] = item argument
76 def append(self, item): self.data.append(item) argument
77 def insert(self, i, item): self.data.insert(i, item) argument
79 def remove(self, item): self.data.remove(item) argument
80 def count(self, item): return self.data.count(item) argument
81 def index(self, item, *args): return self.data.index(item, *args) argument
DQueue.py107 def put(self, item, block=True, timeout=None): argument
136 self._put(item)
142 def put_nowait(self, item): argument
148 return self.put(item, False)
178 item = self._get()
180 return item
204 def _put(self, item): argument
205 self.queue.append(item)
224 def _put(self, item, heappush=heapq.heappush): argument
225 heappush(self.queue, item)
[all …]
Dheapq.py141 def heappush(heap, item): argument
143 heap.append(item)
157 def heapreplace(heap, item): argument
169 heap[0] = item
173 def heappushpop(heap, item): argument
175 if heap and cmp_lt(heap[0], item):
176 item, heap[0] = heap[0], item
178 return item
434 for item in data:
435 heappush(heap, item)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
D_weakrefset.py38 def _remove(item, selfref=ref(self)): argument
42 self._pending_removals.append(item)
44 self.data.discard(item)
61 item = itemref()
62 if item is not None:
65 yield item
70 def __contains__(self, item): argument
72 wr = ref(item)
83 def add(self, item): argument
86 self.data.add(ref(item, self._remove))
[all …]
Dheapq.py140 def heappush(heap, item): argument
142 heap.append(item)
156 def heapreplace(heap, item): argument
168 heap[0] = item
172 def heappushpop(heap, item): argument
174 if heap and cmp_lt(heap[0], item):
175 item, heap[0] = heap[0], item
177 return item
190 def _heappushpop_max(heap, item): argument
192 if heap and cmp_lt(item, heap[0]):
[all …]
/device/google/contexthub/firmware/os/inc/
Dlist.h41 static inline void list_add_tail(struct link_t *list, struct link_t *item) in list_add_tail() argument
46 item->prev = list->prev; in list_add_tail()
47 item->next = list; in list_add_tail()
48 list->prev->next = item; in list_add_tail()
49 list->prev = item; in list_add_tail()
52 static inline void list_delete(struct link_t *item) in list_delete() argument
54 item->prev->next = item->next; in list_delete()
55 item->next->prev = item->prev; in list_delete()
56 item->next = item->prev = item; in list_delete()
/device/google/marlin/camera/QCamera2/stack/common/
Dcam_list.h53 static inline void cam_list_add_tail_node(struct cam_list *item, in cam_list_add_tail_node() argument
58 head->prev = item; in cam_list_add_tail_node()
59 item->next = head; in cam_list_add_tail_node()
60 item->prev = prev; in cam_list_add_tail_node()
61 prev->next = item; in cam_list_add_tail_node()
64 static inline void cam_list_insert_before_node(struct cam_list *item, in cam_list_insert_before_node() argument
67 item->next = node; in cam_list_insert_before_node()
68 item->prev = node->prev; in cam_list_insert_before_node()
69 item->prev->next = item; in cam_list_insert_before_node()
70 node->prev = item; in cam_list_insert_before_node()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_bisectmodule.c9 internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) in internal_bisect_right() argument
28 res = PyObject_RichCompareBool(item, litem, Py_LT); in internal_bisect_right()
43 PyObject *list, *item; in bisect_right() local
50 keywords, &list, &item, &lo, &hi)) in bisect_right()
52 index = internal_bisect_right(list, item, lo, hi); in bisect_right()
73 PyObject *list, *item, *result; in insort_right() local
80 keywords, &list, &item, &lo, &hi)) in insort_right()
82 index = internal_bisect_right(list, item, lo, hi); in insort_right()
86 if (PyList_Insert(list, index, item) < 0) in insort_right()
90 index, item); in insort_right()
[all …]
D_collectionsmodule.c162 PyObject *item; in deque_pop() local
169 item = deque->rightblock->data[deque->rightindex]; in deque_pop()
190 return item; in deque_pop()
198 PyObject *item; in deque_popleft() local
206 item = deque->leftblock->data[deque->leftindex]; in deque_popleft()
228 return item; in deque_popleft()
234 deque_append(dequeobject *deque, PyObject *item) in deque_append() argument
246 Py_INCREF(item); in deque_append()
249 deque->rightblock->data[deque->rightindex] = item; in deque_append()
257 deque_appendleft(dequeobject *deque, PyObject *item) in deque_appendleft() argument
[all …]
Dstropmodule.c35 PyObject* item; in split_whitespace() local
50 item = PyString_FromStringAndSize(s+j, i-j); in split_whitespace()
51 if (item == NULL) in split_whitespace()
54 err = PyList_Append(list, item); in split_whitespace()
55 Py_DECREF(item); in split_whitespace()
64 item = PyString_FromStringAndSize( in split_whitespace()
66 if (item == NULL) in split_whitespace()
69 err = PyList_Append(list, item); in split_whitespace()
70 Py_DECREF(item); in split_whitespace()
102 PyObject *list, *item; in strop_splitfields() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_bisectmodule.c9 internal_bisect_right(PyObject *list, PyObject *item, Py_ssize_t lo, Py_ssize_t hi) in internal_bisect_right() argument
31 res = PyObject_RichCompareBool(item, litem, Py_LT); in internal_bisect_right()
46 PyObject *list, *item; in bisect_right() local
53 keywords, &list, &item, &lo, &hi)) in bisect_right()
55 index = internal_bisect_right(list, item, lo, hi); in bisect_right()
77 PyObject *list, *item, *result; in insort_right() local
84 keywords, &list, &item, &lo, &hi)) in insort_right()
86 index = internal_bisect_right(list, item, lo, hi); in insort_right()
90 if (PyList_Insert(list, index, item) < 0) in insort_right()
94 index, item); in insort_right()
[all …]
D_collectionsmodule.c161 PyObject *item; in deque_pop() local
168 item = deque->rightblock->data[deque->rightindex]; in deque_pop()
189 return item; in deque_pop()
197 PyObject *item; in deque_popleft() local
205 item = deque->leftblock->data[deque->leftindex]; in deque_popleft()
227 return item; in deque_popleft()
233 deque_append(dequeobject *deque, PyObject *item) in deque_append() argument
245 Py_INCREF(item); in deque_append()
248 deque->rightblock->data[deque->rightindex] = item; in deque_append()
256 deque_appendleft(dequeobject *deque, PyObject *item) in deque_appendleft() argument
[all …]
Dstropmodule.c35 PyObject* item; in split_whitespace() local
50 item = PyString_FromStringAndSize(s+j, i-j); in split_whitespace()
51 if (item == NULL) in split_whitespace()
54 err = PyList_Append(list, item); in split_whitespace()
55 Py_DECREF(item); in split_whitespace()
64 item = PyString_FromStringAndSize( in split_whitespace()
66 if (item == NULL) in split_whitespace()
69 err = PyList_Append(list, item); in split_whitespace()
70 Py_DECREF(item); in split_whitespace()
102 PyObject *list, *item; in strop_splitfields() local
[all …]
D_heapqmodule.c123 PyObject *heap, *item; in heappush() local
125 if (!PyArg_UnpackTuple(args, "heappush", 2, 2, &heap, &item)) in heappush()
133 if (PyList_Append(heap, item) == -1) in heappush()
185 PyObject *heap, *item, *returnitem; in heapreplace() local
187 if (!PyArg_UnpackTuple(args, "heapreplace", 2, 2, &heap, &item)) in heapreplace()
201 Py_INCREF(item); in heapreplace()
202 PyList_SET_ITEM(heap, 0, item); in heapreplace()
223 PyObject *heap, *item, *returnitem; in heappushpop() local
226 if (!PyArg_UnpackTuple(args, "heappushpop", 2, 2, &heap, &item)) in heappushpop()
235 Py_INCREF(item); in heappushpop()
[all …]
/device/google/contexthub/firmware/os/core/
DeventQ.c39 struct EvtList item; member
90 struct EvtRecord * rec = container_of(pos, struct EvtRecord, item); in evtQueueFree()
105 struct EvtList *item = NULL, *a, *b; in evtQueueEnqueue() local
117 rec = container_of(pos, struct EvtRecord, item); in evtQueueEnqueue()
122 item = pos; in evtQueueEnqueue()
126 item = &rec->item; in evtQueueEnqueue()
129 if (!item) in evtQueueEnqueue()
132 item->prev = item->next = NULL; in evtQueueEnqueue()
148 a->next = item; in evtQueueEnqueue()
149 item->prev = a; in evtQueueEnqueue()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/
DValidCheckingInfoObject.py61 for item in var_check_tab.validtab:
64 for v_data in item.data:
66 realLength += item.StorageWidth
68 realLength += item.StorageWidth
69 realLength += item.StorageWidth
138 for item in var_check_tab.validtab:
141 b = pack("=B", item.Type)
145 b = pack("=B", item.Length)
149 b = pack("=H", int(item.VarOffset, 16))
153 b = pack("=B", item.StorageWidth)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/
Dsortingtest.py31 def makekey(item, prog=prog): argument
32 match = prog.match(item)
38 return 0, item
40 items = sorted(makekey(item) for item in line.split())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dbltinmodule.c86 PyObject *it, *item; in builtin_all() local
96 item = iternext(it); in builtin_all()
97 if (item == NULL) in builtin_all()
99 cmp = PyObject_IsTrue(item); in builtin_all()
100 Py_DECREF(item); in builtin_all()
129 PyObject *it, *item; in builtin_any() local
139 item = iternext(it); in builtin_any()
140 if (item == NULL) in builtin_any()
142 cmp = PyObject_IsTrue(item); in builtin_any()
143 Py_DECREF(item); in builtin_any()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dbltinmodule.c82 PyObject *it, *item; in builtin_all() local
92 item = iternext(it); in builtin_all()
93 if (item == NULL) in builtin_all()
95 cmp = PyObject_IsTrue(item); in builtin_all()
96 Py_DECREF(item); in builtin_all()
124 PyObject *it, *item; in builtin_any() local
134 item = iternext(it); in builtin_any()
135 if (item == NULL) in builtin_any()
137 cmp = PyObject_IsTrue(item); in builtin_any()
138 Py_DECREF(item); in builtin_any()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
Dnl_langinfo.c21 nl_langinfo(nl_item item) in nl_langinfo() argument
25 switch (item) { in nl_langinfo()
40 s = _CurrentTimeLocale->am_pm[(size_t)(item - AM_STR)]; in nl_langinfo()
49 s = _CurrentTimeLocale->day[(size_t)(item - DAY_1)]; in nl_langinfo()
58 s = _CurrentTimeLocale->abday[(size_t)(item - ABDAY_1)]; in nl_langinfo()
72 s = _CurrentTimeLocale->mon[(size_t)(item - MON_1)]; in nl_langinfo()
86 s = _CurrentTimeLocale->abmon[(size_t)(item - ABMON_1)]; in nl_langinfo()
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Core/
DFileHook.py107 item = self.rlist[index]
108 exist = os.path.exists(item.path)
109 if item.action == _MKFILE and exist:
112 __built_in_remove__(item.path)
113 elif item.action == _RMFILE and not exist:
116 arcname = os.path.normpath(item.path)
122 filep = __built_in_open__(item.path, "wb")
126 os.utime(item.path, (intime, intime))
127 elif item.action == _MKDIR and exist:
130 __built_in_rmdir__(item.path)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/
Drow.c77 PyObject* item; in pysqlite_row_subscript() local
81 item = PyTuple_GetItem(self->data, _idx); in pysqlite_row_subscript()
82 Py_XINCREF(item); in pysqlite_row_subscript()
83 return item; in pysqlite_row_subscript()
86 item = PyTuple_GetItem(self->data, _idx); in pysqlite_row_subscript()
87 Py_XINCREF(item); in pysqlite_row_subscript()
88 return item; in pysqlite_row_subscript()
118 item = PyTuple_GetItem(self->data, i); in pysqlite_row_subscript()
119 Py_INCREF(item); in pysqlite_row_subscript()
120 return item; in pysqlite_row_subscript()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_shlex.py148 for item in self.data:
149 item[0] = item[0].replace(r"\n", "\n")
150 for item in self.posix_data:
151 item[0] = item[0].replace(r"\n", "\n")
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/
Dutil.py72 item = expected.pop()
74 actual.remove(item)
76 missing.append(item)
81 lst.remove(item)
86 item = actual.pop()
87 unexpected.append(item)
90 actual.remove(item)

12345678910