Home
last modified time | relevance | path

Searched refs:timer_ (Results 1 – 20 of 20) sorted by relevance

/base/update/updateservice/services/core/ability/alarm/src/
Dtimer_manager.cpp33 if (timer_ != nullptr) { in ~TimerManager()
35 timer_->Unregister(timerId); in ~TimerManager()
37 timer_->Shutdown(); in ~TimerManager()
48 uint32_t registerTimerId = timer_->Register(callback, repeatingTime * SECOND_MILLIS, false); in RegisterRepeatingAlarm()
60 if (timer_ != nullptr) { in UnregisterRepeatingAlarm()
61 timer_->Unregister(lastRegisterTimerId); in UnregisterRepeatingAlarm()
72 if (timer_ == nullptr) { in BuildTimer()
73 timer_ = std::make_shared<OHOS::Utils::Timer>("OTA Timer"); in BuildTimer()
74 uint32_t ret = timer_->Setup(); in BuildTimer()
/base/useriam/user_auth_framework/services/base/src/
Drelative_timer.cpp25 RelativeTimer::RelativeTimer() : timer_("iam_relative_timer") in RelativeTimer()
27 timer_.Setup(); in RelativeTimer()
33 timer_.Shutdown(); in ~RelativeTimer()
39 return timer_.Register(callback, ms, true); in Register()
44 return timer_.Unregister(timerId); in Unregister()
/base/powermgr/powermgr_lite/services/src/screensaver/small/
Dscreen_saver_handler.cpp31 if (timer_ != nullptr) { in ~ScreenSaverHandler()
32 PowerMgrDestroyTimer(timer_); in ~ScreenSaverHandler()
33 timer_ = nullptr; in ~ScreenSaverHandler()
102 if (timer_ == nullptr) { in Init()
103 timer_ = PowerMgrCreateTimer(intervalMsec_, intervalMsec_, PowerTimerCallback); in Init()
118 if (timer_ != nullptr) { in SetInterval()
119 PowerMgrResetTimer(timer_, intervalMsec, intervalMsec); in SetInterval()
129 if (PowerMgrStartTimer(timer_, (void *)this) == FALSE) { in SetEnableLocked()
134 PowerMgrStopTimer(timer_); in SetEnableLocked()
145 PowerMgrStopTimer(timer_); in SetDisableLocked()
[all …]
/base/time/time_service/services/time/src/
Dtime_tick_notify.cpp48 TimeTickNotify::TimeTickNotify() : timer_("TickTimer"){}; in TimeTickNotify()
62 uint32_t ret = timer_.Setup(); in Init()
70 timerId_ = timer_.Register(callback, nextTriggerTime_); in Init()
78 timer_.Unregister(timerId_); in Callback()
81 timerId_ = timer_.Register(callback, nextTriggerTime_); in Callback()
88 timer_.Unregister(timerId_); in PowerCallback()
91 timerId_ = timer_.Register(callback, nextTriggerTime_); in PowerCallback()
108 timer_.Shutdown(); in Stop()
/base/inputmethod/imf/services/dfx/src/
Dinputmethod_sysevent.cpp161 if (timer_ == nullptr) { in StopTimer()
165 timer_->Unregister(timerId_); in StopTimer()
166 timer_->Shutdown(); in StopTimer()
172 if (timer_ == nullptr) { in StartTimer()
173 timer_ = std::make_shared<Utils::Timer>("imfTimer"); in StartTimer()
174 uint32_t ret = timer_->Setup(); in StartTimer()
179 timerId_ = timer_->Register(callback, interval, true); in StartTimer()
182 timer_->Unregister(timerId_); in StartTimer()
183 timerId_ = timer_->Register(callback, interval, false); in StartTimer()
/base/powermgr/thermal_manager/application/protector/src/
Dthermal_kernel_service.cpp49 if (timer_ == nullptr) { in Init()
50 timer_ = std::make_shared<ThermalProtectorTimer>(provision_); in Init()
86 timer_->Init(); in Init()
/base/useriam/face_auth/services_ex/src/
Dscreen_brightness_task.cpp180 ScreenBrightnessTask::ScreenBrightnessTask() : timer_("screen_brightness_timer") in ScreenBrightnessTask()
182 timer_.Setup(); in ScreenBrightnessTask()
193 timer_.Unregister(currTimerId_); in ~ScreenBrightnessTask()
194 timer_.Shutdown(); in ~ScreenBrightnessTask()
301 timer_.Unregister(currTimerId_); in StartProcess()
302 currTimerId_ = timer_.Register( in StartProcess()
360 timer_.Unregister(currTimerId_); in DoIncreaseBrightness()
361 currTimerId_ = timer_.Register(timeCallback, increaseBrightnessInterval_, true); in DoIncreaseBrightness()
370 timer_.Unregister(currTimerId_); in EndProcess()
/base/powermgr/thermal_manager/application/protector/include/
Dthermal_kernel_service.h59 return timer_; in GetTimer()
66 std::shared_ptr<ThermalProtectorTimer> timer_ {nullptr};
/base/security/device_security_level/interfaces/inner_api/src/standard/
Ddevice_security_level_callback_helper.cpp99 DeviceSecurityLevelCallbackHelper::CallbackInfoHolder::CallbackInfoHolder() : timer_(TIMER_NAME) in CallbackInfoHolder()
101 timer_.Setup(); in CallbackInfoHolder()
106 timer_.Shutdown(); in ~CallbackInfoHolder()
124 timer_.Register(deleter, keep * 1000, true); // 1000 millisec in PushCallback()
Ddevice_security_level_callback_helper.h67 OHOS::Utils::Timer timer_; variable
/base/useriam/fingerprint_auth/services_ex/src/
Dsensor_illumination_task.cpp144 SensorIlluminationTask::SensorIlluminationTask() : timer_("sensor_illumination_timer") in SensorIlluminationTask()
147 timer_.Setup(); in SensorIlluminationTask()
153 timer_.Unregister(currTimerId_); in ~SensorIlluminationTask()
154 timer_.Shutdown(); in ~SensorIlluminationTask()
289 timer_.Unregister(currTimerId_); in TurnOnSensorIllumination()
290 currTimerId_ = timer_.Register( in TurnOnSensorIllumination()
324 timer_.Unregister(currTimerId_); in TurnOffSensorIllumination()
/base/time/time_service/services/time/include/
Dtime_tick_notify.h36 Utils::Timer timer_; variable
/base/useriam/user_auth_framework/services/base/inc/
Drelative_timer.h34 Utils::Timer timer_;
/base/powermgr/powermgr_lite/services/include/small/
Dscreen_saver_handler.h54 PowerTimer *timer_{nullptr};
/base/update/updateservice/services/core/ability/alarm/include/
Dtimer_manager.h45 std::shared_ptr<OHOS::Utils::Timer> timer_ = nullptr; variable
/base/useriam/face_auth/services_ex/inc/
Dscreen_brightness_task.h70 Utils::Timer timer_; variable
/base/request/request/frameworks/js/napi/src/upload/
Dcurl_adp.cpp37 curlMulti_(nullptr), isReadAbort_(false), timer_("uploadTimer") in CUrlAdp()
457 uint32_t ret = timer_.Setup(); in StartTimer()
466 timerId_ = timer_.Register(TimeOutCallback, READFILE_TIMEOUT_MS, true); in StartTimer()
471 timer_.Unregister(timerId_); in StopTimer()
472 timer_.Shutdown(); in StopTimer()
/base/inputmethod/imf/services/dfx/include/
Dinputmethod_sysevent.h71 std::shared_ptr<Utils::Timer> timer_ = nullptr; variable
/base/useriam/fingerprint_auth/services_ex/inc/
Dsensor_illumination_task.h73 Utils::Timer timer_; variable
/base/request/request/frameworks/js/napi/include/upload/
Dcurl_adp.h85 Utils::Timer timer_; variable