Home
last modified time | relevance | path

Searched refs:when (Results 1 - 13 of 13) sorted by relevance

/base/time/time_service/services/timer/src/
H A Dtimer_info.cpp55 when {_when},
82 when = currentTime + offsetMill; in UpdateWhenElapsedFromNow()
110 when = when + delta; in AdjustTimer()
122 when = when + delta; in RestoreAdjustTimer()
H A Dtimer_handler.cpp102 int TimerHandler::Set(uint32_t type, std::chrono::nanoseconds when, std::chrono::steady_clock::time_point bootTime) in Set() argument
109 auto second = std::chrono::duration_cast<std::chrono::seconds>(when); in Set()
111 type, second.count(), (when - second).count(), bootTime.time_since_epoch().count()); in Set()
112 timespec ts {second.count(), (when - second).count()}; in Set()
H A Dtimer_manager.cpp324 auto when = milliseconds(triggerAtTime > MAX_MILLISECOND ? MAX_MILLISECOND : triggerAtTime); in SetHandler() local
325 auto nominalTrigger = ConvertToElapsed(when, type); in SetHandler()
341 when, in SetHandler()
355 std::chrono::milliseconds when, in SetHandlerLocked()
368 auto alarm = std::make_shared<TimerInfo>(id, type, when, whenElapsed, windowLength, maxWhen, in SetHandlerLocked()
505 auto whenElapsed = ConvertToElapsed(timer->when, timer->type); in ReAddTimerLocked()
519 std::chrono::steady_clock::time_point TimerManager::ConvertToElapsed(std::chrono::milliseconds when, int type) in ConvertToElapsed() argument
524 auto offset = when - systemTimeNow; in ConvertToElapsed()
534 auto offset = when - bootTimeNow; in ConvertToElapsed()
746 void TimerManager::SetLocked(int type, std::chrono::nanoseconds when, st argument
354 SetHandlerLocked(uint64_t id, int type, std::chrono::milliseconds when, std::chrono::steady_clock::time_point whenElapsed, std::chrono::milliseconds windowLength, std::chrono::steady_clock::time_point maxWhen, std::chrono::milliseconds interval, std::function<int32_t (const uint64_t)> callback, const std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> &wantAgent, uint32_t flags, uint64_t callingUid, uint64_t callingPid, const std::string &bundleName) SetHandlerLocked() argument
748 handler_->Set(static_cast<uint32_t>(type), when, bootTime); SetLocked() local
[all...]
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Devent_queue.cpp64 void EventQueue::WaitUntilLocked(const InnerEvent::TimePoint &when, std::unique_lock<std::mutex> &lock) in WaitUntilLocked() argument
68 if (!ioWaiterHolder->WaitFor(lock, TimePointToTimeOut(when))) { in WaitUntilLocked()
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Devent_handler_utils.h36 LOCAL_API static inline int64_t TimePointToTimeOut(const InnerEvent::TimePoint &when) in TimePointToTimeOut() argument
39 if (when <= now) { in TimePointToTimeOut()
43 auto duration = when - now; in TimePointToTimeOut()
/base/time/time_service/services/timer/include/
H A Dtimer_info.h40 std::chrono::milliseconds when; member in OHOS::MiscServices::TimerInfo
51 std::chrono::milliseconds when,
H A Dtimer_handler.h36 int Set(uint32_t type, std::chrono::nanoseconds when, std::chrono::steady_clock::time_point bootTime);
H A Dtimer_manager.h88 std::chrono::milliseconds when,
119 void SetLocked(int type, std::chrono::nanoseconds when, std::chrono::steady_clock::time_point bootTime);
120 std::chrono::steady_clock::time_point ConvertToElapsed(std::chrono::milliseconds when, int type);
/base/update/updater/services/package/pkg_manager/
H A Dpkg_utils.cpp219 void ExtraTimeAndDate(time_t when, uint16_t &date, uint16_t &time) in GetFileSize() argument
221 when = static_cast<time_t>((static_cast<unsigned long>(when) + 1) & (~1)); in GetFileSize()
224 localtime_s(&nowTime, &when); in GetFileSize()
226 localtime_r(&when, &nowTime); in GetFileSize()
H A Dpkg_utils.h42 void ExtraTimeAndDate(time_t when, uint16_t &date, uint16_t &time);
/base/security/permission_lite/services/pms/include/
H A Dperm_define.h60 enum GrantTime when; member
/base/notification/eventhandler/interfaces/inner_api/
H A Devent_queue.h353 void WaitUntilLocked(const InnerEvent::TimePoint &when, std::unique_lock<std::mutex> &lock);
/base/time/time_service/test/unittest/service_test/src/
H A Dtime_service_test.cpp385 * @tc.desc: test public app start timer when device is sleeping and device sleep quit greater than timer callback.
414 * @tc.desc: test public app start timer when device is sleeping and device sleep quit less than timer callback.
442 * @tc.desc: test public app start timer when device is working, device sleep immediately
1161 auto when = std::chrono::nanoseconds::zero(); in HWTEST_F() local
1163 auto res = TimerManager::GetInstance()->handler_->Set(6, when, bootTime); in HWTEST_F()

Completed in 12 milliseconds