/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() 55 result = CheckSlotForCreateSlot(bundleOption, slot, preferencesInfo); in AddNotificationSlots() 62 …(!preferncesDB_->PutSlotsToDisturbeDB(bundleOption->GetBundleName(), bundleOption->GetUid(), slots… in AddNotificationSlots() 72 …ationPreferences::AddNotificationBundleProperty(const sptr<NotificationBundleOption> &bundleOption) in AddNotificationBundleProperty() argument 74 if (bundleOption == nullptr || bundleOption->GetBundleName().empty()) { in AddNotificationBundleProperty() 92 …const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() argument 96 if (bundleOption == nullptr || bundleOption->GetBundleName().empty()) { in RemoveNotificationSlot() 101 result = CheckSlotForRemoveSlot(bundleOption, slotType, preferencesInfo); in RemoveNotificationSlot() 102 … ERR_OK && (!preferncesDB_->RemoveSlotFromDisturbeDB(GenerateBundleKey(bundleOption), slotType))) { in RemoveNotificationSlot() [all …]
|
D | advanced_notification_service.cpp | 177 … = NotificationPreferences::GetInstance().GetNotificationSlot(record->bundleOption, slotType, slot… in AssignValidNotificationSlot() 183 … result = NotificationPreferences::GetInstance().AddNotificationSlots(record->bundleOption, slots); in AssignValidNotificationSlot() 344 sptr<NotificationBundleOption> bundleOption = nullptr; in GenerateBundleOption() local 350 bundleOption = new NotificationBundleOption(bundle, uid); in GenerateBundleOption() 351 return bundleOption; in GenerateBundleOption() 355 const sptr<NotificationBundleOption> &bundleOption) in GenerateValidBundleOption() argument 358 if (bundleOption->GetUid() <= 0) { in GenerateValidBundleOption() 366 …int32_t uid = bundleManager->GetDefaultUidByBundleName(bundleOption->GetBundleName(), activeUserId… in GenerateValidBundleOption() 368 … validBundleOption = new NotificationBundleOption(bundleOption->GetBundleName(), uid); in GenerateValidBundleOption() 372 validBundleOption = bundleOption; in GenerateValidBundleOption() [all …]
|
D | system_event_observer.cpp | 56 sptr<NotificationBundleOption> bundleOption = new NotificationBundleOption(bundleName, uid); in GetBundleOption() local 57 if (bundleOption == nullptr) { in GetBundleOption() 60 return bundleOption; in GetBundleOption() 70 sptr<NotificationBundleOption> bundleOption = GetBundleOption(want); in OnReceiveEvent() local 71 if (bundleOption != nullptr) { in OnReceiveEvent() 72 callbacks_.onBundleRemoved(bundleOption); in OnReceiveEvent() 98 sptr<NotificationBundleOption> bundleOption = GetBundleOption(want); in OnReceiveEvent() local 99 if (bundleOption != nullptr) { in OnReceiveEvent() 100 callbacks_.onBundleDataCleared(bundleOption); in OnReceiveEvent()
|
D | notification_preferences_info.cpp | 165 const sptr<NotificationBundleOption> &bundleOption, BundleInfo &info) const in GetBundleInfo() argument 167 std::string bundleKey = bundleOption->GetBundleName() + std::to_string(bundleOption->GetUid()); in GetBundleInfo() 176 …l NotificationPreferencesInfo::RemoveBundleInfo(const sptr<NotificationBundleOption> &bundleOption) in RemoveBundleInfo() argument 178 std::string bundleKey = bundleOption->GetBundleName() + std::to_string(bundleOption->GetUid()); in RemoveBundleInfo() 187 …icationPreferencesInfo::IsExsitBundleInfo(const sptr<NotificationBundleOption> &bundleOption) const in IsExsitBundleInfo() 189 std::string bundleKey = bundleOption->GetBundleName() + std::to_string(bundleOption->GetUid()); in IsExsitBundleInfo()
|
/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 | 153 …ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &num) over… 287 …ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificatio… 296 ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) override; 313 ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) override; 330 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) ov… 340 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… 376 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) ove… 385 …ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enab… 394 …ErrCode GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &ena… 447 …ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &all… [all …]
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
D | ans_innerkits_module_setting_test.cpp | 68 NotificationBundleOption bundleOption; variable 69 bundleOption.SetBundleName("bundlename"); 70 bundleOption.SetUid(CALLING_UID); 71 GTEST_LOG_(INFO) << "BundleOption is:"<<bundleOption.Dump(); 72 EXPECT_EQ(0, NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, true)); 74 EXPECT_EQ(0, NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled)); 76 EXPECT_EQ("bundlename", bundleOption.GetBundleName()); 77 EXPECT_EQ(CALLING_UID, bundleOption.GetUid()); 89 NotificationBundleOption bundleOption("bundlename", CALLING_UID); variable 90 EXPECT_EQ(0, NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, false)); [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/ |
D | ansmanagerstubannexthree_fuzzer.cpp | 33 …sptr<Notification::NotificationBundleOption> bundleOption = new Notification::NotificationBundleOp… in DoSomethingInterestingWithMyAPI() local 37 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI() 38 ansManagerStub.RemoveAllNotifications(bundleOption); in DoSomethingInterestingWithMyAPI() 40 ansManagerStub.DeleteByBundle(bundleOption); in DoSomethingInterestingWithMyAPI() 45 ansManagerStub.GetSlotsByBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI() 46 ansManagerStub.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, allow); in DoSomethingInterestingWithMyAPI() 47 ansManagerStub.SetShowBadgeEnabledForBundle(bundleOption, allow); in DoSomethingInterestingWithMyAPI() 48 ansManagerStub.GetShowBadgeEnabledForBundle(bundleOption, allow); in DoSomethingInterestingWithMyAPI() 55 ansManagerStub.IsSpecialBundleAllowedNotify(bundleOption, allow); in DoSomethingInterestingWithMyAPI() 57 ansManagerStub.RemoveGroupByBundle(bundleOption, stringData); in DoSomethingInterestingWithMyAPI() [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/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/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/services/distributed/src/ |
D | distributed_preferences.cpp | 70 const sptr<NotificationBundleOption> &bundleOption, std::string &key) in GetDistributedBundleKey() argument 72 if (bundleOption) { in GetDistributedBundleKey() 73 …key = DISTRIBUTED_LABEL + DELIMITER + BUNDLE_LABEL + DELIMITER + bundleOption->GetBundleName() + D… in GetDistributedBundleKey() 74 std::to_string(bundleOption->GetUid()); in GetDistributedBundleKey() 167 const sptr<NotificationBundleOption> &bundleOption, bool isEnable) in SetDistributedBundleEnable() argument 170 if (bundleOption == nullptr) { in SetDistributedBundleEnable() 176 GetDistributedBundleKey(bundleOption, key); in SetDistributedBundleEnable() 183 …preferencesInfo_->SetDistributedBundleEnable(bundleOption->GetBundleName(), bundleOption->GetUid()… in SetDistributedBundleEnable() 189 const sptr<NotificationBundleOption> &bundleOption, bool &isEnable) in GetDistributedBundleEnable() argument 192 if (bundleOption == nullptr) { in GetDistributedBundleEnable() [all …]
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_helper.h | 102 …static ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64… 402 static ErrCode RemoveNotification(const NotificationBundleOption &bundleOption, 412 static ErrCode RemoveAllNotifications(const NotificationBundleOption &bundleOption); 421 static ErrCode RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption); 438 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots); 448 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots); 481 static ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); 522 const NotificationBundleOption &bundleOption, std::string &deviceId, bool enabled); 531 …static ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool ena… 540 …static ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &en… [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() 204 ErrCode NotificationHelper::RemoveNotification(const NotificationBundleOption &bundleOption, in RemoveNotification() argument 207 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotification(bundleOption, in RemoveNotification() 211 ErrCode NotificationHelper::RemoveAllNotifications(const NotificationBundleOption &bundleOption) in RemoveAllNotifications() argument 213 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveAllNotifications(bundleOption); in RemoveAllNotifications() 216 …rCode NotificationHelper::RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption) in RemoveNotificationsByBundle() argument 218 …return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotificationsByBundle(bundleOption); in RemoveNotificationsByBundle() 227 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlotsForBundle() argument 229 …layedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotsForBundle(bundleOption, slots); in GetNotificationSlotsForBundle() [all …]
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
D | ans_notification.h | 101 …ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num… 400 …ErrCode RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificatio… 410 ErrCode RemoveAllNotifications(const NotificationBundleOption &bundleOption); 419 ErrCode RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption); 437 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots); 447 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots); 480 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); 521 const NotificationBundleOption &bundleOption, const std::string &deviceId, bool enabled); 530 … ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled); 539 … ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled); [all …]
|
D | ans_manager_proxy.h | 141 …ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &num) over… 275 …ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificatio… 284 ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) override; 301 ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) override; 318 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) ov… 328 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… 364 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) ove… 373 …ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enab… 382 …ErrCode GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &ena… 451 …ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &all… [all …]
|
D | ans_manager_interface.h | 153 …virtual ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &n… 296 …virtual ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notific… 305 virtual ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) = 0; 313 virtual ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) = 0; 330 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) = … 340 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo… 376 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0; 385 …virtual ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, b… 394 …virtual ErrCode GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, b… 463 …virtual ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, b… [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotnumasbundle_fuzzer/ |
D | getnotificationslotnumasbundle_fuzzer.cpp | 23 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 25 bundleOption.SetBundleName(bundleName); in DoSomethingInterestingWithMyAPI() 27 bundleOption.SetUid(uid); in DoSomethingInterestingWithMyAPI() 29 …return Notification::NotificationHelper::GetNotificationSlotNumAsBundle(bundleOption, num) == ERR_… in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/ |
D | setdonotdisturbdate_fuzzer.cpp | 38 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 39 bundleOption.SetBundleName(stringData); in DoSomethingInterestingWithMyAPI() 40 bundleOption.SetUid(userId); in DoSomethingInterestingWithMyAPI() 44 Notification::NotificationHelper::SetEnabledForBundleSlot(bundleOption, slotType, enabled); in DoSomethingInterestingWithMyAPI() 46 Notification::NotificationHelper::GetEnabledForBundleSlot(bundleOption, slotType, enabled); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
D | ans_notification.cpp | 106 …cation::GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num) in GetNotificationSlotNumAsBundle() argument 108 if (bundleOption.GetBundleName().empty()) { in GetNotificationSlotNumAsBundle() 118 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in GetNotificationSlotNumAsBundle() 513 ErrCode AnsNotification::RemoveNotification(const NotificationBundleOption &bundleOption, in RemoveNotification() argument 517 if (bundleOption.GetBundleName().empty()) { in RemoveNotification() 527 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in RemoveNotification() 531 ErrCode AnsNotification::RemoveAllNotifications(const NotificationBundleOption &bundleOption) in RemoveAllNotifications() argument 533 if (bundleOption.GetBundleName().empty()) { in RemoveAllNotifications() 543 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in RemoveAllNotifications() 547 ErrCode AnsNotification::RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption) in RemoveNotificationsByBundle() argument [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/ |
D | getallactivenotifications_fuzzer.cpp | 29 Notification::NotificationBundleOption bundleOption; in DoSomethingInterestingWithMyAPI() local 30 bundleOption.SetBundleName(stringData); in DoSomethingInterestingWithMyAPI() 31 bundleOption.SetUid(usingData); in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
D | ansmanagerstub_fuzzer.cpp | 131 …sptr<Notification::NotificationBundleOption> bundleOption = new Notification::NotificationBundleOp… in DoSomethingInterestingWithMyAPI() local 133 ansManagerStub.GetSlotNumAsBundle(bundleOption, num); in DoSomethingInterestingWithMyAPI() 155 ansManagerStub.RemoveNotification(bundleOption, notificationId, label, removeReason); in DoSomethingInterestingWithMyAPI() 156 ansManagerStub.RemoveAllNotifications(bundleOption); in DoSomethingInterestingWithMyAPI() 159 ansManagerStub.DeleteByBundle(bundleOption); in DoSomethingInterestingWithMyAPI() 161 ansManagerStub.GetSlotsByBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI() 162 ansManagerStub.UpdateSlots(bundleOption, slots); in DoSomethingInterestingWithMyAPI() 167 ansManagerStub.SetNotificationsEnabledForSpecialBundle(deviceId, bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 168 ansManagerStub.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() 169 ansManagerStub.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/notification/distributed_notification_service/services/distributed/include/ |
D | distributed_preferences.h | 57 …ErrCode SetDistributedBundleEnable(const sptr<NotificationBundleOption> &bundleOption, bool isEnab… 66 …ErrCode GetDistributedBundleEnable(const sptr<NotificationBundleOption> &bundleOption, bool &isEna… 74 ErrCode DeleteDistributedBundleInfo(const sptr<NotificationBundleOption> &bundleOption); 96 …void GetDistributedBundleKey(const sptr<NotificationBundleOption> &bundleOption, std::string &key);
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | notification_helper_test.cpp | 146 NotificationBundleOption bundleOption; variable 149 ErrCode ret = notificationHelper.GetNotificationSlotNumAsBundle(bundleOption, num); 489 NotificationBundleOption bundleOption; variable 494 …ErrCode ret = notificationHelper.RemoveNotification(bundleOption, notificationId, label, removeRea… 506 NotificationBundleOption bundleOption; variable 508 ErrCode ret = notificationHelper.RemoveAllNotifications(bundleOption); 520 NotificationBundleOption bundleOption; variable 522 ErrCode ret = notificationHelper.RemoveNotificationsByBundle(bundleOption); 547 NotificationBundleOption bundleOption; variable 550 ErrCode ret = notificationHelper.GetNotificationSlotsForBundle(bundleOption, slots); [all …]
|