Home
last modified time | relevance | path

Searched refs:PowerTimer (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/powermgr/powermgr_lite/utils/include/
H A Dpower_mgr_timer_util.h27 typedef timer_t PowerTimer; typedef
33 PowerTimer *PowerMgrCreateTimer(int64_t whenMsec, int64_t intervalMsec, PowerTimerCallback cb);
38 BOOL PowerMgrResetTimer(PowerTimer *timer, int64_t whenMsec, int64_t intervalMsec);
43 BOOL PowerMgrStartTimer(PowerTimer *timer, void *privateData);
48 BOOL PowerMgrRestartTimer(PowerTimer *timer, void *privateData);
53 BOOL PowerMgrStopTimer(PowerTimer *timer);
58 void PowerMgrDestroyTimer(PowerTimer *timer);
/ohos5.0/base/powermgr/powermgr_lite/utils/src/
H A Dpower_mgr_timer_util.c29 PowerTimer timerId;
37 static inline PowerTimerInfo *GetPowerTimerInfo(PowerTimer *timer) in GetPowerTimerInfo()
49 static BOOL StartTimer(PowerTimer timer, int64_t whenMsec, int64_t intervalMsec) in StartTimer()
74 PowerTimer *PowerMgrCreateTimer(int64_t whenMsec, int64_t intervalMsec, PowerTimerCallback cb) in PowerMgrCreateTimer()
103 BOOL PowerMgrResetTimer(PowerTimer *timer, int64_t whenMsec, int64_t intervalMsec) in PowerMgrResetTimer()
116 BOOL PowerMgrStartTimer(PowerTimer *timer, void *privateData) in PowerMgrStartTimer()
129 BOOL PowerMgrRestartTimer(PowerTimer *timer, void *privateData) in PowerMgrRestartTimer()
139 BOOL PowerMgrStopTimer(PowerTimer *timer) in PowerMgrStopTimer()
151 void PowerMgrDestroyTimer(PowerTimer *timer) in PowerMgrDestroyTimer()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dpower_device.h237 class PowerTimer : public utility::Timer {
245 explicit PowerTimer(const std::function<void()> &callback) : utility::Timer(callback){}; in PowerTimer() function
252 PowerTimer() = delete;
287 BT_DISALLOW_COPY_AND_ASSIGN(PowerTimer);
H A Dpower_device.cpp42 std::unique_ptr<PowerTimer> sniffDelayTimer_ = nullptr;
54 pimpl->sniffDelayTimer_ = std::make_unique<PowerTimer>(std::bind( in PowerDevice()
308 bool PowerDevice::PowerTimer::Start(int ms, bool isPeriodic) in Start()
317 bool PowerDevice::PowerTimer::Stop() in Stop()
323 uint64_t PowerDevice::PowerTimer::GetRemainMs() in GetRemainMs()
/ohos5.0/base/powermgr/powermgr_lite/services/include/small/
H A Dscreen_saver_handler.h54 PowerTimer *timer_{nullptr};
/ohos5.0/base/powermgr/battery_lite/services/src/
H A Dbattery_manage_service.c35 static PowerTimer *time_ = NULL;