/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/ |
H A D | js-apidiff-event-and-notification.md | 18 … number, representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>c… 19 …representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>publishAsB…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/ |
H A D | js-apidiff-event-and-notification.md | 18 … number, representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>c… 19 …representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>publishAsB…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-notification.md | 4 …r>方法 or 属性:function publishAsBundle(request: NotificationRequest, representativeBundle: string, us… 5 …r>方法 or 属性:function publishAsBundle(request: NotificationRequest, representativeBundle: string, us… 6 …>类名: notification<br>方法 or 属性:function cancelAsBundle(id: number, representativeBundle: string, us… 7 …>类名: notification<br>方法 or 属性:function cancelAsBundle(id: number, representativeBundle: string, us…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-notification.md | 4 …bute name: function publishAsBundle(request: NotificationRequest, representativeBundle: string, us… 5 …bute name: function publishAsBundle(request: NotificationRequest, representativeBundle: string, us… 6 …<br>Method or attribute name: function cancelAsBundle(id: number, representativeBundle: string, us… 7 …<br>Method or attribute name: function cancelAsBundle(id: number, representativeBundle: string, us…
|
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/cancelasbundle_fuzzer/ |
H A D | cancelasbundle_fuzzer.cpp | 23 std::string representativeBundle(data); in DoSomethingInterestingWithMyAPI() local 27 notificationId, representativeBundle, userId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/ |
H A D | getbundleimportance_fuzzer.cpp | 26 std::string representativeBundle(data); in DoSomethingInterestingWithMyAPI() local 28 …Notification::NotificationHelper::CanPublishNotificationAsBundle(representativeBundle, canPublish); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/ |
H A D | ans_notification_annex_test.cpp | 113 std::string representativeBundle = "this is representativeBundle"; variable 116 ErrCode ret5 = ans_->PublishNotificationAsBundle(representativeBundle, request); 128 std::string representativeBundle = "this is representativeBundle"; variable 133 ErrCode ret5 = ans_->PublishNotificationAsBundle(representativeBundle, request);
|
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/notificationhelper_fuzzer/ |
H A D | notificationhelper_fuzzer.cpp | 29 std::string representativeBundle = fuzzData.GenerateRandomString(); in DoSomethingInterestingWithMyAPI() local 36 notificationHelper.PublishNotificationAsBundle(representativeBundle, notification); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | cancel.h | 58 std::string representativeBundle = ""; member 69 std::string representativeBundle = ""; member
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | cancel.cpp | 399 paras.representativeBundle = str; in ParseParameters() 403 paras.representativeBundle = std::to_string(number); in ParseParameters() 407 paras.representativeBundle = std::to_string(result); in ParseParameters() 449 .representativeBundle = paras.representativeBundle, in CancelAsBundle() 472 … asynccallbackinfo->id, asynccallbackinfo->representativeBundle, asynccallbackinfo->userId); in CancelAsBundle()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 107 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument 110 notificationId, representativeBundle, userId); in CancelAsBundle() 140 ErrCode NotificationHelper::CanPublishNotificationAsBundle(const std::string &representativeBundle,… in CanPublishNotificationAsBundle() argument 143 representativeBundle, canPublish); in CanPublishNotificationAsBundle() 147 const std::string &representativeBundle, const NotificationRequest &request) in PublishNotificationAsBundle() argument 149 …gleton<AnsNotification>::GetInstance()->PublishNotificationAsBundle(representativeBundle, request); in PublishNotificationAsBundle()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_cancel.cpp | 230 .representativeBundle = paras.representativeBundle, in NapiCancelAsBundle() 258 … asynccallbackinfo->id, asynccallbackinfo->representativeBundle, asynccallbackinfo->userId); in NapiCancelAsBundle()
|
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 199 …static ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int… 255 …static ErrCode CanPublishNotificationAsBundle(const std::string &representativeBundle, bool &canPu… 269 const std::string &representativeBundle, const NotificationRequest &request);
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_notification.h | 200 …ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us… 256 … ErrCode CanPublishNotificationAsBundle(const std::string &representativeBundle, bool &canPublish); 269 …ErrCode PublishNotificationAsBundle(const std::string &representativeBundle, const NotificationReq…
|
H A D | ans_manager_interface.h | 97 int32_t notificationId, const std::string &representativeBundle, int32_t userId) = 0; 263 … virtual ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) = 0; 277 const sptr<NotificationRequest> notification, const std::string &representativeBundle) = 0;
|
H A D | ans_manager_proxy.h | 84 …ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us… 250 ErrCode CanPublishAsBundle(const std::string &representativeBundle, bool &canPublish) override; 264 … const sptr<NotificationRequest> notification, const std::string &representativeBundle) override;
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_helper_test.cpp | 261 std::string representativeBundle = "RepresentativeBundle"; variable 264 ErrCode ret = notificationHelper.CancelAsBundle(notificationId, representativeBundle, userId); 349 std::string representativeBundle = "RepresentativeBundle"; variable 352 … ErrCode ret = notificationHelper.CanPublishNotificationAsBundle(representativeBundle, canPublish); 364 std::string representativeBundle = "RepresentativeBundle"; variable 367 ErrCode ret = notificationHelper.PublishNotificationAsBundle(representativeBundle, request);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-notification-kit/ |
H A D | js-apis-notificationManager-sys.md | 2709 let representativeBundle: string = "com.example.demo"; 2782 let representativeBundle: string = "com.example.demo"; 2858 let representativeBundle: notificationManager.BundleOption = { 2873 notificationManager.publishAsBundle(representativeBundle, request).then(() => { 2897 | representativeBundle | string | 是 | 被代理应用的包名。 | 2931 let representativeBundle: string = "com.example.demo"; 2954 | representativeBundle | string | 是 | 被代理应用的包名。 | 2985 let representativeBundle: string = "com.example.demo"; 3044 let representativeBundle: notificationManager.BundleOption = { 3047 notificationManager.cancelAsBundle(representativeBundle, 1).then(() => { [all …]
|
H A D | js-apis-inner-notification-notificationRequest-sys.md | 22 | representativeBundle<sup>12+</sup> | [BundleOption](js-apis-inner-notification-notificationCommon…
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 53 …erStub::CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us… in CancelAsBundle() argument 160 ErrCode AnsManagerStub::CanPublishAsBundle(const std::string &representativeBundle, bool &canPublis… in CanPublishAsBundle() argument 167 const sptr<NotificationRequest> notification, const std::string &representativeBundle) in PublishAsBundle() argument
|
H A D | ans_manager_proxy.cpp | 189 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument 202 if (!data.WriteString(representativeBundle)) { in CancelAsBundle() 547 ErrCode AnsManagerProxy::CanPublishAsBundle(const std::string &representativeBundle, bool &canPubli… in CanPublishAsBundle() argument 549 if (representativeBundle.empty()) { in CanPublishAsBundle() 560 if (!data.WriteString(representativeBundle)) { in CanPublishAsBundle() 587 const sptr<NotificationRequest> notification, const std::string &representativeBundle) in PublishAsBundle() argument 594 if (representativeBundle.empty()) { in PublishAsBundle() 615 if (!data.WriteString(representativeBundle)) { in PublishAsBundle()
|
H A D | ans_notification.cpp | 326 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument 334 return proxy->CancelAsBundle(notificationId, representativeBundle, userId); in CancelAsBundle() 391 ErrCode AnsNotification::CanPublishNotificationAsBundle(const std::string &representativeBundle, bo… in CanPublishNotificationAsBundle() argument 393 if (representativeBundle.empty()) { in CanPublishNotificationAsBundle() 403 return proxy->CanPublishAsBundle(representativeBundle, canPublish); in CanPublishNotificationAsBundle() 407 const std::string &representativeBundle, const NotificationRequest &request) in PublishNotificationAsBundle() argument 409 if (representativeBundle.empty()) { in PublishNotificationAsBundle() 450 return proxy->PublishAsBundle(reqPtr, representativeBundle); in PublishNotificationAsBundle()
|
H A D | ans_manager_stub.cpp | 587 std::string representativeBundle; in HandleCancelAsBundle() local 588 if (!data.ReadString(representativeBundle)) { in HandleCancelAsBundle() 599 ErrCode result = CancelAsBundle(notificationId, representativeBundle, userId); in HandleCancelAsBundle() 918 std::string representativeBundle; in HandleCanPublishAsBundle() local 919 if (!data.ReadString(representativeBundle)) { in HandleCanPublishAsBundle() 925 ErrCode result = CanPublishAsBundle(representativeBundle, canPublish); in HandleCanPublishAsBundle() 947 std::string representativeBundle; in HandlePublishAsBundle() local 948 if (!data.ReadString(representativeBundle)) { in HandlePublishAsBundle() 953 ErrCode result = PublishAsBundle(notification, representativeBundle); in HandlePublishAsBundle()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_branch_test.cpp | 206 std::string representativeBundle = "RepresentativeBundle"; variable 209 notificationId, representativeBundle, userId), ERR_ANS_NON_SYSTEM_APP); 224 std::string representativeBundle = "RepresentativeBundle"; variable 227 notificationId, representativeBundle, userId), ERR_ANS_PERMISSION_DENIED);
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 1253 std::string representativeBundle = "RepresentativeBundle"; variable 1256 …ASSERT_EQ(advancedNotificationService_->CancelAsBundle(notificationId, representativeBundle, userI… 1267 std::string representativeBundle = "RepresentativeBundle"; variable 1270 …ASSERT_EQ(advancedNotificationService_->CanPublishAsBundle(representativeBundle, canPublish), resu… 1282 std::string representativeBundle = "RepresentativeBundle"; variable 1284 …ASSERT_EQ(advancedNotificationService_->PublishAsBundle(notification, representativeBundle), resul…
|