Home
last modified time | relevance | path

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

/system/core/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()
/system/bt/osi/src/
Dlist.c13 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 …]
Dringbuffer.c29 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/
Dbtif_uid.c39 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/
Dtest_track_devices.cpp54 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()
Dsocket_test.cpp63 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()
Djdwp_service.cpp169 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/
Dlatencytop.c56 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/
Dshowmap.cpp130 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/
Dshowslab.c62 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/
Ddefs.sh89 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 [\(\)\[\]
Dcapture.sh21 devInfo=$(adb devices -l | grep -v ^List | head -1)
Dpwrtest.sh278 head -$twentyminutes $powerOutput > $displayPowerOutput
279 head -$twentyminutes $airplanePowerOutput > $airplaneDisplayPowerOutput
/system/core/crash_reporter/
Dwarn_collector_test_reporter.sh26 head -1 warning
Dcrash_sender461 proxy=$(echo "${proxy}" | head -1)
/system/sepolicy/tools/fc_sort/
Dfc_sort.c322 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/
Dlmkd.c156 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/
DAllocator.cpp91 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/
Dcheck_seapp.c26 #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/
Ddiskconfig.h57 uint8_t head; member
/system/connectivity/shill/bin/
Dset_apn43 SET_APN_HELPER=$(ls /usr/lib*/shill/shims/set-apn-helper | head -1)
/system/core/libutils/
DRefBase.cpp311 ref_entry* const head = *refs; in removeRef() local
312 ref_entry* ref = head; in removeRef()
327 ref = head; in removeRef()
/system/media/camera/docs/
Dmetadata-generate157 head -n "$start_line" "${dst_file}" > "${tmp_name}"
Dhtml.mako18 <head>
101 </head>
/system/update_engine/scripts/
Dbrillo_update_payload267 local magic=$(head --bytes=4 "${image}" | hexdump -e '1/1 "%.2x"')