Home
last modified time | relevance | path

Searched refs:NotificationTools (Results 1 - 6 of 6) sorted by relevance

/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
H A Dmock_notification_tools.cpp20 ErrCode NotificationTools::PublishNotification(const std::shared_ptr<ContinuousTaskRecord> &continuousTaskRecord, in PublishNotification()
26 ErrCode NotificationTools::CancelNotification(const std::string &label, int32_t id) in CancelNotification()
31 void NotificationTools::GetAllActiveNotificationsLabels(std::set<std::string> &notificationLabels) {} in GetAllActiveNotificationsLabels()
33 void NotificationTools::RefreshContinuousNotifications( in RefreshContinuousNotifications()
/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/
H A Dnotification_tools.cpp47 int32_t NotificationTools::notificationIdIndex_ = -1;
48 NotificationTools::NotificationTools() {} in NotificationTools() function in OHOS::BackgroundTaskMgr::NotificationTools
50 NotificationTools::~NotificationTools() {} in ~NotificationTools()
52 void NotificationTools::SetNotificationIdIndex(const int32_t id) in SetNotificationIdIndex()
70 WEAK_FUNC ErrCode NotificationTools::PublishNotification( in PublishNotification()
127 WEAK_FUNC ErrCode NotificationTools::CancelNotification(const std::string &label, int32_t id) in CancelNotification()
138 WEAK_FUNC void NotificationTools::GetAllActiveNotificationsLabels(std::set<std::string> &notificationLabels) in GetAllActiveNotificationsLabels()
153 WEAK_FUNC void NotificationTools
[all...]
H A Dbg_continuous_task_mgr.cpp260 NotificationTools::SetNotificationIdIndex(maxId); in CheckPersistenceData()
853 return NotificationTools::GetInstance()->PublishNotification(continuousTaskRecord, in SendContinuousTaskNotification()
910 result = NotificationTools::GetInstance()->CancelNotification( in StopBackgroundRunningInner()
947 NotificationTools::GetInstance()->CancelNotification(continuousTaskInfosMap_[key]->GetNotificationLabel(), in HandleStopContinuousTask()
964 NotificationTools::GetInstance()->CancelNotification(iter->second->GetNotificationLabel(), in RemoveContinuousTaskRecordByUid()
987 NotificationTools::GetInstance()->CancelNotification(iter->second->GetNotificationLabel(), in RemoveContinuousTaskRecordByUidAndMode()
1188 NotificationTools::GetInstance()->CancelNotification(item.second->GetNotificationLabel(), in DumpCancelTask()
1208 NotificationTools::GetInstance()->CancelNotification(iter->second->GetNotificationLabel(), in DumpCancelTask()
1304 NotificationTools::GetInstance()->CancelNotification( in OnAbilityStateChanged()
1332 NotificationTools in OnAppStopped()
[all...]
/foundation/resourceschedule/background_task_mgr/services/continuous_task/include/
H A Dnotification_tools.h25 class NotificationTools : public DelayedSingleton<NotificationTools> { class
38 DECLARE_DELAYED_SINGLETON(NotificationTools)
H A Dcontinuous_task_record.h87 friend class NotificationTools;
/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbgtask_misc_unit_test.cpp227 * @tc.desc: test NotificationTools class.
235 NotificationTools::GetInstance()->PublishNotification(taskRecord, "appName", "prompt", 1); in HWTEST_F()
237 EXPECT_EQ(NotificationTools::GetInstance()->PublishNotification(taskRecord, "appName", "prompt", 1), in HWTEST_F()
239 NotificationTools::GetInstance()->CancelNotification("label", 0); in HWTEST_F()
241 EXPECT_EQ(NotificationTools::GetInstance()->CancelNotification("label", 0), ERR_BGTASK_NOTIFICATION_ERR); in HWTEST_F()
243 NotificationTools::GetInstance()->GetAllActiveNotificationsLabels(notificationLabels); in HWTEST_F()
250 NotificationTools::GetInstance()->RefreshContinuousNotifications(newPromptInfos, 0); in HWTEST_F()
253 NotificationTools::GetInstance()->RefreshContinuousNotifications(newPromptInfos, 0); in HWTEST_F()

Completed in 6 milliseconds