Home
last modified time | relevance | path

Searched refs:TimerManager (Results 1 – 12 of 12) sorted by relevance

/base/msdp/device_status/services/timer_manager/src/
Dtimer_manager.cpp39 int32_t TimerManager::OnInit(IContext *context) in OnInit()
52 int32_t TimerManager::Init(IContext *context) in Init()
55 … return context->GetDelegateTasks().PostSyncTask(std::bind(&TimerManager::OnInit, this, context)); in Init()
58 int32_t TimerManager::OnAddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> cal… in OnAddTimer()
65 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callb… in AddTimer()
70 std::bind(&TimerManager::OnAddTimer, this, intervalMs, repeatCount, callback)); in AddTimer()
73 int32_t TimerManager::OnRemoveTimer(int32_t timerId) in OnRemoveTimer()
82 int32_t TimerManager::RemoveTimer(int32_t timerId) in RemoveTimer()
86 …return context_->GetDelegateTasks().PostSyncTask(std::bind(&TimerManager::OnRemoveTimer, this, tim… in RemoveTimer()
89 int32_t TimerManager::OnResetTimer(int32_t timerId) in OnResetTimer()
[all …]
/base/msdp/device_status/intention/scheduler/timer_manager/src/
Dtimer_manager.cpp38 int32_t TimerManager::Init(IContext *context) in Init()
41 … return context->GetDelegateTasks().PostSyncTask(std::bind(&TimerManager::OnInit, this, context)); in Init()
44 int32_t TimerManager::OnInit(IContext *context) in OnInit()
57 int32_t TimerManager::AddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> callb… in AddTimer()
62 std::bind(&TimerManager::OnAddTimer, this, intervalMs, repeatCount, callback)); in AddTimer()
65 int32_t TimerManager::OnAddTimer(int32_t intervalMs, int32_t repeatCount, std::function<void()> cal… in OnAddTimer()
72 int32_t TimerManager::RemoveTimer(int32_t timerId) in RemoveTimer()
76 …return context_->GetDelegateTasks().PostSyncTask(std::bind(&TimerManager::OnRemoveTimer, this, tim… in RemoveTimer()
79 int32_t TimerManager::OnRemoveTimer(int32_t timerId) in OnRemoveTimer()
88 int32_t TimerManager::ResetTimer(int32_t timerId) in ResetTimer()
[all …]
/base/update/updateservice/services/core/ability/alarm/src/
Dtimer_manager.cpp25 TimerManager::TimerManager() in TimerManager() function in OHOS::UpdateEngine::TimerManager
30 TimerManager::~TimerManager() in ~TimerManager()
41 void TimerManager::RegisterRepeatingAlarm( in RegisterRepeatingAlarm()
53 void TimerManager::UnregisterRepeatingAlarm(AlarmType alarmType) in UnregisterRepeatingAlarm()
70 void TimerManager::BuildTimer() in BuildTimer()
/base/time/time_service/services/timer/src/
Dtimer_manager.cpp72 std::shared_ptr<TimerManager> TimerManager::Create() in Create()
79 return std::shared_ptr<TimerManager>(new TimerManager(impl)); in Create()
82 TimerManager::TimerManager(std::shared_ptr<TimerHandler> impl) in TimerManager() function in OHOS::MiscServices::TimerManager
89 alarmThread_.reset(new std::thread(&TimerManager::TimerLooper, this));
92 int32_t TimerManager::CreateTimer(TimerPara &paras, in CreateTimer()
122 int32_t TimerManager::StartTimer(uint64_t timerId, uint64_t triggerTime) in StartTimer()
153 int32_t TimerManager::StopTimer(uint64_t timerId) in StopTimer()
158 int32_t TimerManager::DestroyTimer(uint64_t timerId) in DestroyTimer()
163 int32_t TimerManager::StopTimerInner(uint64_t timerNumber, bool needDestroy) in StopTimerInner()
185 void TimerManager::SetHandler(uint64_t id, in SetHandler()
[all …]
/base/msdp/device_status/intention/scheduler/timer_manager/include/
Dtimer_manager.h31 class TimerManager final : public ITimerManager {
33 TimerManager() = default;
34 DISALLOW_COPY_AND_MOVE(TimerManager);
35 ~TimerManager() = default;
76 inline int32_t TimerManager::GetTimerFd() const in GetTimerFd()
/base/msdp/device_status/services/timer_manager/include/
Dtimer_manager.h31 class TimerManager final : public ITimerManager {
33 TimerManager() = default;
34 DISALLOW_COPY_AND_MOVE(TimerManager);
35 ~TimerManager() = default;
76 inline int32_t TimerManager::GetTimerFd() const in GetTimerFd()
/base/update/updateservice/services/core/ability/alarm/include/
Dtimer_manager.h32 class TimerManager : public DelayedSingleton<TimerManager> {
33 DECLARE_DELAYED_SINGLETON(TimerManager);
/base/time/time_service/services/timer/include/
Dtimer_manager.h38 class TimerManager : public ITimerManager {
40 static std::shared_ptr<TimerManager> Create();
55 ~TimerManager() override;
59 explicit TimerManager(std::shared_ptr<TimerHandler> impl);
/base/time/time_service/services/
Dtime_system_ability.cpp72 std::shared_ptr<TimerManager> TimeSystemAbility::timerManagerHandler_ = nullptr;
239 timerManagerHandler_ = TimerManager::Create(); in InitTimerHandler()
290 timerManagerHandler_ = TimerManager::Create(); in CreateTimer()
309 timerManagerHandler_ = TimerManager::Create(); in CreateTimer()
322 timerManagerHandler_ = TimerManager::Create(); in StartTimer()
339 timerManagerHandler_ = TimerManager::Create(); in StopTimer()
356 timerManagerHandler_ = TimerManager::Create(); in DestroyTimer()
481 timerManagerHandler_ = TimerManager::Create(); in DumpTimerInfo()
495 timerManagerHandler_ = TimerManager::Create(); in DumpTimerInfoById()
510 timerManagerHandler_ = TimerManager::Create(); in DumpTimerTriggerById()
[all …]
Dtime_system_ability.h108 static std::shared_ptr<TimerManager> timerManagerHandler_;
/base/time/time_service/test/unittest/service_test/src/
Dtime_proxy_test.cpp31 std::shared_ptr<TimerManager> timerManagerHandler_ = nullptr;
53 timerManagerHandler_ = TimerManager::Create(); in SetUp()
/base/msdp/device_status/services/native/include/
Ddevicestatus_service.h152 TimerManager timerMgr_;