/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()
|
/system/bt/osi/src/ |
D | list.c | 13 list_node_t *head; member 72 return list->head->data; in list_front() 114 node->next = list->head; in list_prepend() 116 list->head = node; in list_prepend() 118 list->tail = list->head; in list_prepend() 133 list->head = node; in list_append() 150 if (list->head->data == data) { in list_remove() 151 list_node_t *next = list_free_node_(list, list->head); in list_remove() 152 if (list->tail == list->head) in list_remove() 154 list->head = next; in list_remove() [all …]
|
D | ringbuffer.c | 29 uint8_t *head; member 37 p->head = p->tail = p->base; in ringbuffer_init() 82 rb->head += length; in ringbuffer_delete() 83 if (rb->head >= (rb->base + rb->total)) in ringbuffer_delete() 84 rb->head -= rb->total; in ringbuffer_delete() 96 uint8_t *b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek() 113 rb->head += copied; in ringbuffer_pop() 114 if (rb->head >= (rb->base + rb->total)) in ringbuffer_pop() 115 rb->head -= rb->total; in ringbuffer_pop()
|
/system/bt/btif/src/ |
D | btif_uid.c | 39 uid_set_node_t* head; member 50 uid_set_node_t* node = set->head; in uid_set_destroy() 56 set->head = NULL; in uid_set_destroy() 64 uid_set_node_t* node = set->head; in uid_set_find_or_create_node() 72 node->next = set->head; in uid_set_find_or_create_node() 73 set->head = node; in uid_set_find_or_create_node() 105 uid_set_node_t* node = set->head; in uid_set_read_and_clear() 115 node = set->head; in uid_set_read_and_clear()
|
/system/core/adb/ |
D | test_track_devices.cpp | 54 char head[5] = "0000"; in main() local 56 if (!android::base::ReadFully(s, head, 4)) in main() 60 if (sscanf(head, "%04x", &len) != 1 ) in main() 66 printf( "received header %.*s (%d bytes):\n%.*s----\n", 4, head, len, len, buffer ); in main()
|
D | socket_test.cpp | 63 auto connect = [](asocket* tail, asocket* head) { in TEST_F() argument 64 tail->peer = head; in TEST_F() 65 head->peer = tail; in TEST_F() 72 asocket* head = create_local_socket(intermediate[0]); in TEST_F() local 73 ASSERT_NE(nullptr, head); in TEST_F() 78 connect(prev_tail, head); in TEST_F()
|
D | jdwp_service.cpp | 169 char head[5]; in jdwp_process_list_msg() local 171 snprintf(head, sizeof head, "%04x", len); in jdwp_process_list_msg() 172 memcpy(buffer, head, 4); in jdwp_process_list_msg()
|
/system/extras/latencytop/ |
D | latencytop.c | 56 static void print_latency_entries(struct latency_entry *head); 294 static struct latency_entry *find_latency_entry(struct latency_entry *head, char *reason) { in find_latency_entry() argument 297 e = head; in find_latency_entry() 327 struct latency_entry *e, *head; in read_latency_file() local 332 head = list; in read_latency_file() 348 e = find_latency_entry(head, reason); in read_latency_file() 360 e->next = head; in read_latency_file() 361 head = e; in read_latency_file() 366 return head; in read_latency_file() 369 static void print_latency_entries(struct latency_entry *head) { in print_latency_entries() argument [all …]
|
/system/extras/showmap/ |
D | showmap.cpp | 130 static void enqueue_map(mapinfo **head, mapinfo *map, int sort_by_address, int coalesce_by_name) { in enqueue_map() argument 132 mapinfo *current = *head; in enqueue_map() 158 *head = map; in enqueue_map() 174 mapinfo *head = NULL; in load_maps() local 197 enqueue_map(&head, current, sort_by_address, coalesce_by_name); in load_maps() 205 enqueue_map(&head, current, sort_by_address, coalesce_by_name); in load_maps() 209 if (!head) { in load_maps() 214 return head; in load_maps()
|
/system/extras/showslab/ |
D | showslab.c | 62 struct slab_info *head = NULL, *p = NULL, *prev = NULL; in get_slabinfo() local 100 head = NULL; in get_slabinfo() 104 head = prev = p; in get_slabinfo() 117 head = NULL; in get_slabinfo() 153 return head; in get_slabinfo()
|
/system/extras/tests/workloads/ |
D | defs.sh | 89 devInfo=$(adb devices -l | grep -v ^List | head -1) 202 s=$(grep "Binder.*tracing_mark_write.*launching" $traceout 2>/dev/null | head -1| tr [\(\)\[\] 205 s=$(grep activityPause $traceout | head -1 2>/dev/null| tr [\(\)\[\] 222 grep -v Starting | head -1 | tr [\(\)\[\] 229 grep -v Starting | head -1 | tr [\(\)\[\]
|
D | capture.sh | 21 devInfo=$(adb devices -l | grep -v ^List | head -1)
|
D | pwrtest.sh | 278 head -$twentyminutes $powerOutput > $displayPowerOutput 279 head -$twentyminutes $airplanePowerOutput > $airplaneDisplayPowerOutput
|
/system/core/crash_reporter/ |
D | warn_collector_test_reporter.sh | 26 head -1 warning
|
D | crash_sender | 461 proxy=$(echo "${proxy}" | head -1)
|
/system/sepolicy/tools/fc_sort/ |
D | fc_sort.c | 322 file_context_node_t *head; in main() local 348 head = current = (file_context_node_t*)malloc(sizeof(file_context_node_t)); in main() 349 head->next = NULL; in main() 489 current = head->next; in main()
|
/system/core/lmkd/ |
D | lmkd.c | 156 static void adjslot_insert(struct adjslot_list *head, struct adjslot_list *new) in adjslot_insert() argument 158 struct adjslot_list *next = head->next; in adjslot_insert() 159 new->prev = head; in adjslot_insert() 162 head->next = new; in adjslot_insert() 173 static struct adjslot_list *adjslot_tail(struct adjslot_list *head) { in adjslot_tail() argument 174 struct adjslot_list *asl = head->prev; in adjslot_tail() 176 return asl == head ? NULL : asl; in adjslot_tail()
|
/system/core/libmemunreachable/ |
D | Allocator.cpp | 91 void MoveToList(Chunk* chunk, LinkedList<Chunk*>* head); 438 void HeapImpl::MoveToList(Chunk *chunk, LinkedList<Chunk*>* head) { in MoveToList() argument 442 LinkedList<Chunk*> *node = head; in MoveToList() 444 while (node->next() != head && node->data() != nullptr in MoveToList()
|
/system/sepolicy/tools/ |
D | check_seapp.c | 26 #define list_init(free_fn) { .head = NULL, .tail = NULL, .freefn = free_fn } 46 for(var = (list)->head; var != NULL; var = var->next) 88 list_element *head; member 229 if (list->head == NULL ) { in list_append() 230 list->head = list->tail = e; in list_append() 246 list_element *cursor = list->head; in list_free() 813 if (!input_file_list.head) { in init()
|
/system/core/include/diskconfig/ |
D | diskconfig.h | 57 uint8_t head; member
|
/system/connectivity/shill/bin/ |
D | set_apn | 43 SET_APN_HELPER=$(ls /usr/lib*/shill/shims/set-apn-helper | head -1)
|
/system/core/libutils/ |
D | RefBase.cpp | 311 ref_entry* const head = *refs; in removeRef() local 312 ref_entry* ref = head; in removeRef() 327 ref = head; in removeRef()
|
/system/media/camera/docs/ |
D | metadata-generate | 157 head -n "$start_line" "${dst_file}" > "${tmp_name}"
|
D | html.mako | 18 <head> 101 </head>
|
/system/update_engine/scripts/ |
D | brillo_update_payload | 267 local magic=$(head --bytes=4 "${image}" | hexdump -e '1/1 "%.2x"')
|