/ohos5.0/foundation/multimedia/av_codec/services/services/sa_avcodec/ipc/ |
H A D | avcodec_service_stub.cpp | 47 sptr<AVCodecDeathRecipient> deathRecipient = nullptr; in DestroyStubForPid() local 52 deathRecipient = itDeath->second; in DestroyStubForPid() 54 if (deathRecipient != nullptr) { in DestroyStubForPid() 55 deathRecipient->SetNotifyCb(nullptr); in DestroyStubForPid() 65 …vCodecListener != nullptr && avCodecListener->AsObject() != nullptr && deathRecipient != nullptr) { in DestroyStubForPid() 66 (void)avCodecListener->AsObject()->RemoveDeathRecipient(deathRecipient); in DestroyStubForPid() 121 sptr<AVCodecDeathRecipient> deathRecipient = new (std::nothrow) AVCodecDeathRecipient(pid); in SetDeathListener() local 122 …CHECK_AND_RETURN_RET_LOG(deathRecipient != nullptr, AVCS_ERR_NO_MEMORY, "failed to new AVCodecDeat… in SetDeathListener() 124 …deathRecipient->SetNotifyCb(std::bind(&AVCodecServiceStub::ClientDied, this, std::placeholders::_1… in SetDeathListener() 127 (void)avCodecListener->AsObject()->AddDeathRecipient(deathRecipient); in SetDeathListener() [all …]
|
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_capi_remote_object_unittest.cpp | 252 EXPECT_EQ(deathRecipient, nullptr); 254 EXPECT_NE(deathRecipient, nullptr); 255 OH_IPCDeathRecipient_Destroy(deathRecipient); 257 EXPECT_NE(deathRecipient, nullptr); 258 OH_IPCDeathRecipient_Destroy(deathRecipient); 264 ASSERT_NE(deathRecipient, nullptr); 266 OH_IPCDeathRecipient_Destroy(deathRecipient); 285 ASSERT_NE(deathRecipient, nullptr); 293 OH_IPCDeathRecipient_Destroy(deathRecipient); 312 ASSERT_NE(deathRecipient, nullptr); [all …]
|
/ohos5.0/foundation/multimedia/player_framework/services/services/sa_media/ipc/ |
H A D | media_service_stub.cpp | 52 sptr<MediaDeathRecipient> deathRecipient = nullptr; in DestroyStubForPid() local 57 deathRecipient = itDeath->second; in DestroyStubForPid() 59 if (deathRecipient != nullptr) { in DestroyStubForPid() 60 deathRecipient->SetNotifyCb(nullptr); in DestroyStubForPid() 70 …if (mediaListener != nullptr && mediaListener->AsObject() != nullptr && deathRecipient != nullptr)… in DestroyStubForPid() 71 (void)mediaListener->AsObject()->RemoveDeathRecipient(deathRecipient); in DestroyStubForPid() 121 sptr<MediaDeathRecipient> deathRecipient = new(std::nothrow) MediaDeathRecipient(pid); in SetDeathListener() local 122 …CHECK_AND_RETURN_RET_LOG(deathRecipient != nullptr, MSERR_NO_MEMORY, "failed to new MediaDeathReci… in SetDeathListener() 124 …deathRecipient->SetNotifyCb(std::bind(&MediaServiceStub::ClientDied, this, std::placeholders::_1)); in SetDeathListener() 127 (void)mediaListener->AsObject()->AddDeathRecipient(deathRecipient); in SetDeathListener() [all …]
|
/ohos5.0/base/powermgr/battery_manager/frameworks/native/test/unittest/src/ |
H A D | battery_client_death_recipient_test.cpp | 49 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 51 EXPECT_NE(deathRecipient, nullptr); 52 deathRecipient->OnRemoteDied(remoteObj); 80 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 82 EXPECT_NE(deathRecipient, nullptr); 83 deathRecipient->OnRemoteDied(remoteObj); 84 deathRecipient = nullptr;
|
/ohos5.0/base/powermgr/power_manager/test/unittest/src/ |
H A D | power_mgr_service_death_test.cpp | 38 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 41 EXPECT_NE(deathRecipient, nullptr); 42 deathRecipient->OnRemoteDied(remoteObj); 57 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 59 EXPECT_NE(deathRecipient, nullptr); 62 deathRecipient->OnRemoteDied(sptrRemoteObj);
|
/ohos5.0/base/powermgr/thermal_manager/test/unittest/src/ |
H A D | thermal_service_death_test.cpp | 40 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 43 EXPECT_NE(deathRecipient, nullptr); 44 deathRecipient->OnRemoteDied(remoteObj); 61 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 63 EXPECT_NE(deathRecipient, nullptr); 66 deathRecipient->OnRemoteDied(sptrRemoteObj);
|
H A D | thermal_observer_test.cpp | 134 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 137 EXPECT_NE(deathRecipient, nullptr); 138 deathRecipient->OnRemoteDied(remoteObj); 142 deathRecipient->OnRemoteDied(sptrRemoteObj); 154 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 157 EXPECT_NE(deathRecipient, nullptr); 158 deathRecipient->OnRemoteDied(remoteObj); 162 deathRecipient->OnRemoteDied(sptrRemoteObj);
|
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_running_status_module.cpp | 46 …sptr<ClientDeathRecipient> deathRecipient = new (std::nothrow) ClientDeathRecipient(shared_from_th… in RegisterListener() local 47 if (deathRecipient == nullptr) { in RegisterListener() 52 listener->AsObject()->AddDeathRecipient(deathRecipient); in RegisterListener() 53 listeners_.emplace(listener, deathRecipient); in RegisterListener() 120 auto deathRecipient = itemFind->second; in RemoveListenerAndDeathRecipient() local 128 storedListener->AsObject()->RemoveDeathRecipient(deathRecipient); in RemoveListenerAndDeathRecipient()
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_api/backup_impl/ |
H A D | svc_death_recipient_test.cpp | 64 sptr<SvcDeathRecipient> deathRecipient = sptr(new SvcDeathRecipient(CallBack)); variable 65 remote->AddDeathRecipient(deathRecipient); 66 deathRecipient->OnRemoteDied(remote); 68 deathRecipient = nullptr;
|
/ohos5.0/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_client_test.cpp | 289 sptr<IRemoteObject::DeathRecipient> deathRecipient = variable 292 deathRecipient->OnRemoteDied(remote); 300 sptr<IRemoteObject::DeathRecipient> deathRecipient = variable 303 deathRecipient->OnRemoteDied(remote); 304 deathRecipient->OnRemoteDied(remote); 321 sptr<IRemoteObject::DeathRecipient> deathRecipient = variable 324 deathRecipient->OnRemoteDied(remote); 334 sptr<IRemoteObject::DeathRecipient> deathRecipient = variable 337 deathRecipient->OnRemoteDied(remote); 346 sptr<IRemoteObject::DeathRecipient> deathRecipient = variable [all …]
|
/ohos5.0/foundation/ability/form_fwk/services/src/ |
H A D | form_router_proxy_mgr.cpp | 27 const sptr<IRemoteObject::DeathRecipient> &deathRecipient) in SetDeathRecipient() argument 33 deathRecipients_.emplace(callerToken, deathRecipient); in SetDeathRecipient() 34 callerToken->AddDeathRecipient(deathRecipient); in SetDeathRecipient() 121 auto deathRecipient = iter->second; in CleanResource() local 123 object->RemoveDeathRecipient(deathRecipient); in CleanResource()
|
H A D | form_observer_record.cpp | 26 const sptr<IRemoteObject::DeathRecipient> &deathRecipient) in SetDeathRecipient() argument 29 if (callerToken == nullptr || deathRecipient == nullptr) { in SetDeathRecipient() 36 deathRecipients_.emplace(callerToken, deathRecipient); in SetDeathRecipient() 37 callerToken->AddDeathRecipient(deathRecipient); in SetDeathRecipient() 163 auto deathRecipient = iter->second; in CleanResource() local 165 object->RemoveDeathRecipient(deathRecipient); in CleanResource() 292 …sptr<IRemoteObject::DeathRecipient> deathRecipient = new (std::nothrow) FormObserverRecord::Client… in SetFormEventObserverLocked() local 293 if (deathRecipient == nullptr) { in SetFormEventObserverLocked() 304 SetDeathRecipient(recordInner.GetRemote(), deathRecipient); in SetFormEventObserverLocked() 316 SetDeathRecipient(recordInner.GetRemote(), deathRecipient); in SetFormEventObserverLocked()
|
/ohos5.0/foundation/ability/form_fwk/interfaces/kits/native/src/ |
H A D | form_caller_mgr.cpp | 44 sptr<IRemoteObject::DeathRecipient> deathRecipient = in AddFormHostCaller() local 48 if (deathRecipient == nullptr) { in AddFormHostCaller() 51 caller->AddDeathRecipient(deathRecipient); in AddFormHostCaller() 123 sptr<IRemoteObject::DeathRecipient> deathRecipient = in AddFormProviderCaller() local 127 if (deathRecipient == nullptr) { in AddFormProviderCaller() 130 caller->AddDeathRecipient(deathRecipient); in AddFormProviderCaller()
|
/ohos5.0/base/powermgr/display_manager/state_manager/test/unittest/src/ |
H A D | display_service_death_test.cpp | 38 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 40 EXPECT_NE(deathRecipient, nullptr); 42 deathRecipient->OnRemoteDied(remoteObj);
|
/ohos5.0/base/inputmethod/imf/test/fuzztest/perusersession_fuzzer/ |
H A D | perusersession_fuzzer.cpp | 66 sptr<InputDeathRecipient> deathRecipient = new (std::nothrow) InputDeathRecipient(); in InitializeClientInfo() local 67 if (deathRecipient == nullptr) { in InitializeClientInfo() 71 clientInfo = { .userID = MAIN_USER_ID, .client = clientStub, .deathRecipient = deathRecipient }; in InitializeClientInfo()
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/input/ |
H A D | i_standard_camera_listener.h | 34 void AddCameraDeathRecipient(sptr<CameraDeathRecipient> &deathRecipient) in AddCameraDeathRecipient() argument 38 (void)this->AsObject()->AddDeathRecipient(deathRecipient); in AddCameraDeathRecipient() 40 deathRecipient_ = deathRecipient; in AddCameraDeathRecipient()
|
/ohos5.0/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
H A D | stats_service_death_test.cpp | 47 std::shared_ptr<IRemoteObject::DeathRecipient> deathRecipient = variable 50 EXPECT_NE(deathRecipient, nullptr); 51 deathRecipient->OnRemoteDied(remoteObj);
|
/ohos5.0/base/inputmethod/imf/services/src/ |
H A D | ime_aging_manager.cpp | 69 if (ime.core->AsObject() != nullptr && ime.deathRecipient != nullptr) { in Pop() 70 ime.core->AsObject()->RemoveDeathRecipient(ime.deathRecipient); in Pop() 71 ime.deathRecipient = nullptr; in Pop() 141 if (imeData.core->AsObject() != nullptr && imeData.deathRecipient != nullptr) { in ClearIme() 142 imeData.core->AsObject()->RemoveDeathRecipient(imeData.deathRecipient); in ClearIme()
|
/ohos5.0/foundation/window/window_manager/utils/test/unittest/ |
H A D | utils_all_test.cpp | 74 sptr<AgentDeathRecipient> deathRecipient = new AgentDeathRecipient(nullptr); variable 76 deathRecipient->OnRemoteDied(nullptr); 79 deathRecipient->OnRemoteDied(remoteObj); 82 deathRecipient->callback_ = [&remoteObj](sptr<IRemoteObject>& remote) { in __anone5b0c3660202() 85 deathRecipient->OnRemoteDied(remoteObj);
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/concurrency/ |
H A D | audio_concurrency_service.cpp | 55 const sptr<AudioConcurrencyDeathRecipient> &deathRecipient, uint32_t sessionID) in AudioConcurrencyClient() argument 56 : callback_(callback), object_(object), deathRecipient_(deathRecipient), sessionID_(sessionID) in AudioConcurrencyClient() 85 sptr<AudioConcurrencyDeathRecipient> deathRecipient = new in SetAudioConcurrencyCallback() local 87 object->AddDeathRecipient(deathRecipient); in SetAudioConcurrencyCallback() 89 std::make_shared<AudioConcurrencyClient>(callback, object, deathRecipient, sessionID); in SetAudioConcurrencyCallback()
|
/ohos5.0/foundation/multimodalinput/input/service/filter/src/ |
H A D | event_filter_handler.cpp | 90 …sptr<IRemoteObject::DeathRecipient> deathRecipient = new (std::nothrow) EventFilterDeathRecipient(… in AddInputEventFilter() local 91 CHKPR(deathRecipient, RET_ERR); in AddInputEventFilter() 92 filter->AsObject()->AddDeathRecipient(deathRecipient); in AddInputEventFilter() 93 FilterInfo info { .filter = filter, .deathRecipient = deathRecipient, .filterId = filterId, in AddInputEventFilter()
|
/ohos5.0/docs/zh-cn/application-dev/ipc/ |
H A D | subscribe-remote-state.md | 78 sptr<IRemoteObject::DeathRecipient> deathRecipient (new TestDeathRecipient()); // 构造一个消亡通知对象 79 bool result = object->AddDeathRecipient(deathRecipient); // 注册消亡通知 80 result = object->RemoveDeathRecipient(deathRecipient); // 移除消亡通知 146 let deathRecipient = new MyDeathRecipient(); 148 proxy.registerDeathRecipient(deathRecipient, 0); 149 proxy.unregisterDeathRecipient(deathRecipient, 0);
|
/ohos5.0/foundation/multimedia/drm_framework/frameworks/native/drm/ |
H A D | media_key_system_factory_impl.cpp | 63 sptr<DrmDeathRecipient> deathRecipient = new (std::nothrow) DrmDeathRecipient(pid); in GetServiceProxy() local 64 DRM_CHECK_AND_RETURN_RET_LOG(deathRecipient != nullptr, nullptr, in GetServiceProxy() 66 deathRecipient->SetNotifyCb([this] (pid_t pid) { in GetServiceProxy() 69 bool result = object->AddDeathRecipient(deathRecipient); in GetServiceProxy() 81 deathRecipient_ = deathRecipient; in GetServiceProxy()
|
/ohos5.0/foundation/multimedia/drm_framework/services/drm_service/server/src/ |
H A D | mediakeysystemfactory_service_stub.cpp | 72 sptr<DrmDeathRecipient> deathRecipient = new (std::nothrow) DrmDeathRecipient(pid); in SetListenerObject() local 73 …DRM_CHECK_AND_RETURN_RET_LOG(deathRecipient != nullptr, DRM_MEMORY_ERROR, "failed to new DrmDeathR… in SetListenerObject() 74 deathRecipient->SetNotifyCb([this] (pid_t pid) { in SetListenerObject() 78 (void)clientListener->AsObject()->AddDeathRecipient(deathRecipient); in SetListenerObject() 81 deathRecipientMap_[pid] = deathRecipient; in SetListenerObject()
|
/ohos5.0/base/account/os_account/services/accountmgr/src/account_iam/ |
H A D | inner_account_iam_manager.cpp | 90 …sptr<IDMCallbackDeathRecipient> deathRecipient = new (std::nothrow) IDMCallbackDeathRecipient(user… in AddCredential() local 91 if ((deathRecipient == nullptr) || (callback->AsObject() == nullptr) || in AddCredential() 92 (!callback->AsObject()->AddDeathRecipient(deathRecipient))) { in AddCredential() 97 idmCallbackWrapper->SetDeathRecipient(deathRecipient); in AddCredential() 126 if ((deathRecipient == nullptr) || (callback->AsObject() == nullptr) || in UpdateCredential() 127 (!callback->AsObject()->AddDeathRecipient(deathRecipient))) { in UpdateCredential() 133 idmCallbackWrapper->SetDeathRecipient(deathRecipient); in UpdateCredential() 294 … sptr<AuthCallbackDeathRecipient> deathRecipient = new (std::nothrow) AuthCallbackDeathRecipient(); in AuthUser() local 295 if ((deathRecipient == nullptr) || (!callback->AsObject()->AddDeathRecipient(deathRecipient))) { in AuthUser() 302 callbackWrapper->SetDeathRecipient(deathRecipient); in AuthUser() [all …]
|