diff options
| author | 2016-09-26 18:10:16 -0700 | |
|---|---|---|
| committer | 2016-09-30 12:59:29 -0700 | |
| commit | 5fa1223322175356e6ac943cb06d8b1e1cfc39d9 (patch) | |
| tree | cd24c24c9fdadb4ee51caacab6f5d45b67e880da | |
| parent | dd3f8634998c50035b7c2beb118c00415b29df31 (diff) | |
Rename dump methods to dumpState
The dump methods shadow the IBinder dump method. The warnings were being
hidden by the use of -isystem to include frameworks/native/include.
Bug: 31752268
Test: m -j
Merged-in: Iafc64da43032d5d9d84b64640e70d93fd7051bcf
Change-Id: Iafc64da43032d5d9d84b64640e70d93fd7051bcf
| -rw-r--r-- | include/gui/BufferQueueConsumer.h | 2 | ||||
| -rw-r--r-- | include/gui/BufferQueueCore.h | 2 | ||||
| -rw-r--r-- | include/gui/ConsumerBase.h | 6 | ||||
| -rw-r--r-- | include/gui/IGraphicBufferConsumer.h | 2 | ||||
| -rw-r--r-- | libs/gui/BufferQueueConsumer.cpp | 4 | ||||
| -rw-r--r-- | libs/gui/BufferQueueCore.cpp | 2 | ||||
| -rw-r--r-- | libs/gui/ConsumerBase.cpp | 8 | ||||
| -rw-r--r-- | libs/gui/IGraphicBufferConsumer.cpp | 4 | ||||
| -rw-r--r-- | services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp | 2 | ||||
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 2 |
10 files changed, 17 insertions, 17 deletions
diff --git a/include/gui/BufferQueueConsumer.h b/include/gui/BufferQueueConsumer.h index b2daae47c3..c655f2af70 100644 --- a/include/gui/BufferQueueConsumer.h +++ b/include/gui/BufferQueueConsumer.h @@ -137,7 +137,7 @@ public: virtual sp<NativeHandle> getSidebandStream() const; // dump our state in a String - virtual void dump(String8& result, const char* prefix) const; + virtual void dumpState(String8& result, const char* prefix) const; // Functions required for backwards compatibility. // These will be modified/renamed in IGraphicBufferConsumer and will be diff --git a/include/gui/BufferQueueCore.h b/include/gui/BufferQueueCore.h index 8e9b0fc854..4f1e09c728 100644 --- a/include/gui/BufferQueueCore.h +++ b/include/gui/BufferQueueCore.h @@ -85,7 +85,7 @@ public: private: // Dump our state in a string - void dump(String8& result, const char* prefix) const; + void dumpState(String8& result, const char* prefix) const; // getMinUndequeuedBufferCountLocked returns the minimum number of buffers // that must remain in a state other than DEQUEUED. The async parameter diff --git a/include/gui/ConsumerBase.h b/include/gui/ConsumerBase.h index c62e7339d5..19fdcc3f61 100644 --- a/include/gui/ConsumerBase.h +++ b/include/gui/ConsumerBase.h @@ -63,11 +63,11 @@ public: // log messages. void setName(const String8& name); - // dump writes the current state to a string. Child classes should add + // dumpState writes the current state to a string. Child classes should add // their state to the dump by overriding the dumpLocked method, which is // called by these methods after locking the mutex. - void dump(String8& result) const; - void dump(String8& result, const char* prefix) const; + void dumpState(String8& result) const; + void dumpState(String8& result, const char* prefix) const; // setFrameAvailableListener sets the listener object that will be notified // when a new frame becomes available. diff --git a/include/gui/IGraphicBufferConsumer.h b/include/gui/IGraphicBufferConsumer.h index 1165c40e02..210fbc8115 100644 --- a/include/gui/IGraphicBufferConsumer.h +++ b/include/gui/IGraphicBufferConsumer.h @@ -266,7 +266,7 @@ public: virtual sp<NativeHandle> getSidebandStream() const = 0; // dump state into a string - virtual void dump(String8& result, const char* prefix) const = 0; + virtual void dumpState(String8& result, const char* prefix) const = 0; public: DECLARE_META_INTERFACE(GraphicBufferConsumer) diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp index f7b83fc34c..856115dc74 100644 --- a/libs/gui/BufferQueueConsumer.cpp +++ b/libs/gui/BufferQueueConsumer.cpp @@ -718,7 +718,7 @@ sp<NativeHandle> BufferQueueConsumer::getSidebandStream() const { return mCore->mSidebandStream; } -void BufferQueueConsumer::dump(String8& result, const char* prefix) const { +void BufferQueueConsumer::dumpState(String8& result, const char* prefix) const { const IPCThreadState* ipc = IPCThreadState::self(); const pid_t pid = ipc->getCallingPid(); const uid_t uid = ipc->getCallingUid(); @@ -730,7 +730,7 @@ void BufferQueueConsumer::dump(String8& result, const char* prefix) const { android_errorWriteWithInfoLog(0x534e4554, "27046057", static_cast<int32_t>(uid), NULL, 0); } else { - mCore->dump(result, prefix); + mCore->dumpState(result, prefix); } } diff --git a/libs/gui/BufferQueueCore.cpp b/libs/gui/BufferQueueCore.cpp index f48e58aa2a..032779dc3a 100644 --- a/libs/gui/BufferQueueCore.cpp +++ b/libs/gui/BufferQueueCore.cpp @@ -123,7 +123,7 @@ BufferQueueCore::BufferQueueCore(const sp<IGraphicBufferAlloc>& allocator) : BufferQueueCore::~BufferQueueCore() {} -void BufferQueueCore::dump(String8& result, const char* prefix) const { +void BufferQueueCore::dumpState(String8& result, const char* prefix) const { Mutex::Autolock lock(mMutex); String8 fifo; diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp index a6a971282e..5d2e5cffd8 100644 --- a/libs/gui/ConsumerBase.cpp +++ b/libs/gui/ConsumerBase.cpp @@ -235,11 +235,11 @@ status_t ConsumerBase::setDefaultBufferDataSpace( return mConsumer->setDefaultBufferDataSpace(defaultDataSpace); } -void ConsumerBase::dump(String8& result) const { - dump(result, ""); +void ConsumerBase::dumpState(String8& result) const { + dumpState(result, ""); } -void ConsumerBase::dump(String8& result, const char* prefix) const { +void ConsumerBase::dumpState(String8& result, const char* prefix) const { Mutex::Autolock _l(mMutex); dumpLocked(result, prefix); } @@ -248,7 +248,7 @@ void ConsumerBase::dumpLocked(String8& result, const char* prefix) const { result.appendFormat("%smAbandoned=%d\n", prefix, int(mAbandoned)); if (!mAbandoned) { - mConsumer->dump(result, prefix); + mConsumer->dumpState(result, prefix); } } diff --git a/libs/gui/IGraphicBufferConsumer.cpp b/libs/gui/IGraphicBufferConsumer.cpp index d926b2089c..6d33a10ab1 100644 --- a/libs/gui/IGraphicBufferConsumer.cpp +++ b/libs/gui/IGraphicBufferConsumer.cpp @@ -260,7 +260,7 @@ public: return stream; } - virtual void dump(String8& result, const char* prefix) const { + virtual void dumpState(String8& result, const char* prefix) const { Parcel data, reply; data.writeInterfaceToken(IGraphicBufferConsumer::getInterfaceDescriptor()); data.writeString8(result); @@ -413,7 +413,7 @@ status_t BnGraphicBufferConsumer::onTransact( CHECK_INTERFACE(IGraphicBufferConsumer, data, reply); String8 result = data.readString8(); String8 prefix = data.readString8(); - static_cast<IGraphicBufferConsumer*>(this)->dump(result, prefix); + static_cast<IGraphicBufferConsumer*>(this)->dumpState(result, prefix); reply->writeString8(result); return NO_ERROR; } diff --git a/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp b/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp index 7368d775ad..18c7945577 100644 --- a/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp +++ b/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp @@ -240,7 +240,7 @@ status_t FramebufferSurface::compositionComplete() #endif void FramebufferSurface::dumpAsString(String8& result) const { - ConsumerBase::dump(result); + ConsumerBase::dumpState(result); } void FramebufferSurface::dumpLocked(String8& result, const char* prefix) const diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 9173165d0c..89e37b2f37 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -2166,7 +2166,7 @@ void Layer::dump(String8& result, Colorizer& colorizer) const mQueuedFrames, mRefreshPending); if (mSurfaceFlingerConsumer != 0) { - mSurfaceFlingerConsumer->dump(result, " "); + mSurfaceFlingerConsumer->dumpState(result, " "); } } |