Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 42) 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/extras/simpleperf/
Dutils.h158 BinaryReader(const char* head, size_t size) : head(head), end(head + size), error(false) {} in BinaryReader()
160 size_t LeftSize() const { return end - head; } in LeftSize()
175 head += size; in Move()
188 memcpy(&data, head, sizeof(T)); in Read()
189 head += sizeof(T); in Read()
203 memcpy(data_p, head, size); in Read()
204 head += size; in Read()
214 while (head < end && *head != '\0') { in ReadString()
215 result.push_back(*head++); in ReadString()
217 if (LIKELY(head < end && *head == '\0')) { in ReadString()
[all …]
Dtracing.cpp76 uint64_t file_size = ConvertBytesToValue(reader.head, file_size_bytes); in DetachFile()
77 reader.head += file_size_bytes; in DetachFile()
81 std::string result(reader.head, file_size); in DetachFile()
82 reader.head += file_size; in DetachFile()
209 if (!reader.CheckLeftSize(sizeof(magic)) || memcmp(reader.head, magic, sizeof(magic)) != 0) { in LoadFromBinary()
212 reader.head += sizeof(magic); in LoadFromBinary()
244 return !reader.error && reader.head == reader.end; in LoadFromBinary()
/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/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/chre/util/include/chre/util/system/
Datomic_spsc_queue.h105 uint32_t head = mHead.load(); in size() local
113 if (head == tail || tail < head) { in size()
116 return (tail - head); in size()
/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)
/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/tools/aidl/tests/
Daidl_test_client_ndk_parcelables.cpp65 std::unique_ptr<RecursiveList> head; in TEST_F() local
69 node->next = std::move(head); in TEST_F()
70 head = std::move(node); in TEST_F()
75 auto status = getService<ITestService>()->ReverseList(*head, &reversed); in TEST_F()
/system/libvintf/test/
DVintfFmTest.cpp284 auto head = android::base::StringPrintf(R"(<compatibility-matrix %s type="device">)", in SetUpFiles() local
294 xml3 = head + xml3 + tail; in SetUpFiles()
295 xml2 = head + xml2 + tail; in SetUpFiles()
296 xml1 = head + xml1 + tail; in SetUpFiles()
/system/unwinding/libunwindstack/tools/
Dshare_common_elfs.sh68 if [[ $(head -c 4 $1 | cut -c2-) == "ELF" ]]; then
/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/chre/platform/tinysys/
Dauthentication.cc198 bool hasCorrectHash(const void *head, size_t realImageSize, in hasCorrectHash() argument
200 auto image = static_cast<const uint8_t *>(head) + kHeaderSize; in hasCorrectHash()
/system/timezone/testing/data/
Dtransform-data-files.sh39 TZHEADER=$(head -n1 ${INPUT_TZDATA_FILE} | cut -c1-11)
/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.md57 fsync getconf getenforce getfattr getopt grep groups gunzip gzip head
91 fsync getconf getenforce getfattr getopt grep groups gunzip gzip head
125 fsync getconf getenforce getfattr getopt grep groups gunzip gzip head
159 getenforce getfattr **getopt** grep groups gunzip gzip head help hostname
191 getenforce **getfattr** grep groups gunzip gzip head **help** hostname hwclock
222 getenforce groups gunzip gzip head hostname hwclock id ifconfig inotifyd
247 getenforce getprop groups **gunzip** **gzip** head hostname hwclock id ifconfig
271 getenforce getprop groups head hostname hwclock id ifconfig inotifyd
293 head hostname hwclock id ifconfig inotifyd insmod kill load\_policy ln
/system/core/libdiskconfig/include/diskconfig/
Ddiskconfig.h57 uint8_t head; member
/system/keymaster/ng/include/
Dkeymaster_tags.h330 std::remove_reference_t<Head> NullOrOr(Head&& head, Tail&&... tail) {
331 if (head.isOk()) return head;

12