Home
last modified time | relevance | path

Searched refs:payloadSize (Results 1 – 2 of 2) sorted by relevance

/system/core/liblog/
Dpmsg_writer.c105 size_t i, payloadSize; in pmsgWrite() local
157 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in pmsgWrite()
159 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite()
161 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in pmsgWrite()
162 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in pmsgWrite()
166 payloadSize = LOGGER_ENTRY_MAX_PAYLOAD; in pmsgWrite()
170 pmsgHeader.len += payloadSize; in pmsgWrite()
Dlogd_writer.c124 size_t i, payloadSize; in logdWrite() local
211 for (payloadSize = 0, i = headerLength; i < nr + headerLength; i++) { in logdWrite()
213 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in logdWrite()
215 if (payloadSize > LOGGER_ENTRY_MAX_PAYLOAD) { in logdWrite()
216 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in logdWrite()