/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 22 ErrCode NotificationHelper::AddNotificationSlot(const NotificationSlot &slot) in AddNotificationSlot() 27 ErrCode NotificationHelper::AddSlotByType(const NotificationConstant::SlotType &slotType) in AddSlotByType() 32 ErrCode NotificationHelper::AddNotificationSlots(const std::vector<NotificationSlot> &slots) in AddNotificationSlots() 37 ErrCode NotificationHelper::RemoveNotificationSlot(const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() 42 ErrCode NotificationHelper::RemoveAllSlots() in RemoveAllSlots() 47 ErrCode NotificationHelper::GetNotificationSlot( in GetNotificationSlot() 53 ErrCode NotificationHelper::GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlots() 58 ErrCode NotificationHelper::GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num) in GetNotificationSlotNumAsBundle() 63 ErrCode NotificationHelper::GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, in GetNotificationSlotFlagsAsBundle() 69 ErrCode NotificationHelper [all...] |
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_helper_test.cpp | 77 NotificationHelper notificationHelper; in HWTEST_F() 91 NotificationHelper notificationHelper; in HWTEST_F() 105 NotificationHelper notificationHelper; in HWTEST_F() 119 NotificationHelper notificationHelper; in HWTEST_F() 132 NotificationHelper notificationHelper; in HWTEST_F() 147 NotificationHelper notificationHelper; in HWTEST_F() 161 NotificationHelper notificationHelper; in HWTEST_F() 176 NotificationHelper notificationHelper; in HWTEST_F() 190 NotificationHelper notificationHelper; in HWTEST_F() 205 NotificationHelper notificationHelpe in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/ |
H A D | cancelgroup_fuzzer.cpp | 28 Notification::NotificationHelper::GetShowBadgeEnabled(enabled);
in DoSomethingInterestingWithMyAPI() 31 Notification::NotificationHelper::CancelGroup(stringData);
in DoSomethingInterestingWithMyAPI() 38 Notification::NotificationHelper::SetDoNotDisturbDate(disturb);
in DoSomethingInterestingWithMyAPI() 40 Notification::NotificationHelper::GetDoNotDisturbDate(disturb);
in DoSomethingInterestingWithMyAPI() 42 Notification::NotificationHelper::DoesSupportDoNotDisturbMode(enabled);
in DoSomethingInterestingWithMyAPI() 44 return Notification::NotificationHelper::IsDistributedEnabled(enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 73 NotificationHelper::RemoveAllSlots(); in SetUp() 99 EXPECT_EQ(0, NotificationHelper::AddNotificationSlot(slot)); in HWTEST_F() 103 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SOCIAL_COMMUNICATION, spSlot)); in HWTEST_F() 122 EXPECT_EQ(0, NotificationHelper::RemoveNotificationSlot(NotificationConstant::SOCIAL_COMMUNICATION)); in HWTEST_F() 123 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SOCIAL_COMMUNICATION, spSlot)); in HWTEST_F() 145 EXPECT_EQ(0, NotificationHelper::AddNotificationSlot(slot)); in HWTEST_F() 148 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SERVICE_REMINDER, spSlot)); in HWTEST_F() 167 EXPECT_EQ(0, NotificationHelper::RemoveNotificationSlot(NotificationConstant::SERVICE_REMINDER)); in HWTEST_F() 168 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SERVICE_REMINDER, spSlot)); in HWTEST_F() 191 EXPECT_EQ(0, NotificationHelper in HWTEST_F() [all...] |
H A D | ans_fw_module_test.cpp | 627 NotificationHelper::CancelAllNotifications(); in TearDown() 628 NotificationHelper::RemoveAllSlots(); in TearDown() 629 NotificationHelper::RemoveNotifications(); in TearDown() 644 EXPECT_EQ(NotificationHelper::SubscribeNotification(subscriber, info), ERR_OK); in HWTEST_F() 653 EXPECT_EQ(NotificationHelper::PublishNotification(req), ERR_OK); in HWTEST_F() 655 EXPECT_EQ(NotificationHelper::PublishNotification(req), (int)ERR_ANS_OVER_MAX_ACTIVE_PERSECOND); in HWTEST_F() 659 EXPECT_EQ(NotificationHelper::RemoveNotifications(), ERR_OK); in HWTEST_F() 661 EXPECT_EQ(NotificationHelper::UnSubscribeNotification(subscriber, info), ERR_OK); in HWTEST_F() 706 EXPECT_EQ(NotificationHelper::SubscribeNotification(subscriber, info), ERR_OK); in HWTEST_F() 712 EXPECT_EQ(NotificationHelper in HWTEST_F() [all...] |
H A D | ans_innerkits_module_setting_test.cpp | 81 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, true)); in HWTEST_F() 83 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled)); in HWTEST_F() 101 NotificationHelper::SetNotificationsEnabledForSpecifiedBundle(bundleOption, deviceId, true)); in HWTEST_F() 103 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::IsAllowedNotify(bundleOption, enabled)); in HWTEST_F() 118 EXPECT_EQ(0, NotificationHelper::IsSupportTemplate(templateName, support)); in HWTEST_F() 132 EXPECT_EQ(0, NotificationHelper::IsSupportTemplate(templateName, support)); in HWTEST_F() 145 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::SetSyncNotificationEnabledWithoutApp(USERID, true)); in HWTEST_F() 147 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::GetSyncNotificationEnabledWithoutApp(USERID, enabled)); in HWTEST_F()
|
H A D | ans_innerkits_module_publish_test.cpp | 638 EXPECT_EQ(0, NotificationHelper::AddNotificationSlot(slot)); in HWTEST_F() 645 EXPECT_EQ(0, NotificationHelper::SubscribeNotification(subscriber, info)); in HWTEST_F() 700 EXPECT_EQ(0, NotificationHelper::PublishNotification(req)); in HWTEST_F() 703 EXPECT_EQ(0, NotificationHelper::UnSubscribeNotification(subscriber, info)); in HWTEST_F() 718 EXPECT_EQ(0, NotificationHelper::AddNotificationSlot(slot)); in HWTEST_F() 724 EXPECT_EQ(0, NotificationHelper::SubscribeNotification(subscriber, info)); in HWTEST_F() 762 EXPECT_EQ(0, NotificationHelper::PublishNotification(req)); in HWTEST_F() 765 EXPECT_EQ(0, NotificationHelper::UnSubscribeNotification(subscriber, info)); in HWTEST_F() 780 EXPECT_EQ(0, NotificationHelper::AddNotificationSlot(slot)); in HWTEST_F() 786 EXPECT_EQ(0, NotificationHelper in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/ |
H A D | getbundleimportance_fuzzer.cpp | 28 Notification::NotificationHelper::CanPublishNotificationAsBundle(representativeBundle, canPublish);
in DoSomethingInterestingWithMyAPI() 30 Notification::NotificationHelper::SetNotificationBadgeNum();
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::IsAllowedNotify(allowed);
in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationHelper::IsAllowedNotifySelf(allowed);
in DoSomethingInterestingWithMyAPI() 40 return Notification::NotificationHelper::GetBundleImportance(level) == ERR_OK;
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setnotificationsenabledforallbundles_fuzzer/ |
H A D | setnotificationsenabledforallbundles_fuzzer.cpp | 29 Notification::NotificationHelper::SetNotificationsEnabledForAllBundles(stringData, enabled);
in DoSomethingInterestingWithMyAPI() 31 Notification::NotificationHelper::SetNotificationsEnabledForDefaultBundle(stringData, enabled);
in DoSomethingInterestingWithMyAPI() 37 Notification::NotificationHelper::SetNotificationsEnabledForSpecifiedBundle(bundleOption, stringData, enabled);
in DoSomethingInterestingWithMyAPI() 39 Notification::NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, enabled);
in DoSomethingInterestingWithMyAPI() 41 return Notification::NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/enabledistributed_fuzzer/ |
H A D | enabledistributed_fuzzer.cpp | 28 Notification::NotificationHelper::EnableDistributed(enabled);
in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationHelper::EnableDistributedByBundle(bundleOption, enabled);
in DoSomethingInterestingWithMyAPI() 37 Notification::NotificationHelper::EnableDistributedSelf(enabled);
in DoSomethingInterestingWithMyAPI() 39 Notification::NotificationHelper::IsDistributedEnableByBundle(bundleOption, enabled);
in DoSomethingInterestingWithMyAPI() 41 return Notification::NotificationHelper::RemoveNotification(bundleOption, usingData, stringData, usingData);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/ |
H A D | setdonotdisturbdate_fuzzer.cpp | 33 Notification::NotificationHelper::SetDoNotDisturbDate(userId, disturb);
in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationHelper::GetDoNotDisturbDate(userId, disturb);
in DoSomethingInterestingWithMyAPI() 44 Notification::NotificationHelper::SetEnabledForBundleSlot(bundleOption, slotType, enabled, false);
in DoSomethingInterestingWithMyAPI() 46 Notification::NotificationHelper::GetEnabledForBundleSlot(bundleOption, slotType, enabled);
in DoSomethingInterestingWithMyAPI() 48 Notification::NotificationHelper::SetSyncNotificationEnabledWithoutApp(userId, enabled);
in DoSomethingInterestingWithMyAPI() 50 Notification::NotificationHelper::GetSyncNotificationEnabledWithoutApp(userId, enabled);
in DoSomethingInterestingWithMyAPI() 52 return Notification::NotificationHelper::RemoveNotifications(userId);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_manager_impl.cpp | 67 int code = NotificationHelper::PublishNotification(request); in Publish() 73 int code = NotificationHelper::CancelNotification(label, id); in Cancel() 79 int code = NotificationHelper::CancelAllNotifications(); in CancelAll() 89 int code = NotificationHelper::AddSlotByType(slot); in AddSlot() 116 errCode = ErrorToExternal(NotificationHelper::GetNotificationSlot(slotType, slot)); in GetSlot() 127 errCode = ErrorToExternal(NotificationHelper::GetNotificationSlots(slots)); in GetSlots() 157 int code = NotificationHelper::RemoveNotificationSlot(slot); in RemoveSlot() 163 int code = NotificationHelper::RemoveAllSlots(); in RemoveAllSlots() 171 int code = NotificationHelper::GetActiveNotificationNums(num); in GetActiveNotificationCount() 181 int code = NotificationHelper in GetActiveNotifications() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/getactivenotificationnums_fuzzer/ |
H A D | getactivenotificationnums_fuzzer.cpp | 27 Notification::NotificationHelper::GetActiveNotificationNums(num);
in DoSomethingInterestingWithMyAPI() 30 Notification::NotificationHelper::SetNotificationAgent(stringData);
in DoSomethingInterestingWithMyAPI() 32 Notification::NotificationHelper::GetNotificationAgent(stringData);
in DoSomethingInterestingWithMyAPI() 35 return Notification::NotificationHelper::CanPublishNotificationAsBundle(stringData, enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setnotificationbadgenum_fuzzer/ |
H A D | setnotificationbadgenum_fuzzer.cpp | 29 Notification::NotificationHelper::RequestEnableNotification(deviceId, client, callerToken); in DoSomethingInterestingWithMyAPI() 32 Notification::NotificationHelper::HasNotificationPolicyAccessPermission(hasPermission); in DoSomethingInterestingWithMyAPI() 34 return Notification::NotificationHelper::SetNotificationBadgeNum(GetU32Data(data)) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/cancelnotification_fuzzer/ |
H A D | cancelnotification_fuzzer.cpp | 26 Notification::NotificationHelper::CancelAllNotifications(); in DoSomethingInterestingWithMyAPI() 28 Notification::NotificationHelper::CancelNotification(notificationId); in DoSomethingInterestingWithMyAPI() 29 return Notification::NotificationHelper::CancelNotification(label, notificationId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotsforbundle_fuzzer/ |
H A D | getnotificationslotsforbundle_fuzzer.cpp | 32 Notification::NotificationHelper::UpdateNotificationSlots(bundleOption, slots);
in DoSomethingInterestingWithMyAPI() 34 Notification::NotificationHelper::GetNotificationSlotsForBundle(bundleOption, slots);
in DoSomethingInterestingWithMyAPI() 36 return Notification::NotificationHelper::RemoveGroupByBundle(bundleOption, stringData);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/ |
H A D | getallactivenotifications_fuzzer.cpp | 33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed);
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/publishcontinuoustasknotification_fuzzer/ |
H A D | publishcontinuoustasknotification_fuzzer.cpp | 78 Notification::NotificationHelper::PublishContinuousTaskNotification(request);
in DoSomethingInterestingWithMyAPI() 83 Notification::NotificationHelper::GetDeviceRemindType(remind);
in DoSomethingInterestingWithMyAPI() 85 Notification::NotificationHelper::CancelContinuousTaskNotification(stringData, style);
in DoSomethingInterestingWithMyAPI() 88 Notification::NotificationHelper::IsSupportTemplate(stringData, support);
in DoSomethingInterestingWithMyAPI() 90 return Notification::NotificationHelper::IsAllowedNotify(style, support);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/removenotificationsbybundle_fuzzer/ |
H A D | removenotificationsbybundle_fuzzer.cpp | 29 Notification::NotificationHelper::RemoveNotificationsByBundle(bundleOption);
in DoSomethingInterestingWithMyAPI() 31 return Notification::NotificationHelper::RemoveAllNotifications(bundleOption);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/removenotificationslot_fuzzer/ |
H A D | removenotificationslot_fuzzer.cpp | 29 Notification::NotificationHelper::RemoveNotificationSlot(slotType); in DoSomethingInterestingWithMyAPI() 31 return Notification::NotificationHelper::RemoveAllSlots() == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslot_fuzzer/ |
H A D | getnotificationslot_fuzzer.cpp | 32 Notification::NotificationHelper::GetNotificationSlots(slots); in DoSomethingInterestingWithMyAPI() 34 return Notification::NotificationHelper::GetNotificationSlot(slotType, slot) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/ |
H A D | notification_publish_test.cpp | 127 NotificationHelper::PublishNotification(req_);
in BENCHMARK_F() 142 NotificationHelper::CancelNotification(id);
in BENCHMARK_F() 157 NotificationHelper::PublishNotification(reqWantAgent_);
in BENCHMARK_F() 175 NotificationHelper::PublishNotification(reqButton_);
in BENCHMARK_F() 193 NotificationHelper::RemoveNotifications();
in BENCHMARK_F()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/ |
H A D | napi_remove.cpp | 33 removeInfo->info.errorCode = NotificationHelper::RemoveNotifications(removeInfo->params.hashcodes, in NapiRemoveExecuteCallback() 36 removeInfo->info.errorCode = NotificationHelper::RemoveNotification(removeInfo->params.hashcode.value(), in NapiRemoveExecuteCallback() 40 removeInfo->info.errorCode = NotificationHelper::RemoveNotification(infos.option, in NapiRemoveExecuteCallback() 125 asynccallbackinfo->info.errorCode = NotificationHelper::RemoveAllNotifications(infos.option); in NapiRemoveAll() 127 asynccallbackinfo->info.errorCode = NotificationHelper::RemoveNotifications( in NapiRemoveAll() 130 asynccallbackinfo->info.errorCode = NotificationHelper::RemoveNotifications(); in NapiRemoveAll()
|
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/ |
H A D | publishnotification_fuzzer.cpp | 78 Notification::NotificationHelper::PublishNotification(request); in DoSomethingInterestingWithMyAPI() 83 Notification::NotificationHelper::GetActiveNotifications(requested); in DoSomethingInterestingWithMyAPI() 85 return Notification::NotificationHelper::PublishNotification(stringData, request) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/interfaces/ndk/src/ |
H A D | notification.cpp | 28 int32_t result = OHOS::Notification::NotificationHelper::IsAllowedNotifySelf(isEnable); in OH_Notification_IsNotificationEnabled()
|