Home
last modified time | relevance | path

Searched refs:TimedTask (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/resourceschedule/device_standby/services/common/src/
H A Dtimed_task.cpp29 TimedTask::TimedTask() in TimedTask() function in OHOS::DevStandbyMgr::TimedTask
32 TimedTask::TimedTask(bool repeat, uint64_t interval, bool isExact, bool isIdle) in TimedTask() function in OHOS::DevStandbyMgr::TimedTask
48 TimedTask::TimedTask(bool repeat, uint64_t interval, int type) in TimedTask() function in OHOS::DevStandbyMgr::TimedTask
55 TimedTask::~TimedTask() in ~TimedTask()
58 void TimedTask::OnTrigger() in OnTrigger()
68 void TimedTask::SetType(const int &type) in SetType()
73 void TimedTask::SetRepeat(bool repeat) in SetRepeat()
78 void TimedTask::SetInterval(const uint64_t& interval) in SetInterval()
88 void TimedTask::SetCallbackInfo(const std::function<void()>& callBack) in SetCallbackInfo()
104 auto timedTask = std::make_shared<TimedTask>(repeat, interval, type); in CreateTimer()
[all …]
/ohos5.0/foundation/resourceschedule/device_standby/services/common/include/
H A Dtimed_task.h35 class TimedTask : public MiscServices::ITimerInfo {
37 TimedTask();
38 TimedTask(bool repeat, uint64_t interval, bool isExact, bool isIdle = false);
39 TimedTask(bool repeat, uint64_t interval, int type);
40 virtual ~TimedTask();
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/mock/
H A Dmock_helper.cpp63 uint64_t TimedTask::CreateTimer(bool repeat, uint64_t interval, bool isExact, bool isIdle, in CreateTimer()
69 bool TimedTask::StartDayNightSwitchTimer(uint64_t& timeId) in StartDayNightSwitchTimer()
/ohos5.0/foundation/resourceschedule/device_standby/plugins/standby_state/src/
H A Dsleep_state.cpp46 enterStandbyTimerId_ = TimedTask::CreateTimer(false, 0, true, true, callbackTask); in Init()
56 …repeatedDetectionTimerId_ = TimedTask::CreateTimer(true, REPEATED_MOTION_DETECTION_INTERVAL, true,… in Init()
H A Dstate_manager_adapter.cpp51 scrOffHalfHourTimerId_ = TimedTask::CreateTimer(false, 0, true, false, callbackTask); in Init()
/ohos5.0/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dstandby_service_unit_test.cpp656 auto timedTask = std::make_shared<TimedTask>();
979 auto timedTask = std::make_shared<TimedTask>(false, 0, true);
980 timedTask = std::make_shared<TimedTask>(false, 0, false);
990 TimedTask::CreateTimer(false, 0, false, false, callBack);
1277 auto timedTask = std::make_shared<TimedTask>(false, 0, WAKEUP_EXACT_TIMER_TYPE);
1282 timerId = TimedTask::CreateTimer(false, 0, WAKEUP_EXACT_TIMER_TYPE, callBack);
1287 timerId = TimedTask::CreateTimer(true, 0, WAKEUP_EXACT_TIMER_TYPE, callBack);
/ohos5.0/foundation/resourceschedule/device_standby/plugins/ext/src/
H A Dbase_state.cpp42 enterStandbyTimerId_ = TimedTask::CreateTimer(false, 0, true, false, callbackTask); in Init()
/ohos5.0/foundation/resourceschedule/device_standby/services/core/src/
H A Dstandby_service_impl.cpp183 if (!TimedTask::StartDayNightSwitchTimer(standbyImpl->dayNightSwitchTimerId_)) { in DayNightSwitchCallback()
196 if (!TimedTask::StartDayNightSwitchTimer(standbyImpl->dayNightSwitchTimerId_)) { in DayNightSwitchCallback()
217 if (!TimedTask::RegisterDayNightSwitchTimer(dayNightSwitchTimerId_, false, 0, callBack)) { in RegisterTimeObserver()