summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-07-11 14:29:59 -0700
committerGlenn Kasten <gkasten@android.com>2014-04-28 14:10:21 -0700
commit92dfd8e67e099577d07eaeb28aad533fd5514d8a (patch)
treec2df92dbe30769db409737fd29fdb96b4546fa17 /include
parent4513aa2cda9e636e4ac675dab9a1353b22e951ae (diff)
downloadframeworks_av-92dfd8e67e099577d07eaeb28aad533fd5514d8a.zip
frameworks_av-92dfd8e67e099577d07eaeb28aad533fd5514d8a.tar.gz
frameworks_av-92dfd8e67e099577d07eaeb28aad533fd5514d8a.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')
-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
};