Home
last modified time | relevance | path

Searched refs:deathRecipient_ (Results 1 - 25 of 254) sorted by relevance

1234567891011

/foundation/multimedia/camera_framework/services/deferred_processing_service/src/session/video_session/
H A Dvideo_session_info.cpp67 : 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 Dmedia_decrypt_module_service_stub.cpp39 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 Dlisten_ability_proxy.h35 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 Dams_mgr_proxy.cpp32 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 Dextension_mgr_proxy.cpp31 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 Degl_bundle_mgr_helper.cpp27 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 Dservice_center_connection.cpp47 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 Dbundle_manager_connector.cpp37 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 Dextension_connection_test.cpp202 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 Ddomain_rpc_client.cpp34 (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 Dtest_sa_proxy_cache_proxy.h43 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 Ddeferred_video_proc_session.cpp72 (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 Di_standard_camera_listener.h40 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 Dcapture_output.cpp41 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 Dsr_samgr_helper.cpp85 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 Dclient_death_handler.cpp59 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 Dinter_ipc_client.cpp37 (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 Dapp_domain_verify_agent_client.cpp39 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 Dbluetooth_socket_server.h52 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 Drs_render_service_connect_hub.cpp63 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 Db_incremental_backup_session.cpp29 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 Db_incremental_session_restore_async.cpp30 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 Db_session_restore_async.cpp31 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 Db_incremental_restore_session.cpp29 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 Db_session_restore.cpp29 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()

Completed in 9 milliseconds

1234567891011