Home
last modified time | relevance | path

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

12

/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-event-and-notification.md18 … number, representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>c…
19representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>publishAsB…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/
H A Djs-apidiff-event-and-notification.md18 … number, representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>c…
19representativeBundle: string, userId: number, callback: AsyncCallback\<void>): void;<br>publishAsB…
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta5/
H A Djs-apidiff-notification.md4 …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 Djs-apidiff-notification.md4 …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 Dcancelasbundle_fuzzer.cpp23 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 Dgetbundleimportance_fuzzer.cpp26 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 Dans_notification_annex_test.cpp113 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 Dnotificationhelper_fuzzer.cpp29 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 Dcancel.h58 std::string representativeBundle = ""; member
69 std::string representativeBundle = ""; member
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcancel.cpp399 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 Dnotification_helper.cpp107 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 Dnapi_cancel.cpp230 .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 Dnotification_helper.h199 …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 Dans_notification.h200 …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 Dans_manager_interface.h97 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 Dans_manager_proxy.h84 …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 Dnotification_helper_test.cpp261 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 Djs-apis-notificationManager-sys.md2709 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 Djs-apis-inner-notification-notificationRequest-sys.md22 | representativeBundle<sup>12+</sup> | [BundleOption](js-apis-inner-notification-notificationCommon…
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp53 …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 Dans_manager_proxy.cpp189 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 Dans_notification.cpp326 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 Dans_manager_stub.cpp587 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 Dadvanced_notification_service_branch_test.cpp206 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 Dadvanced_notification_service_publish_test.cpp1253 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…

12