Searched refs:NotificationTools (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/ |
H A D | notification_tools.cpp | 47 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> ¬ificati… in GetAllActiveNotificationsLabels() 153 WEAK_FUNC void NotificationTools::RefreshContinuousNotifications( in RefreshContinuousNotifications()
|
H A D | bg_continuous_task_mgr.cpp | 256 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 D | mock_notification_tools.cpp | 20 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> ¬ificationLabels) … in GetAllActiveNotificationsLabels() 33 void NotificationTools::RefreshContinuousNotifications( in RefreshContinuousNotifications()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/continuous_task/include/ |
H A D | notification_tools.h | 25 class NotificationTools : public DelayedSingleton<NotificationTools> { 38 DECLARE_DELAYED_SINGLETON(NotificationTools)
|
H A D | continuous_task_record.h | 87 friend class NotificationTools; variable
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/ |
H A D | bgtask_misc_unit_test.cpp | 236 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);
|