Home
last modified time | relevance | path

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

12

/system/netd/libnetdutils/
DNetlink.cpp28 Slice tail = buf; in forEachNetlinkMessage() local
29 while (tail.size() >= sizeof(nlmsghdr)) { in forEachNetlinkMessage()
31 extract(tail, hdr); in forEachNetlinkMessage()
33 onMsg(hdr, drop(take(tail, len), sizeof(hdr))); in forEachNetlinkMessage()
34 tail = drop(tail, align(len, 2)); in forEachNetlinkMessage()
40 Slice tail = buf; in forEachNetlinkAttribute() local
41 while (tail.size() >= sizeof(nlattr)) { in forEachNetlinkAttribute()
43 extract(tail, hdr); in forEachNetlinkAttribute()
45 onAttr(hdr, drop(take(tail, len), sizeof(hdr))); in forEachNetlinkAttribute()
46 tail = drop(tail, align(len, 2)); in forEachNetlinkAttribute()
DSlice.cpp39 Slice tail = s; in toHex() local
42 while (!tail.empty()) { in toHex()
44 extract(tail, byte); in toHex()
49 tail = drop(tail, 1); in toHex()
/system/bt/osi/src/
Dlist.cc14 list_node_t* tail; member
79 return list->tail->data; in list_back()
86 return list->tail; in list_back_node()
100 if (list->tail == prev_node) list->tail = node; in list_insert_after()
114 if (list->tail == NULL) list->tail = list->head; in list_prepend()
127 if (list->tail == NULL) { in list_append()
129 list->tail = node; in list_append()
131 list->tail->next = node; in list_append()
132 list->tail = node; in list_append()
146 if (list->tail == list->head) list->tail = next; in list_remove()
[all …]
Dringbuffer.cc30 uint8_t* tail; member
38 p->head = p->tail = p->base; in ringbuffer_init()
66 *rb->tail++ = *p++; in ringbuffer_insert()
67 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert()
/system/logging/liblog/
Dlogger_read.cpp40 static struct logger_list* android_logger_list_alloc_internal(int mode, unsigned int tail, in android_logger_list_alloc_internal() argument
49 logger_list->tail = tail; in android_logger_list_alloc_internal()
55 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail, pid_t pid) { in android_logger_list_alloc() argument
56 return android_logger_list_alloc_internal(mode, tail, log_time(0, 0), pid); in android_logger_list_alloc()
77 struct logger_list* android_logger_list_open(log_id_t logId, int mode, unsigned int tail, in android_logger_list_open() argument
79 struct logger_list* logger_list = android_logger_list_alloc(mode, tail, pid); in android_logger_list_open()
Dlogger.h31 unsigned int tail; member
/system/nfc/utils/
Dringbuffer.cc29 uint8_t* tail; member
40 p->head = p->tail = p->base; in ringbuffer_init()
68 *rb->tail++ = *p++; in ringbuffer_insert()
69 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert()
/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;
Dstruct.h252 constexpr explicit FieldSpecList(FieldSpec field_spec, Tail... tail)
253 : kFieldSpec(field_spec), kTail(tail...) {}
/system/logging/logd/
DLogReader.cpp102 unsigned long tail = 0; in onDataAvailable() local
106 tail = atol(cp + sizeof(_tail) - 1); in onDataAvailable()
210 cli->getUid(), cli->getGid(), cli->getPid(), nonBlock ? 'n' : 'b', tail, logMask, in onDataAvailable()
219 std::move(socket_log_writer), nonBlock, tail, in onDataAvailable()
DLogReaderThread.cpp31 unsigned long tail, LogMask log_mask, pid_t pid, in LogReaderThread() argument
38 tail_(tail), in LogReaderThread()
DLogBufferTest.h112 unsigned long tail = 0; member
127 params.non_block, params.tail, params.log_mask, params.pid, params.start_time, in TestReaderThread()
DLogBufferTest.cpp379 auto read_log_messages = ReadLogMessagesNonBlockingThread({.tail = kTailCount}); in TEST_P()
388 auto blocking_reader = TestReaderThread({.non_block = false, .tail = kTailCount}, *this); in TEST_P()
434 auto read_log_messages = ReadLogMessagesNonBlockingThread({.tail = kTailCount}); in TEST_P()
443 auto blocking_reader = TestReaderThread({.non_block = false, .tail = kTailCount}, *this); in TEST_P()
/system/libvintf/test/
DAssembleVintfTest.cpp146 std::string tail = in TEST_F() local
164 tail; in TEST_F()
252 tail, in TEST_F()
270 tail, in TEST_F()
287 tail, in TEST_F()
DVintfFmTest.cpp284 auto tail = R"(</compatibility-matrix>)"; 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/logging/liblog/include_vndk/log/
Dlog_read.h111 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail,
124 unsigned int tail, pid_t pid);
/system/logging/liblog/include/log/
Dlog_read.h111 struct logger_list* android_logger_list_alloc(int mode, unsigned int tail,
124 unsigned int tail, pid_t pid);
/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) {
290 return write(wState, tail...);
Dgeneric_messages.h76 WriteStream write(Message<CmdSpec, Tail...>, WriteStream out, const Tail&... tail) { in write() argument
78 return write(Message<Tail...>(), out, tail...); in write()
/system/chre/util/include/chre/util/
Darray_queue.h176 ArrayQueueIterator(ValueType *pointer, ValueType *base, size_t tail) in ArrayQueueIterator() argument
177 : mPointer(pointer), mBase(base), mTail(tail) {} in ArrayQueueIterator()
/system/security/keystore2/src/database/
Dutils.rs156 (@gen_consts {$first:ident $(,$tail:ident)*} {$($out:tt)*} {$($count:tt)*}) => {
157 impl_metadata!(@gen_consts {$($tail),*} {$($out)* $first ($($count)*),} {$($count)* + 1});
/system/bt/gd/packet/
Dpacket_view_unittest.cc408 PacketView<true> Slice(size_t header, size_t tail) { in Slice() argument
409 return PacketView<true>::GetLittleEndianSubview(header, tail); in Slice()
418 auto tail = GetParam().second; in TEST_P() local
426 auto single_slice = single_view.Slice(header, tail); in TEST_P()
427 auto multi_slice = multi_view.Slice(header, tail); in TEST_P()
429 ASSERT_EQ(single_slice.size(), tail - header); in TEST_P()
459 auto tail = GetParam().second; in TEST_P() local
467 ASSERT_DEATH(auto single_slice = single_view.Slice(header, tail), ""); in TEST_P()
468 ASSERT_DEATH(auto multi_slice = multi_view.Slice(header, tail), ""); in TEST_P()
/system/netd/libnetdutils/include/netdutils/
DSlice.h128 inline size_t extract(const Slice src, Head& head, Tail&... tail) { in extract() argument
130 return extracted + extract(drop(src, extracted), tail...); in extract()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp459 static void dump_log_file(log_t* log, pid_t pid, const char* filename, unsigned int tail) { in dump_log_file() argument
468 android_logger_list_open(android_name_to_log_id(filename), ANDROID_LOG_NONBLOCK, tail, pid); in dump_log_file()
501 _LOG(log, logtype::LOGS, "--------- %slog %s\n", tail ? "tail end of " : "", filename); in dump_log_file()
552 static void dump_logs(log_t* log, pid_t pid, unsigned int tail) { in dump_logs() argument
558 dump_log_file(log, pid, "system", tail); in dump_logs()
559 dump_log_file(log, pid, "main", tail); in dump_logs()
/system/core/libutils/
DString8.cpp403 size_t tail = index; in removeAll() local
410 memmove(buf + tail, buf + index + skip, next - index - skip); in removeAll()
411 tail += next - index - skip; in removeAll()
414 unlockBuffer(tail); in removeAll()

12