Home
last modified time | relevance | path

Searched refs:representativeBundle (Results 1 – 25 of 26) sorted by relevance

12

/base/notification/distributed_notification_service/test/fuzztest/cancelasbundle_fuzzer/
Dcancelasbundle_fuzzer.cpp23 std::string representativeBundle(data); in DoSomethingInterestingWithMyAPI() local
27 notificationId, representativeBundle, userId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationhelper_fuzzer/
Dnotificationhelper_fuzzer.cpp31 std::string representativeBundle(data); in DoSomethingInterestingWithMyAPI() local
33 notificationHelper.PublishNotificationAsBundle(representativeBundle, request); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/
Dgetbundleimportance_fuzzer.cpp26 std::string representativeBundle(data); in DoSomethingInterestingWithMyAPI() local
28 …Notification::NotificationHelper::CanPublishNotificationAsBundle(representativeBundle, canPublish); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dcancel.h53 std::string representativeBundle = ""; member
62 std::string representativeBundle = ""; member
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/
Dans_notification_annex_test.cpp110 std::string representativeBundle = "this is representativeBundle"; variable
113 ErrCode ret5 = ans_->PublishNotificationAsBundle(representativeBundle, request);
125 std::string representativeBundle = "this is representativeBundle"; variable
130 ErrCode ret5 = ans_->PublishNotificationAsBundle(representativeBundle, request);
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_helper.h164 …static ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int…
209 …static ErrCode CanPublishNotificationAsBundle(const std::string &representativeBundle, bool &canPu…
223 const std::string &representativeBundle, const NotificationRequest &request);
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_helper.cpp89 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument
92 notificationId, representativeBundle, userId); in CancelAsBundle()
115 ErrCode NotificationHelper::CanPublishNotificationAsBundle(const std::string &representativeBundle,… in CanPublishNotificationAsBundle() argument
118 representativeBundle, canPublish); in CanPublishNotificationAsBundle()
122 const std::string &representativeBundle, const NotificationRequest &request) in PublishNotificationAsBundle() argument
124 …gleton<AnsNotification>::GetInstance()->PublishNotificationAsBundle(representativeBundle, request); in PublishNotificationAsBundle()
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_notification.h163 …ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us…
208 … ErrCode CanPublishNotificationAsBundle(const std::string &representativeBundle, bool &canPublish);
221 …ErrCode PublishNotificationAsBundle(const std::string &representativeBundle, const NotificationReq…
Dans_manager_interface.h81 int32_t notificationId, const std::string &representativeBundle, int32_t userId) = 0;
207 … virtual ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) = 0;
221 const sptr<NotificationRequest> notification, const std::string &representativeBundle) = 0;
Dans_manager_proxy.h70 …ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us…
196 ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) override;
210 … const sptr<NotificationRequest> notification, const std::string &representativeBundle) override;
Dans_manager_stub.h84 int32_t notificationId, const std::string &representativeBundle, int32_t userId) override;
211 …virtual ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) over…
225 … const sptr<NotificationRequest> notification, const std::string &representativeBundle) override;
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcancel.cpp369 paras.representativeBundle = str; in ParseParameters()
373 paras.representativeBundle = std::to_string(number); in ParseParameters()
377 paras.representativeBundle = std::to_string(result); in ParseParameters()
413 .representativeBundle = paras.representativeBundle, in CancelAsBundle()
434 … asynccallbackinfo->id, asynccallbackinfo->representativeBundle, asynccallbackinfo->userId); in CancelAsBundle()
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_notification.cpp191 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument
197 return ansManagerProxy_->CancelAsBundle(notificationId, representativeBundle, userId); in CancelAsBundle()
236 ErrCode AnsNotification::CanPublishNotificationAsBundle(const std::string &representativeBundle, bo… in CanPublishNotificationAsBundle() argument
238 if (representativeBundle.empty()) { in CanPublishNotificationAsBundle()
247 return ansManagerProxy_->CanPublishAsBundle(representativeBundle, canPublish); in CanPublishNotificationAsBundle()
251 const std::string &representativeBundle, const NotificationRequest &request) in PublishNotificationAsBundle() argument
253 if (representativeBundle.empty()) { in PublishNotificationAsBundle()
288 return ansManagerProxy_->PublishAsBundle(reqPtr, representativeBundle); in PublishNotificationAsBundle()
Dans_manager_stub.cpp354 std::string representativeBundle; in HandleCancelAsBundle() local
355 if (!data.ReadString(representativeBundle)) { in HandleCancelAsBundle()
366 ErrCode result = CancelAsBundle(notificationId, representativeBundle, userId); in HandleCancelAsBundle()
564 std::string representativeBundle; in HandleCanPublishAsBundle() local
565 if (!data.ReadString(representativeBundle)) { in HandleCanPublishAsBundle()
571 ErrCode result = CanPublishAsBundle(representativeBundle, canPublish); in HandleCanPublishAsBundle()
593 std::string representativeBundle; in HandlePublishAsBundle() local
594 if (!data.ReadString(representativeBundle)) { in HandlePublishAsBundle()
599 ErrCode result = PublishAsBundle(notification, representativeBundle); in HandlePublishAsBundle()
1817 …erStub::CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us… in CancelAsBundle() argument
[all …]
Dans_manager_proxy.cpp136 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument
149 if (!data.WriteString(representativeBundle)) { in CancelAsBundle()
571 ErrCode AnsManagerProxy::CanPublishAsBundle(const std::string &representativeBundle, bool &canPubli… in CanPublishAsBundle() argument
573 if (representativeBundle.empty()) { in CanPublishAsBundle()
584 if (!data.WriteString(representativeBundle)) { in CanPublishAsBundle()
611 const sptr<NotificationRequest> notification, const std::string &representativeBundle) in PublishAsBundle() argument
618 if (representativeBundle.empty()) { in PublishAsBundle()
634 if (!data.WriteString(representativeBundle)) { in PublishAsBundle()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_cancel.cpp240 .representativeBundle = paras.representativeBundle, in NapiCancelAsBundle()
261 … asynccallbackinfo->id, asynccallbackinfo->representativeBundle, asynccallbackinfo->userId); in NapiCancelAsBundle()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_helper_test.cpp254 std::string representativeBundle = "RepresentativeBundle"; variable
257 ErrCode ret = notificationHelper.CancelAsBundle(notificationId, representativeBundle, userId);
325 std::string representativeBundle = "RepresentativeBundle"; variable
328 … ErrCode ret = notificationHelper.CanPublishNotificationAsBundle(representativeBundle, canPublish);
340 std::string representativeBundle = "RepresentativeBundle"; variable
343 ErrCode ret = notificationHelper.PublishNotificationAsBundle(representativeBundle, request);
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
Dans_notification_branch_test.cpp67 int32_t notificationId, const std::string &representativeBundle, int32_t userId) override in CancelAsBundle() argument
138 ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) override in CanPublishAsBundle() argument
144 … const sptr<NotificationRequest> notification, const std::string &representativeBundle) override in PublishAsBundle() argument
/base/notification/distributed_notification_service/services/ans/include/
Dadvanced_notification_service.h98 int32_t notificationId, const std::string &representativeBundle, int32_t userId) override;
224 ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) override;
238 … const sptr<NotificationRequest> notification, const std::string &representativeBundle) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_branch_test.cpp197 std::string representativeBundle = "RepresentativeBundle"; variable
200 notificationId, representativeBundle, userId), ERR_ANS_NON_SYSTEM_APP);
216 std::string representativeBundle = "RepresentativeBundle"; variable
219 notificationId, representativeBundle, userId), ERR_ANS_PERMISSION_DENIED);
Dadvanced_notification_service_test.cpp1679 std::string representativeBundle = "RepresentativeBundle"; variable
1682 …EXPECT_EQ(advancedNotificationService_->CancelAsBundle(notificationId, representativeBundle, userI…
1693 std::string representativeBundle = "RepresentativeBundle"; variable
1696 …EXPECT_EQ(advancedNotificationService_->CanPublishAsBundle(representativeBundle, canPublish), resu…
1708 std::string representativeBundle = "RepresentativeBundle"; variable
1710 …EXPECT_EQ(advancedNotificationService_->PublishAsBundle(notification, representativeBundle), resul…
2203 std::string representativeBundle = "RepresentativeBundle"; variable
2206 …EXPECT_EQ(advancedNotificationService_->CancelAsBundle(notificationId, representativeBundle, userI…
2223 std::string representativeBundle = "RepresentativeBundle"; variable
2226 …EXPECT_EQ(advancedNotificationService_->CancelAsBundle(notificationId, representativeBundle, userI…
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
Dans_notification_unit_test.cpp232 std::string representativeBundle = "this is representativeBundle"; variable
234 ErrCode ret5 = ans_->CancelAsBundle(notificationId, representativeBundle, userId);
279 std::string representativeBundle = "this is representativeBundle"; variable
281 ErrCode ret1 = ans_->CanPublishNotificationAsBundle(representativeBundle, canPublish);
292 ErrCode ret5 = ans_->PublishNotificationAsBundle(representativeBundle, request);
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/
Dans_manager_proxy_unit_test.cpp563 std::string representativeBundle = "Bundle"; variable
565 int32_t result = proxy->CancelAsBundle(notificationId, representativeBundle, userId);
585 std::string representativeBundle = ""; variable
587 int32_t result = proxy->CancelAsBundle(notificationId, representativeBundle, userId);
609 std::string representativeBundle = "Bundle"; variable
611 int32_t result = proxy->CancelAsBundle(notificationId, representativeBundle, userId);
631 std::string representativeBundle = "Bundle"; variable
633 int32_t result = proxy->CancelAsBundle(notificationId, representativeBundle, userId);
655 std::string representativeBundle = "Bundle"; variable
657 int32_t result = proxy->CancelAsBundle(notificationId, representativeBundle, userId);
[all …]
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_stub_test/
Dans_manager_stub_test.cpp246 std::string representativeBundle = "this is a representativeBundle"; variable
251 data.WriteString(representativeBundle);
271 std::string representativeBundle = "this is a representativeBundle"; variable
275 data.WriteString(representativeBundle);
320 std::string representativeBundle = "this is a representativeBundle"; variable
324 data.WriteString(representativeBundle);
577 std::string representativeBundle = "this is a representativeBundle"; variable
580 data.WriteString(representativeBundle);
620 std::string representativeBundle = "this is a representativeBundle"; variable
624 data.WriteString(representativeBundle);
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
Dnotification_subscriber_manager_branch_test.cpp455 std::string representativeBundle = "<representativeBundle>"; variable
461 …EXPECT_EQ(advancedNotificationService.CancelAsBundle(notificationId, representativeBundle, userId),

12