/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification.cpp | 23 namespace Notification { namespace 24 Notification::Notification() {}; in Notification() function in OHOS::Notification::Notification 26 Notification::Notification(const sptr<NotificationRequest> &request) in Notification() function in OHOS::Notification::Notification 37 Notification::Notification(const std::string &deviceId, const sptr<NotificationRequest> &request) in Notification() function in OHOS::Notification::Notification 46 Notification::Notification(const Notification function in OHOS::Notification::Notification [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 241 namespace Notification { namespace 250 OHOS::Notification::NotificationRequest request); 253 OHOS::Notification::NotificationRequest request); 256 OHOS::Notification::NotificationRequest request); 257 bool GetNotificationRequestByNumber(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 258 bool GetNotificationRequestByString(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 259 bool GetNotificationRequestByBool(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 260 bool GetNotificationRequestByCustom(CNotificationRequest cjRequest, OHOS::Notification::NotificationRequest &request); 262 std::shared_ptr<OHOS::Notification::NotificationBasicContent> basicContent); 264 OHOS::Notification [all...] |
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberproxy_fuzzer/ |
H A D | anssubscriberproxy_fuzzer.cpp | 30 Notification::AnsSubscriberProxy ansSubscriberProxy(impl);
in DoSomethingInterestingWithMyAPI() 36 ansSubscriberProxy.InnerTransact(static_cast<Notification::NotificationInterfaceCode>(code),
in DoSomethingInterestingWithMyAPI() 42 sptr<Notification::NotificationRequest> request = new Notification::NotificationRequest();
in DoSomethingInterestingWithMyAPI() 44 sptr<Notification::Notification> notification = new Notification::Notification(request);
in DoSomethingInterestingWithMyAPI() 46 sptr<Notification::NotificationSortingMap> notificationMap = new Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/ |
H A D | publishcontinuoustasknotification_fuzzer.cpp | 29 Notification::NotificationRequest request;
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationRequest::BadgeStyle badgeStyle =
in DoSomethingInterestingWithMyAPI() 34 Notification::NotificationRequest::BadgeStyle(style);
in DoSomethingInterestingWithMyAPI() 43 std::shared_ptr<Notification::NotificationNormalContent> contentType =
in DoSomethingInterestingWithMyAPI() 44 std::make_shared<Notification::NotificationNormalContent>();
in DoSomethingInterestingWithMyAPI() 48 std::shared_ptr<Notification::NotificationContent> content =
in DoSomethingInterestingWithMyAPI() 49 std::make_shared<Notification::NotificationContent>(contentType);
in DoSomethingInterestingWithMyAPI() 55 std::shared_ptr<Notification::NotificationFlags> notificationFlages =
in DoSomethingInterestingWithMyAPI() 56 std::make_shared<Notification::NotificationFlags>();
in DoSomethingInterestingWithMyAPI() 58 Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/reminderhelper_fuzzer/ |
H A D | reminderhelper_fuzzer.cpp | 31 Notification::ReminderRequest reminder;
in DoSomethingInterestingWithMyAPI() 34 Notification::ReminderHelper::PublishReminder(reminder);
in DoSomethingInterestingWithMyAPI() 36 Notification::ReminderHelper::CancelReminder(reminderId);
in DoSomethingInterestingWithMyAPI() 37 sptr<Notification::ReminderRequest> valid = new Notification::ReminderRequest();
in DoSomethingInterestingWithMyAPI() 38 std::vector<sptr<Notification::ReminderRequest>> validReminders;
in DoSomethingInterestingWithMyAPI() 40 Notification::ReminderHelper::GetValidReminders(validReminders);
in DoSomethingInterestingWithMyAPI() 41 Notification::NotificationSlot notificationSlot;
in DoSomethingInterestingWithMyAPI() 45 Notification::ReminderHelper::AddNotificationSlot(notificationSlot);
in DoSomethingInterestingWithMyAPI() 47 Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/ |
H A D | publishnotification_fuzzer.cpp | 29 Notification::NotificationRequest request; in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationRequest::BadgeStyle badgeStyle = in DoSomethingInterestingWithMyAPI() 34 Notification::NotificationRequest::BadgeStyle(style); in DoSomethingInterestingWithMyAPI() 43 std::shared_ptr<Notification::NotificationNormalContent> contentType = in DoSomethingInterestingWithMyAPI() 44 std::make_shared<Notification::NotificationNormalContent>(); in DoSomethingInterestingWithMyAPI() 48 std::shared_ptr<Notification::NotificationContent> content = in DoSomethingInterestingWithMyAPI() 49 std::make_shared<Notification::NotificationContent>(contentType); in DoSomethingInterestingWithMyAPI() 55 std::shared_ptr<Notification::NotificationFlags> notificationFlages = in DoSomethingInterestingWithMyAPI() 56 std::make_shared<Notification::NotificationFlags>(); in DoSomethingInterestingWithMyAPI() 58 Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_branch_test/ |
H A D | ans_subscriber_proxy_branch_test.cpp | 32 using namespace OHOS::Notification;
71 std::vector<sptr<OHOS::Notification::Notification>> notifications;
in HWTEST_F() 92 sptr<NotificationRequest> request = new (std::nothrow) OHOS::Notification::NotificationRequest();
in HWTEST_F() 93 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request);
in HWTEST_F() 94 std::vector<sptr<OHOS::Notification::Notification>> notification 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() 34 Notification::NotificationDoNotDisturbDate disturb;
in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationConstant::DoNotDisturbType disturbType =
in DoSomethingInterestingWithMyAPI() 36 Notification::NotificationConstant::DoNotDisturbType(type);
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() 55 OHOS::Notification in LLVMFuzzerTestOneInput() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/ |
H A D | ansmanagerstubannextwo_fuzzer.cpp | 30 Notification::AnsManagerStub ansManagerStub;
in DoSomethingInterestingWithMyAPI() 37 sptr<Notification::NotificationRequest> notification = new Notification::NotificationRequest();
in DoSomethingInterestingWithMyAPI() 46 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type);
in DoSomethingInterestingWithMyAPI() 48 sptr<Notification::NotificationSlot> slot = new Notification::NotificationSlot();
in DoSomethingInterestingWithMyAPI() 49 std::vector<sptr<Notification::NotificationSlot>> slots;
in DoSomethingInterestingWithMyAPI() 56 sptr<Notification::NotificationBundleOption> bundleOption = new Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/ |
H A D | setdonotdisturbdate_fuzzer.cpp | 28 Notification::NotificationDoNotDisturbDate disturb;
in DoSomethingInterestingWithMyAPI() 29 Notification::NotificationConstant::DoNotDisturbType disturbType =
in DoSomethingInterestingWithMyAPI() 30 Notification::NotificationConstant::DoNotDisturbType(type);
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::SetDoNotDisturbDate(userId, disturb);
in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationHelper::GetDoNotDisturbDate(userId, disturb);
in DoSomethingInterestingWithMyAPI() 38 Notification::NotificationBundleOption bundleOption;
in DoSomethingInterestingWithMyAPI() 42 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(types);
in DoSomethingInterestingWithMyAPI() 44 Notification::NotificationHelper::SetEnabledForBundleSlot(bundleOption, slotType, enabled, false);
in DoSomethingInterestingWithMyAPI() 46 Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/notificationcontent_fuzzer/ |
H A D | notificationcontent_fuzzer.cpp | 26 std::shared_ptr<Notification::NotificationNormalContent> normalContent =
in DoSomethingInterestingWithMyAPI() 27 std::make_shared<Notification::NotificationNormalContent>();
in DoSomethingInterestingWithMyAPI() 28 std::shared_ptr<Notification::NotificationLongTextContent> longTextContent =
in DoSomethingInterestingWithMyAPI() 29 std::make_shared<Notification::NotificationLongTextContent>();
in DoSomethingInterestingWithMyAPI() 30 std::shared_ptr<Notification::NotificationPictureContent> pictureContent =
in DoSomethingInterestingWithMyAPI() 31 std::make_shared<Notification::NotificationPictureContent>();
in DoSomethingInterestingWithMyAPI() 32 Notification::NotificationContent notificationContent(normalContent);
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationContent notificationLongTextContent(longTextContent);
in DoSomethingInterestingWithMyAPI() 34 Notification::NotificationContent notificationPictureContent(pictureContent);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 40 auto service = std::make_shared<Notification::AdvancedNotificationService>(); in DoSomethingInterestingWithMyAPI() 44 sptr<Notification::NotificationRequest> notification = new Notification::NotificationRequest(); in DoSomethingInterestingWithMyAPI() 47 notification->SetSlotType(Notification::NotificationConstant::SlotType::LIVE_VIEW); in DoSomethingInterestingWithMyAPI() 48 auto content = std::make_shared<Notification::NotificationLiveViewContent>(); in DoSomethingInterestingWithMyAPI() 49 notification->SetContent(std::make_shared<Notification::NotificationContent>(content)); in DoSomethingInterestingWithMyAPI() 57 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() 59 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() 63 sptr<Notification in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/ |
H A D | anssubscriberstub_fuzzer.cpp | 29 Notification::AnsSubscriberStub ansSubscriberStub;
in DoSomethingInterestingWithMyAPI() 30 Notification::AnsSubscriberLocalLiveViewStub ansSubscriberLocalLiveViewStub;
in DoSomethingInterestingWithMyAPI() 56 sptr<Notification::Notification> notification = new Notification::Notification();
in DoSomethingInterestingWithMyAPI() 57 sptr<Notification::NotificationSortingMap> notificationMap = new Notification::NotificationSortingMap();
in DoSomethingInterestingWithMyAPI() 65 sptr<Notification::NotificationDoNotDisturbDate> date = new Notification in DoSomethingInterestingWithMyAPI() [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() 38 Notification::NotificationSlot::NotificationLevel level =
in DoSomethingInterestingWithMyAPI() 39 Notification::NotificationSlot::NotificationLevel(levels);
in DoSomethingInterestingWithMyAPI() 40 return Notification::NotificationHelper::GetBundleImportance(level) == ERR_OK;
in DoSomethingInterestingWithMyAPI()
|
/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() 46 OHOS::Notification::OHOS_PERMISSION_NOTIFICATION_CONTROLLER,
in LLVMFuzzerTestOneInput() 47 OHOS::Notification::OHOS_PERMISSION_NOTIFICATION_AGENT_CONTROLLER,
in LLVMFuzzerTestOneInput() 48 OHOS::Notification::OHOS_PERMISSION_SET_UNREMOVABLE_NOTIFICATION
in LLVMFuzzerTestOneInput()
|
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/ |
H A D | getallactivenotifications_fuzzer.cpp | 29 Notification::NotificationBundleOption bundleOption;
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed);
in DoSomethingInterestingWithMyAPI() 35 sptr<Notification::Notification> notification = nullptr;
in DoSomethingInterestingWithMyAPI() 36 std::vector<sptr<Notification::Notification>> notifications;
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/setnotificationbadgenum_fuzzer/ |
H A D | setnotificationbadgenum_fuzzer.cpp | 26 sptr<Notification::AnsDialogHostClient> client = nullptr; in DoSomethingInterestingWithMyAPI() 27 Notification::AnsDialogHostClient::CreateIfNullptr(client); in DoSomethingInterestingWithMyAPI() 28 client = Notification::AnsDialogHostClient::GetInstance(); in DoSomethingInterestingWithMyAPI() 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/getnotificationslot_fuzzer/ |
H A D | getnotificationslot_fuzzer.cpp | 27 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() 28 sptr<Notification::NotificationSlot> slot = nullptr; in DoSomethingInterestingWithMyAPI() 30 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() 32 Notification::NotificationHelper::GetNotificationSlots(slots); in DoSomethingInterestingWithMyAPI() 34 return Notification::NotificationHelper::GetNotificationSlot(slotType, slot) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/ |
H A D | addnotificationslots_fuzzer.cpp | 30 Notification::NotificationSlot slot; in DoSomethingInterestingWithMyAPI() 37 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI() 38 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI() 42 Notification::NotificationConstant::VisiblenessType visiblenessType = in DoSomethingInterestingWithMyAPI() 43 Notification::NotificationConstant::VisiblenessType(visibleness); in DoSomethingInterestingWithMyAPI() 47 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() 50 std::vector<Notification::NotificationSlot> slots; in DoSomethingInterestingWithMyAPI() 52 return Notification::NotificationHelper::AddNotificationSlots(slots) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/reminderdatamanager_fuzzer/ |
H A D | reminderdatamanager_fuzzer.cpp | 32 sptr<Notification::ReminderRequest> reminder = new Notification::ReminderRequestTimer(seconds); in DoSomethingInterestingWithManager() 34 Notification::ReminderDataManager::InitInstance(nullptr); in DoSomethingInterestingWithManager() 35 auto manager = Notification::ReminderDataManager::GetInstance(); in DoSomethingInterestingWithManager() 39 sptr<Notification::NotificationBundleOption> option = new Notification::NotificationBundleOption( in DoSomethingInterestingWithManager() 49 std::vector<sptr<Notification::ReminderRequest>> reminders; in DoSomethingInterestingWithManager() 53 std::vector<sptr<Notification::ReminderRequest>> immediatelyReminders; in DoSomethingInterestingWithManager() 54 std::vector<sptr<Notification::ReminderRequest>> extensionReminders; in DoSomethingInterestingWithManager() 82 sptr<Notification in DoSomethingInterestingWithReminder() [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | mock_accesstoken_kit.cpp | 23 namespace Notification {
namespace 55 if (!Notification::g_mockVerfyPermisson) {
in VerifyAccessToken() 59 if (tokenID == Notification::NON_NATIVE_TOKEN) {
in VerifyAccessToken() 67 return Notification::g_mockGetTokenTypeFlagRet;
in GetTokenTypeFlag() 72 info.dlpType = Notification::g_mockDlpType;
in GetHapTokenInfo() 73 info.apl = Notification::g_mockApl;
in GetHapTokenInfo()
|
/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() 34 Notification::NotificationBundleOption bundleOption;
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/getnotificationslotsforbundle_fuzzer/ |
H A D | getnotificationslotsforbundle_fuzzer.cpp | 25 Notification::NotificationBundleOption bundleOption;
in DoSomethingInterestingWithMyAPI() 28 sptr<Notification::NotificationSlot> slot = nullptr;
in DoSomethingInterestingWithMyAPI() 29 std::vector<sptr<Notification::NotificationSlot>> slots;
in DoSomethingInterestingWithMyAPI() 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/enabledistributed_fuzzer/ |
H A D | enabledistributed_fuzzer.cpp | 28 Notification::NotificationHelper::EnableDistributed(enabled);
in DoSomethingInterestingWithMyAPI() 32 Notification::NotificationBundleOption bundleOption;
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/addnotificationslot_fuzzer/ |
H A D | addnotificationslot_fuzzer.cpp | 34 Notification::NotificationSlot slot; in DoSomethingInterestingWithMyAPI() 41 Notification::NotificationSlot::NotificationLevel notificatoinLevel = in DoSomethingInterestingWithMyAPI() 42 Notification::NotificationSlot::NotificationLevel(level); in DoSomethingInterestingWithMyAPI() 46 Notification::NotificationConstant::VisiblenessType visiblenessType = in DoSomethingInterestingWithMyAPI() 47 Notification::NotificationConstant::VisiblenessType(visibleness); in DoSomethingInterestingWithMyAPI() 51 Notification::NotificationConstant::SlotType slotType = Notification::NotificationConstant::SlotType(type); in DoSomethingInterestingWithMyAPI() 54 return Notification::NotificationHelper::AddNotificationSlot(slot) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|