Home
last modified time | relevance | path

Searched refs:notifications (Results 1 – 25 of 34) sorted by relevance

12

/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_branch_test/
Dans_subscriber_proxy_branch_test.cpp70 std::vector<sptr<OHOS::Notification::Notification>> notifications; variable
73 proxy->OnCanceledList(notifications, notificationMap, deleteReason);
92 std::vector<sptr<OHOS::Notification::Notification>> notifications; variable
93 notifications.emplace_back(notification);
96 proxy->OnCanceledList(notifications, notificationMap, deleteReason);
115 std::vector<sptr<OHOS::Notification::Notification>> notifications; variable
116 notifications.emplace_back(notification);
119 proxy->OnCanceledList(notifications, notificationMap, deleteReason);
136 std::vector<sptr<OHOS::Notification::Notification>> notifications; variable
138 proxy->WriteParcelableVector(notifications, data);
[all …]
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/
Dgetallactivenotifications_fuzzer.cpp36 std::vector<sptr<Notification::Notification>> notifications; in DoSomethingInterestingWithMyAPI() local
37 notifications.emplace_back(notification); in DoSomethingInterestingWithMyAPI()
38 Notification::NotificationHelper::GetAllActiveNotifications(notifications); in DoSomethingInterestingWithMyAPI()
42 … return Notification::NotificationHelper::GetAllActiveNotifications(keys, notifications) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/
Dansmanagerstubannextwo_fuzzer.cpp60 std::vector<sptr<Notification::NotificationRequest>> notifications; in DoSomethingInterestingWithMyAPI() local
61 notifications.emplace_back(notificationer); in DoSomethingInterestingWithMyAPI()
62 ansManagerStub.GetActiveNotifications(notifications); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_fw_module_test.cpp706 std::vector<sptr<Notification>> notifications; variable
707 EXPECT_EQ(NotificationHelper::GetAllActiveNotifications(notifications), ERR_OK);
708 std::string key = notifications[0]->GetKey().c_str();
752 std::vector<sptr<Notification>> notifications; variable
753 EXPECT_EQ(NotificationHelper::GetAllActiveNotifications(notifications), ERR_OK);
755 std::string key = notifications[0]->GetKey().c_str();
813 std::vector<sptr<Notification>> notifications; variable
814 EXPECT_EQ(NotificationHelper::GetAllActiveNotifications(notifications), ERR_OK);
815 EXPECT_EQ((int)notifications.size(), (int)0);
977 std::vector<sptr<Notification>> notifications; variable
[all …]
/base/notification/distributed_notification_service/services/ans/src/
Dadvanced_notification_service.cpp756 std::vector<sptr<Notification>> notifications; in CancelAll() local
772 notifications.emplace_back(notification); in CancelAll()
777 if (notifications.size() >= MAX_CANCELED_PARCELABLE_VECTOR_NUM) { in CancelAll()
778 std::vector<sptr<Notification>> currNotificationList = notifications; in CancelAll()
781 notifications.clear(); in CancelAll()
785 if (!notifications.empty()) { in CancelAll()
787 notifications, nullptr, NotificationConstant::APP_CANCEL_ALL_REASON_DELETE); in CancelAll()
900 …dNotificationService::GetActiveNotifications(std::vector<sptr<NotificationRequest>> &notifications) in GetActiveNotifications() argument
915 notifications.clear(); in GetActiveNotifications()
919 notifications.push_back(record->request); in GetActiveNotifications()
[all …]
Dnotification_subscriber_manager.cpp164 …icationSubscriberManager::BatchNotifyCanceled(const std::vector<sptr<Notification>> &notifications, in BatchNotifyCanceled() argument
174 …&NotificationSubscriberManager::BatchNotifyCanceledInner, this, notifications, notificationMap, de… in BatchNotifyCanceled()
409 …onSubscriberManager::BatchNotifyCanceledInner(const std::vector<sptr<Notification>> &notifications, in BatchNotifyCanceledInner() argument
414 ANS_LOGD("notifications size = <%{public}zu>", notifications.size()); in BatchNotifyCanceledInner()
421 for (size_t i = 0; i < notifications.size(); i ++) { in BatchNotifyCanceledInner()
422 sptr<Notification> notification = notifications[i]; in BatchNotifyCanceledInner()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dget_active.h29 std::vector<sptr<OHOS::Notification::Notification>> notifications; member
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_subscriber_manager.h80 void BatchNotifyCanceled(const std::vector<sptr<Notification>> &notifications,
138 void BatchNotifyCanceledInner(const std::vector<sptr<Notification>> &notifications,
Dadvanced_notification_service.h165 ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> &notifications) override;
182 ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> &notifications) override;
195 … const std::vector<std::string> &key, std::vector<sptr<Notification>> &notifications) override;
832 void SendNotificationsOnCanceled(std::vector<sptr<Notification>> &notifications,
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_subscriber_stub.cpp155 std::vector<sptr<Notification>> notifications; in HandleOnCanceledListMap() local
156 if (!ReadParcelableVector(notifications, data)) { in HandleOnCanceledListMap()
182 OnCanceledList(notifications, notificationMap, reason); in HandleOnCanceledListMap()
269 void AnsSubscriberStub::OnCanceledList(const std::vector<sptr<Notification>> &notifications, in OnCanceledList() argument
Dans_subscriber_proxy.cpp175 void AnsSubscriberProxy::OnCanceledList(const std::vector<sptr<Notification>> &notifications, in OnCanceledList() argument
178 if (notifications.empty()) { in OnCanceledList()
189 if (!WriteParcelableVector(notifications, data)) { in OnCanceledList()
Dans_manager_stub.cpp476 std::vector<sptr<NotificationRequest>> notifications; in HandleGetActiveNotifications() local
477 ErrCode result = GetActiveNotifications(notifications); in HandleGetActiveNotifications()
478 if (!WriteParcelableVector(notifications, reply, result)) { in HandleGetActiveNotifications()
503 std::vector<sptr<Notification>> notifications; in HandleGetAllActiveNotifications() local
504 ErrCode result = GetAllActiveNotifications(notifications); in HandleGetAllActiveNotifications()
505 if (!WriteParcelableVector(notifications, reply, result)) { in HandleGetAllActiveNotifications()
520 std::vector<sptr<Notification>> notifications; in HandleGetSpecialActiveNotifications() local
521 ErrCode result = GetSpecialActiveNotifications(key, notifications); in HandleGetSpecialActiveNotifications()
522 if (!WriteParcelableVector(notifications, reply, result)) { in HandleGetSpecialActiveNotifications()
1865 …rCode AnsManagerStub::GetActiveNotifications(std::vector<sptr<NotificationRequest>> &notifications) in GetActiveNotifications() argument
[all …]
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
Dnotification_service_test.cpp327 std::vector<sptr<OHOS::Notification::Notification>> notifications; in BENCHMARK_F() local
329 ErrCode errCode = advancedNotificationService_->GetAllActiveNotifications(notifications); in BENCHMARK_F()
344 std::vector<sptr<OHOS::Notification::Notification>> notifications; in BENCHMARK_F() local
361 std::vector<sptr<OHOS::Notification::Notification>> notifications; in BENCHMARK_F() local
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_subscriber_interface.h69 virtual void OnCanceledList(const std::vector<sptr<Notification>> &notifications,
Dans_subscriber_proxy.h60 void OnCanceledList(const std::vector<sptr<Notification>> &notifications,
Dans_manager_interface.h148 … virtual ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> &notifications) = 0;
165 virtual ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> &notifications) = 0;
178 const std::vector<std::string> &key, std::vector<sptr<Notification>> &notifications) = 0;
Dans_manager_proxy.h137 ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> &notifications) override;
154 ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> &notifications) override;
167 … const std::vector<std::string> &key, std::vector<sptr<Notification>> &notifications) override;
Dans_subscriber_stub.h71 void OnCanceledList(const std::vector<sptr<Notification>> &notifications,
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_subscriber.cpp84 …ionSubscriber::SubscriberImpl::OnCanceledList(const std::vector<sptr<Notification>> &notifications, in OnCanceledList() argument
88 for (auto notification : notifications) { in OnCanceledList()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dget_active.cpp38 for (auto vec : asynccallbackinfo->notifications) { in AsyncCompleteCallbackGetAllActiveNotifications()
54 if ((count == 0) && (asynccallbackinfo->notifications.size() > 0)) { in AsyncCompleteCallbackGetAllActiveNotifications()
97 NotificationHelper::GetAllActiveNotifications(asynccallbackinfo->notifications); in GetAllActiveNotifications()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_get_active.cpp40 for (auto vec : asynccallbackinfo->notifications) { in AsyncCompleteCallbackNapiGetAllActiveNotifications()
56 if ((count == 0) && (asynccallbackinfo->notifications.size() > 0)) { in AsyncCompleteCallbackNapiGetAllActiveNotifications()
99 NotificationHelper::GetAllActiveNotifications(asynccallbackinfo->notifications); in NapiGetAllActiveNotifications()
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_subscriber.h126 void OnCanceledList(const std::vector<sptr<Notification>> &notifications,
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
Dadvancednotificationservice_fuzzer.cpp54 std::vector<sptr<Notification::NotificationRequest>> notifications; in DoSomethingInterestingWithMyAPI() local
55 advancedNotificationService.GetActiveNotifications(notifications); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
Dans_notification_branch_test.cpp107 ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> &notifications) override in GetActiveNotifications() argument
117 ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> &notifications) override in GetAllActiveNotifications() argument
123 … const std::vector<std::string> &key, std::vector<sptr<Notification>> &notifications) override in GetSpecialActiveNotifications() argument
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
Dansmanagerstub_fuzzer.cpp126 std::vector<sptr<Notification::NotificationRequest>> notifications; in DoSomethingInterestingWithMyAPI() local
127 ansManagerStub.GetActiveNotifications(notifications); in DoSomethingInterestingWithMyAPI()

12