Home
last modified time | relevance | path

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

12

/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()
/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()
/system/bt/osi/src/
Dlist.cc13 list_node_t* head; member
72 return list->head->data; in list_front()
111 node->next = list->head; in list_prepend()
113 list->head = node; in list_prepend()
114 if (list->tail == NULL) list->tail = list->head; in list_prepend()
128 list->head = node; in list_append()
144 if (list->head->data == data) { in list_remove()
145 list_node_t* next = list_free_node_(list, list->head); in list_remove()
146 if (list->tail == list->head) list->tail = next; in list_remove()
147 list->head = next; in list_remove()
[all …]
Dringbuffer.cc29 uint8_t* head; member
38 p->head = p->tail = p->base; in ringbuffer_init()
79 rb->head += length; in ringbuffer_delete()
80 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete()
93 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek()
111 rb->head += copied; in ringbuffer_pop()
112 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_pop()
/system/bt/btif/src/
Dbtif_uid.cc38 uid_set_node_t* head; member
48 uid_set_node_t* node = set->head; in uid_set_destroy()
54 set->head = NULL; in uid_set_destroy()
61 uid_set_node_t* node = set->head; in uid_set_find_or_create_node()
69 node->next = set->head; in uid_set_find_or_create_node()
70 set->head = node; in uid_set_find_or_create_node()
96 uid_set_node_t* node = set->head; in uid_set_read_and_clear()
108 node = set->head; in uid_set_read_and_clear()
Dbtif_profile_queue.cc118 const ConnectNode& head = connect_queue.front(); in queue_int_advance() local
120 head.ToString().c_str()); in queue_int_advance()
194 ConnectNode& head = connect_queue.front(); in btif_queue_connect_next() local
197 head.ToString().c_str()); in btif_queue_connect_next()
198 bt_status_t b_status = head.connect(); in btif_queue_connect_next()
201 __func__, head.ToString().c_str()); in btif_queue_connect_next()
/system/nfc/utils/
Dringbuffer.cc28 uint8_t* head; member
40 p->head = p->tail = p->base; in ringbuffer_init()
81 rb->head += length; in ringbuffer_delete()
82 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete()
95 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)) rb->head -= rb->total; in ringbuffer_pop()
/system/extras/latencytop/
Dlatencytop.c54 static void print_latency_entries(struct latency_entry *head);
287 static struct latency_entry *find_latency_entry(struct latency_entry *head, char *reason) { in find_latency_entry() argument
290 e = head; in find_latency_entry()
316 struct latency_entry *e, *head; in read_latency_file() local
321 head = list; in read_latency_file()
337 e = find_latency_entry(head, reason); in read_latency_file()
349 e->next = head; in read_latency_file()
350 head = e; in read_latency_file()
355 return head; in read_latency_file()
358 static void print_latency_entries(struct latency_entry *head) { in print_latency_entries() argument
[all …]
/system/core/adb/
Dsocket_test.cpp64 auto connect = [](asocket* tail, asocket* head) { in TEST_F() argument
65 tail->peer = head; in TEST_F()
66 head->peer = tail; in TEST_F()
73 asocket* head = create_local_socket(unique_fd(intermediate[0])); in TEST_F() local
74 ASSERT_NE(nullptr, head); in TEST_F()
79 connect(prev_tail, head); in TEST_F()
238 asocket* head = create_local_socket(unique_fd(head_fd[1])); in TEST_F() local
241 head->peer = tail; in TEST_F()
242 head->ready(head); in TEST_F()
244 tail->peer = head; in TEST_F()
/system/netd/libnetdutils/include/netdutils/
DSlice.h120 inline size_t extract(const Slice src, Head& head) { in extract() argument
121 return copy(makeSlice(head), src); in extract()
128 inline size_t extract(const Slice src, Head& head, Tail&... tail) { in extract() argument
129 const auto extracted = extract(src, head); in extract()
/system/chre/core/tests/
Dmemory_manager_test.cc78 node *head = static_cast<node*>(manager.nanoappAlloc(&app, sizeof(node))); in TEST() local
79 node *curr = nullptr, *prev = head; in TEST()
90 curr = head; in TEST()
/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/core/libunwindstack/tests/
DDexFilesTest.cpp102 void WriteDescriptor32(uint64_t addr, uint32_t head);
103 void WriteDescriptor64(uint64_t addr, uint64_t head);
123 void DexFilesTest::WriteDescriptor32(uint64_t addr, uint32_t head) { in WriteDescriptor32() argument
125 memory_->SetData32(addr + 12, head); in WriteDescriptor32()
128 void DexFilesTest::WriteDescriptor64(uint64_t addr, uint64_t head) { in WriteDescriptor64() argument
130 memory_->SetData64(addr + 16, head); in WriteDescriptor64()
/system/nvram/messages/include/nvram/messages/
Dtagged_union.h121 template <size_t head, size_t... tail>
122 struct Max<head, tail...> {
124 head > Max<tail...>::value ? head : Max<tail...>::value;
/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)
/system/apex/apexer/
Druntests.sh48 head -c 1M </dev/urandom > ${input_dir}/file1
49 head -c 1M </dev/urandom > ${input_dir}/file2
51 head -c 1M </dev/urandom > ${input_dir}/sub/file3
/system/teeui/libteeui/include/teeui/
Dcbor.h64 Array(const Head& head, const Tail&... tail) : head_(head), tail_(tail...) {}
136 Map(const MapElement<HeadKey, HeadValue>& head, const Tail&... tail)
137 : head_(head), tail_(tail...) {}
288 WriteState write(WriteState wState, const Head& head, const Tail&... tail) {
289 wState = write(wState, head);
Dmsg_formatting.h148 WriteStream write(Message<Head, Tail...>, WriteStream out, const Head& head, const Tail&... tail) { in write() argument
149 out = write(out, head); in write()
/system/memory/libmemunreachable/
DAllocator.cpp90 void MoveToList(Chunk* chunk, LinkedList<Chunk*>* head);
424 void HeapImpl::MoveToList(Chunk* chunk, LinkedList<Chunk*>* head) { in MoveToList() argument
428 LinkedList<Chunk*>* node = head; in MoveToList()
430 while (node->next() != head && node->data() != nullptr && in MoveToList()
/system/core/adb/daemon/
Djdwp_service.cpp252 char head[header_len + 1]; in process_list_msg() local
254 snprintf(head, sizeof head, "%04zx", len); in process_list_msg()
255 memcpy(buffer, head, header_len); in process_list_msg()
/system/timezone/testing/data/
Dtransform-distro-files.sh39 TZHEADER=$(head -n1 ${INPUT_TZDATA_FILE} | cut -c1-11)
/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) /*NOLINT*/
88 list_element *head; member
232 if (list->head == NULL ) { in list_append()
233 list->head = list->tail = e; in list_append()
249 list_element *cursor = list->head; in list_free()
842 if (!input_file_list.head) { in init()
/system/tools/hidl/scripts/
Drun-tests.sh52 local testable=$(echo "${output}" | head -n1)
/system/core/libdiskconfig/include/diskconfig/
Ddiskconfig.h57 uint8_t head; member

12