Home
last modified time | relevance | path

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

123

/system/core/libcutils/include/cutils/
Dlist.h58 static inline void list_add_tail(struct listnode *head, struct listnode *item) in list_add_tail() argument
60 item->next = head; in list_add_tail()
61 item->prev = head->prev; in list_add_tail()
62 head->prev->next = item; in list_add_tail()
63 head->prev = item; in list_add_tail()
66 static inline void list_add_head(struct listnode *head, struct listnode *item) in list_add_head() argument
68 item->next = head->next; in list_add_head()
69 item->prev = head; in list_add_head()
70 head->next->prev = item; in list_add_head()
71 head->next = item; in list_add_head()
[all …]
/system/core/libcutils/include_vndk/cutils/
Dlist.h58 static inline void list_add_tail(struct listnode *head, struct listnode *item) in list_add_tail() argument
60 item->next = head; in list_add_tail()
61 item->prev = head->prev; in list_add_tail()
62 head->prev->next = item; in list_add_tail()
63 head->prev = item; in list_add_tail()
66 static inline void list_add_head(struct listnode *head, struct listnode *item) in list_add_head() argument
68 item->next = head->next; in list_add_head()
69 item->prev = head; in list_add_head()
70 head->next->prev = item; in list_add_head()
71 head->next = item; in list_add_head()
[all …]
/system/core/libdiskconfig/
Dwrite_lst.c32 struct write_list *item; in alloc_wl() local
34 if (!(item = malloc(sizeof(struct write_list) + data_len))) { in alloc_wl()
39 item->len = data_len; in alloc_wl()
40 return item; in alloc_wl()
44 free_wl(struct write_list *item) in free_wl() argument
46 if (item) in free_wl()
47 free(item); in free_wl()
51 wlist_add(struct write_list **lst, struct write_list *item) in wlist_add() argument
53 item->next = (*lst); in wlist_add()
54 *lst = item; in wlist_add()
[all …]
Dconfig_mbr.c73 struct write_list *item; in mk_pri_pentry() local
81 if (!(item = alloc_wl(sizeof(struct pc_partition)))) { in mk_pri_pentry()
90 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum]))); in mk_pri_pentry()
93 pentry = (struct pc_partition *) &item->data; in mk_pri_pentry()
128 return item; in mk_pri_pentry()
143 struct write_list *item; in mk_ext_pentry() local
147 if (!(item = alloc_wl(sizeof(struct pc_boot_record)))) { in mk_ext_pentry()
154 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; in mk_ext_pentry()
157 ebr = (struct pc_boot_record *) &item->data; in mk_ext_pentry()
202 return item; in mk_ext_pentry()
[all …]
/system/bt/packet/avrcp/
Dget_folder_items.cc64 for (const auto& item : items_) { in size() local
65 len += item.size(); in size()
89 for (const auto& item : items_) { in Serialize() local
90 PushMediaListItem(pkt, item); in Serialize()
96 bool GetFolderItemsResponseBuilder::AddMediaPlayer(MediaPlayerItem item) { in AddMediaPlayer() argument
99 if (size() + item.size() > mtu_) return false; in AddMediaPlayer()
101 items_.push_back(MediaListItem(item)); in AddMediaPlayer()
105 bool GetFolderItemsResponseBuilder::AddSong(MediaElementItem item) { in AddSong() argument
108 if (size() + item.size() > mtu_) return false; in AddSong()
110 items_.push_back(MediaListItem(item)); in AddSong()
[all …]
Dget_folder_items.h39 bool AddMediaPlayer(MediaPlayerItem item);
40 bool AddSong(MediaElementItem item);
41 bool AddFolder(FolderItem item);
60 const MediaListItem& item);
62 const MediaPlayerItem& item);
64 const MediaElementItem& item);
66 const FolderItem& item);
/system/extras/boottime_tools/bootanalyze/
Dbootanalyze.py81 for item in items:
82 kv = item.split("=")
176 for item in shutdown_event_all.items():
177 num_runs = len(item[1])
179 item[0], sum(item[1])/num_runs, stddev(item[1]),\
180 "*time taken" if item[0].startswith("init.") else "",\
184 for item in shutdown_timing_event_all.items():
185 num_runs = len(item[1])
187 item[0], sum(item[1])/num_runs, stddev(item[1]),\
188 "*time taken" if item[0].startswith("init.") else "",\
[all …]
/system/extras/simpleperf/
DSampleDisplayer.h208 Item item; in AddDisplayFunction() local
209 item.name = name; in AddDisplayFunction()
210 item.width = name.size(); in AddDisplayFunction()
211 item.func = func; in AddDisplayFunction()
212 item.func_with_info = nullptr; in AddDisplayFunction()
213 display_v_.push_back(item); in AddDisplayFunction()
218 Item item; in AddDisplayFunction() local
219 item.name = name; in AddDisplayFunction()
220 item.width = name.size(); in AddDisplayFunction()
221 item.func = nullptr; in AddDisplayFunction()
[all …]
Dgenerate_event_type_table.py284 for item in raw_types:
286 event_type_name = "raw-" + item[1]
287 event_config = '0x%x' % item[0]
288 description = item[2]
/system/core/libutils/include/utils/
DVectorImpl.h77 ssize_t insertAt(const void* item, size_t where, size_t numItems = 1);
80 void push(const void* item);
82 ssize_t add(const void* item);
84 ssize_t replaceAt(const void* item, size_t index);
105 virtual void do_splat(void* dest, const void* item, size_t num) const = 0;
116 inline void _do_splat(void* dest, const void* item, size_t num) const;
141 ssize_t indexOf(const void* item) const;
144 size_t orderOf(const void* item) const;
147 ssize_t add(const void* item);
154 ssize_t remove(const void* item);
[all …]
DSortedVector.h86 ssize_t indexOf(const TYPE& item) const;
89 size_t orderOf(const TYPE& item) const;
108 ssize_t add(const TYPE& item);
148 virtual void do_splat(void* dest, const void* item, size_t num) const;
220 ssize_t SortedVector<TYPE>::add(const TYPE& item) { in add() argument
221 return SortedVectorImpl::add(&item); in add()
225 ssize_t SortedVector<TYPE>::indexOf(const TYPE& item) const { in indexOf() argument
226 return SortedVectorImpl::indexOf(&item); in indexOf()
230 size_t SortedVector<TYPE>::orderOf(const TYPE& item) const { in orderOf() argument
231 return SortedVectorImpl::orderOf(&item); in orderOf()
[all …]
DVector.h160 void push(const TYPE& item);
164 ssize_t add(const TYPE& item);
168 ssize_t replaceAt(const TYPE& item, size_t index);
206 inline void push_back(const TYPE& item) { insertAt(item, size(), 1); } in push_back() argument
207 inline void push_front(const TYPE& item) { insertAt(item, 0, 1); } in push_front() argument
217 virtual void do_splat(void* dest, const void* item, size_t num) const;
335 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) { in insertAt() argument
336 return VectorImpl::insertAt(&item, index, numItems); in insertAt()
340 void Vector<TYPE>::push(const TYPE& item) { in push() argument
341 return VectorImpl::push(&item); in push()
[all …]
DKeyedVector.h86 ssize_t add(const KEY& key, const VALUE& item);
87 ssize_t replaceValueFor(const KEY& key, const VALUE& item);
88 ssize_t replaceValueAt(size_t index, const VALUE& item);
182 ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) { in replaceValueAt() argument
184 mVector.editItemAt(index).value = item; in replaceValueAt()
/system/bt/osi/src/
Dthread.cc136 work_item_t* item = (work_item_t*)osi_malloc(sizeof(work_item_t)); in thread_post() local
137 item->func = func; in thread_post()
138 item->context = context; in thread_post()
139 fixed_queue_enqueue(thread->work_queue, item); in thread_post()
225 work_item_t* item = in run_thread() local
227 while (item && count <= fixed_queue_capacity(thread->work_queue)) { in run_thread()
228 item->func(item->context); in run_thread()
229 osi_free(item); in run_thread()
230 item = in run_thread()
247 work_item_t* item = static_cast<work_item_t*>(fixed_queue_dequeue(queue)); in work_queue_read_cb() local
[all …]
/system/core/libutils/
DVectorImpl.cpp145 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument
151 if (item) { in insertAt()
152 _do_splat(where, item, numItems); in insertAt()
181 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() local
183 if (cmp(curr, item, state) > 0) { in sort()
191 item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort()
197 _do_copy(temp, item, 1); in sort()
237 void VectorImpl::push(const void* item) in push() argument
239 insertAt(item, size()); in push()
247 ssize_t VectorImpl::add(const void* item) in add() argument
[all …]
/system/extras/boottime_tools/io_analysis/
Dcheck_io_trace_all.py101 key = lambda item: item[1], reverse = True))
108 key = lambda item: item[1], reverse = True))
190 key = lambda item: item[1].total_reads + item[1].total_writes, reverse = True))
199 key = lambda item: item[1].total_writes, reverse = True))
208 key = lambda item: item[1], reverse = True))
215 key = lambda item: item[1], reverse = True))
290 key = lambda item: item[0], reverse = False))
293 key = lambda item: item[1], reverse = True))
296 key = lambda item: item[1], reverse = True))
299 key = lambda item: item[0], reverse = False))
[all …]
/system/bt/include/hardware/avrcp/
Davrcp_common.h305 MediaListItem(MediaPlayerItem item) : type_(PLAYER), player_(item) {} in MediaListItem()
307 MediaListItem(FolderItem item) : type_(FOLDER), folder_(item) {} in MediaListItem()
309 MediaListItem(MediaElementItem item) : type_(SONG), song_(item) {} in MediaListItem()
311 MediaListItem(const MediaListItem& item) { in MediaListItem()
312 type_ = item.type_; in MediaListItem()
313 switch (item.type_) { in MediaListItem()
315 new (&player_) MediaPlayerItem(item.player_); in MediaListItem()
318 new (&folder_) FolderItem(item.folder_); in MediaListItem()
321 new (&song_) MediaElementItem(item.song_); in MediaListItem()
/system/libhidl/base/
DSynchronizedQueue.h42 bool push(const T& item);
79 T item = mQueue.front(); in wait_pop() local
82 return item; in wait_pop()
86 bool SynchronizedQueue<T>::push(const T &item) { in push() argument
91 mQueue.push(item); in push()
/system/tools/hidl/c2hal/test/
Dbuild_all.py75 for item in listdir(path):
76 if not isfile(path_join(path, item)):
79 if not item.endswith(".h"):
82 yield item
/system/tools/hidl/c2hal/
DScope.h36 void enter(std::string name, T item);
48 void Scope<T>::enter(std::string name, T item) { in enter() argument
56 mScopeContents[name] = item; in enter()
/system/security/identity/
DCredentialData.cpp137 optional<SecureAccessControlProfile> parseSacp(const cppbor::Item& item) { in parseSacp() argument
138 const cppbor::Array* array = item.asArray(); in parseSacp()
168 optional<AuthKeyData> parseAuthKeyData(const cppbor::Item& item) { in parseAuthKeyData() argument
169 const cppbor::Array* array = item.asArray(); in parseAuthKeyData()
196 vector<int32_t> parseAccessControlProfileIds(const cppbor::Item& item) { in parseAccessControlProfileIds() argument
197 const cppbor::Array* array = item.asArray(); in parseAccessControlProfileIds()
215 optional<vector<vector<uint8_t>>> parseEncryptedChunks(const cppbor::Item& item) { in parseEncryptedChunks() argument
216 const cppbor::Array* array = item.asArray(); in parseEncryptedChunks()
251 auto [item, _ /* newPos */, message] = cppbor::parse(data.value()); in loadFromDisk()
252 if (item == nullptr) { in loadFromDisk()
[all …]
/system/bt/common/
Dleaky_bonded_queue.h117 std::unique_ptr<T> item = std::move(queue_.front()); in EnqueueWithPop() local
119 old_item = item.release(); in EnqueueWithPop()
129 std::unique_ptr<T> item = std::move(queue_.front()); in Dequeue() local
131 return item.release(); in Dequeue()
/system/tools/hidl/
DgenerateCppAdapter.cpp92 for (const auto& item : allImportedNames) { in generateCppAdapterSource() local
93 if (item.name() == "types") { in generateCppAdapterSource()
96 generateCppPackageInclude(out, item, item.getInterfaceAdapterName()); in generateCppAdapterSource()
/system/tools/aidl/
Daidl.cpp260 for (const auto& item : items) { in check_and_assign_method_ids() local
267 if (!item->IsUserDefined()) { in check_and_assign_method_ids()
270 if (item->HasId()) { in check_and_assign_method_ids()
273 item->SetId(newId++); in check_and_assign_method_ids()
278 AIDL_ERROR(item) << "You must either assign id's to all methods or to none of them."; in check_and_assign_method_ids()
283 if (usedIds.find(item->GetId()) != usedIds.end()) { in check_and_assign_method_ids()
285 AIDL_ERROR(item) << "Found duplicate method id (" << item->GetId() << ") for method " in check_and_assign_method_ids()
286 << item->GetName(); in check_and_assign_method_ids()
289 usedIds.insert(item->GetId()); in check_and_assign_method_ids()
292 if (item->GetId() < kMinUserSetMethodId || item->GetId() > kMaxUserSetMethodId) { in check_and_assign_method_ids()
[all …]
/system/update_engine/scripts/update_payload/
Dcommon.py193 for item in items:
196 item_name = name_format_func(item, item_name)
197 yield (item, item_name)

123