/base/notification/distributed_notification_service/services/test/moduletest/ |
D | ans_module_test.cpp | 120 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/ |
D | permission_filter_test.cpp | 60 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);
|
D | notification_preferences_test.cpp | 59 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 …]
|
D | notification_preferences_database_test.cpp | 49 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 …]
|
D | advanced_notification_service_test.cpp | 120 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/ |
D | getnotificationslotsforbundle_fuzzer.cpp | 29 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/ |
D | getnotificationslot_fuzzer.cpp | 30 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/ |
D | addnotificationslots_fuzzer.cpp | 50 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/ |
D | ansmanagerstubannextwo_fuzzer.cpp | 50 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/ |
D | ansmanagerstubannexthree_fuzzer.cpp | 43 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/ |
D | napi_slot.h | 41 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/ |
D | notification_preferences_info.h | 145 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);
|
D | notification_preferences.h | 44 …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/ |
D | notification_service_test.cpp | 93 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/ |
D | notification_preferences_info.cpp | 111 …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()
|
D | notification_preferences.cpp | 45 …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/ |
D | notification_helper.h | 60 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/ |
D | notification_helper.cpp | 32 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/ |
D | ans_notification.h | 58 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);
|
D | ans_manager_proxy.h | 98 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;
|
D | ans_manager_interface.h | 110 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/ |
D | slot.cpp | 47 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/ |
D | ans_notification.cpp | 31 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/ |
D | ansmanagerstub_fuzzer.cpp | 124 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/ |
D | notification_helper_test.cpp | 76 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);
|