summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-07-11 14:29:59 -0700
committerGlenn Kasten <gkasten@google.com>2014-02-18 11:48:04 -0800
commit4e01ef6b2f6d288b9aa83b5817adad02cecc429f (patch)
tree26ad87d5007224b80c6a240e7765ccf9b507e09a /include/media
parent9a73cd3face153cbd04ceff0cfc0efdd4837b94e (diff)
downloadframeworks_av-4e01ef6b2f6d288b9aa83b5817adad02cecc429f.zip
frameworks_av-4e01ef6b2f6d288b9aa83b5817adad02cecc429f.tar.gz
frameworks_av-4e01ef6b2f6d288b9aa83b5817adad02cecc429f.tar.bz2
Add private method NBLog::Reader::dumpLine()
This allows us to abstract out fdprintf vs ALOGI so that callers don't need an 'if' at every location. Change-Id: I4c68185fc19f32caeaed93347e6b7d09b8d4c4d8
Diffstat (limited to 'include/media')
-rw-r--r--include/media/nbaio/NBLog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/nbaio/NBLog.h b/include/media/nbaio/NBLog.h
index 6d59ea7..bcbbc04 100644
--- a/include/media/nbaio/NBLog.h
+++ b/include/media/nbaio/NBLog.h
@@ -25,6 +25,8 @@
namespace android {
+class String8;
+
class NBLog {
public:
@@ -187,6 +189,10 @@ private:
const Shared* const mShared; // raw pointer to shared memory
const sp<IMemory> mIMemory; // ref-counted version
int32_t mFront; // index of oldest acknowledged Entry
+ int mFd; // file descriptor
+ int mIndent; // indentation level
+
+ void dumpLine(const String8& timestamp, String8& body);
static const size_t kSquashTimestamp = 5; // squash this many or more adjacent timestamps
};