/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | queue.c | 62 struct qentry *item; in enqueue() local 64 item = grep_malloc(sizeof(struct qentry)); in enqueue() 65 item->data.dat = grep_malloc(sizeof(char) * x->len); in enqueue() 66 item->data.len = x->len; in enqueue() 67 item->data.line_no = x->line_no; in enqueue() 68 item->data.off = x->off; in enqueue() 69 memcpy(item->data.dat, x->dat, x->len); in enqueue() 70 item->data.file = x->file; in enqueue() 72 STAILQ_INSERT_TAIL(&queue, item, list); in enqueue() 75 item = dequeue(); in enqueue() [all …]
|
/system/core/libcutils/ |
D | android_reboot.c | 83 mntent_list* item = (mntent_list*)calloc(1, sizeof(mntent_list)); in find_rw() local 84 item->entry = *mentry; in find_rw() 85 item->entry.mnt_fsname = strdup(mentry->mnt_fsname); in find_rw() 86 item->entry.mnt_dir = strdup(mentry->mnt_dir); in find_rw() 87 item->entry.mnt_type = strdup(mentry->mnt_type); in find_rw() 88 item->entry.mnt_opts = strdup(mentry->mnt_opts); in find_rw() 89 list_add_tail(rw_entries, &item->list); in find_rw() 100 mntent_list* item = node_to_item(node, mntent_list, list); in free_entries() local 101 free(item->entry.mnt_fsname); in free_entries() 102 free(item->entry.mnt_dir); in free_entries() [all …]
|
/system/core/include/cutils/ |
D | list.h | 58 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/ |
D | write_lst.c | 32 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 …]
|
D | config_mbr.c | 74 struct write_list *item; in mk_pri_pentry() local 82 if (!(item = alloc_wl(sizeof(struct pc_partition)))) { in mk_pri_pentry() 91 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum]))); in mk_pri_pentry() 94 pentry = (struct pc_partition *) &item->data; in mk_pri_pentry() 129 return item; in mk_pri_pentry() 144 struct write_list *item; in mk_ext_pentry() local 148 if (!(item = alloc_wl(sizeof(struct pc_boot_record)))) { in mk_ext_pentry() 155 item->offset = ((loff_t)(*lba)) * dinfo->sect_size; in mk_ext_pentry() 158 ebr = (struct pc_boot_record *) &item->data; in mk_ext_pentry() 203 return item; in mk_ext_pentry() [all …]
|
/system/core/include/utils/ |
D | VectorImpl.h | 77 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 …]
|
D | SortedVector.h | 85 ssize_t indexOf(const TYPE& item) const; 88 size_t orderOf(const TYPE& item) const; 107 ssize_t add(const TYPE& item); 130 virtual void do_splat(void* dest, const void* item, size_t num) const; 206 ssize_t SortedVector<TYPE>::add(const TYPE& item) { 207 return SortedVectorImpl::add(&item); 211 ssize_t SortedVector<TYPE>::indexOf(const TYPE& item) const { 212 return SortedVectorImpl::indexOf(&item); 216 size_t SortedVector<TYPE>::orderOf(const TYPE& item) const { 217 return SortedVectorImpl::orderOf(&item); [all …]
|
D | Vector.h | 148 void push(const TYPE& item); 152 ssize_t add(const TYPE& item); 156 ssize_t replaceAt(const TYPE& item, size_t index); 194 inline void push_back(const TYPE& item) { insertAt(item, size(), 1); } in push_back() argument 195 inline void push_front(const TYPE& item) { insertAt(item, 0, 1); } in push_front() argument 205 virtual void do_splat(void* dest, const void* item, size_t num) const; 327 ssize_t Vector<TYPE>::insertAt(const TYPE& item, size_t index, size_t numItems) { 328 return VectorImpl::insertAt(&item, index, numItems); 332 void Vector<TYPE>::push(const TYPE& item) { 333 return VectorImpl::push(&item); [all …]
|
D | KeyedVector.h | 85 ssize_t add(const KEY& key, const VALUE& item); 86 ssize_t replaceValueFor(const KEY& key, const VALUE& item); 87 ssize_t replaceValueAt(size_t index, const VALUE& item); 188 ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) { 190 mVector.editItemAt(index).value = item;
|
/system/bt/osi/src/ |
D | thread.c | 141 work_item_t *item = (work_item_t *)osi_malloc(sizeof(work_item_t)); in thread_post() local 142 item->func = func; in thread_post() 143 item->context = context; in thread_post() 144 fixed_queue_enqueue(thread->work_queue, item); in thread_post() 213 work_item_t *item = fixed_queue_try_dequeue(thread->work_queue); in run_thread() local 214 while (item && count <= fixed_queue_capacity(thread->work_queue)) { in run_thread() 215 item->func(item->context); in run_thread() 216 osi_free(item); in run_thread() 217 item = fixed_queue_try_dequeue(thread->work_queue); in run_thread() 232 work_item_t *item = fixed_queue_dequeue(queue); in work_queue_read_cb() local [all …]
|
/system/extras/simpleperf/ |
D | cmd_report.cpp | 471 PidItem* item = new PidItem; in ParseOptions() local 472 displayable_items_.push_back(std::unique_ptr<Displayable>(item)); in ParseOptions() 473 comparable_items_.push_back(item); in ParseOptions() 475 TidItem* item = new TidItem; in ParseOptions() local 476 displayable_items_.push_back(std::unique_ptr<Displayable>(item)); in ParseOptions() 477 comparable_items_.push_back(item); in ParseOptions() 479 CommItem* item = new CommItem; in ParseOptions() local 480 displayable_items_.push_back(std::unique_ptr<Displayable>(item)); in ParseOptions() 481 comparable_items_.push_back(item); in ParseOptions() 483 DsoItem* item = new DsoItem; in ParseOptions() local [all …]
|
D | cmd_list.cpp | 72 for (auto& item : type_map) { in Run() local 73 names.push_back(item.first); in Run()
|
/system/core/libutils/ |
D | VectorImpl.cpp | 147 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument 153 if (item) { in insertAt() 154 _do_splat(where, item, numItems); in insertAt() 183 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() local 185 if (cmp(curr, item, state) > 0) { in sort() 193 item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() 199 _do_copy(temp, item, 1); in sort() 239 void VectorImpl::push(const void* item) in push() argument 241 insertAt(item, size()); in push() 249 ssize_t VectorImpl::add(const void* item) in add() argument [all …]
|
/system/tools/aidl/ |
D | aidl.cpp | 149 for (const auto& item : doc->GetParcelables()) { in check_filenames() local 150 success &= check_filename(filename, item->GetPackage(), item->GetName(), in check_filenames() 151 item->GetLine()); in check_filenames() 167 for (const auto& item : doc->GetParcelables()) { in gather_types() local 168 success &= types->AddParcelableType(*item, filename); in gather_types() 362 for (const auto& item : items) { in check_and_assign_method_ids() local 363 if (item->HasId()) { in check_and_assign_method_ids() 366 if (usedIds.find(item->GetId()) != usedIds.end()) { in check_and_assign_method_ids() 370 filename, item->GetLine(), in check_and_assign_method_ids() 371 item->GetId(), item->GetName().c_str()); in check_and_assign_method_ids() [all …]
|
D | generate_java_binder.cpp | 536 for (const auto& item : iface->GetConstants()) { in generate_binder_interface_class() local 537 generate_constant(*item, interface); in generate_binder_interface_class() 541 for (const auto& item : iface->GetMethods()) { in generate_binder_interface_class() local 542 generate_method(*item, interface, stub, proxy, item->GetId(), types); in generate_binder_interface_class()
|
/system/core/adb/ |
D | adb_auth_client.cpp | 102 struct listnode *item; in free_keys() local 105 item = list_head(list); in free_keys() 106 list_remove(item); in free_keys() 107 free(node_to_item(item, struct adb_public_key, node)); in free_keys() 144 struct listnode *item; in adb_auth_verify() local 153 list_for_each(item, &key_list) { in adb_auth_verify() 154 adb_public_key* key = node_to_item(item, struct adb_public_key, node); in adb_auth_verify()
|
D | adb_auth_host.cpp | 368 struct listnode *item; in adb_auth_nextkey() local 376 list_for_each(item, &key_list) { in adb_auth_nextkey() 377 if (item == current) { in adb_auth_nextkey() 379 if (item->next == &key_list) in adb_auth_nextkey() 381 return item->next; in adb_auth_nextkey()
|
D | fdevent.h | 65 void fdevent_remove(fdevent *item);
|
/system/tools/aidl/tests/ |
D | aidl_test_service.cpp | 296 for (const auto& item : input) { in ReverseFileDescriptorArray() local 297 repeated->push_back(ScopedFd(dup(item.get()))); in ReverseFileDescriptorArray() 298 _aidl_return->push_back(ScopedFd(dup(item.get()))); in ReverseFileDescriptorArray() 324 for (const auto& item : *input) { in RepeatNullableStringList() 325 if (!item) { in RepeatNullableStringList() 328 (*_aidl_return)->emplace_back(new String16(*item)); in RepeatNullableStringList() 382 for (const auto& item : *input) { in ReverseUtf8CppStringList() 385 if (item) { in ReverseUtf8CppStringList() 386 (*repeated)->back().reset(new string(*item)); in ReverseUtf8CppStringList() 387 (*_aidl_return)->back().reset(new string(*item)); in ReverseUtf8CppStringList()
|
/system/core/include/diskconfig/ |
D | diskconfig.h | 108 void free_wl(struct write_list *item); 109 struct write_list *wlist_add(struct write_list **lst, struct write_list *item);
|
/system/tpm/trunks/ |
D | resource_manager.cc | 208 for (auto& item : session_handles_) { in ChooseSessionToEvict() local 209 HandleInfo& info = item.second; in ChooseSessionToEvict() 214 candidates.push_back(item.first); in ChooseSessionToEvict() 297 for (auto& item : virtual_object_handles_) { in EvictObjects() local 298 HandleInfo& info = item.second; in EvictObjects() 302 item.first) != command_info.handles.end()) { in EvictObjects() 350 for (const auto& item : session_handles_) { in FixContextGap() local 351 const HandleInfo& info = item.second; in FixContextGap() 353 sessions_to_ungap.push_back(item.first); in FixContextGap()
|
/system/core/fastboot/ |
D | fastboot.cpp | 113 static char* find_item(const char* item, const char* product) { in find_item() argument 118 if(!strcmp(item,"boot")) { in find_item() 120 } else if(!strcmp(item,"recovery")) { in find_item() 122 } else if(!strcmp(item,"system")) { in find_item() 124 } else if(!strcmp(item,"vendor")) { in find_item() 126 } else if(!strcmp(item,"userdata")) { in find_item() 128 } else if(!strcmp(item,"cache")) { in find_item() 130 } else if(!strcmp(item,"info")) { in find_item() 133 fprintf(stderr,"unknown partition '%s'\n", item); in find_item()
|
/system/security/keystore/ |
D | key_store_service.h | 40 int32_t get(const String16& name, int32_t uid, uint8_t** item, size_t* itemLength); 41 int32_t insert(const String16& name, const uint8_t* item, size_t itemLength, int targetUid,
|
/system/extras/perfprofd/quipper/ |
D | perf_reader.cc | 1221 uint32_t item; in ReadUint32Metadata() local 1222 if (!ReadDataFromBuffer(data, sizeof(item), "uint32_t data", &offset, in ReadUint32Metadata() 1223 &item)) in ReadUint32Metadata() 1227 ByteSwap(&item); in ReadUint32Metadata() 1229 uint32_data.data.push_back(item); in ReadUint32Metadata() 1243 uint64_t item; in ReadUint64Metadata() local 1244 if (!ReadDataFromBuffer(data, sizeof(item), "uint64_t data", &offset, in ReadUint64Metadata() 1245 &item)) in ReadUint64Metadata() 1249 ByteSwap(&item); in ReadUint64Metadata() 1251 uint64_data.data.push_back(item); in ReadUint64Metadata()
|
/system/core/libsync/tests/ |
D | sync_test.cpp | 597 for (auto& item: fenceMap) { in TEST_P() local 602 timelines[item.first].inc(item.second); in TEST_P()
|