Lines Matching refs:Entry
26 #include <media/nblog/Entry.h>
78 if (length > Entry::kMaxLength) {
79 length = Entry::kMaxLength;
144 void Writer::log(const Entry &etr, bool trusted)
153 const size_t need = etr.mLength + Entry::kOverhead; // mEvent, mLength, data[mLength], mLength
156 // FIXME optimize this using memcpy for the data part of the Entry.
157 // The Entry could have a method copyTo(ptr, offset, size) to optimize the copy.
158 // checks size of a single log Entry: type, length, data pointer and ending
159 uint8_t temp[Entry::kMaxLength + Entry::kOverhead];
173 if (data == NULL || length > Entry::kMaxLength) {
183 Entry etr(event, data, length);
192 char buffer[Entry::kMaxLength + 1 /*NUL*/];
210 if (length > Entry::kMaxLength) {
211 length = Entry::kMaxLength;
252 if (length > Entry::kMaxLength) {
253 length = Entry::kMaxLength;
291 Entry etr(EVENT_FMT_END, nullptr, 0);
314 void LockedWriter::log(const Entry &entry, bool trusted) {
316 Writer::log(entry, trusted);