summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2019-07-16 14:24:20 -0700
committer Steven Moreland <smoreland@google.com> 2019-07-16 14:24:20 -0700
commit85180c00b24af8ef6cf1a801d69b4906b74271ab (patch)
tree768e9a3bc0934a82776c81f9fab4e8adc239c785
parenta152e0f75fc859d738ab587a46697bbf8a281bab (diff)
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
-rw-r--r--libs/binder/BpBinder.cpp4
-rw-r--r--libs/binder/include/binder/BpBinder.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libs/binder/BpBinder.cpp b/libs/binder/BpBinder.cpp
index f35803c01d..5ceb218b8b 100644
--- a/libs/binder/BpBinder.cpp
+++ b/libs/binder/BpBinder.cpp
@@ -148,6 +148,10 @@ BpBinder::BpBinder(int32_t handle, int32_t trackedUid)
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;
diff --git a/libs/binder/include/binder/BpBinder.h b/libs/binder/include/binder/BpBinder.h
index 78f2e1d831..b3a1d0b7e9 100644
--- a/libs/binder/include/binder/BpBinder.h
+++ b/libs/binder/include/binder/BpBinder.h
@@ -34,7 +34,7 @@ class BpBinder : public IBinder
public:
static BpBinder* create(int32_t handle);
- inline int32_t handle() const { return mHandle; }
+ int32_t handle() const;
virtual const String16& getInterfaceDescriptor() const;
virtual bool isBinderAlive() const;