/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_branch_test/ |
D | ans_subscriber_proxy_branch_test.cpp | 70 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/ |
D | getallactivenotifications_fuzzer.cpp | 36 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/ |
D | ansmanagerstubannextwo_fuzzer.cpp | 60 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/ |
D | ans_fw_module_test.cpp | 706 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/ |
D | advanced_notification_service.cpp | 756 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>> ¬ifications) in GetActiveNotifications() argument 915 notifications.clear(); in GetActiveNotifications() 919 notifications.push_back(record->request); in GetActiveNotifications() [all …]
|
D | notification_subscriber_manager.cpp | 164 …icationSubscriberManager::BatchNotifyCanceled(const std::vector<sptr<Notification>> ¬ifications, in BatchNotifyCanceled() argument 174 …&NotificationSubscriberManager::BatchNotifyCanceledInner, this, notifications, notificationMap, de… in BatchNotifyCanceled() 409 …onSubscriberManager::BatchNotifyCanceledInner(const std::vector<sptr<Notification>> ¬ifications, 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/ |
D | get_active.h | 29 std::vector<sptr<OHOS::Notification::Notification>> notifications; member
|
/base/notification/distributed_notification_service/services/ans/include/ |
D | notification_subscriber_manager.h | 80 void BatchNotifyCanceled(const std::vector<sptr<Notification>> ¬ifications, 138 void BatchNotifyCanceledInner(const std::vector<sptr<Notification>> ¬ifications,
|
D | advanced_notification_service.h | 165 ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> ¬ifications) override; 182 ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> ¬ifications) override; 195 … const std::vector<std::string> &key, std::vector<sptr<Notification>> ¬ifications) override; 832 void SendNotificationsOnCanceled(std::vector<sptr<Notification>> ¬ifications,
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
D | ans_subscriber_stub.cpp | 155 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>> ¬ifications, in OnCanceledList() argument
|
D | ans_subscriber_proxy.cpp | 175 void AnsSubscriberProxy::OnCanceledList(const std::vector<sptr<Notification>> ¬ifications, in OnCanceledList() argument 178 if (notifications.empty()) { in OnCanceledList() 189 if (!WriteParcelableVector(notifications, data)) { in OnCanceledList()
|
D | ans_manager_stub.cpp | 476 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>> ¬ifications) in GetActiveNotifications() argument [all …]
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
D | notification_service_test.cpp | 327 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/ |
D | ans_subscriber_interface.h | 69 virtual void OnCanceledList(const std::vector<sptr<Notification>> ¬ifications,
|
D | ans_subscriber_proxy.h | 60 void OnCanceledList(const std::vector<sptr<Notification>> ¬ifications,
|
D | ans_manager_interface.h | 148 … virtual ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> ¬ifications) = 0; 165 virtual ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> ¬ifications) = 0; 178 const std::vector<std::string> &key, std::vector<sptr<Notification>> ¬ifications) = 0;
|
D | ans_manager_proxy.h | 137 ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> ¬ifications) override; 154 ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> ¬ifications) override; 167 … const std::vector<std::string> &key, std::vector<sptr<Notification>> ¬ifications) override;
|
D | ans_subscriber_stub.h | 71 void OnCanceledList(const std::vector<sptr<Notification>> ¬ifications,
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_subscriber.cpp | 84 …ionSubscriber::SubscriberImpl::OnCanceledList(const std::vector<sptr<Notification>> ¬ifications, in OnCanceledList() argument 88 for (auto notification : notifications) { in OnCanceledList()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | get_active.cpp | 38 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/ |
D | napi_get_active.cpp | 40 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/ |
D | notification_subscriber.h | 126 void OnCanceledList(const std::vector<sptr<Notification>> ¬ifications,
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
D | advancednotificationservice_fuzzer.cpp | 54 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/ |
D | ans_notification_branch_test.cpp | 107 ErrCode GetActiveNotifications(std::vector<sptr<NotificationRequest>> ¬ifications) override in GetActiveNotifications() argument 117 ErrCode GetAllActiveNotifications(std::vector<sptr<Notification>> ¬ifications) override in GetAllActiveNotifications() argument 123 … const std::vector<std::string> &key, std::vector<sptr<Notification>> ¬ifications) override in GetSpecialActiveNotifications() argument
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
D | ansmanagerstub_fuzzer.cpp | 126 std::vector<sptr<Notification::NotificationRequest>> notifications; in DoSomethingInterestingWithMyAPI() local 127 ansManagerStub.GetActiveNotifications(notifications); in DoSomethingInterestingWithMyAPI()
|