Home
last modified time | relevance | path

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

/ohos5.0/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> &notificati… in GetAllActiveNotificationsLabels()
153 WEAK_FUNC void NotificationTools::RefreshContinuousNotifications( in RefreshContinuousNotifications()
H A Dbg_continuous_task_mgr.cpp256 NotificationTools::SetNotificationIdIndex(maxId); in CheckPersistenceData()
850 NotificationTools::GetInstance()->CancelNotification( in SendContinuousTaskNotification()
857 return NotificationTools::GetInstance()->PublishNotification(continuousTaskRecord, in SendContinuousTaskNotification()
916 result = NotificationTools::GetInstance()->CancelNotification( in StopBackgroundRunningInner()
971 NotificationTools::GetInstance()->CancelNotification(iter->second->GetNotificationLabel(), in RemoveContinuousTaskRecordByUid()
995 NotificationTools::GetInstance()->CancelNotification(iter->second->GetNotificationLabel(), in RemoveContinuousTaskRecordByUidAndMode()
1312 NotificationTools::GetInstance()->CancelNotification( in OnAbilityStateChanged()
1340 NotificationTools::GetInstance()->CancelNotification( in OnAppStopped()
1456 NotificationTools::GetInstance()->CancelNotification( in OnBundleInfoChanged()
1490 NotificationTools::GetInstance()->CancelNotification( in OnAccountsStateChanged()
[all …]
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
H A Dmock_notification_tools.cpp20 ErrCode NotificationTools::PublishNotification(const std::shared_ptr<ContinuousTaskRecord> &continu… 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()
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/continuous_task/include/
H A Dnotification_tools.h25 class NotificationTools : public DelayedSingleton<NotificationTools> {
38 DECLARE_DELAYED_SINGLETON(NotificationTools)
H A Dcontinuous_task_record.h87 friend class NotificationTools; variable
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbgtask_misc_unit_test.cpp236 NotificationTools::GetInstance()->PublishNotification(taskRecord, "appName", "prompt", 1);
238 …EXPECT_EQ(NotificationTools::GetInstance()->PublishNotification(taskRecord, "appName", "prompt", 1…
240 NotificationTools::GetInstance()->CancelNotification("label", 0);
242 …EXPECT_EQ(NotificationTools::GetInstance()->CancelNotification("label", 0), ERR_BGTASK_NOTIFICATIO…
244 NotificationTools::GetInstance()->GetAllActiveNotificationsLabels(notificationLabels);
251 NotificationTools::GetInstance()->RefreshContinuousNotifications(newPromptInfos, 0);
254 NotificationTools::GetInstance()->RefreshContinuousNotifications(newPromptInfos, 0);