/foundation/filemanagement/storage_service/services/storage_manager/volume/test/ |
H A D | notification_test.cpp | 19 #include "volume/notification.h" 51 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() local 52 notification->NotifyVolumeChange(VolumeState::REMOVED, volume); in HWTEST_F() 75 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() local 76 notification->NotifyVolumeChange(VolumeState::UNMOUNTED, volume); in HWTEST_F() 101 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() local 102 notification->NotifyVolumeChange(VolumeState::MOUNTED, volume); in HWTEST_F() 125 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() local 126 notification->NotifyVolumeChange(VolumeState::BAD_REMOVAL, volume); in HWTEST_F() 149 std::shared_ptr<Notification> notification in HWTEST_F() local 173 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); HWTEST_F() local [all...] |
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_notification_helper.cpp | 86 ErrCode NotificationHelper::GetAllActiveNotifications(std::vector<sptr<Notification>> ¬ification) in GetAllActiveNotifications() argument 113 notification.emplace_back(notification1); in GetAllActiveNotifications() 114 notification.emplace_back(notification2); in GetAllActiveNotifications() 115 notification.emplace_back(notification3); in GetAllActiveNotifications() 116 notification.emplace_back(notification4); in GetAllActiveNotifications() 126 notification.emplace_back(notification5); in GetAllActiveNotifications()
|
/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/ |
H A D | task_notification_subscriber.cpp | 47 void TaskNotificationSubscriber::OnCanceled(const std::shared_ptr<Notification::Notification> ¬ification,
in OnCanceled() argument 50 if (notification == nullptr) {
in OnCanceled() 51 BGTASK_LOGW("notification param is null");
in OnCanceled() 54 Notification::NotificationRequest request = notification->GetNotificationRequest();
in OnCanceled() 59 // continuous task notification label is consisted of bgmode prefix, app uid, abilityName hash code.
in OnCanceled() 65 BGTASK_LOGW("callback notification label is invalid");
in OnCanceled() 70 BGTASK_LOGD("notification remove action is already triggered by cancel method.");
in OnCanceled() 76 BGTASK_LOGE("notification extraInfo is null");
in OnCanceled() 90 void TaskNotificationSubscriber::OnConsumed(const std::shared_ptr<Notification::Notification> ¬ification,
in OnConsumed() argument
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | kvdb_notifier_proxy.cpp | 90 void KVDBNotifierProxy::OnSwitchChange(const SwitchNotification ¬ification) in OnSwitchChange() argument 94 KVDBNotifierCode::TRANS_ON_SWITCH_CHANGED), reply, notification); in OnSwitchChange() 97 status, Anonymous::Change(notification.deviceId).c_str()); in OnSwitchChange()
|
H A D | kvdb_notifier_proxy.h | 32 void OnSwitchChange(const SwitchNotification ¬ification) override;
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_common.h | 45 void NotificationReceived(const NSTACKX_NotificationConfig *notification); 57 int32_t GetServiceNotificationInfo(const uint8_t *buf, size_t size, NSTACKX_NotificationConfig *notification);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | kvdb_notifier_stub.cpp | 102 SwitchNotification notification; in OnOnSwitchChange() local 103 if (!ITypesUtil::Unmarshal(data, notification)) { in OnOnSwitchChange() 107 OnSwitchChange(std::move(notification)); in OnOnSwitchChange()
|
H A D | kvdb_notifier_client.cpp | 87 void KVDBNotifierClient::OnSwitchChange(const SwitchNotification ¬ification) in OnSwitchChange() argument 90 [¬ification](auto &, std::shared_ptr<KvStoreObserver> &observer) { in OnSwitchChange() 91 observer->OnSwitchChange(notification); in OnSwitchChange()
|
H A D | ikvstore_observer.cpp | 119 ChangeNotification notification({}, {}, {}, "", false); in OnRemoteRequest() 120 if (!ITypesUtil::Unmarshal(data, notification)) { in OnRemoteRequest() 124 OnChange(notification); in OnRemoteRequest()
|
H A D | kvdb_notifier_client.h | 36 void OnSwitchChange(const SwitchNotification ¬ification) override;
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | profile_change_notification_test.cpp | 79 ProfileChangeNotification notification; in HWTEST_F() local 80 auto result = notification.GetProfileEntries(); in HWTEST_F() 95 ProfileChangeNotification notification(profileEntries, networkId, isLocal); in HWTEST_F() 96 auto result = notification.GetProfileEntries(); in HWTEST_F() 132 * @tc.desc: marshalling of profile change notification 146 * @tc.desc: marshalling of profile change notification 156 ProfileChangeNotification notification(profileEntries, networkId, isLocal); in HWTEST_F() 158 bool ret = notification.Marshalling(parcel); in HWTEST_F() 164 * @tc.desc: unmarshalling of profile change notification 178 * @tc.desc: unmarshalling of profile change notification [all...] |
H A D | profile_event_notifier_proxy_test.cpp | 108 ProfileChangeNotification notification; in HWTEST_F() local 109 proxy->OnProfileChanged(notification); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | kv_types_util.cpp | 84 bool Marshalling(const ChangeNotification ¬ification, MessageParcel &parcel) in Marshalling() argument 86 return ITypesUtil::Marshal(parcel, notification.GetInsertEntries(), notification.GetUpdateEntries(), in Marshalling() 87 notification.GetDeleteEntries(), notification.GetDeviceId(), notification.IsClear()); in Marshalling()
|
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/listener/ |
H A D | kv_data_change_listener.cpp | 102 void KvDataChangeListener::OnSwitchChange(const DistributedKv::SwitchNotification& notification) in OnSwitchChange() argument 104 HILOGI("Switch data change, deviceId: %{public}s", ProfileUtils::GetAnonyString(notification.deviceId).c_str()); in OnSwitchChange() 105 if (notification.deviceId.empty()) { in OnSwitchChange() 110 std::string netWorkId = notification.deviceId; in OnSwitchChange() 118 HandleSwitchUpdateChange(udid, notification.data.value); in OnSwitchChange()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/ |
H A D | avrcp_tg_connection.cpp | 316 void AvrcTgConnectManager::EnableNotifyState(const RawAddress &rawAddr, uint8_t notification) in EnableNotifyState() argument 318 HILOGI("address: %{public}s, notification: %{public}d", GET_ENCRYPT_AVRCP_ADDR(rawAddr), notification); in EnableNotifyState() 324 auto iter = info->notes_.find(notification); in EnableNotifyState() 333 void AvrcTgConnectManager::DisableNotifyState(const RawAddress &rawAddr, uint8_t notification) in DisableNotifyState() argument 335 HILOGI("address: %{public}s, notification: %{public}d", GET_ENCRYPT_AVRCP_ADDR(rawAddr), notification); in DisableNotifyState() 341 auto iter = info->notes_.find(notification); in DisableNotifyState() 350 bool AvrcTgConnectManager::IsNotifyStateEnabled(const RawAddress &rawAddr, uint8_t notification) in IsNotifyStateEnabled() argument 352 HILOGI("address: %{public}s, notification in IsNotifyStateEnabled() [all...] |
H A D | avrcp_tg_connection.h | 268 * @brief Enables the notification of the specified bluetooth device. 273 void EnableNotifyState(const RawAddress &rawAddr, uint8_t notification); 276 * @brief Disables the notification of the specified bluetooth device. 279 * @param[in] notification The specified notify state. 281 void DisableNotifyState(const RawAddress &rawAddr, uint8_t notification); 284 * @brief Checks the notification of the specified bluetooth device is enabled or not. 287 * @param[in] notification The specified notify state. 289 * @retval true The notification is enabled. 290 * @retval false The notification is disabled. 292 bool IsNotifyStateEnabled(const RawAddress &rawAddr, uint8_t notification); [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/ |
H A D | coap_discover.c | 994 DFINDER_LOGE(TAG, "format coap service notification uri failed"); 999 DFINDER_LOGE(TAG, "prepare service notification data fail"); 1056 DFINDER_LOGE(TAG, "failed when post service notification"); 1059 DFINDER_LOGI(TAG, "the %hhu time for sending notification", g_notificationRunCnt + 1); 1062 DFINDER_LOGE(TAG, "failed to set timer for service notification"); 1067 DFINDER_LOGE(TAG, "abort notification, tried %hhu request, now reset notification cnt to 0", g_notificationRunCnt); 1079 NSTACKX_NotificationConfig *notification = local 1081 if (notification == NULL) { 1082 DFINDER_LOGE(TAG, "calloc for notification fai 1149 coap_resource_t *notification = coap_resource_init(coap_make_str_const(COAP_SERVICE_NOTIFICATION_URI), 0); global() local [all...] |
/foundation/resourceschedule/background_task_mgr/services/test/unittest/ |
H A D | bgtask_misc_unit_test.cpp | 39 #include "notification.h" 269 auto notification = std::make_shared<Notification::Notification>(notificationRequest); in HWTEST_F() local 270 subscriber->OnCanceled(notification, notificationMap, 1); in HWTEST_F() 273 notification->request_->creatorUid_ = BGTASKMGR_UID; in HWTEST_F() 274 subscriber->OnCanceled(notification, notificationMap, 1); in HWTEST_F() 275 notification->request_->label_ = "label"; in HWTEST_F() 276 subscriber->OnCanceled(notification, notificationMap, 1); in HWTEST_F() 277 notification->request_->label_ = "bgmode_1"; in HWTEST_F() 278 subscriber->OnCanceled(notification, notificationMap, 1); in HWTEST_F() 279 notification in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/ |
H A D | disc_coap_capability.c | 108 void DiscCoapReportNotification(const NSTACKX_NotificationConfig *notification)
in DiscCoapReportNotification() argument 110 (void)notification;
in DiscCoapReportNotification()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/subscribemanager/ |
H A D | profile_change_handler.cpp | 121 ProfileChangeNotification notification(profileEntries, networkId, localUdid == udid); in OnChange() 122 auto notifyTask = [this, notification = std::move(notification), in OnChange() 124 NotifyProfileChanged(notification, service2Index); in OnChange()
|
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/include/ |
H A D | disc_coap_capability.h | 34 void DiscCoapReportNotification(const NSTACKX_NotificationConfig *notification);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/include/ |
H A D | ikvdb_notifier.h | 35 virtual void OnSwitchChange(const SwitchNotification ¬ification) = 0;
|
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/ |
H A D | kvstore_observer.h | 48 * client should override this function to receive change notification. 55 * client should override this function to receive change notification. 62 * client should override this function to receive change notification. 64 API_EXPORT virtual void OnSwitchChange(const SwitchNotification ¬ification) {} in OnSwitchChange() argument
|
/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager/listener/ |
H A D | kv_data_change_listener.h | 35 void OnSwitchChange(const DistributedKv::SwitchNotification ¬ification) override;
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_connection.h | 240 * @brief Enables the notification of the specified bluetooth device. 243 * @param[in] notification The specified notify state. 245 void EnableNotifyState(const RawAddress &rawAddr, uint8_t notification); 248 * @brief Disables the notification of the specified bluetooth device. 251 * @param[in] notification The specified notify state. 253 void DisableNotifyState(const RawAddress &rawAddr, uint8_t notification); 256 * @brief Checks the notification of the specified bluetooth device is enabled or not. 259 * @param[in] notification The specified notify state. 261 * @retval true The notification is enabled. 262 * @retval false The notification i [all...] |