Lines Matching refs:body
714 String8 timestamp, body; in dump() local
717 body.appendFormat("warning: lost %zu bytes worth of events", lost); in dump()
720 dumpLine(timestamp, body); in dump()
737 body.appendFormat("%.*s", (int) entry.length(), entry.data()); in dump()
772 dumpLine(timestamp, body); in dump()
791 appendInt(&body, entry.data()); in dump()
794 appendFloat(&body, entry.data()); in dump()
797 appendPID(&body, entry.data(), entry.length()); in dump()
802 entry = handleFormat(FormatEntry(entry), ×tamp, &body); in dump()
805 body.appendFormat("warning: got to end format event"); in dump()
810 body.appendFormat("warning: unexpected event %d", entry->type); in dump()
815 if (!body.isEmpty()) { in dump()
816 dumpLine(timestamp, body); in dump()
832 void NBLog::Reader::dumpLine(const String8 ×tamp, String8 &body) in dumpLine() argument
835 dprintf(mFd, "%.*s%s %s\n", mIndent, "", timestamp.string(), body.string()); in dumpLine()
837 ALOGI("%.*s%s %s", mIndent, "", timestamp.string(), body.string()); in dumpLine()
839 body.clear(); in dumpLine()
847 void NBLog::appendTimestamp(String8 *body, const void *data) { in appendTimestamp() argument
850 body->appendFormat("[%d.%03d]", (int) ts.tv_sec, in appendTimestamp()
854 void NBLog::appendInt(String8 *body, const void *data) { in appendInt() argument
856 body->appendFormat("<%d>", x); in appendInt()
859 void NBLog::appendFloat(String8 *body, const void *data) { in appendFloat() argument
862 body->appendFormat("<%f>", f); in appendFloat()
865 void NBLog::appendPID(String8 *body, const void* data, size_t length) { in appendPID() argument
868 body->appendFormat("<PID: %d, name: %.*s>", id, (int) (length - sizeof(pid_t)), name); in appendPID()
873 String8 *body) { in handleFormat() argument
881 handleAuthor(fmtEntry, body); in handleFormat()
891 body->append(&fmt[fmt_offset], 1); // TODO optimize to write consecutive strings at once in handleFormat()
896 body->append("%"); in handleFormat()
920 body->append((const char*) datum, length); in handleFormat()
926 appendTimestamp(body, datum); in handleFormat()
932 appendInt(body, datum); in handleFormat()
938 appendFloat(body, datum); in handleFormat()
944 appendPID(body, datum, length); in handleFormat()
1033 size_t NBLog::MergeReader::handleAuthor(const NBLog::FormatEntry &fmtEntry, String8 *body) { in handleAuthor() argument
1036 body->appendFormat("%s: ", name); in handleAuthor()