Home
last modified time | relevance | path

Searched refs:BpBinder (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/libs/binder/
DBpBinder.cpp42 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;
[all …]
DBinder.cpp98 BpBinder* IBinder::remoteBinder() in remoteBinder()
135 BpBinder* proxy = this->remoteBinder(); in getExtension()
153 BpBinder* proxy = this->remoteBinder(); in getDebugPid()
187 BpBinder* proxy = this->remoteBinder(); in setRpcClientDebug()
209 BpBinder* proxy = this->remoteBinder(); in withLock()
220 BpBinder* proxy = this->remoteBinder(); in lookupOrCreateWeak()
275 BpBinder::ObjectManager mObjects;
DProcessState.cpp267 ssize_t ProcessState::getStrongRefCountForNode(const sp<BpBinder>& binder) { in getStrongRefCountForNode()
362 sp<BpBinder> b = BpBinder::PrivateAccessor::create(handle); in getStrongProxyForHandle()
DIPCThreadState.cpp885 void IPCThreadState::incStrongHandle(int32_t handle, BpBinder *proxy) in incStrongHandle()
905 void IPCThreadState::incWeakHandle(int32_t handle, BpBinder *proxy) in incWeakHandle()
939 status_t IPCThreadState::requestDeathNotification(int32_t handle, BpBinder* proxy) in requestDeathNotification()
947 status_t IPCThreadState::clearDeathNotification(int32_t handle, BpBinder* proxy) in clearDeathNotification()
1477 BpBinder *proxy = (BpBinder*)mIn.readPointer(); in executeCommand()
1485 BpBinder *proxy = (BpBinder*)mIn.readPointer(); in executeCommand()
DAndroid.bp226 "BpBinder.cpp",
DRpcSession.cpp280 status_t RpcSession::sendDecStrong(const BpBinder* binder) { in sendDecStrong()
/frameworks/native/libs/binder/tests/unit_fuzzers/
DBpBinderFuzzFunctions.h46 static const std::vector<std::function<void(FuzzedDataProvider*, const sp<BpBinder>&,
49 {[](FuzzedDataProvider* fdp, const sp<BpBinder>& bpbinder,
62 [](FuzzedDataProvider* fdp, const sp<BpBinder>& bpbinder,
70 [](FuzzedDataProvider*, const sp<BpBinder>& bpbinder,
72 [](FuzzedDataProvider*, const sp<BpBinder>& bpbinder,
76 [](FuzzedDataProvider* fdp, const sp<BpBinder>& bpbinder,
81 [](FuzzedDataProvider*, const sp<BpBinder>& bpbinder,
83 [](FuzzedDataProvider*, const sp<BpBinder>& bpbinder,
85 [](FuzzedDataProvider*, const sp<BpBinder>& bpbinder,
91 [](FuzzedDataProvider* fdp, const sp<BpBinder>& bpbinder,
[all …]
DBpBinderFuzz.cpp63 sp<BpBinder> bpBinder = session->getRootObject()->remoteBinder(); in LLVMFuzzerTestOneInput()
/frameworks/native/libs/binder/include/binder/
DBpBinder.h42 class BpBinder : public IBinder {
79 LIBBINDER_EXPORTED virtual BpBinder* remoteBinder();
130 friend class BpBinder;
135 explicit PrivateAccessor(const BpBinder* binder) : mBinder(binder) {} in PrivateAccessor()
137 static sp<BpBinder> create(int32_t handle) { return BpBinder::create(handle); } in create()
138 static sp<BpBinder> create(const sp<RpcSession>& session, uint64_t address) { in create()
139 return BpBinder::create(session, address); in create()
149 const BpBinder* mBinder;
157 friend class sp<BpBinder>;
159 static sp<BpBinder> create(int32_t handle);
[all …]
DIPCThreadState.h169 LIBBINDER_EXPORTED void incStrongHandle(int32_t handle, BpBinder* proxy);
171 LIBBINDER_EXPORTED void incWeakHandle(int32_t handle, BpBinder* proxy);
175 LIBBINDER_EXPORTED status_t requestDeathNotification(int32_t handle, BpBinder* proxy);
176 LIBBINDER_EXPORTED status_t clearDeathNotification(int32_t handle, BpBinder* proxy);
DStability.h25 class BpBinder; variable
124 friend ::android::BpBinder;
DIBinder.h39 class BpBinder; variable
288 virtual BpBinder* remoteBinder();
DProcessState.h104 LIBBINDER_EXPORTED ssize_t getStrongRefCountForNode(const sp<BpBinder>& binder);
DRpcSession.h205 [[nodiscard]] LIBBINDER_EXPORTED status_t sendDecStrong(const BpBinder* binder);
/frameworks/native/include/binder/
DIPCThreadState.h169 LIBBINDER_EXPORTED void incStrongHandle(int32_t handle, BpBinder* proxy);
171 LIBBINDER_EXPORTED void incWeakHandle(int32_t handle, BpBinder* proxy);
175 LIBBINDER_EXPORTED status_t requestDeathNotification(int32_t handle, BpBinder* proxy);
176 LIBBINDER_EXPORTED status_t clearDeathNotification(int32_t handle, BpBinder* proxy);
DStability.h25 class BpBinder; variable
124 friend ::android::BpBinder;
DIBinder.h39 class BpBinder; variable
288 virtual BpBinder* remoteBinder();
DProcessState.h104 LIBBINDER_EXPORTED ssize_t getStrongRefCountForNode(const sp<BpBinder>& binder);
/frameworks/native/libs/binderdebug/
Dstats.cpp41 BpBinder* remote = binder->remoteBinder(); in main()
/frameworks/native/libs/binder/trusty/kernel/
Drules.mk30 $(LIBBINDER_DIR)/BpBinder.cpp \
/frameworks/native/libs/binder/trusty/
Drules.mk33 $(LIBBINDER_DIR)/BpBinder.cpp \
/frameworks/native/libs/binder/tests/
DbinderRecordReplayTest.cpp123 void replayFuzzService(const sp<BpBinder>& binder, const RecordedTransaction& transaction) { in replayFuzzService()
141 void replayBinder(const sp<BpBinder>& binder, const RecordedTransaction& transaction) { in replayBinder()
240 sp<BpBinder> mBpBinder;
DbinderLibTest.cpp1488 uint32_t initialCount = BpBinder::getBinderProxyCount(); in TEST_F()
1499 EXPECT_EQ(BpBinder::getBinderProxyCount(), ++count); in TEST_F()
1506 EXPECT_EQ(BpBinder::getBinderProxyCount(), --count); in TEST_F()
1510 EXPECT_EQ(BpBinder::getBinderProxyCount(), initialCount); in TEST_F()
1523 BpBinder::enableCountByUid(); in TEST_F()
1528 uint32_t initialCount = BpBinder::getBinderProxyCount(); in TEST_F()
1531 BpBinder::setBinderProxyCountWatermarks(kBpCountHighWatermark, in TEST_F()
1536 BpBinder::setBinderProxyCountEventCallback([&](int uid) { limitCallbackUid = uid; }, in TEST_F()
1545 EXPECT_EQ(BpBinder::getBinderProxyCount(), ++count); in TEST_F()
1552 EXPECT_EQ(BpBinder::getBinderProxyCount(), --count); in TEST_F()
[all …]
/frameworks/base/core/jni/
Dandroid_util_Binder.cpp1200 return BpBinder::getBinderProxyCount(); in android_os_Debug_getProxyObjectCount()
1275 BpBinder::setCountByUidEnabled((bool) enable); in android_os_BinderInternal_setBinderProxyCountEnabled()
1281 BpBinder::getCountByUid(uids, counts); in android_os_BinderInternal_getBinderProxyPerUidCounts()
1292 return static_cast<jint>(BpBinder::getBinderProxyCount(static_cast<uint32_t>(uid))); in android_os_BinderInternal_getBinderProxyCount()
1299 BpBinder::setBinderProxyCountWatermarks(high, low, warning); in android_os_BinderInternal_setBinderProxyCountWatermarks()
1336 BpBinder::setBinderProxyCountEventCallback(android_os_BinderInternal_proxyLimitCallback, in int_register_android_os_BinderInternal()
/frameworks/native/cmds/servicemanager/
DServiceManager.cpp836 sp<BpBinder> bpBinder = sp<BpBinder>::fromExisting(binder->remoteBinder()); in getNodeStrongRefCount()

12