libbinder: BpBinder: hide layout
Currently the layout of mHandle in BpBinder is exposed. This restricts
possible changes that can be made in the future, so removing it while we
can.
Bug: 136027762
Test: N/A
Change-Id: Ie7bb8998c604eccbbd357ea2e276b2fd5ae54523
diff --git a/libs/binder/BpBinder.cpp b/libs/binder/BpBinder.cpp
index f35803c..5ceb218 100644
--- a/libs/binder/BpBinder.cpp
+++ b/libs/binder/BpBinder.cpp
@@ -148,6 +148,10 @@
IPCThreadState::self()->incWeakHandle(handle, this);
}
+int32_t BpBinder::handle() const {
+ return mHandle;
+}
+
bool BpBinder::isDescriptorCached() const {
Mutex::Autolock _l(mLock);
return mDescriptorCache.size() ? true : false;