Home
last modified time | relevance | path

Searched refs:statusChangeListener_ (Results 1 - 14 of 14) sorted by relevance

/foundation/distributedhardware/device_manager/services/implementation/src/dependency/commonevent/
H A Ddm_common_event_manager.cpp69 statusChangeListener_ = sptr<SystemAbilityStatusChangeListener>( in SubscribeServiceEvent()
71 if (statusChangeListener_ == nullptr) { in SubscribeServiceEvent()
72 LOGE("statusChangeListener_ is nullptr"); in SubscribeServiceEvent()
77 if (samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_) == ERR_OK) { in SubscribeServiceEvent()
110 if (statusChangeListener_ != nullptr) { in UnsubscribeServiceEvent()
116 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeServiceEvent()
121 statusChangeListener_ = nullptr; in UnsubscribeServiceEvent()
/foundation/distributedhardware/device_manager/services/service/src/publishcommonevent/
H A Ddm_screen_common_event.cpp77 statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_); in SubscribeScreenCommonEvent()
78 if (statusChangeListener_ == nullptr) { in SubscribeScreenCommonEvent()
79 LOGE("statusChangeListener_ is nullptr"); in SubscribeScreenCommonEvent()
84 if (samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_) == ERR_OK) { in SubscribeScreenCommonEvent()
117 if (statusChangeListener_ != nullptr) { in UnsubscribeScreenCommonEvent()
123 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeScreenCommonEvent()
128 statusChangeListener_ = nullptr; in UnsubscribeScreenCommonEvent()
H A Ddm_data_share_common_event.cpp78 statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_); in SubscribeDataShareCommonEvent()
79 if (statusChangeListener_ == nullptr) { in SubscribeDataShareCommonEvent()
80 LOGE("statusChangeListener_ is nullptr"); in SubscribeDataShareCommonEvent()
85 if (samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_) == ERR_OK) { in SubscribeDataShareCommonEvent()
118 if (statusChangeListener_ != nullptr) { in UnsubscribeDataShareCommonEvent()
124 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeDataShareCommonEvent()
129 statusChangeListener_ = nullptr; in UnsubscribeDataShareCommonEvent()
H A Ddm_account_common_event.cpp77 statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_); in SubscribeAccountCommonEvent()
78 if (statusChangeListener_ == nullptr) { in SubscribeAccountCommonEvent()
79 LOGE("statusChangeListener_ is nullptr"); in SubscribeAccountCommonEvent()
84 if (samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_) == ERR_OK) { in SubscribeAccountCommonEvent()
117 if (statusChangeListener_ != nullptr) { in UnsubscribeAccountCommonEvent()
123 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeAccountCommonEvent()
128 statusChangeListener_ = nullptr; in UnsubscribeAccountCommonEvent()
H A Ddm_package_common_event.cpp77 statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_); in SubscribePackageCommonEvent()
78 if (statusChangeListener_ == nullptr) { in SubscribePackageCommonEvent()
79 LOGE("statusChangeListener_ is nullptr"); in SubscribePackageCommonEvent()
84 if (samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_) == ERR_OK) { in SubscribePackageCommonEvent()
117 if (statusChangeListener_ != nullptr) { in UnsubscribePackageCommonEvent()
123 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribePackageCommonEvent()
128 statusChangeListener_ = nullptr; in UnsubscribePackageCommonEvent()
H A Ddm_publish_common_event.cpp79 statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_); in SubscribePublishCommonEvent()
80 if (statusChangeListener_ == nullptr) { in SubscribePublishCommonEvent()
81 LOGE("statusChangeListener_ is nullptr"); in SubscribePublishCommonEvent()
86 if (samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_) == ERR_OK) { in SubscribePublishCommonEvent()
120 if (statusChangeListener_ != nullptr) { in UnsubscribePublishCommonEvent()
126 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribePublishCommonEvent()
131 statusChangeListener_ = nullptr; in UnsubscribePublishCommonEvent()
/foundation/distributedhardware/device_manager/services/implementation/include/dependency/commonevent/
H A Ddm_common_event_manager.h67 sptr<ISystemAbilityStatusChange> statusChangeListener_ = nullptr; member in OHOS::DistributedHardware::DmCommonEventManager
/foundation/distributedhardware/device_manager/services/service/include/publishcommonevent/
H A Ddm_account_common_event.h65 sptr<ISystemAbilityStatusChange> statusChangeListener_ = nullptr; member in OHOS::DistributedHardware::DmAccountCommonEventManager
H A Ddm_data_share_common_event.h65 sptr<ISystemAbilityStatusChange> statusChangeListener_ = nullptr; member in OHOS::DistributedHardware::DmDataShareCommonEventManager
H A Ddm_package_common_event.h65 sptr<ISystemAbilityStatusChange> statusChangeListener_ = nullptr; member in OHOS::DistributedHardware::DmPackageCommonEventManager
H A Ddm_screen_common_event.h65 sptr<ISystemAbilityStatusChange> statusChangeListener_ = nullptr; member in OHOS::DistributedHardware::DmScreenCommonEventManager
H A Ddm_publish_common_event.h83 sptr<ISystemAbilityStatusChange> statusChangeListener_ = nullptr; member in OHOS::DistributedHardware::DmPublishCommonEventManager
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_system_interface.h489 sptr<SystemAbilityStatusChange> statusChangeListener_; member in OHOS::bluetooth::HfpAgSystemInterface
H A Dhfp_ag_system_interface.cpp54 statusChangeListener_ = new SystemAbilityStatusChange(); in Start()
55 int32_t ret = samgrProxy->SubscribeSystemAbility(TELEPHONY_CALL_MANAGER_SYS_ABILITY_ID, statusChangeListener_); in Start()

Completed in 7 milliseconds