Loading libs/binder/BpBinder.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -188,6 +188,14 @@ int32_t BpBinder::binderHandle() const { return std::get<BinderHandle>(mHandle).handle; } std::optional<int32_t> BpBinder::getDebugBinderHandle() const { if (!isRpcBinder()) { return binderHandle(); } else { return std::nullopt; } } bool BpBinder::isDescriptorCached() const { Mutex::Autolock _l(mLock); return mDescriptorCache.size() ? true : false; Loading libs/binder/include/binder/BpBinder.h +2 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,8 @@ public: static void setLimitCallback(binder_proxy_limit_callback cb); static void setBinderProxyCountWatermarks(int high, int low); std::optional<int32_t> getDebugBinderHandle() const; class ObjectManager { public: ObjectManager(); Loading Loading
libs/binder/BpBinder.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -188,6 +188,14 @@ int32_t BpBinder::binderHandle() const { return std::get<BinderHandle>(mHandle).handle; } std::optional<int32_t> BpBinder::getDebugBinderHandle() const { if (!isRpcBinder()) { return binderHandle(); } else { return std::nullopt; } } bool BpBinder::isDescriptorCached() const { Mutex::Autolock _l(mLock); return mDescriptorCache.size() ? true : false; Loading
libs/binder/include/binder/BpBinder.h +2 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,8 @@ public: static void setLimitCallback(binder_proxy_limit_callback cb); static void setBinderProxyCountWatermarks(int high, int low); std::optional<int32_t> getDebugBinderHandle() const; class ObjectManager { public: ObjectManager(); Loading