Home
last modified time | relevance | path

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

/system/core/base/
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.md20 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.md163 `LOGGER_ENTRY_MAX_PAYLOAD`.
/system/core/logd/
DLogAudit.cpp272 size_t str_len = strnlen(str, LOGGER_ENTRY_MAX_PAYLOAD); in logPrint()
275 str_len = (str_len + denial_metadata.length() <= LOGGER_ENTRY_MAX_PAYLOAD) in logPrint()
277 : LOGGER_ENTRY_MAX_PAYLOAD; in logPrint()
333 if (prefix_len > LOGGER_ENTRY_MAX_PAYLOAD) { in logPrint()
334 prefix_len = LOGGER_ENTRY_MAX_PAYLOAD; in logPrint()
336 size_t suffix_len = strnlen(ecomm, LOGGER_ENTRY_MAX_PAYLOAD - prefix_len); in logPrint()
DLogKlog.cpp228 char buffer[LOGGER_ENTRY_MAX_PAYLOAD]; in onDataAvailable()
756 if (b > LOGGER_ENTRY_MAX_PAYLOAD) { in log()
757 b = LOGGER_ENTRY_MAX_PAYLOAD; in log()
759 if (taglen > LOGGER_ENTRY_MAX_PAYLOAD) { in log()
760 taglen = LOGGER_ENTRY_MAX_PAYLOAD; in log()
DLogListener.cpp44 char buffer[sizeof(android_log_header_t) + LOGGER_ENTRY_MAX_PAYLOAD + 1]; in onDataAvailable()
/system/core/libstats/push_compat/
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_list.c23 #define MAX_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(int32_t))
38 uint8_t storage[LOGGER_ENTRY_MAX_PAYLOAD];
/system/core/libstats/socket/
Dstatsd_writer.c239 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in statsdWrite()
240 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
Dstats_event.c23 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro
26 #define MAX_PUSH_EVENT_PAYLOAD (LOGGER_ENTRY_MAX_PAYLOAD - 4)
/system/core/liblog/include_vndk/log/
Dlog_read.h67 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro
/system/core/liblog/include/log/
Dlog_read.h67 #define LOGGER_ENTRY_MAX_PAYLOAD 4068 macro
/system/core/liblog/tests/
Dliblog_benchmark.cpp418 alignas(8) char buf[sizeof(struct packet) + 8 + LOGGER_ENTRY_MAX_PAYLOAD]; in BM_pmsg_long_aligned()
445 write(pstore_fd, &buffer->pmsg_header, LOGGER_ENTRY_MAX_PAYLOAD); in BM_pmsg_long_aligned()
491 alignas(8) char buf[sizeof(struct packet) + 8 + LOGGER_ENTRY_MAX_PAYLOAD]; in BM_pmsg_long_unaligned1()
518 write(pstore_fd, &buffer->pmsg_header, LOGGER_ENTRY_MAX_PAYLOAD); in BM_pmsg_long_unaligned1()
Dliblog_test.cpp352 if ((LOGGER_ENTRY_MAX_PAYLOAD - 4 - 1 - 4) <= length) { in bswrite_test()
456 if ((LOGGER_ENTRY_MAX_PAYLOAD - 2 - sizeof(tag)) <= length) { in buf_write_test()
952 #define SIZEOF_MAX_PAYLOAD_BUF (LOGGER_ENTRY_MAX_PAYLOAD - sizeof(max_payload_tag) - 1) in TEST()
1006 if ((size_t)log_msg.entry.len < LOGGER_ENTRY_MAX_PAYLOAD) { in TEST()
1024 EXPECT_GT(LOGGER_ENTRY_MAX_PAYLOAD * 13 / 8, printLogLine); in TEST()
1073 EXPECT_LE(static_cast<size_t>(len), LOGGER_ENTRY_MAX_PAYLOAD - sizeof(big_payload_tag)); in TEST()
1076 if (len == LOGGER_ENTRY_MAX_PAYLOAD - sizeof(big_payload_tag)) { in TEST()
/system/core/logcat/
Dlogcat.cpp1061 (int)LOGGER_ENTRY_MAX_PAYLOAD); in Run()