| /base/notification/distributed_notification_service/services/ans/src/ |
| D | notification_preferences.cpp | 45 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… in AddNotificationSlots() argument 49 if (bundleOption == nullptr || bundleOption->GetBundleName().empty() || slots.empty()) { in AddNotificationSlots() 56 result = CheckSlotForCreateSlot(bundleOption, slot, preferencesInfo); in AddNotificationSlots() 64 …(!preferncesDB_->PutSlotsToDisturbeDB(bundleOption->GetBundleName(), bundleOption->GetUid(), slots… in AddNotificationSlots() 74 …ationPreferences::AddNotificationBundleProperty(const sptr<NotificationBundleOption> &bundleOption) in AddNotificationBundleProperty() argument 76 if (bundleOption == nullptr || bundleOption->GetBundleName().empty()) { in AddNotificationBundleProperty() 94 …const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() argument 98 if (bundleOption == nullptr || bundleOption->GetBundleName().empty()) { in RemoveNotificationSlot() 104 result = CheckSlotForRemoveSlot(bundleOption, slotType, preferencesInfo); in RemoveNotificationSlot() 105 … ERR_OK && (!preferncesDB_->RemoveSlotFromDisturbeDB(GenerateBundleKey(bundleOption), slotType))) { in RemoveNotificationSlot() [all …]
|
| D | advanced_notification_slot_service.cpp | 49 sptr<NotificationBundleOption> bundleOption = GenerateBundleOption(); in AddSlots() local 50 if (bundleOption == nullptr) { in AddSlots() 69 …NotificationPreferences::GetInstance().GetNotificationSlot(bundleOption, slot->GetType(), original… in AddSlots() 80 … result = NotificationPreferences::GetInstance().AddNotificationSlots(bundleOption, addSlots); in AddSlots() 91 sptr<NotificationBundleOption> bundleOption = GenerateBundleOption(); in GetSlots() local 92 if (bundleOption == nullptr) { in GetSlots() 103 … result = NotificationPreferences::GetInstance().GetNotificationAllSlots(bundleOption, slots); in GetSlots() 114 const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetSlotsByBundle() argument 128 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in GetSlotsByBundle() 153 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… in UpdateSlots() argument [all …]
|
| D | advanced_notification_event_service.cpp | 101 const sptr<NotificationBundleOption> &bundleOption, ErrCode errCode) in SendCancelHiSysEvent() argument 103 if (bundleOption == nullptr || errCode != ERR_OK) { in SendCancelHiSysEvent() 111 eventInfo.bundleName = bundleOption->GetBundleName(); in SendCancelHiSysEvent() 112 eventInfo.uid = bundleOption->GetUid(); in SendCancelHiSysEvent() 117 const sptr<NotificationBundleOption> &bundleOption, ErrCode errCode) in SendRemoveHiSysEvent() argument 119 if (bundleOption == nullptr || errCode != ERR_OK) { in SendRemoveHiSysEvent() 126 eventInfo.bundleName = bundleOption->GetBundleName(); in SendRemoveHiSysEvent() 127 eventInfo.uid = bundleOption->GetUid(); in SendRemoveHiSysEvent() 131 …cationService::SendEnableNotificationHiSysEvent(const sptr<NotificationBundleOption> &bundleOption, in SendEnableNotificationHiSysEvent() argument 134 if (bundleOption == nullptr) { in SendEnableNotificationHiSysEvent() [all …]
|
| D | system_event_observer.cpp | 61 …sptr<NotificationBundleOption> bundleOption = new (std::nothrow) NotificationBundleOption(bundleNa… in GetBundleOption() local 62 if (bundleOption == nullptr) { in GetBundleOption() 66 return bundleOption; in GetBundleOption() 76 sptr<NotificationBundleOption> bundleOption = GetBundleOption(want); in OnReceiveEvent() local 77 if (bundleOption != nullptr) { in OnReceiveEvent() 78 callbacks_.onBundleRemoved(bundleOption); in OnReceiveEvent() 104 sptr<NotificationBundleOption> bundleOption = GetBundleOption(want); in OnReceiveEvent() local 105 if (bundleOption != nullptr) { in OnReceiveEvent() 106 callbacks_.onBundleDataCleared(bundleOption); in OnReceiveEvent() 144 sptr<NotificationBundleOption> bundleOption = GetBundleOption(data.GetWant()); in OnBundleAddEventInner() local [all …]
|
| D | notification_dialog_manager.cpp | 146 return dialogInfo->bundleOption->GetBundleName() == name; in AddDialogInfoIfNotExist() 152 dialogInfo->bundleOption = bundle; in AddDialogInfoIfNotExist() 164 return dialogInfo->bundleOption->GetBundleName() == bundleName; in GetBundleOptionByBundleName() 169 auto result = sptr<NotificationBundleOption>::MakeSptr(*((*dialogIter)->bundleOption)); in GetBundleOptionByBundleName() 180 return dialogInfo->bundleOption->GetBundleName() == name; in RemoveDialogInfoByBundleOption() 200 const sptr<NotificationBundleOption>& bundleOption, bool hasPopped) in SetHasPoppedDialog() argument 203 if (bundleOption == nullptr) { in SetHasPoppedDialog() 206 …ErrCode result = NotificationPreferences::GetInstance().SetHasPoppedDialog(bundleOption, hasPopped… in SetHasPoppedDialog() 213 auto bundleOption = GetBundleOptionByBundleName(bundleName); in OnDialogButtonClicked() local 214 if (bundleOption == nullptr) { in OnDialogButtonClicked() [all …]
|
| D | advanced_notification_reminder_service.cpp | 87 sptr<NotificationBundleOption> bundleOption = nullptr; in PublishReminder() local 88 ErrCode result = PrepareNotificationInfo(notificationRequest, bundleOption); in PublishReminder() 94 result = IsAllowedNotifySelf(bundleOption, allowedNotify); in PublishReminder() 103 return rdm->PublishReminder(reminder, bundleOption); in PublishReminder() 114 sptr<NotificationBundleOption> bundleOption = GenerateBundleOption(); in CancelReminder() local 115 if (bundleOption == nullptr) { in CancelReminder() 122 return rdm->CancelReminder(reminderId, bundleOption); in CancelReminder() 133 sptr<NotificationBundleOption> bundleOption = GenerateBundleOption(); in CancelAllReminders() local 134 if (bundleOption == nullptr) { in CancelAllReminders() 138 AccountSA::OsAccountManager::GetOsAccountLocalIdFromUid(bundleOption->GetUid(), userId); in CancelAllReminders() [all …]
|
| D | advanced_notification_publish_service.cpp | 42 const sptr<NotificationBundleOption> &bundleOption, bool enabled) in SetDefaultNotificationEnabled() argument 44 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in SetDefaultNotificationEnabled() 67 SendEnableNotificationHiSysEvent(bundleOption, enabled, result); in SetDefaultNotificationEnabled() 127 sptr<NotificationBundleOption> bundleOption; in Publish() local 128 result = PrepareNotificationInfo(request, bundleOption); in Publish() 139 result = PublishPreparedNotification(request, bundleOption); in Publish() 153 sptr<NotificationBundleOption> bundleOption = GenerateBundleOption(); in Cancel() local 154 return CancelPreparedNotification(notificationId, label, bundleOption); in Cancel() 161 sptr<NotificationBundleOption> bundleOption = GenerateBundleOption(); in CancelAll() local 162 if (bundleOption == nullptr) { in CancelAll() [all …]
|
| /base/notification/distributed_notification_service/services/ans/include/ |
| D | notification_preferences.h | 44 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… 52 ErrCode AddNotificationBundleProperty(const sptr<NotificationBundleOption> &bundleOption); 62 …const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType… 70 ErrCode RemoveNotificationAllSlots(const sptr<NotificationBundleOption> &bundleOption); 78 ErrCode RemoveNotificationForBundle(const sptr<NotificationBundleOption> &bundleOption); 88 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… 98 ErrCode GetNotificationSlot(const sptr<NotificationBundleOption> &bundleOption, 109 … const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots); 118 …ErrCode GetNotificationSlotsNumForBundle(const sptr<NotificationBundleOption> &bundleOption, uint6… 127 ErrCode IsShowBadge(const sptr<NotificationBundleOption> &bundleOption, bool &enable); [all …]
|
| D | advanced_notification_service.h | 50 sptr<NotificationBundleOption> bundleOption {nullptr}; 182 …ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &num) over… 223 …const sptr<NotificationBundleOption> &bundleOption, const int32_t notificationId, const std::strin… 304 ErrCode TriggerLocalLiveView(const sptr<NotificationBundleOption> &bundleOption, 316 …ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificatio… 325 ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) override; 329 ErrCode RemoveNotificationBySlot(const sptr<NotificationBundleOption> &bundleOption, 347 ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) override; 364 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) ov… 374 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… [all …]
|
| /base/notification/distributed_notification_service/frameworks/test/moduletest/ |
| D | ans_innerkits_module_setting_test.cpp | 77 NotificationBundleOption bundleOption; variable 78 bundleOption.SetBundleName("bundlename"); 79 bundleOption.SetUid(CALLING_UID); 80 GTEST_LOG_(INFO) << "BundleOption is:"<<bundleOption.Dump(); 81 EXPECT_EQ(0, NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, true)); 83 EXPECT_EQ(0, NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled)); 85 EXPECT_EQ("bundlename", bundleOption.GetBundleName()); 86 EXPECT_EQ(CALLING_UID, bundleOption.GetUid()); 98 NotificationBundleOption bundleOption("bundlename", CALLING_UID); variable 99 EXPECT_EQ(0, NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, false)); [all …]
|
| /base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/ |
| D | ansmanagerstubannexthree_fuzzer.cpp | 32 …sptr<Notification::NotificationBundleOption> bundleOption = new Notification::NotificationBundleOp… in DoSomethingInterestingWithMyAPI() local 36 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI() 37 ansManagerStub.RemoveAllNotifications(bundleOption); in DoSomethingInterestingWithMyAPI() 39 ansManagerStub.DeleteByBundle(bundleOption); in DoSomethingInterestingWithMyAPI() 44 ansManagerStub.GetSlotsByBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI() 45 ansManagerStub.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, allow); in DoSomethingInterestingWithMyAPI() 46 ansManagerStub.SetShowBadgeEnabledForBundle(bundleOption, allow); in DoSomethingInterestingWithMyAPI() 47 ansManagerStub.GetShowBadgeEnabledForBundle(bundleOption, allow); in DoSomethingInterestingWithMyAPI() 51 ansManagerStub.IsSpecialBundleAllowedNotify(bundleOption, allow); in DoSomethingInterestingWithMyAPI() 53 ansManagerStub.RemoveGroupByBundle(bundleOption, stringData); in DoSomethingInterestingWithMyAPI() [all …]
|
| /base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/ |
| D | ans_notification_annex_test.cpp | 81 NotificationBundleOption bundleOption; variable 83 bundleOption.SetBundleName(bundleName); 85 ErrCode ret1 = ans_->GetNotificationSlotNumAsBundle(bundleOption, num); 146 NotificationBundleOption bundleOption; variable 148 bundleOption.SetBundleName(bundleName); 151 ErrCode ret3 = ans_->RemoveNotification(bundleOption, notificationId, label, removeReason); 163 NotificationBundleOption bundleOption; variable 165 bundleOption.SetBundleName(bundleName); 166 ErrCode ret3 = ans_->RemoveAllNotifications(bundleOption); 178 NotificationBundleOption bundleOption; variable [all …]
|
| /base/notification/distributed_notification_service/frameworks/ans/src/ |
| D | notification_helper.cpp | 58 …Helper::GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num) in GetNotificationSlotNumAsBundle() argument 60 …elayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotNumAsBundle(bundleOption, num); in GetNotificationSlotNumAsBundle() 63 … NotificationHelper::GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, in GetNotificationSlotFlagsAsBundle() argument 66 …ngleton<AnsNotification>::GetInstance()->GetNotificationSlotFlagsAsBundle(bundleOption, slotFlags); in GetNotificationSlotFlagsAsBundle() 69 … NotificationHelper::SetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, in SetNotificationSlotFlagsAsBundle() argument 72 …ngleton<AnsNotification>::GetInstance()->SetNotificationSlotFlagsAsBundle(bundleOption, slotFlags); in SetNotificationSlotFlagsAsBundle() 209 ErrCode NotificationHelper::TriggerLocalLiveView(const NotificationBundleOption &bundleOption, in TriggerLocalLiveView() argument 213 bundleOption, notificationId, buttonOption); in TriggerLocalLiveView() 221 ErrCode NotificationHelper::RemoveNotification(const NotificationBundleOption &bundleOption, in RemoveNotification() argument 224 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotification(bundleOption, in RemoveNotification() [all …]
|
| /base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_branch_test/ |
| D | distributed_preferences_branch_test.cpp | 113 sptr<NotificationBundleOption> bundleOption = nullptr; variable 116 distributedPreferences_->GetDistributedBundleKey(bundleOption, key); 138 sptr<NotificationBundleOption> bundleOption = nullptr; variable 140 …EXPECT_EQ(distributedPreferences_->SetDistributedBundleEnable(bundleOption, isEnable), ERR_ANS_INV… 150 sptr<NotificationBundleOption> bundleOption = new NotificationBundleOption("<bundleName>", 783); variable 153 EXPECT_EQ(distributedPreferences_->SetDistributedBundleEnable(bundleOption, isEnable), 164 sptr<NotificationBundleOption> bundleOption = nullptr; variable 166 …EXPECT_EQ(distributedPreferences_->GetDistributedBundleEnable(bundleOption, isEnable), ERR_ANS_INV… 176 sptr<NotificationBundleOption> bundleOption = nullptr; variable 177 …EXPECT_EQ(distributedPreferences_->DeleteDistributedBundleInfo(bundleOption), ERR_ANS_INVALID_PARA… [all …]
|
| /base/notification/distributed_notification_service/test/fuzztest/enabledistributed_fuzzer/ |
| D | enabledistributed_fuzzer.cpp | 32 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 33 bundleOption.SetBundleName(stringData); in DoSomethingInterestingWithMyAPI() 34 bundleOption.SetUid(usingData); in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationHelper::EnableDistributedByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 39 Notification::NotificationHelper::IsDistributedEnableByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 41 …return Notification::NotificationHelper::RemoveNotification(bundleOption, usingData, stringData, u… in DoSomethingInterestingWithMyAPI()
|
| /base/notification/distributed_notification_service/test/fuzztest/getnotificationslotsforbundle_fuzzer/ |
| D | getnotificationslotsforbundle_fuzzer.cpp | 25 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 26 bundleOption.SetBundleName(stringData); in DoSomethingInterestingWithMyAPI() 27 bundleOption.SetUid(usingData); 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/interfaces/inner_api/ |
| D | notification_helper.h | 106 …static ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64… 115 …static ErrCode GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, uint… 124 …static ErrCode SetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, uint… 411 static ErrCode TriggerLocalLiveView(const NotificationBundleOption &bundleOption, 434 static ErrCode RemoveNotification(const NotificationBundleOption &bundleOption, 444 static ErrCode RemoveAllNotifications(const NotificationBundleOption &bundleOption); 455 static ErrCode RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption); 472 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots); 482 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots); 524 static ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); [all …]
|
| /base/notification/distributed_notification_service/services/distributed/src/ |
| D | distributed_preferences.cpp | 69 const sptr<NotificationBundleOption> &bundleOption, std::string &key) in GetDistributedBundleKey() argument 71 if (bundleOption) { in GetDistributedBundleKey() 72 …key = DISTRIBUTED_LABEL + DELIMITER + BUNDLE_LABEL + DELIMITER + bundleOption->GetBundleName() + D… in GetDistributedBundleKey() 73 std::to_string(bundleOption->GetUid()); in GetDistributedBundleKey() 166 const sptr<NotificationBundleOption> &bundleOption, bool isEnable) in SetDistributedBundleEnable() argument 169 if (bundleOption == nullptr) { in SetDistributedBundleEnable() 175 GetDistributedBundleKey(bundleOption, key); in SetDistributedBundleEnable() 182 …preferencesInfo_->SetDistributedBundleEnable(bundleOption->GetBundleName(), bundleOption->GetUid()… in SetDistributedBundleEnable() 188 const sptr<NotificationBundleOption> &bundleOption, bool &isEnable) in GetDistributedBundleEnable() argument 190 if (bundleOption == nullptr) { in GetDistributedBundleEnable() [all …]
|
| /base/notification/distributed_notification_service/test/fuzztest/setnotificationsenabledforallbundles_fuzzer/ |
| D | setnotificationsenabledforallbundles_fuzzer.cpp | 34 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 35 bundleOption.SetBundleName(stringData); in DoSomethingInterestingWithMyAPI() 36 bundleOption.SetUid(usingData); in DoSomethingInterestingWithMyAPI() 37 …Notification::NotificationHelper::SetNotificationsEnabledForSpecifiedBundle(bundleOption, stringDa… in DoSomethingInterestingWithMyAPI() 39 Notification::NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 41 … return Notification::NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
|
| /base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
| D | notification_subscriber_manager_branch_test.cpp | 503 sptr<NotificationBundleOption> bundleOption = new NotificationBundleOption(); variable 508 EXPECT_EQ(advancedNotificationService.DeleteByBundle(bundleOption), ERR_ANS_NON_SYSTEM_APP); 533 sptr<NotificationBundleOption> bundleOption = nullptr; variable 539 …EXPECT_EQ(advancedNotificationService.GetSlotsByBundle(bundleOption, slots), ERR_ANS_NON_SYSTEM_AP… 551 sptr<NotificationBundleOption> bundleOption = nullptr; variable 557 EXPECT_EQ(advancedNotificationService.UpdateSlots(bundleOption, slots), ERR_ANS_NON_SYSTEM_APP); 569 sptr<NotificationBundleOption> bundleOption = nullptr; variable 575 EXPECT_EQ(advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled), 588 sptr<NotificationBundleOption> bundleOption = nullptr; variable 594 EXPECT_EQ(advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled), [all …]
|
| /base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
| D | advancednotificationservice_fuzzer.cpp | 51 …sptr<Notification::NotificationBundleOption> bundleOption = new Notification::NotificationBundleOp… in DoSomethingInterestingWithMyAPI() local 53 advancedNotificationService.GetSlotNumAsBundle(bundleOption, num); in DoSomethingInterestingWithMyAPI() 72 …advancedNotificationService.RemoveNotification(bundleOption, notificationId, stringData, removeRea… in DoSomethingInterestingWithMyAPI() 73 advancedNotificationService.RemoveAllNotifications(bundleOption); in DoSomethingInterestingWithMyAPI() 75 advancedNotificationService.DeleteByBundle(bundleOption); in DoSomethingInterestingWithMyAPI() 77 advancedNotificationService.GetSlotsByBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI() 78 advancedNotificationService.UpdateSlots(bundleOption, slots); in DoSomethingInterestingWithMyAPI() 82 …ncedNotificationService.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 83 advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 84 advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() [all …]
|
| /base/notification/distributed_notification_service/test/fuzztest/removenotificationsbybundle_fuzzer/ |
| D | removenotificationsbybundle_fuzzer.cpp | 26 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 27 bundleOption.SetBundleName(stringData); in DoSomethingInterestingWithMyAPI() 28 bundleOption.SetUid(usingData); in DoSomethingInterestingWithMyAPI() 29 Notification::NotificationHelper::RemoveNotificationsByBundle(bundleOption); in DoSomethingInterestingWithMyAPI() 31 return Notification::NotificationHelper::RemoveAllNotifications(bundleOption); in DoSomethingInterestingWithMyAPI()
|
| /base/notification/distributed_notification_service/frameworks/core/include/ |
| D | ans_manager_interface.h | 142 …virtual ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &n… 193 …const sptr<NotificationBundleOption> &bundleOption, const int32_t notificationId, const std::strin… 274 virtual ErrCode TriggerLocalLiveView(const sptr<NotificationBundleOption> &bundleOption, 295 …virtual ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notific… 304 virtual ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) = 0; 314 virtual ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) = 0; 331 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) = … 341 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… 379 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0; 388 …virtual ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, b… [all …]
|
| D | ans_notification.h | 104 …ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num… 113 …ErrCode GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, uint32_t &s… 122 …ErrCode SetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, uint32_t sl… 407 ErrCode TriggerLocalLiveView(const NotificationBundleOption &bundleOption, 430 …ErrCode RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificatio… 440 ErrCode RemoveAllNotifications(const NotificationBundleOption &bundleOption); 451 ErrCode RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption); 469 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots); 479 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots); 522 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); [all …]
|
| /base/notification/distributed_notification_service/frameworks/core/src/ |
| D | ans_notification.cpp | 109 …cation::GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num) in GetNotificationSlotNumAsBundle() argument 111 if (bundleOption.GetBundleName().empty()) { in GetNotificationSlotNumAsBundle() 121 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in GetNotificationSlotNumAsBundle() 125 …ode AnsNotification::GetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, in GetNotificationSlotFlagsAsBundle() argument 128 if (bundleOption.GetBundleName().empty()) { in GetNotificationSlotFlagsAsBundle() 138 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in GetNotificationSlotFlagsAsBundle() 142 …ode AnsNotification::SetNotificationSlotFlagsAsBundle(const NotificationBundleOption &bundleOption, in SetNotificationSlotFlagsAsBundle() argument 145 if (bundleOption.GetBundleName().empty()) { in SetNotificationSlotFlagsAsBundle() 155 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in SetNotificationSlotFlagsAsBundle() 523 ErrCode AnsNotification::TriggerLocalLiveView(const NotificationBundleOption &bundleOption, in TriggerLocalLiveView() argument [all …]
|