/foundation/communication/ipc/services/dbinder/dbinder_service/src/ |
H A D | dbinder_death_recipient.cpp | 45 sptr<IRemoteObject::DeathRecipient> death = dBinderService->QueryDeathRecipient(object); in OnRemoteDied() local 46 if (death != nullptr) { in OnRemoteDied() 48 callbackProxy->RemoveDeathRecipient(death); in OnRemoteDied() 52 DBINDER_LOGE(LOG_LABEL, "detaching death recipient is failed"); in OnRemoteDied()
|
H A D | dbinder_service_stub.cpp | 174 sptr<IRemoteObject::DeathRecipient> death(new DbinderDeathRecipient()); in AddDbinderDeathRecipient() 179 if (!callbackProxy->AddDeathRecipient(death)) { in AddDbinderDeathRecipient() 180 DBINDER_LOGE(LOG_LABEL, "fail to add death recipient"); in AddDbinderDeathRecipient() 192 if (!dBinderService->AttachDeathRecipient(object, death)) { in AddDbinderDeathRecipient() 193 DBINDER_LOGE(LOG_LABEL, "fail to attach death recipient"); in AddDbinderDeathRecipient() 225 sptr<IRemoteObject::DeathRecipient> death = dBinderService->QueryDeathRecipient(object); in RemoveDbinderDeathRecipient() local 226 if (death != nullptr) { in RemoveDbinderDeathRecipient() 228 callbackProxy->RemoveDeathRecipient(death); in RemoveDbinderDeathRecipient() 232 DBINDER_LOGE(LOG_LABEL, "fail to detach death recipient"); in RemoveDbinderDeathRecipient()
|
H A D | dbinder_service.cpp | 559 sptr<IRemoteObject::DeathRecipient> death(new DbinderSaDeathRecipient(binderObject)); in LoadSystemAbilityComplete() 560 if (!saProxy->AddDeathRecipient(death)) { in LoadSystemAbilityComplete() 562 DBINDER_LOGE(LOG_LABEL, "fail to add death recipient"); in LoadSystemAbilityComplete() 1210 sptr<IRemoteObject::DeathRecipient> death = QueryDeathRecipient((it->first)); in ProcessCallbackProxy() local 1211 if (death != nullptr) { in ProcessCallbackProxy() 1213 callbackProxy->RemoveDeathRecipient(death); in ProcessCallbackProxy() 1217 DBINDER_LOGE(LOG_LABEL, "detaching death recipient is failed, service:%{public}s handle:%{public}d", in ProcessCallbackProxy() 1240 DBINDER_LOGE(LOG_LABEL, "find null stub, do not need notice death"); in NoticeServiceDieInner()
|
/foundation/communication/ipc/services/dbinder/test/moduletest/src/ |
H A D | rpc_client_test.cpp | 137 sptr<IRemoteObject::DeathRecipient> death(new RpcDeathRecipient()); in HWTEST_F() 139 g_proxy->AddDeathRecipient(death.GetRefPtr()); in HWTEST_F()
|
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | test_service_client.cpp | 40 sptr<IRemoteObject::DeathRecipient> death(new TestDeathRecipient()); in ConnectService() 41 object->AddDeathRecipient(death.GetRefPtr()); in ConnectService()
|
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_object_proxy_unittest.cpp | 529 sptr<IRemoteObject::DeathRecipient> death(new MockDeathRecipient()); in HWTEST_F() 534 object->RemoveDeathRecipient(death); in HWTEST_F() 547 sptr<IRemoteObject::DeathRecipient> death(new MockDeathRecipient()); in HWTEST_F() 552 object->RemoveDeathRecipient(death); in HWTEST_F() 565 sptr<IRemoteObject::DeathRecipient> death = new MockDeathRecipient(); in HWTEST_F() local 567 sptr<IPCObjectProxy::DeathRecipientAddrInfo> deathInfo = new IPCObjectProxy::DeathRecipientAddrInfo(death); in HWTEST_F() 574 object->RemoveDeathRecipient(death); in HWTEST_F() 587 sptr<IRemoteObject::DeathRecipient> death = new MockDeathRecipient(); in HWTEST_F() local 588 sptr<IPCObjectProxy::DeathRecipientAddrInfo> deathInfo = new IPCObjectProxy::DeathRecipientAddrInfo(death); in HWTEST_F() 593 auto ret = object->RemoveDeathRecipient(death); in HWTEST_F() 606 sptr<IRemoteObject::DeathRecipient> death = new MockDeathRecipient(); HWTEST_F() local 643 sptr<IRemoteObject::DeathRecipient> death = nullptr; HWTEST_F() local 663 sptr<IRemoteObject::DeathRecipient> death = nullptr; HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/native/c/ipc/src/linux/ |
H A D | ipc_invoker.c | 271 DeathCallback *death = (DeathCallback *)(uintptr_t) *(binder_uintptr_t *)ptr; in HandleDeadBinder() local 272 if (death != NULL) { in HandleDeadBinder() 274 SendObituary(death); in HandleDeadBinder() 275 HandleDeadBinderDone(death); in HandleDeadBinder()
|
/foundation/communication/ipc/ipc/test/moduletest/native/common/ |
H A D | ipc_core_module_test.cpp | 128 sptr<IRemoteObject::DeathRecipient> death(new TestDeathRecipient()); in HWTEST_F() 129 int result = object->AddDeathRecipient(death.GetRefPtr()); in HWTEST_F() 147 bool returnResult = object->RemoveDeathRecipient(death.GetRefPtr()); in HWTEST_F() 179 sptr<IRemoteObject::DeathRecipient> death(new TestDeathRecipient()); in HWTEST_F() 180 bool ret = object->AddDeathRecipient(death.GetRefPtr()); in HWTEST_F()
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | subscribe_manager_test.cpp | 379 auto death = std::make_shared<SubscriberDeathRecipient>(); in HWTEST_F() local 380 death->OnRemoteDied(notifier); in HWTEST_F()
|
/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/ |
H A D | main_thread_test.cpp | 1776 sptr<AppMgrDeathRecipient> death = new (std::nothrow) AppMgrDeathRecipient(); in HWTEST_F() local 1777 EXPECT_TRUE(death != nullptr); in HWTEST_F() 1779 death->OnRemoteDied(remote); in HWTEST_F() 1784 * @tc.desc: Remove app mgr death recipient. 1800 * @tc.desc: Remove app mgr death recipient.
|
/foundation/distributeddatamgr/pasteboard/services/test/unittest/src/ |
H A D | paste_service_test.cpp | 1027 PasteboardSaDeathRecipient death; in HWTEST_F() local 1028 death.OnRemoteDied(object); in HWTEST_F()
|