Home
last modified time | relevance | path

Searched refs:timer_ (Results 1 - 25 of 28) sorted by relevance

12

/base/useriam/user_auth_framework/services/base/src/
H A 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/update/updateservice/services/core/ability/alarm/src/
H A Dtimer_manager.cpp27 timer_ = std::make_shared<OHOS::Utils::Timer>("Update Service Timer"); in TimerManager()
28 uint32_t ret = timer_->Setup(); in TimerManager()
35 if (timer_ != nullptr) { in ~TimerManager()
37 timer_->Unregister(timerId); in ~TimerManager()
39 timer_->Shutdown(); in ~TimerManager()
49 if (timer_ == nullptr) { in RegisterLooperEvent()
53 uint32_t registerTimerId = timer_->Register( in RegisterLooperEvent()
78 if (timer_ != nullptr) { in UnregisterLooperEvent()
79 timer_->Unregister(result->second); in UnregisterLooperEvent()
/base/powermgr/powermgr_lite/services/src/screensaver/small/
H A Dscreen_saver_handler.cpp33 if (timer_ != nullptr) { in ~ScreenSaverHandler()
34 PowerMgrDestroyTimer(timer_); in ~ScreenSaverHandler()
35 timer_ = nullptr; in ~ScreenSaverHandler()
104 if (timer_ == nullptr) { in Init()
105 timer_ = PowerMgrCreateTimer(intervalMsec_, intervalMsec_, PowerTimerCallback); in Init()
120 if (timer_ != nullptr) { in SetInterval()
121 PowerMgrResetTimer(timer_, intervalMsec, intervalMsec); in SetInterval()
131 if (PowerMgrStartTimer(timer_, (void *)this) == FALSE) { in SetEnableLocked()
137 PowerMgrStopTimer(timer_); in SetEnableLocked()
150 PowerMgrStopTimer(timer_); in SetDisableLocked()
[all...]
/base/time/time_service/services/time/src/
H A Dtime_tick_notify.cpp45 TimeTickNotify::TimeTickNotify() : timer_("TickTimer"){}; in TimeTickNotify()
51 uint32_t ret = timer_.Setup(); in Init()
60 timerId_ = timer_.Register(callback, nextTriggerTime); in Init()
67 timer_.Unregister(timerId_); in Callback()
71 timerId_ = timer_.Register(callback, nextTriggerTime, true); in Callback()
82 timer_.Unregister(timerId_); in PowerCallback()
86 timerId_ = timer_.Register(callback, nextTriggerTime, true); in PowerCallback()
103 timer_.Shutdown(); in Stop()
/base/inputmethod/imf/common/src/
H A Dinputmethod_sysevent.cpp174 if (timer_ == nullptr) { in StopTimer()
175 IMSA_HILOGE("timer_ is nullptr."); in StopTimer()
178 timer_->Unregister(timerId_); in StopTimer()
179 timer_->Shutdown(); in StopTimer()
185 if (timer_ == nullptr) { in StartTimer()
186 timer_ = std::make_shared<Utils::Timer>("OS_imfTimer"); in StartTimer()
187 uint32_t ret = timer_->Setup(); in StartTimer()
192 timerId_ = timer_->Register(callback, interval, true); in StartTimer()
194 IMSA_HILOGD("timer_ is not nullptr, Update timer."); in StartTimer()
195 timer_ in StartTimer()
[all...]
/base/powermgr/thermal_manager/application/protector/src/
H A Dthermal_kernel_service.cpp51 if (timer_ == nullptr) { in Init()
52 timer_ = std::make_shared<ThermalProtectorTimer>(provision_); in Init()
89 timer_->Init(); in Init()
/base/security/security_guard/services/security_collector/include/
H A Dsecurity_collector_subscriber_manager.h71 timer_.Setup(); in Start()
72 timerId_ = timer_.Register([this, remote] { this->StopCollector(remote); }, duration); in Start()
77 timer_.Unregister(timerId_); in Shutdown()
79 timer_.Shutdown(); in Shutdown()
83 Utils::Timer timer_{"cleanup_collector"};
/base/useriam/face_auth/services_ex/src/
H A Dscreen_brightness_task.cpp212 ScreenBrightnessTask::ScreenBrightnessTask() : timer_("screen_brightness_timer") in ScreenBrightnessTask()
214 timer_.Setup(); in ScreenBrightnessTask()
225 timer_.Unregister(currTimerId_); in ~ScreenBrightnessTask()
226 timer_.Shutdown(); in ~ScreenBrightnessTask()
333 timer_.Unregister(currTimerId_); in StartProcess()
334 currTimerId_ = timer_.Register( in StartProcess()
392 timer_.Unregister(currTimerId_);
393 currTimerId_ = timer_.Register(timeCallback, increaseBrightnessInterval_, true);
402 timer_.Unregister(currTimerId_); in EndProcess()
/base/powermgr/thermal_manager/application/protector/include/
H A 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/
H A 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()
H A Ddevice_security_level_callback_helper.h67 OHOS::Utils::Timer timer_; member in OHOS::Security::DeviceSecurityLevel::DeviceSecurityLevelCallbackHelper::final
/base/time/time_service/services/time/include/
H A Dtime_tick_notify.h37 Utils::Timer timer_; member in OHOS::MiscServices::TimeTickNotify
/base/useriam/user_auth_framework/services/base/inc/
H A Drelative_timer.h34 Utils::Timer timer_; member in OHOS::UserIam::UserAuth::final
/base/useriam/fingerprint_auth/services_ex/src/
H A Dsensor_illumination_task.cpp146 SensorIlluminationTask::SensorIlluminationTask() : timer_("sensor_illumination_timer") in SensorIlluminationTask()
149 timer_.Setup(); in SensorIlluminationTask()
155 timer_.Unregister(currTimerId_); in ~SensorIlluminationTask()
156 timer_.Shutdown(); in ~SensorIlluminationTask()
293 timer_.Unregister(currTimerId_); in TurnOnSensorIllumination()
294 currTimerId_ = timer_.Register( in TurnOnSensorIllumination()
328 timer_.Unregister(currTimerId_); in TurnOffSensorIllumination()
/base/powermgr/powermgr_lite/services/include/small/
H A Dscreen_saver_handler.h54 PowerTimer *timer_{nullptr};
/base/update/updateservice/services/core/ability/alarm/include/
H A Dtimer_manager.h40 std::shared_ptr<OHOS::Utils::Timer> timer_ = nullptr; member in OHOS::UpdateEngine::EventType::TimerManager
/base/inputmethod/imf/services/src/
H A Dfull_ime_info_manager.cpp27 timer_.Unregister(timerId_); in ~FullImeInfoManager()
28 timer_.Shutdown(false); in ~FullImeInfoManager()
34 uint32_t ret = timer_.Setup(); in FullImeInfoManager()
39 timerId_ = timer_.Register([this]() { Init(); }, TIMER_TASK_INTERNAL, false); in FullImeInfoManager()
/base/inputmethod/imf/test/unittest/cpp_test/mock/
H A Dfull_ime_info_manager.h48 Utils::Timer timer_{ "imeInfoCacheInitTimer" };
/base/inputmethod/imf/services/include/
H A Dfull_ime_info_manager.h47 Utils::Timer timer_{ "imeInfoCacheInitTimer" };
/base/useriam/face_auth/services_ex/inc/
H A Dscreen_brightness_task.h70 Utils::Timer timer_; variable
/base/request/request/frameworks/js/napi/src/upload/
H A Dcurl_adp.cpp38 isReadAbort_(false), timer_("uploadTimer") in CUrlAdp()
458 uint32_t ret = timer_.Setup(); in StartTimer()
467 timerId_ = timer_.Register(TimeOutCallback, READFILE_TIMEOUT_MS, true); in StartTimer()
472 timer_.Unregister(timerId_); in StopTimer()
473 timer_.Shutdown(); in StopTimer()
/base/inputmethod/imf/common/include/
H A Dinputmethod_sysevent.h75 std::shared_ptr<Utils::Timer> timer_ = nullptr; member in OHOS::MiscServices::InputMethodSysEvent
/base/useriam/fingerprint_auth/services_ex/inc/
H A Dsensor_illumination_task.h73 Utils::Timer timer_; member in OHOS::UserIam::SensorIlluminationTask
/base/request/request/frameworks/js/napi/include/upload/
H A Dcurl_adp.h85 Utils::Timer timer_; member in OHOS::Request::Upload::CUrlAdp
/base/startup/appspawn/test/unittest/
H A Dapp_spawn_test_helper.cpp77 if (timer_ != nullptr) { in CloseCheckHandler()
78 LE_StopTimer(LE_GetDefaultLoop(), timer_); in CloseCheckHandler() local
79 timer_ = nullptr; in CloseCheckHandler()
92 int ret = LE_CreateTimer(LE_GetDefaultLoop(), &timer_, ProcessIdle, this); in StartCheckHandler()
94 ret = LE_StartTimer(LE_GetDefaultLoop(), timer_, 100, 10000000); // 100 10000000 repeat in StartCheckHandler()

Completed in 9 milliseconds

12