/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/video_session/ |
H A D | video_session_info.cpp | 67 : userId_(userId), callback_(callback), deathRecipient_(nullptr) in VideoSessionInfo() 76 DP_CHECK_EXECUTE(callback_ != nullptr && deathRecipient_ != nullptr, deathRecipient_->Destroy(callback_)); in ~VideoSessionInfo() 79 deathRecipient_ =nullptr; in ~VideoSessionInfo() 88 deathRecipient_ = sptr<CallbackDeathRecipient>::MakeSptr(this); in Initialize() 90 auto ret = deathRecipient_->Initialize(callback_); in Initialize() 120 auto ret = deathRecipient_->Initialize(callback_); in SetCallback()
|
/foundation/multimedia/drm_framework/services/drm_service/server/src/ |
H A D | media_decrypt_module_service_stub.cpp | 39 if (clientListener_ != nullptr && clientListener_->AsObject() != nullptr && deathRecipient_ != nullptr) {
in MediaDecryptModuleClientDied() 41 (void)clientListener_->AsObject()->RemoveDeathRecipient(deathRecipient_);
in MediaDecryptModuleClientDied() 42 deathRecipient_ = nullptr;
in MediaDecryptModuleClientDied() 51 if (clientListener_ != nullptr && clientListener_->AsObject() != nullptr && deathRecipient_ != nullptr) {
in SetListenerObject() 53 (void)clientListener_->AsObject()->RemoveDeathRecipient(deathRecipient_);
in SetListenerObject() 54 deathRecipient_ = nullptr;
in SetListenerObject() 62 deathRecipient_ = new (std::nothrow) DrmDeathRecipient(pid);
in SetListenerObject() 63 DRM_CHECK_AND_RETURN_RET_LOG(deathRecipient_ != nullptr, DRM_MEMORY_ERROR, "failed to new DrmDeathRecipient");
in SetListenerObject() 64 deathRecipient_->SetNotifyCb([this] (pid_t pid) {
in SetListenerObject() 68 (void)clientListener_->AsObject()->AddDeathRecipient(deathRecipient_);
in SetListenerObject() [all...] |
/foundation/systemabilitymgr/safwk/test/services/safwk/unittest/listen_ability/include/ |
H A D | listen_ability_proxy.h | 35 deathRecipient_ = new (std::nothrow) ListenDeathRecipient(*this); in ListenAbilityProxy() 36 if (deathRecipient_ == nullptr) { in ListenAbilityProxy() 39 if (!remote->AddDeathRecipient(deathRecipient_)) { in ListenAbilityProxy() 51 if (deathRecipient_ == nullptr) { in ~ListenAbilityProxy() 54 remote_->RemoveDeathRecipient(deathRecipient_); in ~ListenAbilityProxy() 89 sptr<IRemoteObject::DeathRecipient> deathRecipient_ = nullptr; member in OHOS::ListenAbilityProxy
|
/foundation/distributeddatamgr/data_share/frameworks/native/proxy/src/ |
H A D | ams_mgr_proxy.cpp | 32 sa_->RemoveDeathRecipient(deathRecipient_); in OnProxyDied() 34 deathRecipient_ = nullptr; in OnProxyDied() 42 sa_->RemoveDeathRecipient(deathRecipient_); in ~AmsMgrProxy() 91 deathRecipient_ = new (std::nothrow) AmsMgrProxy::ServiceDeathRecipient(this); in ConnectSA() 92 if (deathRecipient_ == nullptr) { in ConnectSA() 96 sa_->AddDeathRecipient(deathRecipient_); in ConnectSA()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/ |
H A D | extension_mgr_proxy.cpp | 31 sa_->RemoveDeathRecipient(deathRecipient_); in OnProxyDied() 33 deathRecipient_ = nullptr; in OnProxyDied() 41 sa_->RemoveDeathRecipient(deathRecipient_); in ~ExtensionMgrProxy() 86 deathRecipient_ = new (std::nothrow) ExtensionMgrProxy::ServiceDeathRecipient(weak_from_this()); in ConnectSA() 87 if (deathRecipient_ == nullptr) { in ConnectSA() 91 sa_->AddDeathRecipient(deathRecipient_); in ConnectSA()
|
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/ |
H A D | egl_bundle_mgr_helper.cpp | 27 if (bundleMgr_ != nullptr && bundleMgr_->AsObject() != nullptr && deathRecipient_ != nullptr) { in ~EGLBundleMgrHelper() 28 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ~EGLBundleMgrHelper() 58 deathRecipient_ = new(std::nothrow) EGLBundleMgrServiceDeathRecipient(deathCallback); in Connect() 59 if (deathRecipient_ == nullptr) { in Connect() 60 WLOGE("Failed to create death recipient ptr deathRecipient_!"); in Connect() 64 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in Connect() 78 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in OnDeath()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/free_install/ |
H A D | service_center_connection.cpp | 47 deathRecipient_ = new (std::nothrow) ServiceCenterDeathRecipient(connectAbilityMgr_); in OnAbilityConnectDone() 48 if (deathRecipient_ == nullptr) { in OnAbilityConnectDone() 54 if (!serviceCenterRemoteObject_->AddDeathRecipient(deathRecipient_)) { in OnAbilityConnectDone() 64 if (serviceCenterRemoteObject_ != nullptr && deathRecipient_ != nullptr) { in OnAbilityDisconnectDone() 65 serviceCenterRemoteObject_->RemoveDeathRecipient(deathRecipient_); in OnAbilityDisconnectDone()
|
/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | bundle_manager_connector.cpp | 37 deathRecipient_ = nullptr;
in ~BundleMgrConnector() 59 deathRecipient_ = new (std::nothrow) BundleMgrDeathRecipient();
in GetBundleMgrProxy() 60 if (!deathRecipient_) {
in GetBundleMgrProxy() 65 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_);
in GetBundleMgrProxy() 74 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_);
in ResetBundleMgrProxy()
|
/foundation/window/window_manager/test/systemtest/extension/ |
H A D | extension_connection_test.cpp | 202 connection_->pImpl_->deathRecipient_ =
in HWTEST_F() 204 ASSERT_NE(nullptr, connection_->pImpl_->deathRecipient_);
in HWTEST_F() 205 connection_->pImpl_->deathRecipient_->OnRemoteDied(remoteObject);
in HWTEST_F() 218 connection_->pImpl_->deathRecipient_ =
in HWTEST_F() 220 ASSERT_NE(nullptr, connection_->pImpl_->deathRecipient_);
in HWTEST_F() 221 connection_->pImpl_->deathRecipient_->OnRemoteDied(remoteObject);
in HWTEST_F() 234 connection_->pImpl_->deathRecipient_ =
in HWTEST_F() 236 ASSERT_NE(nullptr, connection_->pImpl_->deathRecipient_);
in HWTEST_F() 237 connection_->pImpl_->deathRecipient_->callback_ = new(std::nothrow) ExtensionCallback();
in HWTEST_F() 238 ASSERT_NE(nullptr, connection_->pImpl_->deathRecipient_ in HWTEST_F() [all...] |
/foundation/CastEngine/castengine_wifi_display/services/interaction/domain/rpc/ |
H A D | domain_rpc_client.cpp | 34 (void)domainProxy_->AsObject()->RemoveDeathRecipient(deathRecipient_); in OnRemoteDied() 43 if (deathRecipient_ != nullptr) { in OnRemoteDied() 44 deathRecipient_ = nullptr; in OnRemoteDied() 77 deathRecipient_ = new (std::nothrow) DomainRpcDeathRecipient(deviceId); in GetDomainProxy() 78 deathRecipient_->SetDeathListener(shared_from_this()); in GetDomainProxy() 79 if (!object->AddDeathRecipient(deathRecipient_)) { in GetDomainProxy()
|
/foundation/systemabilitymgr/safwk/test/services/safwk/unittest/test_sa_proxy_cache_ability/include/ |
H A D | test_sa_proxy_cache_proxy.h | 43 deathRecipient_ = new (std::nothrow) TestSaProxyCacheRecipient(*this); in TestSaProxyCacheProxy() 44 if (deathRecipient_ == nullptr) { in TestSaProxyCacheProxy() 47 if (!remote->AddDeathRecipient(deathRecipient_)) { in TestSaProxyCacheProxy() 59 if (deathRecipient_ == nullptr) { in ~TestSaProxyCacheProxy() 62 remote_->RemoveDeathRecipient(deathRecipient_); in ~TestSaProxyCacheProxy() 107 sptr<IRemoteObject::DeathRecipient> deathRecipient_ = nullptr; member in OHOS::TestSaProxyCacheProxy
|
/foundation/multimedia/camera_framework/frameworks/native/camera/src/deferred_proc_session/ |
H A D | deferred_video_proc_session.cpp | 72 (void)remoteSession_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ~DeferredVideoProcSession() 139 deathRecipient_ = new(std::nothrow) CameraDeathRecipient(pid); in SetDeferredVideoSession() 140 CHECK_AND_RETURN_RET_LOG(deathRecipient_ != nullptr, CAMERA_ALLOC_ERROR, "failed to new CameraDeathRecipient."); in SetDeferredVideoSession() 142 deathRecipient_->SetNotifyCb(std::bind(&DeferredVideoProcSession::CameraServerDied, this, std::placeholders::_1)); in SetDeferredVideoSession() 143 bool result = object->AddDeathRecipient(deathRecipient_); in SetDeferredVideoSession() 155 (void)remoteSession_->AsObject()->RemoveDeathRecipient(deathRecipient_); in CameraServerDied() 158 deathRecipient_ = nullptr; in CameraServerDied()
|
/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/input/ |
H A D | i_standard_camera_listener.h | 40 deathRecipient_ = deathRecipient; in AddCameraDeathRecipient() 46 (void)this->AsObject()->RemoveDeathRecipient(deathRecipient_.promote()); in RemoveCameraDeathRecipient() 50 wptr<CameraDeathRecipient> deathRecipient_ = nullptr; member in OHOS::CameraStandard::IStandardCameraListener
|
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | capture_output.cpp | 41 if (deathRecipient_ == nullptr) { in RegisterStreamBinderDied() 42 deathRecipient_ = new (std::nothrow) CameraDeathRecipient(0); in RegisterStreamBinderDied() 43 CHECK_AND_RETURN_LOG(deathRecipient_ != nullptr, "failed to new CameraDeathRecipient."); in RegisterStreamBinderDied() 44 deathRecipient_->SetNotifyCb([this](pid_t pid) { OnCameraServerDied(pid); }); in RegisterStreamBinderDied() 47 bool result = object->AddDeathRecipient(deathRecipient_); in RegisterStreamBinderDied() 63 if (deathRecipient_ == nullptr) { in UnregisterStreamBinderDied() 68 stream->AsObject()->RemoveDeathRecipient(deathRecipient_); in UnregisterStreamBinderDied() 69 deathRecipient_ = nullptr; in UnregisterStreamBinderDied()
|
/foundation/ability/ability_runtime/service_router_framework/services/srms/src/ |
H A D | sr_samgr_helper.cpp | 85 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new (std::nothrow) BmsDeathRecipient()); in ConnectBundleMgrLocked() 86 if (deathRecipient_ == nullptr) { in ConnectBundleMgrLocked() 87 TAG_LOGE(AAFwkTag::SER_ROUTER, "Create deathRecipient_ failed"); in ConnectBundleMgrLocked() 90 if ((remoteObj->IsProxyObject()) && (!remoteObj->AddDeathRecipient(deathRecipient_))) { in ConnectBundleMgrLocked() 110 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
|
/foundation/multimodalinput/input/service/message_handle/src/ |
H A D | client_death_handler.cpp | 59 CHKPF(deathRecipient_); in UnregisterClientDeathRecipient() 60 return remoteObj->RemoveDeathRecipient(deathRecipient_); in UnregisterClientDeathRecipient() 95 if (deathRecipient_ == nullptr) { in RegisterClientDeathRecipient() 96 deathRecipient_ = new (std::nothrow) InputBinderClientDeathRecipient(deathCallback); in RegisterClientDeathRecipient() 98 CHKPF(deathRecipient_); in RegisterClientDeathRecipient() 99 if (!binderClientSrv->AddDeathRecipient(deathRecipient_)) { in RegisterClientDeathRecipient()
|
/foundation/CastEngine/castengine_wifi_display/services/interaction/interprocess/ |
H A D | inter_ipc_client.cpp | 37 (void)domainProxy_->AsObject()->RemoveDeathRecipient(deathRecipient_); in OnRemoteDied() 41 deathRecipient_ = nullptr; in OnRemoteDied() 76 deathRecipient_ = new (std::nothrow) InterIpcDeathRecipient(key_); in GetSharingProxy() 77 deathRecipient_->SetDeathListener(shared_from_this()); in GetSharingProxy() 79 if (!object->AddDeathRecipient(deathRecipient_)) { in GetSharingProxy()
|
/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/client/src/ |
H A D | app_domain_verify_agent_client.cpp | 39 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~AppDomainVerifyAgentClient() 85 if (deathRecipient_ == nullptr) { in ConnectService() 86 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new AgentSaDeathRecipient()); in ConnectService() 88 remoteObject->AddDeathRecipient(deathRecipient_); in ConnectService() 102 remoteObj->RemoveDeathRecipient(deathRecipient_); in OnRemoteSaDied()
|
/foundation/communication/bluetooth_service/services/bluetooth/server/include/ |
H A D | bluetooth_socket_server.h | 52 deathRecipient_ = new DeathRecipient(*this); in SocketObserverList() 60 iter->remote->RemoveDeathRecipient(deathRecipient_); in OnRemoteDied() 74 remote->AddDeathRecipient(deathRecipient_); in AddObserver() 82 iter->remote->RemoveDeathRecipient(deathRecipient_); in RemoveObserver() 95 sptr<DeathRecipient> deathRecipient_; member in OHOS::Bluetooth::BluetoothSocketServer
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_render_service_connect_hub.cpp | 63 if (renderService_ && renderService_->AsObject() && deathRecipient_) { 64 renderService_->AsObject()->RemoveDeathRecipient(deathRecipient_); variable 124 deathRecipient_ = new RenderServiceDeathRecipient(rsConnhub); in Connect() 125 if (!renderService->AsObject()->AddDeathRecipient(deathRecipient_)) { in Connect() 158 deathRecipient_ = nullptr; in ConnectDied()
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_kit_inner/src/ |
H A D | b_incremental_backup_session.cpp | 29 if (!deathRecipient_) { in ~BIncrementalBackupSession() 39 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~BIncrementalBackupSession() 41 deathRecipient_ = nullptr; in ~BIncrementalBackupSession() 89 deathRecipient_ = sptr(new SvcDeathRecipient(callback)); in RegisterBackupServiceDied() 90 remoteObj->AddDeathRecipient(deathRecipient_); in RegisterBackupServiceDied()
|
H A D | b_incremental_session_restore_async.cpp | 30 if (!deathRecipient_) { in ~BIncrementalSessionRestoreAsync() 40 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~BIncrementalSessionRestoreAsync() 43 deathRecipient_ = nullptr; in ~BIncrementalSessionRestoreAsync() 149 deathRecipient_ = sptr(new SvcDeathRecipient(callback)); in RegisterBackupServiceDied() 150 remoteObj->AddDeathRecipient(deathRecipient_); in RegisterBackupServiceDied()
|
H A D | b_session_restore_async.cpp | 31 if (!deathRecipient_) { in ~BSessionRestoreAsync() 41 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~BSessionRestoreAsync() 44 deathRecipient_ = nullptr; in ~BSessionRestoreAsync() 150 deathRecipient_ = sptr(new SvcDeathRecipient(callback)); in RegisterBackupServiceDied() 151 remoteObj->AddDeathRecipient(deathRecipient_); in RegisterBackupServiceDied()
|
H A D | b_incremental_restore_session.cpp | 29 if (!deathRecipient_) { in ~BIncrementalRestoreSession() 39 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~BIncrementalRestoreSession() 41 deathRecipient_ = nullptr; in ~BIncrementalRestoreSession() 147 deathRecipient_ = sptr(new SvcDeathRecipient(callback)); in RegisterBackupServiceDied() 148 remoteObj->AddDeathRecipient(deathRecipient_); in RegisterBackupServiceDied()
|
H A D | b_session_restore.cpp | 29 if (!deathRecipient_) { in ~BSessionRestore() 39 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~BSessionRestore() 41 deathRecipient_ = nullptr; in ~BSessionRestore() 158 deathRecipient_ = sptr(new SvcDeathRecipient(callback)); in RegisterBackupServiceDied() 159 remoteObj->AddDeathRecipient(deathRecipient_); in RegisterBackupServiceDied()
|