Home
last modified time | relevance | path

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

12

/system/core/libcutils/include_outside_system/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/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
196 LOG_INFO("Executing profile connection request:%s", head.ToString().c_str()); in btif_queue_connect_next()
197 bt_status_t b_status = head.connect(); in btif_queue_connect_next()
200 __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.c55 static void print_latency_entries(struct latency_entry* head);
288 static struct latency_entry* find_latency_entry(struct latency_entry* head, char* reason) { in find_latency_entry() argument
291 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()
348 e->next = head; in read_latency_file()
349 head = e; in read_latency_file()
354 return head; in read_latency_file()
357 static void print_latency_entries(struct latency_entry* head) { in print_latency_entries() argument
[all …]
/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/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)
Dpwrtest.sh279 head -$twentyminutes $powerOutput > $displayPowerOutput
280 head -$twentyminutes $airplanePowerOutput > $airplaneDisplayPowerOutput
/system/apex/apexer/
Druntests.sh50 head -c 1M </dev/urandom > ${input_dir}/file1
51 head -c 1M </dev/urandom > ${input_dir}/file2
53 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/libvintf/test/
DVintfFmTest.cpp282 auto head = android::base::StringPrintf(R"(<compatibility-matrix %s type="device">)", in SetUpFiles() local
292 xml3 = head + xml3 + tail; in SetUpFiles()
293 xml2 = head + xml2 + tail; in SetUpFiles()
294 xml1 = head + xml1 + tail; in SetUpFiles()
/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/timezone/testing/data/
Dtransform-distro-files.sh39 TZHEADER=$(head -n1 ${INPUT_TZDATA_FILE} | cut -c1-11)
/system/core/libdiskconfig/include/diskconfig/
Ddiskconfig.h57 uint8_t head; member
/system/sepolicy/tools/
Dcheck_seapp.c28 #define list_init(free_fn) { .head = NULL, .tail = NULL, .freefn = (free_fn) }
48 for(var = (list)->head; var != NULL; var = var->next) /*NOLINT*/
90 list_element *head; member
235 if (list->head == NULL ) { in list_append()
236 list->head = list->tail = e; in list_append()
252 list_element *cursor = list->head; in list_free()
892 if (!input_file_list.head) { in init()
/system/core/shell_and_utilities/
DREADME.md105 head hostname hwclock id ifconfig inotifyd insmod kill load\_policy ln
125 getenforce getprop groups head hostname hwclock id ifconfig inotifyd
147 getenforce getprop groups **gunzip** **gzip** head hostname hwclock id ifconfig
173 getenforce groups gunzip gzip head hostname hwclock id ifconfig inotifyd
200 getenforce **getfattr** grep groups gunzip gzip head **help** hostname hwclock
232 getenforce getfattr **getopt** grep groups gunzip gzip head help hostname
264 fsync getconf getenforce getfattr getopt grep groups gunzip gzip head
/system/keymaster/ng/include/
Dkeymaster_tags.h330 std::remove_reference_t<Head> NullOrOr(Head&& head, Tail&&... tail) {
331 if (head.isOk()) return head;

12