Searched refs:LOGGER_ENTRY_MAX_PAYLOAD (Results 1 – 23 of 23) sorted by relevance
/system/libbase/ |
D | logging_splitters_test.cpp | 130 auto long_string = std::string(LOGGER_ENTRY_MAX_PAYLOAD, 'x'); in TEST() 131 ASSERT_EQ(LOGGER_ENTRY_MAX_PAYLOAD, static_cast<int>(long_string.size())); in TEST() 137 return string.substr(0, LOGGER_ENTRY_MAX_PAYLOAD - tag.size() - 35); in ReduceToMaxSize() 141 auto long_string_x = std::string(LOGGER_ENTRY_MAX_PAYLOAD, 'x'); in TEST() 142 auto long_string_y = std::string(LOGGER_ENTRY_MAX_PAYLOAD, 'y'); in TEST() 143 auto long_string_z = std::string(LOGGER_ENTRY_MAX_PAYLOAD, 'z'); in TEST() 169 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - strlen(tag) - 35; in TEST() 182 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - tag.size() - 35; in TEST() 210 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - tag.size() - 35; in TEST()
|
D | logging_splitters.h | 24 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 // This constant is not in the NDK. macro 57 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - strlen(tag) - 35; in SplitByLogdChunks()
|
/system/core/liblog/ |
D | pmsg_writer.cpp | 131 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in PmsgWrite() 132 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in PmsgWrite() 136 payloadSize = LOGGER_ENTRY_MAX_PAYLOAD; in PmsgWrite() 209 packet_len = LOGGER_ENTRY_MAX_PAYLOAD - sizeof(char) - length; in __android_log_pmsg_file_write()
|
D | logd_writer.cpp | 162 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in LogdWrite() 163 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in LogdWrite()
|
D | README.protocol.md | 63 The payload, excluding the header, has a max size of LOGGER_ENTRY_MAX_PAYLOAD.
|
D | log_event_list.cpp | 28 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t)) 45 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
|
D | logger_write.cpp | 145 GetDefaultTag().assign(tag, 0, LOGGER_ENTRY_MAX_PAYLOAD); in __android_log_set_default_tag()
|
D | pmsg_reader.cpp | 81 (buf.p.len > (sizeof(buf) + LOGGER_ENTRY_MAX_PAYLOAD)) || (buf.l.id >= LOG_ID_MAX) || in PmsgRead()
|
D | README.md | 158 `LOGGER_ENTRY_MAX_PAYLOAD`.
|
/system/core/logd/ |
D | RecordingLogBuffer.cpp | 29 if (len > LOGGER_ENTRY_MAX_PAYLOAD) { in RecordLogMessage() 30 len = LOGGER_ENTRY_MAX_PAYLOAD; in RecordLogMessage()
|
D | LogAudit.cpp | 257 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD); in logPrint() 260 str_len = (str_len + denial_metadata.length() <= LOGGER_ENTRY_MAX_PAYLOAD) in logPrint() 262 : LOGGER_ENTRY_MAX_PAYLOAD; in logPrint() 315 if (prefix_len > LOGGER_ENTRY_MAX_PAYLOAD) { in logPrint() 316 prefix_len = LOGGER_ENTRY_MAX_PAYLOAD; in logPrint() 318 size_t suffix_len = strnlen(ecomm, LOGGER_ENTRY_MAX_PAYLOAD - prefix_len); in logPrint()
|
D | LogKlog.cpp | 227 char buffer[LOGGER_ENTRY_MAX_PAYLOAD]; in onDataAvailable() 707 if (b > LOGGER_ENTRY_MAX_PAYLOAD) { in log() 708 b = LOGGER_ENTRY_MAX_PAYLOAD; in log() 710 if (taglen > LOGGER_ENTRY_MAX_PAYLOAD) { in log() 711 taglen = LOGGER_ENTRY_MAX_PAYLOAD; in log()
|
D | LogListener.cpp | 57 buffer[sizeof(android_log_header_t) + LOGGER_ENTRY_MAX_PAYLOAD + 1]; in HandleData()
|
D | ReplayMessages.cpp | 126 if (log_msg.entry.len > LOGGER_ENTRY_MAX_PAYLOAD) { in Write()
|
/system/core/libstats/socket/ |
D | stats_event_list.c | 23 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t)) 38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
|
D | statsd_writer.c | 230 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in statsdWrite() 231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
|
D | stats_event.c | 23 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro 26 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - 4)
|
/system/core/liblog/include/log/ |
D | log.h | 71 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro
|
/system/core/libstats/push_compat/ |
D | stats_event_list.c | 23 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t)) 38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
|
D | statsd_writer.c | 230 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in statsdWrite() 231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 420 alignas(8) char buf[sizeof(struct packet) + 8 + LOGGER_ENTRY_MAX_PAYLOAD]; in BM_pmsg_long_aligned() 447 write(pstore_fd, &buffer->pmsg_header, LOGGER_ENTRY_MAX_PAYLOAD); in BM_pmsg_long_aligned() 493 alignas(8) char buf[sizeof(struct packet) + 8 + LOGGER_ENTRY_MAX_PAYLOAD]; in BM_pmsg_long_unaligned1() 520 write(pstore_fd, &buffer->pmsg_header, LOGGER_ENTRY_MAX_PAYLOAD); in BM_pmsg_long_unaligned1()
|
D | liblog_test.cpp | 345 if ((LOGGER_ENTRY_MAX_PAYLOAD - 4 - 1 - 4) <= length) { in bswrite_test() 448 if ((LOGGER_ENTRY_MAX_PAYLOAD - 2 - sizeof(tag)) <= length) { in buf_write_test() 942 #define SIZEOF_MAX_PAYLOAD_BUF (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(max_payload_tag) - 1) in TEST() 996 if ((size_t)log_msg.entry.len < LOGGER_ENTRY_MAX_PAYLOAD) { in TEST() 1014 EXPECT_GT(LOGGER_ENTRY_MAX_PAYLOAD * 13 / 8, printLogLine); in TEST() 1063 EXPECT_LE(static_cast<size_t>(len), LOGGER_ENTRY_MAX_PAYLOAD - sizeof(big_payload_tag)); in TEST() 1066 if (len == LOGGER_ENTRY_MAX_PAYLOAD - sizeof(big_payload_tag)) { in TEST()
|
/system/core/logcat/ |
D | logcat.cpp | 1078 (int)LOGGER_ENTRY_MAX_PAYLOAD); in Run()
|