/system/logging/liblog/include/log/ |
D | log_read.h | 41 uint16_t hdr_size; /* sizeof(struct logger_entry) */ member 70 unsigned short hdr_size = entry.hdr_size; in msg() local 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() 74 return reinterpret_cast<char*>(buf) + hdr_size; in msg() 76 unsigned int len() { return entry.hdr_size + entry.len; } in len()
|
/system/logging/liblog/include_vndk/log/ |
D | log_read.h | 41 uint16_t hdr_size; /* sizeof(struct logger_entry) */ member 70 unsigned short hdr_size = entry.hdr_size; in msg() local 71 if (hdr_size >= sizeof(struct log_msg) - sizeof(entry)) { in msg() 74 return reinterpret_cast<char*>(buf) + hdr_size; in msg() 76 unsigned int len() { return entry.hdr_size + entry.len; } in len()
|
/system/logging/liblog/ |
D | logger_read.cpp | 120 if (log_msg->entry.hdr_size < sizeof(log_msg->entry) || in android_logger_list_read() 121 log_msg->entry.hdr_size >= LOGGER_ENTRY_MAX_LEN - sizeof(log_msg->entry)) { in android_logger_list_read() 125 if (log_msg->entry.len > ret - log_msg->entry.hdr_size) { in android_logger_list_read() 129 log_msg->buf[log_msg->entry.len + log_msg->entry.hdr_size] = '\0'; in android_logger_list_read()
|
D | pmsg_reader.cpp | 114 log_msg->entry.hdr_size = sizeof(log_msg->entry); in PmsgRead() 122 return ret + sizeof(buf.prio) + log_msg->entry.hdr_size; in PmsgRead() 222 size_t hdr_size = log_msg.entry.hdr_size; in __android_log_pmsg_file_read() local 224 char* msg = (char*)&log_msg + hdr_size; in __android_log_pmsg_file_read() 227 if (hdr_size != sizeof(log_msg.entry)) { in __android_log_pmsg_file_read() 363 calloc(1, sizeof(content->node) + hdr_size + log_msg.entry.len)); in __android_log_pmsg_file_read() 368 memcpy(&content->entry, &log_msg.entry, hdr_size + log_msg.entry.len); in __android_log_pmsg_file_read() 440 memcpy(buf + len, (char*)&content->entry + content->entry.hdr_size + tag_len + sizeof(prio), in __android_log_pmsg_file_read()
|
D | logprint.cpp | 533 if (buf->hdr_size < sizeof(logger_entry)) { in android_log_processLogBuffer() 537 char* msg = reinterpret_cast<char*>(buf) + buf->hdr_size; in android_log_processLogBuffer() 989 if (buf->hdr_size < sizeof(logger_entry)) { in android_log_processBinaryLogBuffer() 993 eventData = reinterpret_cast<unsigned char*>(buf) + buf->hdr_size; in android_log_processBinaryLogBuffer() 1052 eventData = reinterpret_cast<unsigned char*>(buf) + buf->hdr_size; in android_log_processBinaryLogBuffer()
|
/system/logging/liblog/tests/ |
D | logprint_test.cpp | 104 auto create_buf = [](char* buf, size_t len, uint16_t hdr_size) { in TEST() argument 107 header->hdr_size = hdr_size; in TEST() 114 char* message = buf + header->hdr_size; in TEST()
|
/system/bt/hci/test/ |
D | packet_fragmenter_test.cc | 157 uint8_t hdr_size = 8; // ts, packet_seq, len in expect_packet_fragmented() local 173 hdr_size -= 4; in expect_packet_fragmented() 185 length_to_check = packet_data_length - hdr_size; in expect_packet_fragmented() 269 uint8_t hdr_size = 4; // packet seq, sdu len in manufacture_iso_packet_and_then_reassemble() local 291 hdr_size += 4; in manufacture_iso_packet_and_then_reassemble() 313 memcpy(packet_data, data, length_to_send - hdr_size); in manufacture_iso_packet_and_then_reassemble() 321 memcpy(packet_data, data + length_sent - hdr_size, length_to_send); in manufacture_iso_packet_and_then_reassemble() 384 uint8_t hdr_size = 8; in expect_packet_reassembled_iso() local 407 hdr_size -= 4; in expect_packet_reassembled_iso() 410 ASSERT_EQ(expected_data_length + hdr_size, length); in expect_packet_reassembled_iso()
|
/system/core/fastboot/ |
D | vendor_boot_img_utils.cpp | 211 auto hdr_size = get_vendor_boot_header_size(hdr); in replace_default_vendor_ramdisk() local 212 if (!hdr_size.ok()) return hdr_size.error(); in replace_default_vendor_ramdisk() 214 const uint32_t o = round_up(*hdr_size, hdr->page_size); in replace_default_vendor_ramdisk() 305 auto hdr_size = get_vendor_boot_header_size(hdr); in replace_vendor_ramdisk_fragment() local 306 if (!hdr_size.ok()) return hdr_size.error(); in replace_vendor_ramdisk_fragment() 308 const uint32_t o = round_up(*hdr_size, hdr->page_size); in replace_vendor_ramdisk_fragment()
|
/system/bt/stack/test/fuzzers/a2dp/codec/ |
D | a2dpCodecHelperFunctions.h | 133 uint16_t hdr_size = bytes.size() + sizeof(BT_HDR); in getArbitraryBtHdr() local 135 reinterpret_cast<BT_HDR*>(calloc(hdr_size, sizeof(uint8_t))), free); in getArbitraryBtHdr() 140 fdp->ConsumeIntegralInRange<uint16_t>(0, hdr_size - sizeof(BT_HDR)); in getArbitraryBtHdr()
|
/system/logging/logd/ |
D | LogBufferTest.cpp | 48 if (expected.hdr_size != result.hdr_size) { in CompareLoggerEntries() 49 errors.emplace_back(StringPrintf("hdr_size: %" PRIu16 " vs %" PRIu16, expected.hdr_size, in CompareLoggerEntries() 50 result.hdr_size)); in CompareLoggerEntries() 172 entry.hdr_size = sizeof(logger_entry); in FixupMessages() 232 .hdr_size = sizeof(logger_entry), in GenerateRandomLogMessage()
|
D | SerializedLogEntry.h | 69 entry.hdr_size = sizeof(struct logger_entry); in Flush()
|
D | LogReader.cpp | 56 iovec[0].iov_len = entry.hdr_size; in Write()
|
D | LogBufferElement.cpp | 273 entry.hdr_size = sizeof(struct logger_entry); in FlushTo()
|
D | logd_test.cpp | 256 EXPECT_GE(msg->entry.hdr_size, sizeof(logger_entry)); in dump_log_msg() 259 fprintf(stderr, "hdr_size=%u ", msg->entry.hdr_size); in dump_log_msg()
|