Home
last modified time | relevance | path

Searched refs:LOGGER_ENTRY_MAX_PAYLOAD (Results 1 – 23 of 23) sorted by relevance

/system/libbase/
Dlogging_splitters_test.cpp130 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()
Dlogging_splitters.h24 #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/
Dpmsg_writer.cpp131 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()
Dlogd_writer.cpp162 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in LogdWrite()
163 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in LogdWrite()
DREADME.protocol.md63 The payload, excluding the header, has a max size of LOGGER_ENTRY_MAX_PAYLOAD.
Dlog_event_list.cpp28 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
45 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
Dlogger_write.cpp145 GetDefaultTag().assign(tag, 0, LOGGER_ENTRY_MAX_PAYLOAD); in __android_log_set_default_tag()
Dpmsg_reader.cpp81 (buf.p.len > (sizeof(buf) + LOGGER_ENTRY_MAX_PAYLOAD)) || (buf.l.id >= LOG_ID_MAX) || in PmsgRead()
DREADME.md158 `LOGGER_ENTRY_MAX_PAYLOAD`.
/system/core/logd/
DRecordingLogBuffer.cpp29 if (len > LOGGER_ENTRY_MAX_PAYLOAD) { in RecordLogMessage()
30 len = LOGGER_ENTRY_MAX_PAYLOAD; in RecordLogMessage()
DLogAudit.cpp257 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()
DLogKlog.cpp227 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()
DLogListener.cpp57 buffer[sizeof(android_log_header_t) + LOGGER_ENTRY_MAX_PAYLOAD + 1]; in HandleData()
DReplayMessages.cpp126 if (log_msg.entry.len > LOGGER_ENTRY_MAX_PAYLOAD) { in Write()
/system/core/libstats/socket/
Dstats_event_list.c23 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
Dstatsd_writer.c230 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in statsdWrite()
231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
Dstats_event.c23 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro
26 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - 4)
/system/core/liblog/include/log/
Dlog.h71 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro
/system/core/libstats/push_compat/
Dstats_event_list.c23 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
Dstatsd_writer.c230 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in statsdWrite()
231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
/system/core/liblog/tests/
Dliblog_benchmark.cpp420 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()
Dliblog_test.cpp345 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/
Dlogcat.cpp1078 (int)LOGGER_ENTRY_MAX_PAYLOAD); in Run()