Home
last modified time | relevance | path

Searched refs:notification (Results 1 - 25 of 44) sorted by relevance

12

/foundation/filemanagement/storage_service/services/storage_manager/volume/test/
H A Dnotification_test.cpp19 #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 Dmock_notification_helper.cpp86 ErrCode NotificationHelper::GetAllActiveNotifications(std::vector<sptr<Notification>> &notification) 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 Dtask_notification_subscriber.cpp47 void TaskNotificationSubscriber::OnCanceled(const std::shared_ptr<Notification::Notification> &notification, 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> &notification, in OnConsumed() argument
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dkvdb_notifier_proxy.cpp90 void KVDBNotifierProxy::OnSwitchChange(const SwitchNotification &notification) 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 Dkvdb_notifier_proxy.h32 void OnSwitchChange(const SwitchNotification &notification) override;
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_common.h45 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 Dkvdb_notifier_stub.cpp102 SwitchNotification notification; in OnOnSwitchChange() local
103 if (!ITypesUtil::Unmarshal(data, notification)) { in OnOnSwitchChange()
107 OnSwitchChange(std::move(notification)); in OnOnSwitchChange()
H A Dkvdb_notifier_client.cpp87 void KVDBNotifierClient::OnSwitchChange(const SwitchNotification &notification) in OnSwitchChange() argument
90 [&notification](auto &, std::shared_ptr<KvStoreObserver> &observer) { in OnSwitchChange()
91 observer->OnSwitchChange(notification); in OnSwitchChange()
H A Dikvstore_observer.cpp119 ChangeNotification notification({}, {}, {}, "", false); in OnRemoteRequest()
120 if (!ITypesUtil::Unmarshal(data, notification)) { in OnRemoteRequest()
124 OnChange(notification); in OnRemoteRequest()
H A Dkvdb_notifier_client.h36 void OnSwitchChange(const SwitchNotification &notification) override;
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/
H A Dprofile_change_notification_test.cpp79 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 Dprofile_event_notifier_proxy_test.cpp108 ProfileChangeNotification notification; in HWTEST_F() local
109 proxy->OnProfileChanged(notification); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dkv_types_util.cpp84 bool Marshalling(const ChangeNotification &notification, 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 Dkv_data_change_listener.cpp102 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 Davrcp_tg_connection.cpp316 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 Davrcp_tg_connection.h268 * @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 Dcoap_discover.c994 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 Dbgtask_misc_unit_test.cpp39 #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 Ddisc_coap_capability.c108 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 Dprofile_change_handler.cpp121 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 Ddisc_coap_capability.h34 void DiscCoapReportNotification(const NSTACKX_NotificationConfig *notification);
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/include/
H A Dikvdb_notifier.h35 virtual void OnSwitchChange(const SwitchNotification &notification) = 0;
/foundation/distributeddatamgr/kv_store/interfaces/innerkits/distributeddata/include/
H A Dkvstore_observer.h48 * 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 &notification) {} in OnSwitchChange() argument
/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager/listener/
H A Dkv_data_change_listener.h35 void OnSwitchChange(const DistributedKv::SwitchNotification &notification) override;
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/
H A Davrcp_ct_connection.h240 * @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...]

Completed in 13 milliseconds

12