Home
last modified time | relevance | path

Searched refs:bundleOption (Results 1 – 25 of 73) sorted by relevance

123

/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences.cpp45 …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()
95 …const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType) in RemoveNotificationSlot() argument
99 if (bundleOption == nullptr || bundleOption->GetBundleName().empty()) { in RemoveNotificationSlot()
105 result = CheckSlotForRemoveSlot(bundleOption, slotType, preferencesInfo); in RemoveNotificationSlot()
106 … ERR_OK && (!preferncesDB_->RemoveSlotFromDisturbeDB(GenerateBundleKey(bundleOption), slotType))) { in RemoveNotificationSlot()
[all …]
Dsystem_event_observer.cpp57 sptr<NotificationBundleOption> bundleOption = new NotificationBundleOption(bundleName, uid); in GetBundleOption() local
58 if (bundleOption == nullptr) { in GetBundleOption()
61 return bundleOption; in GetBundleOption()
71 sptr<NotificationBundleOption> bundleOption = GetBundleOption(want); in OnReceiveEvent() local
72 if (bundleOption != nullptr) { in OnReceiveEvent()
73 callbacks_.onBundleRemoved(bundleOption); in OnReceiveEvent()
99 sptr<NotificationBundleOption> bundleOption = GetBundleOption(want); in OnReceiveEvent() local
100 if (bundleOption != nullptr) { in OnReceiveEvent()
101 callbacks_.onBundleDataCleared(bundleOption); in OnReceiveEvent()
Dadvanced_notification_service.cpp160 … = NotificationPreferences::GetInstance().GetNotificationSlot(record->bundleOption, slotType, slot… in AssignValidNotificationSlot()
166 … result = NotificationPreferences::GetInstance().AddNotificationSlots(record->bundleOption, slots); in AssignValidNotificationSlot()
347 const sptr<NotificationBundleOption> &bundleOption, bool enabled) in SetDefaultNotificationEnabled() argument
349 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in SetDefaultNotificationEnabled()
368 SendEnableNotificationHiSysEvent(bundleOption, enabled, result); in SetDefaultNotificationEnabled()
374 sptr<NotificationBundleOption> bundleOption = nullptr; in GenerateBundleOption() local
380 bundleOption = new NotificationBundleOption(bundle, uid); in GenerateBundleOption()
381 return bundleOption; in GenerateBundleOption()
385 const sptr<NotificationBundleOption> &bundleOption) in GenerateValidBundleOption() argument
388 if (bundleOption->GetUid() <= 0) { in GenerateValidBundleOption()
[all …]
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_preferences.h44 …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 …]
Dadvanced_notification_service.h157 …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;
303 ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) override;
320 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) ov…
330 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo…
366 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) ove…
375 …ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enab…
384 …ErrCode GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &ena…
437 …ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &all…
[all …]
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_setting_test.cpp77 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/
Dansmanagerstubannexthree_fuzzer.cpp32 …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/
Dans_notification_annex_test.cpp78 NotificationBundleOption bundleOption; variable
80 bundleOption.SetBundleName(bundleName);
82 ErrCode ret1 = ans_->GetNotificationSlotNumAsBundle(bundleOption, num);
143 NotificationBundleOption bundleOption; variable
145 bundleOption.SetBundleName(bundleName);
148 ErrCode ret3 = ans_->RemoveNotification(bundleOption, notificationId, label, removeReason);
160 NotificationBundleOption bundleOption; variable
162 bundleOption.SetBundleName(bundleName);
163 ErrCode ret3 = ans_->RemoveAllNotifications(bundleOption);
175 NotificationBundleOption bundleOption; variable
[all …]
/base/notification/distributed_notification_service/test/fuzztest/enabledistributed_fuzzer/
Denabledistributed_fuzzer.cpp32 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/
Dgetnotificationslotsforbundle_fuzzer.cpp25 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/
Dsetnotificationsenabledforallbundles_fuzzer.cpp34 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/distributed/test/unittest/distributed_preferences_branch_test/
Ddistributed_preferences_branch_test.cpp113 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/removenotificationsbybundle_fuzzer/
Dremovenotificationsbybundle_fuzzer.cpp26 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/
Ddistributed_preferences.cpp70 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/
Dnotification_helper.h102 …static ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64…
372 static ErrCode RemoveNotification(const NotificationBundleOption &bundleOption,
382 static ErrCode RemoveAllNotifications(const NotificationBundleOption &bundleOption);
393 static ErrCode RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption);
410 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots);
420 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots);
453 static ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed);
494 const NotificationBundleOption &bundleOption, std::string &deviceId, bool enabled);
503 …static ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool ena…
512 …static ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &en…
[all …]
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_helper.cpp58 …Helper::GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num) in GetNotificationSlotNumAsBundle() argument
60 …elayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotNumAsBundle(bundleOption, num); in GetNotificationSlotNumAsBundle()
189 ErrCode NotificationHelper::RemoveNotification(const NotificationBundleOption &bundleOption, in RemoveNotification() argument
192 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotification(bundleOption, in RemoveNotification()
196 ErrCode NotificationHelper::RemoveAllNotifications(const NotificationBundleOption &bundleOption) in RemoveAllNotifications() argument
198 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveAllNotifications(bundleOption); in RemoveAllNotifications()
206 …rCode NotificationHelper::RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption) in RemoveNotificationsByBundle() argument
208 …return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotificationsByBundle(bundleOption); in RemoveNotificationsByBundle()
217 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlotsForBundle() argument
219 …layedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotsForBundle(bundleOption, slots); in GetNotificationSlotsForBundle()
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
Dnotification_subscriber_manager_branch_test.cpp509 sptr<NotificationBundleOption> bundleOption = nullptr; variable
514 EXPECT_EQ(advancedNotificationService.DeleteByBundle(bundleOption), ERR_ANS_NON_SYSTEM_APP);
541 sptr<NotificationBundleOption> bundleOption = nullptr; variable
547 …EXPECT_EQ(advancedNotificationService.GetSlotsByBundle(bundleOption, slots), ERR_ANS_NON_SYSTEM_AP…
559 sptr<NotificationBundleOption> bundleOption = nullptr; variable
565 EXPECT_EQ(advancedNotificationService.UpdateSlots(bundleOption, slots), ERR_ANS_NON_SYSTEM_APP);
577 sptr<NotificationBundleOption> bundleOption = nullptr; variable
583 EXPECT_EQ(advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled),
596 sptr<NotificationBundleOption> bundleOption = nullptr; variable
602 EXPECT_EQ(advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled),
[all …]
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
Dadvancednotificationservice_fuzzer.cpp51 …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()
84 …ncedNotificationService.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
85 advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
86 advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotnumasbundle_fuzzer/
Dgetnotificationslotnumasbundle_fuzzer.cpp23 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/frameworks/core/include/
Dans_notification.h101 …ErrCode GetNotificationSlotNumAsBundle(const NotificationBundleOption &bundleOption, uint64_t &num…
370 …ErrCode RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificatio…
380 ErrCode RemoveAllNotifications(const NotificationBundleOption &bundleOption);
391 ErrCode RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption);
409 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots);
419 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots);
452 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed);
493 const NotificationBundleOption &bundleOption, const std::string &deviceId, bool enabled);
502 … ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled);
511 … ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled);
[all …]
Dans_manager_interface.h140 …virtual ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &n…
267 …virtual ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notific…
276 virtual ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) = 0;
286 virtual ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) = 0;
303 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) = …
313 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo…
349 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
358 …virtual ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, b…
367 …virtual ErrCode GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, b…
420 …virtual ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, b…
[all …]
Dans_manager_proxy.h129 …ErrCode GetSlotNumAsBundle(const sptr<NotificationBundleOption> &bundleOption, uint64_t &num) over…
247 …ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificatio…
256 ErrCode RemoveAllNotifications(const sptr<NotificationBundleOption> &bundleOption) override;
275 ErrCode DeleteByBundle(const sptr<NotificationBundleOption> &bundleOption) override;
292 …const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) ov…
302 …const sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slo…
338 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) ove…
347 …ErrCode SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enab…
356 …ErrCode GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &ena…
409 …ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &all…
[all …]
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/
Dsetdonotdisturbdate_fuzzer.cpp38 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/test/fuzztest/getallactivenotifications_fuzzer/
Dgetallactivenotifications_fuzzer.cpp29 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/frameworks/core/src/
Dans_notification.cpp106 …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()
457 ErrCode AnsNotification::RemoveNotification(const NotificationBundleOption &bundleOption, in RemoveNotification() argument
461 if (bundleOption.GetBundleName().empty()) { in RemoveNotification()
471 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in RemoveNotification()
475 ErrCode AnsNotification::RemoveAllNotifications(const NotificationBundleOption &bundleOption) in RemoveAllNotifications() argument
477 if (bundleOption.GetBundleName().empty()) { in RemoveAllNotifications()
487 sptr<NotificationBundleOption> bo(new (std::nothrow) NotificationBundleOption(bundleOption)); in RemoveAllNotifications()
506 ErrCode AnsNotification::RemoveNotificationsByBundle(const NotificationBundleOption &bundleOption) in RemoveNotificationsByBundle() argument
[all …]

123