Lines Matching defs:body

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