Home
last modified time | relevance | path

Searched refs:advancedNotificationService_ (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_test.cpp95 advancedNotificationService_->CancelAll(0); in SetUp()
103 advancedNotificationService_ = nullptr; in TearDown()
185 advancedNotificationService_->AddSlots(slots);
186 advancedNotificationService_->GetSlots(slotsResult);
519 advancedNotificationService_->AddSlots(slots);
1757 ASSERT_NE(nullptr, advancedNotificationService_);
1773 ASSERT_NE(nullptr, advancedNotificationService_);
1774 advancedNotificationService_->OnScreenOn();
1775 advancedNotificationService_->OnScreenOff();
1940 ASSERT_NE(nullptr, advancedNotificationService_);
[all …]
H A Dadvanced_notification_publish_service_test.cpp72 advancedNotificationService_->CancelAll(0); in SetUp()
80 delete advancedNotificationService_; in TearDown()
81 advancedNotificationService_ = nullptr; in TearDown()
331 auto ret = advancedNotificationService_->DeleteAll();
689 auto ret = advancedNotificationService_->CancelAll(0);
692 ret = advancedNotificationService_->Delete("", 1);
708 ret = advancedNotificationService_->SetBadgeNumber(1, 0);
864 advancedNotificationService_->uniqueKeyList_.emplace_back(
917 advancedNotificationService_->uniqueKeyList_.emplace_back(
936 advancedNotificationService_->uniqueKeyList_.emplace_back(
[all …]
H A Dadvanced_notification_slot_service_test.cpp69 advancedNotificationService_->CancelAll(0); in SetUp()
77 delete advancedNotificationService_; in TearDown()
78 advancedNotificationService_ = nullptr; in TearDown()
108 advancedNotificationService_->notificationSvrQueue_ = nullptr;
121 advancedNotificationService_->notificationSvrQueue_ = nullptr;
152 advancedNotificationService_->notificationSvrQueue_ = nullptr;
171 advancedNotificationService_->notificationSvrQueue_ = nullptr;
203 advancedNotificationService_->notificationSvrQueue_ = nullptr;
204 auto ret = advancedNotificationService_->RemoveAllSlots();
217 auto ret = advancedNotificationService_->RemoveAllSlots();
[all …]
H A Dadvanced_notification_service_branch_test.cpp86 advancedNotificationService_->CancelAll(0); in SetUp()
95 advancedNotificationService_ = nullptr; in TearDown()
208 ASSERT_EQ(advancedNotificationService_->CancelAsBundle(
226 ASSERT_EQ(advancedNotificationService_->CancelAsBundle(
261 ASSERT_EQ(advancedNotificationService_->Delete(
276 ASSERT_EQ(advancedNotificationService_->DeleteByBundle(
291 ASSERT_EQ(advancedNotificationService_->DeleteByBundle(
321 ASSERT_EQ(advancedNotificationService_->GetSlotsByBundle(
355 ASSERT_EQ(advancedNotificationService_->UpdateSlots(
373 ASSERT_EQ(advancedNotificationService_->UpdateSlots(
[all …]
H A Dadvanced_notification_utils_test.cpp63 static sptr<AdvancedNotificationService> advancedNotificationService_; member in OHOS::Notification::AnsUtilsTest
78 advancedNotificationService_->CancelAll(0); in SetUp()
86 advancedNotificationService_ = nullptr; in TearDown()
216 ASSERT_EQ(advancedNotificationService_->GetActiveNotificationByFilter(
248 advancedNotificationService_->AssignToNotificationList(record);
313 ASSERT_EQ(advancedNotificationService_->notificationList_.size(), 2);
332 advancedNotificationService_->OnBundleDataCleared(bundle);
371 ASSERT_EQ(advancedNotificationService_->notificationList_.size(), 1);
373 advancedNotificationService_->OnBundleRemoved(bundle);
390 advancedNotificationService_->OnBundleDataAdd(bundle);
[all …]
H A Dadvanced_notification_live_view_service_test.cpp50 static sptr<AdvancedNotificationService> advancedNotificationService_; member in OHOS::Notification::AnsLiveViewServiceTest
82 advancedNotificationService_ = new (std::nothrow) AdvancedNotificationService(); in SetUp()
84 advancedNotificationService_->CancelAll(0); in SetUp()
92 delete advancedNotificationService_; in TearDown()
93 advancedNotificationService_ = nullptr; in TearDown()
117 auto ret = advancedNotificationService_->SetNotificationRequestToDb(requestDb);
124 advancedNotificationService_->ProcForDeleteLiveView(record);
151 auto ret = advancedNotificationService_->SetNotificationRequestToDb(requestDb);
222 advancedNotificationService_->FillLockScreenPicture(newRequest, oldRequest);
246 auto ret = advancedNotificationService_->SetLockScreenPictureToDb(request);
[all …]
H A Dnotification_preferences_test.cpp36 if (advancedNotificationService_ != nullptr) { in TearDownTestCase()
37 advancedNotificationService_->SelfClean(); in TearDownTestCase()
52 static sptr<AdvancedNotificationService> advancedNotificationService_; member in OHOS::Notification::NotificationPreferencesTest
61 sptr<AdvancedNotificationService> NotificationPreferencesTest::advancedNotificationService_ = member in OHOS::Notification::NotificationPreferencesTest
243 advancedNotificationService_->OnBundleRemoved(bundleOption_);
504 ErrCode result = advancedNotificationService_->GetSlots(slotsResult);
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp76 static sptr<AdvancedNotificationService> advancedNotificationService_; member in OHOS::Notification::AdvancedNotificationServiceTest
96 advancedNotificationService_->CancelAll(0); in SetUp()
104 advancedNotificationService_ = nullptr; in TearDown()
151 ASSERT_EQ(advancedNotificationService_->AddSlots(slots), (int)ERR_OK); in TestAddSlot()
168 ASSERT_EQ(advancedNotificationService_->AddSlots(slots), (int)ERR_OK); in TestAddLiveViewSlot()
614 ASSERT_EQ((int)advancedNotificationService_->Cancel(
628 ASSERT_EQ(advancedNotificationService_->CancelAll(0), (int)ERR_OK);
899 auto result = advancedNotificationService_->RemoveNotification(
932 ASSERT_EQ(advancedNotificationService_->Publish(label, req), 0);
1094 advancedNotificationService_->Publish(label, req);
[all …]
/ohos5.0/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp119 static sptr<AdvancedNotificationService> advancedNotificationService_; member in __anon92fbcec30110::BenchmarkNotificationService
122 sptr<AdvancedNotificationService> BenchmarkNotificationService::advancedNotificationService_ = member in __anon92fbcec30110::BenchmarkNotificationService
137 ErrCode errCode = advancedNotificationService_->AddSlots(slots); in BENCHMARK_F()
156 ErrCode errCode = advancedNotificationService_->AddSlots(slots); in BENCHMARK_F()
179 ErrCode errCode = advancedNotificationService_->Subscribe(subscriber->GetImpl(), info); in BENCHMARK_F()
210 ErrCode errCode = advancedNotificationService_->Publish(label, req); in BENCHMARK_F()
243 ErrCode errCode = advancedNotificationService_->Publish(label, req); in BENCHMARK_F()
247 advancedNotificationService_->Cancel(id, label, 0); in BENCHMARK_F()
260 ErrCode errCode = advancedNotificationService_->SetNotificationBadgeNum(2); in BENCHMARK_F()
277 ErrCode errCode = advancedNotificationService_->GetBundleImportance(importance); in BENCHMARK_F()
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_data_manager.cpp321 if (advancedNotificationService_ == nullptr) { in CancelNotification()
594 REMINDER_DATA_MANAGER->advancedNotificationService_ = advancedNotificationService; in InitInstance()
814 if (advancedNotificationService_ == nullptr) { in TerminateAlerting()
819 advancedNotificationService_->SetRequestBySlotType(notificationRequest, bundleOption); in TerminateAlerting()
849 advancedNotificationService_ = advancedNotificationService; in SetService()
872 ErrCode errCode = advancedNotificationService_->GetDoNotDisturbDate(date); in ShouldAlert()
881 errCode = advancedNotificationService_->GetSlotsByBundle(bundleOption, slots); in ShouldAlert()
1062 if (advancedNotificationService_ == nullptr) { in ShowReminder()
1165 if (advancedNotificationService_ == nullptr) { in SnoozeReminderImpl()
1648 if (advancedNotificationService_ == nullptr) { in GetSoundUri()
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/
H A Dreminder_data_manager.h745 sptr<AdvancedNotificationService> advancedNotificationService_ = nullptr; variable