Lines Matching refs:BpBinder
42 RpcMutex BpBinder::sTrackingLock;
43 std::unordered_map<int32_t, uint32_t> BpBinder::sTrackingMap;
44 std::unordered_map<int32_t, uint32_t> BpBinder::sLastLimitCallbackMap;
45 int BpBinder::sNumTrackedUids = 0;
46 std::atomic_bool BpBinder::sCountByUidEnabled(false);
47 binder_proxy_limit_callback BpBinder::sLimitCallback;
48 binder_proxy_warning_callback BpBinder::sWarningCallback;
49 bool BpBinder::sBinderProxyThrottleCreate = false;
54 uint32_t BpBinder::sBinderProxyCountHighWatermark = 2500;
56 uint32_t BpBinder::sBinderProxyCountLowWatermark = 2000;
59 uint32_t BpBinder::sBinderProxyCountWarningWatermark = 2250;
61 std::atomic<uint32_t> BpBinder::sBinderProxyCount(0);
62 std::atomic<uint32_t> BpBinder::sBinderProxyCountWarned(0);
75 BpBinder::ObjectManager::ObjectManager() in ObjectManager()
79 BpBinder::ObjectManager::~ObjectManager() in ~ObjectManager()
84 void* BpBinder::ObjectManager::attach(const void* objectID, void* object, void* cleanupCookie, in attach()
102 void* BpBinder::ObjectManager::find(const void* objectID) const in find()
109 void* BpBinder::ObjectManager::detach(const void* objectID) { in detach()
127 sp<IBinder> BpBinder::ObjectManager::lookupOrCreateWeak(const void* objectID, object_make_func make, in lookupOrCreateWeak()
147 void BpBinder::ObjectManager::kill() in kill()
163 sp<BpBinder> BpBinder::create(int32_t handle) { in create()
225 return sp<BpBinder>::make(BinderHandle{handle}, trackedUid); in create()
228 sp<BpBinder> BpBinder::create(const sp<RpcSession>& session, uint64_t address) { in create()
236 return sp<BpBinder>::make(RpcHandle{session, address}); in create()
239 BpBinder::BpBinder(Handle&& handle) in BpBinder() function in android::BpBinder
250 BpBinder::BpBinder(BinderHandle&& handle, int32_t trackedUid) : BpBinder(Handle(handle)) { in BpBinder() function in android::BpBinder
263 BpBinder::BpBinder(RpcHandle&& handle) : BpBinder(Handle(handle)) { in BpBinder() function in android::BpBinder
267 bool BpBinder::isRpcBinder() const { in isRpcBinder()
271 uint64_t BpBinder::rpcAddress() const { in rpcAddress()
275 const sp<RpcSession>& BpBinder::rpcSession() const { in rpcSession()
279 int32_t BpBinder::binderHandle() const { in binderHandle()
283 std::optional<int32_t> BpBinder::getDebugBinderHandle() const { in getDebugBinderHandle()
291 bool BpBinder::isDescriptorCached() const { in isDescriptorCached()
296 const String16& BpBinder::getInterfaceDescriptor() const in getInterfaceDescriptor()
299 sp<BpBinder> thiz = sp<BpBinder>::fromExisting(const_cast<BpBinder*>(this)); in getInterfaceDescriptor()
322 bool BpBinder::isBinderAlive() const in isBinderAlive()
327 status_t BpBinder::pingBinder() in pingBinder()
330 data.markForBinder(sp<BpBinder>::fromExisting(this)); in pingBinder()
335 status_t BpBinder::startRecordingBinder(const unique_fd& fd) { in startRecordingBinder()
341 status_t BpBinder::stopRecordingBinder() { in stopRecordingBinder()
343 data.markForBinder(sp<BpBinder>::fromExisting(this)); in stopRecordingBinder()
347 status_t BpBinder::dump(int fd, const Vector<String16>& args) in dump()
362 status_t BpBinder::transact( in transact()
415 status_t BpBinder::linkToDeath( in linkToDeath()
474 status_t BpBinder::unlinkToDeath( in unlinkToDeath()
518 void BpBinder::sendObituary() in sendObituary()
560 void BpBinder::reportOneDeath(const Obituary& obit) in reportOneDeath()
566 recipient->binderDied(wp<BpBinder>::fromExisting(this)); in reportOneDeath()
569 void* BpBinder::attachObject(const void* objectID, void* object, void* cleanupCookie, in attachObject()
576 void* BpBinder::findObject(const void* objectID) const in findObject()
582 void* BpBinder::detachObject(const void* objectID) { in detachObject()
587 void BpBinder::withLock(const std::function<void()>& doWithLock) { in withLock()
592 sp<IBinder> BpBinder::lookupOrCreateWeak(const void* objectID, object_make_func make, in lookupOrCreateWeak()
598 BpBinder* BpBinder::remoteBinder() in remoteBinder()
603 BpBinder::~BpBinder() { in ~BpBinder()
645 void BpBinder::onFirstRef() { in onFirstRef()
660 void BpBinder::onLastStrongRef(const void* /*id*/) { in onLastStrongRef()
699 bool BpBinder::onIncStrongAttempted(uint32_t /*flags*/, const void* /*id*/) in onIncStrongAttempted()
716 uint32_t BpBinder::getBinderProxyCount(uint32_t uid) in getBinderProxyCount()
726 uint32_t BpBinder::getBinderProxyCount() in getBinderProxyCount()
731 void BpBinder::getCountByUid(Vector<uint32_t>& uids, Vector<uint32_t>& counts) in getCountByUid()
742 void BpBinder::enableCountByUid() { sCountByUidEnabled.store(true); } in enableCountByUid()
743 void BpBinder::disableCountByUid() { sCountByUidEnabled.store(false); } in disableCountByUid()
744 void BpBinder::setCountByUidEnabled(bool enable) { sCountByUidEnabled.store(enable); } in setCountByUidEnabled()
746 void BpBinder::setBinderProxyCountEventCallback(binder_proxy_limit_callback cbl, in setBinderProxyCountEventCallback()
753 void BpBinder::setBinderProxyCountWatermarks(int high, int low, int warning) { in setBinderProxyCountWatermarks()