Home
last modified time | relevance | path

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

123456

/base/update/updateservice/foundations/ability/sa_loader/include/
H A Dbase_service_kits_impl.h49 sptr<IRemoteObject::DeathRecipient> deathRecipient_ = nullptr; member in OHOS::UpdateEngine::BaseServiceKitsImpl
63 if (isNeedAddDeathRecipient_ && remoteServer_ != nullptr && deathRecipient_ != nullptr) { in ~BaseServiceKitsImpl()
66 bool removeResult = object->RemoveDeathRecipient(deathRecipient_); in ~BaseServiceKitsImpl()
70 deathRecipient_ = nullptr; in ~BaseServiceKitsImpl()
99 if (deathRecipient_ == nullptr) { in AddDeathRecipient()
101 deathRecipient_ = new CommonDeathRecipient(resetCallback); in AddDeathRecipient()
103 if ((object->IsProxyObject()) && (!object->AddDeathRecipient(deathRecipient_))) { in AddDeathRecipient()
122 if (deathRecipient_ != nullptr && remote != nullptr) { in ResetService()
123 remote->RemoveDeathRecipient(deathRecipient_); in ResetService()
126 deathRecipient_ in ResetService()
[all...]
/base/powermgr/power_manager/frameworks/native/
H A Dclient_lifecycle.cpp27 sptr<IRemoteObject::DeathRecipient> ClientLifeCycle::deathRecipient_; member in OHOS::PowerMgr::ClientLifeCycle
59 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new LifeCycleRecipient()); in Connect()
60 if (deathRecipient_ == nullptr) { in Connect()
64 if ((remoteObject_->IsProxyObject()) && (!remoteObject_->AddDeathRecipient(deathRecipient_))) { in Connect()
82 service->RemoveDeathRecipient(deathRecipient_); in Reset()
/base/powermgr/thermal_manager/test/common/src/
H A Dmock_thermal_mgr_client.cpp33 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~MockThermalMgrClient()
57 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new ThermalMgrDeathRecipient()); in Connect()
58 if (deathRecipient_ == nullptr) { in Connect()
63 if ((remoteObject_->IsProxyObject()) && (!remoteObject_->AddDeathRecipient(deathRecipient_))) { in Connect()
80 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
/base/useriam/user_auth_framework/services/context/src/
H A Dcontext_death_recipient.cpp50 deathRecipient_ = dr; in AddDeathRecipient()
60 if (deathRecipient_ == nullptr) { in RemoveDeathRecipient()
61 IAM_LOGE("deathRecipient_ is nullptr"); in RemoveDeathRecipient()
77 obj->RemoveDeathRecipient(deathRecipient_); in RemoveDeathRecipient()
78 deathRecipient_ = nullptr; in RemoveDeathRecipient()
/base/hiviewdfx/hidumper/services/native/src/
H A Ddump_manager_client.cpp80 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new DumpManagerDeathRecipient()); in Connect()
81 if (deathRecipient_ == nullptr) { in Connect()
82 DUMPER_HILOGE(MODULE_CLIENT, "deathRecipient_ is nullptr."); in Connect()
85 if ((remoteObject->IsProxyObject()) && (!remoteObject->AddDeathRecipient(deathRecipient_))) { in Connect()
107 serviceRemote->RemoveDeathRecipient(deathRecipient_); in Reset()
121 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
H A Ddump_manager_cpu_client.cpp71 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new DumpManagerCpuDeathRecipient()); in Connect()
72 if (deathRecipient_ == nullptr) { in Connect()
73 DUMPER_HILOGE(MODULE_CPU_CLIENT, "cpu deathRecipient_ is null"); in Connect()
76 if ((remoteObject->IsProxyObject()) && (!remoteObject->AddDeathRecipient(deathRecipient_))) { in Connect()
92 serviceRemote->RemoveDeathRecipient(deathRecipient_); in Reset()
106 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
/base/hiviewdfx/hiview/interfaces/js/napi/src/
H A Dhiview_service_agent.cpp104 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new HiviewServiceDeathRecipient(*this)); in GetRemoteService()
105 if (deathRecipient_ == nullptr) { in GetRemoteService()
110 hiviewServiceAbilityProxy_->AddDeathRecipient(deathRecipient_); in GetRemoteService()
122 hiviewServiceAbilityProxy_->RemoveDeathRecipient(deathRecipient_); in ProcessDeathObserver()
124 deathRecipient_ = nullptr; in ProcessDeathObserver()
/base/powermgr/power_manager/test/unittest/src/
H A Dpower_mgr_client_native_test.cpp62 if (powerMgrClient.deathRecipient_ != nullptr) { in HWTEST_F()
63 powerMgrClient.deathRecipient_->OnRemoteDied(remoteObject_); in HWTEST_F()
64 powerMgrClient.deathRecipient_->OnRemoteDied(nullptr); in HWTEST_F()
/base/notification/common_event_service/services/src/
H A Dability_manager_helper.cpp79 deathRecipient_ = new (std::nothrow) AbilityManagerDeathRecipient(); in GetAbilityMgrProxy()
80 if (deathRecipient_ == nullptr) { in GetAbilityMgrProxy()
84 if (!abilityMgr_->AsObject()->AddDeathRecipient(deathRecipient_)) { in GetAbilityMgrProxy()
98 abilityMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in Clear()
/base/security/security_guard/frameworks/common/acquire/src/
H A Dacquire_data_manager.cpp71 if (deathRecipient_ == nullptr) { in Subscribe()
72 deathRecipient_ = new (std::nothrow) DeathRecipient(); in Subscribe()
73 if (deathRecipient_ == nullptr) { in Subscribe()
74 SGLOGE("deathRecipient_ is nullptr."); in Subscribe()
79 if (!object->AddDeathRecipient(deathRecipient_)) { in Subscribe()
/base/theme/screenlock_mgr/frameworks/native/src/
H A Dscreenlock_manager.cpp152 deathRecipient_ = new ScreenLockSaDeathRecipient(); in GetScreenLockManagerProxy()
153 systemAbility->AddDeathRecipient(deathRecipient_); in GetScreenLockManagerProxy()
184 if (screenlockManagerProxy_ != nullptr && deathRecipient_ != nullptr) { in RemoveDeathRecipient()
185 screenlockManagerProxy_->AsObject()->RemoveDeathRecipient(deathRecipient_); in RemoveDeathRecipient()
H A Dscreenlock_app_manager.cpp28 sptr<ScreenLockAppDeathRecipient> ScreenLockAppManager::deathRecipient_; member in OHOS::ScreenLock::ScreenLockAppManager
177 deathRecipient_ = new ScreenLockAppDeathRecipient(); in GetScreenLockManagerProxy()
178 systemAbility->AddDeathRecipient(deathRecipient_); in GetScreenLockManagerProxy()
/base/useriam/face_auth/frameworks/ipc/src/
H A Dface_auth_client_impl.cpp62 sptr<IRemoteObject::DeathRecipient> deathRecipient_ { nullptr };
122 deathRecipient_ = dr; in GetProxy()
137 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
139 deathRecipient_ = nullptr; in ResetProxy()
/base/startup/init/device_info/
H A Ddevice_info_kits.h48 return deathRecipient_; in GetDeathRecipient()
55 sptr<IRemoteObject::DeathRecipient> deathRecipient_ {};
H A Ddevice_info_kits.cpp63 if (deathRecipient_ == nullptr) { in LoadDeviceInfoSa()
64 deathRecipient_ = new DeathRecipient(); in LoadDeviceInfoSa()
78 if ((object->IsProxyObject()) && (!object->AddDeathRecipient(deathRecipient_))) { in LoadDeviceInfoSa()
159 object->RemoveDeathRecipient(deathRecipient_); in ResetService()
/base/security/security_guard/frameworks/common/collector/src/
H A Dcollector_manager.cpp44 if (deathRecipient_ == nullptr) { in Subscribe()
45 deathRecipient_ = new (std::nothrow) DeathRecipient(); in Subscribe()
46 if (deathRecipient_ == nullptr) { in Subscribe()
47 LOGE("deathRecipient_ is null"); in Subscribe()
51 if (!object->AddDeathRecipient(deathRecipient_)) { in Subscribe()
/base/security/security_guard/frameworks/common/collect/src/
H A Dsg_collect_client.cpp60 deathRecipient_ = new (std::nothrow) SgCollectClientDeathRecipient(); in InitProxy()
61 if (deathRecipient_ != nullptr) { in InitProxy()
62 proxy_->AsObject()->AddDeathRecipient(deathRecipient_); in InitProxy()
71 proxy_->AsObject()->RemoveDeathRecipient(deathRecipient_); in ReleaseProxy()
/base/useriam/user_auth_framework/frameworks/native/client/src/
H A Dco_auth_client_impl.cpp91 deathRecipient_ = dr; in GetProxy()
106 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
108 deathRecipient_ = nullptr; in ResetProxy()
/base/telephony/state_registry/frameworks/native/observer/src/
H A Dtelephony_observer_client.cpp58 deathRecipient_ = dr; in GetProxy()
76 serviceRemote->RemoveDeathRecipient(deathRecipient_); in OnRemoteDied()
/base/useriam/pin_auth/frameworks/client/src/
H A Dpinauth_register_impl.cpp88 deathRecipient_ = dr; in GetProxy()
99 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
/base/account/os_account/services/accountmgr/src/bundle_manager_adapter/
H A Dbundle_manager_adapter.cpp200 deathRecipient_ = sptr<IRemoteObject::DeathRecipient>(new (std::nothrow) BundleMgrDeathRecipient()); in Connect()
201 if (deathRecipient_ == nullptr) { in Connect()
207 if ((remoteObj->IsProxyObject()) && (!remoteObj->AddDeathRecipient(deathRecipient_))) { in Connect()
230 serviceRemote->RemoveDeathRecipient(deathRecipient_); in ResetProxy()
/base/notification/distributed_notification_service/services/ans/src/
H A Dbundle_manager_helper.cpp30 deathRecipient_ = new (std::nothrow) in BundleManagerHelper()
32 if (deathRecipient_ == nullptr) { in BundleManagerHelper()
143 bundleMgr_->AsObject()->AddDeathRecipient(deathRecipient_); in Connect()
150 bundleMgr_->AsObject()->RemoveDeathRecipient(deathRecipient_); in Disconnect()
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
H A Dmodule_update_kits_impl.cpp54 object->RemoveDeathRecipient(deathRecipient_); in ResetService()
78 if (deathRecipient_ == nullptr) { in GetService()
79 deathRecipient_ = new DeathRecipient(); in GetService()
82 if ((object->IsProxyObject()) && (!object->AddDeathRecipient(deathRecipient_))) { in GetService()
H A Dsys_installer_kits_impl.cpp54 object->RemoveDeathRecipient(deathRecipient_); in ResetService()
78 if (deathRecipient_ == nullptr) { in GetService()
79 deathRecipient_ = new DeathRecipient(); in GetService()
82 if ((object->IsProxyObject()) && (!object->AddDeathRecipient(deathRecipient_))) { in GetService()
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
H A Dime_system_channel.cpp73 if (deathRecipient_ == nullptr) { in GetSystemAbilityProxy()
74 deathRecipient_ = new (std::nothrow) InputDeathRecipient(); in GetSystemAbilityProxy()
75 if (deathRecipient_ == nullptr) { in GetSystemAbilityProxy()
80 deathRecipient_->SetDeathRecipient([this](const wptr<IRemoteObject> &remote) { OnRemoteSaDied(remote); }); in GetSystemAbilityProxy()
81 if ((systemAbility->IsProxyObject()) && (!systemAbility->AddDeathRecipient(deathRecipient_))) { in GetSystemAbilityProxy()

Completed in 8 milliseconds

123456