Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 39) sorted by relevance

12

/base/notification/distributed_notification_service/services/test/moduletest/
Dans_module_test.cpp120 std::vector<sptr<NotificationSlot>> slots; in TestAddSlots() local
122 slots.push_back(slot0); in TestAddSlots()
123 g_advancedNotificationService->AddSlots(slots); in TestAddSlots()
203 std::vector<sptr<NotificationSlot>> slots; variable
205 slots.push_back(slot0);
206 g_advancedNotificationService->AddSlots(slots);
250 std::vector<sptr<NotificationSlot>> slots; variable
252 slots.push_back(slot0);
253 g_advancedNotificationService->AddSlots(slots);
287 std::vector<sptr<NotificationSlot>> slots; variable
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dpermission_filter_test.cpp60 std::vector<sptr<NotificationSlot>> slots; variable
61 slots.push_back(slot);
63 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots);
86 std::vector<sptr<NotificationSlot>> slots; variable
87 slots.push_back(slot);
89 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), slots);
Dnotification_preferences_test.cpp59 std::vector<sptr<NotificationSlot>> slots; in TestAddNotificationSlot() local
60 slots.push_back(slot); in TestAddNotificationSlot()
61 NotificationPreferences::GetInstance().AddNotificationSlots(bundleOption_, slots); in TestAddNotificationSlot()
78 std::vector<sptr<NotificationSlot>> slots; variable
79 slots.push_back(slot);
80 …EXPECT_EQ((int)NotificationPreferences::GetInstance().AddNotificationSlots(bundleOption_, slots), …
91 std::vector<sptr<NotificationSlot>> slots; variable
92 slots.push_back(slot);
93 …ECT_EQ((int)NotificationPreferences::GetInstance().AddNotificationSlots(bundleEmptyOption_, slots),
104 std::vector<sptr<NotificationSlot>> slots; variable
[all …]
Dnotification_preferences_database_test.cpp49 std::vector<sptr<NotificationSlot>> slots; variable
52 slots.push_back(slot1);
53 slots.push_back(slot2);
54 EXPECT_TRUE(preferncesDB_->PutSlotsToDisturbeDB(bundleName_, bundleUid_, slots));
64 std::vector<sptr<NotificationSlot>> slots; variable
67 slots.push_back(slot1);
68 slots.push_back(slot2);
69 EXPECT_FALSE(preferncesDB_->PutSlotsToDisturbeDB(std::string(), 0, slots));
79 std::vector<sptr<NotificationSlot>> slots; variable
80 EXPECT_FALSE(preferncesDB_->PutSlotsToDisturbeDB(bundleName_, bundleUid_, slots));
[all …]
Dadvanced_notification_service_test.cpp120 std::vector<sptr<NotificationSlot>> slots; in TestAddSlot() local
122 slots.push_back(slot); in TestAddSlot()
123 EXPECT_EQ(advancedNotificationService_->AddSlots(slots), (int)ERR_OK); in TestAddSlot()
456 std::vector<sptr<NotificationSlot>> slots; variable
459 slots.push_back(slot0);
460 slots.push_back(slot1);
462 advancedNotificationService_->AddSlots(slots);
464 EXPECT_EQ((int)slots.size(), 2);
524 std::vector<sptr<NotificationSlot>> slots; variable
526 slots.push_back(slot0);
[all …]
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotsforbundle_fuzzer/
Dgetnotificationslotsforbundle_fuzzer.cpp29 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() local
30 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
32 Notification::NotificationHelper::UpdateNotificationSlots(bundleOption, slots); in DoSomethingInterestingWithMyAPI()
34 Notification::NotificationHelper::GetNotificationSlotsForBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslot_fuzzer/
Dgetnotificationslot_fuzzer.cpp30 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() local
31 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
32 Notification::NotificationHelper::GetNotificationSlots(slots); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/
Daddnotificationslots_fuzzer.cpp50 std::vector<Notification::NotificationSlot> slots; in DoSomethingInterestingWithMyAPI() local
51 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
52 return Notification::NotificationHelper::AddNotificationSlots(slots) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/
Dansmanagerstubannextwo_fuzzer.cpp50 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() local
51 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
52 ansManagerStub.AddSlots(slots); in DoSomethingInterestingWithMyAPI()
56 ansManagerStub.GetSlots(slots); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/
Dansmanagerstubannexthree_fuzzer.cpp43 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() local
44 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
45 ansManagerStub.GetSlotsByBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
Dnapi_slot.h41 std::vector<NotificationSlot> slots; member
48 std::vector<NotificationSlot> slots; member
54 std::vector<sptr<NotificationSlot>> slots; member
95 std::vector<sptr<NotificationSlot>> slots; member
108 std::vector<sptr<NotificationSlot>> slots; member
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_preferences_info.h145 bool GetAllSlots(std::vector<sptr<NotificationSlot>> &slots);
161 … bool GetAllSlotsInGroup(const std::string &groupId, std::vector<sptr<NotificationSlot>> &slots);
170 bool GetAllSlotsInGroup(const std::string &groupId, std::vector<NotificationSlot> &slots);
Dnotification_preferences.h44 …st sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slots);
109 … const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots);
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
Dnotification_service_test.cpp93 std::vector<sptr<NotificationSlot>> slots; in BENCHMARK_F() local
95 slots.push_back(slot); in BENCHMARK_F()
97 ErrCode errCode = advancedNotificationService_->AddSlots(slots); in BENCHMARK_F()
112 std::vector<sptr<NotificationSlot>> slots; in BENCHMARK_F() local
114 slots.push_back(slot); in BENCHMARK_F()
116 ErrCode errCode = advancedNotificationService_->AddSlots(slots); in BENCHMARK_F()
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences_info.cpp111 …ol NotificationPreferencesInfo::BundleInfo::GetAllSlots(std::vector<sptr<NotificationSlot>> &slots) in GetAllSlots() argument
113 slots.clear(); in GetAllSlots()
116 [&slots](std::map<NotificationConstant::SlotType, sptr<NotificationSlot>>::reference iter) { in GetAllSlots()
117 slots.emplace_back(iter.second); in GetAllSlots()
Dnotification_preferences.cpp45 …nst sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slots) in AddNotificationSlots() argument
49 if (bundleOption == nullptr || bundleOption->GetBundleName().empty() || slots.empty()) { in AddNotificationSlots()
54 for (auto slot : slots) { in AddNotificationSlots()
62 …eferncesDB_->PutSlotsToDisturbeDB(bundleOption->GetBundleName(), bundleOption->GetUid(), slots))) { in AddNotificationSlots()
164 …nst sptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slots) in UpdateNotificationSlots() argument
167 if (bundleOption == nullptr || bundleOption->GetBundleName().empty() || slots.empty()) { in UpdateNotificationSlots()
173 for (auto slotIter : slots) { in UpdateNotificationSlots()
181 …eferncesDB_->PutSlotsToDisturbeDB(bundleOption->GetBundleName(), bundleOption->GetUid(), slots))) { in UpdateNotificationSlots()
214 const sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetNotificationAllSlots() argument
223 bundleInfo.GetAllSlots(slots); in GetNotificationAllSlots()
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_helper.h60 static ErrCode AddNotificationSlots(const std::vector<NotificationSlot> &slots);
93 static ErrCode GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots);
438 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots);
448 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots);
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_helper.cpp32 ErrCode NotificationHelper::AddNotificationSlots(const std::vector<NotificationSlot> &slots) in AddNotificationSlots() argument
34 return DelayedSingleton<AnsNotification>::GetInstance()->AddNotificationSlots(slots); in AddNotificationSlots()
53 ErrCode NotificationHelper::GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlots() argument
55 return DelayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlots(slots); in GetNotificationSlots()
227 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlotsForBundle() argument
229 …layedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotsForBundle(bundleOption, slots); in GetNotificationSlotsForBundle()
233 const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots) in UpdateNotificationSlots() argument
235 …urn DelayedSingleton<AnsNotification>::GetInstance()->UpdateNotificationSlots(bundleOption, slots); in UpdateNotificationSlots()
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_notification.h58 ErrCode AddNotificationSlots(const std::vector<NotificationSlot> &slots);
92 ErrCode GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots);
437 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots);
447 … const NotificationBundleOption &bundleOption, const std::vector<sptr<NotificationSlot>> &slots);
Dans_manager_proxy.h98 ErrCode AddSlots(const std::vector<sptr<NotificationSlot>> &slots) override;
132 ErrCode GetSlots(std::vector<sptr<NotificationSlot>> &slots) override;
318 …sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) override;
328 …otificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slots) override;
Dans_manager_interface.h110 virtual ErrCode AddSlots(const std::vector<sptr<NotificationSlot>> &slots) = 0;
144 virtual ErrCode GetSlots(std::vector<sptr<NotificationSlot>> &slots) = 0;
330 …onst sptr<NotificationBundleOption> &bundleOption, std::vector<sptr<NotificationSlot>> &slots) = 0;
340 …ptr<NotificationBundleOption> &bundleOption, const std::vector<sptr<NotificationSlot>> &slots) = 0;
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dslot.cpp47 std::vector<NotificationSlot> slots; member
54 std::vector<NotificationSlot> slots; member
60 std::vector<sptr<NotificationSlot>> slots; member
101 std::vector<sptr<NotificationSlot>> slots; member
114 std::vector<sptr<NotificationSlot>> slots; member
246 paras.slots.emplace_back(slot); in ParseParametersByAddSlots()
298 std::vector<NotificationSlot> slots; in ParseParametersSetSlotByBundle() local
299 slots.emplace_back(slot); in ParseParametersSetSlotByBundle()
301 for (auto vec : slots) { in ParseParametersSetSlotByBundle()
307 params.slots.emplace_back(slotPtr); in ParseParametersSetSlotByBundle()
[all …]
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_notification.cpp31 std::vector<NotificationSlot> slots; in AddNotificationSlot() local
32 slots.push_back(slot); in AddNotificationSlot()
33 return AddNotificationSlots(slots); in AddNotificationSlot()
45 ErrCode AnsNotification::AddNotificationSlots(const std::vector<NotificationSlot> &slots) in AddNotificationSlots() argument
47 if (slots.size() == 0) { in AddNotificationSlots()
57 for (auto it = slots.begin(); it != slots.end(); ++it) { in AddNotificationSlots()
97 ErrCode AnsNotification::GetNotificationSlots(std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlots() argument
103 return ansManagerProxy_->GetSlots(slots); in GetNotificationSlots()
573 const NotificationBundleOption &bundleOption, std::vector<sptr<NotificationSlot>> &slots) in GetNotificationSlotsForBundle() argument
586 return ansManagerProxy_->GetSlotsByBundle(bo, slots); in GetNotificationSlotsForBundle()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
Dansmanagerstub_fuzzer.cpp124 std::vector<sptr<Notification::NotificationSlot>> slots; in DoSomethingInterestingWithMyAPI() local
125 ansManagerStub.AddSlots(slots); in DoSomethingInterestingWithMyAPI()
130 ansManagerStub.GetSlots(slots); in DoSomethingInterestingWithMyAPI()
161 ansManagerStub.GetSlotsByBundle(bundleOption, slots); in DoSomethingInterestingWithMyAPI()
162 ansManagerStub.UpdateSlots(bundleOption, slots); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_helper_test.cpp76 std::vector<NotificationSlot> slots; variable
78 ErrCode ret = notificationHelper.AddNotificationSlots(slots);
132 std::vector<sptr<NotificationSlot>> slots; variable
134 ErrCode ret = notificationHelper.GetNotificationSlots(slots);
548 std::vector<sptr<NotificationSlot>> slots; variable
550 ErrCode ret = notificationHelper.GetNotificationSlotsForBundle(bundleOption, slots);
563 std::vector<sptr<NotificationSlot>> slots; variable
565 ErrCode ret = notificationHelper.UpdateNotificationSlots(bundleOption, slots);

12