Home
last modified time | relevance | path

Searched refs:whenElapsed (Results 1 – 9 of 9) sorted by relevance

/base/time/time_service/services/timer/src/
Dtimer_info.cpp57 whenElapsed {_whenElapsed},
72 auto oldWhenElapsed = whenElapsed; in UpdateWhenElapsedFromNow()
73 whenElapsed = now + offset; in UpdateWhenElapsedFromNow()
75 maxWhenElapsed = whenElapsed + windowLength; in UpdateWhenElapsedFromNow()
76 expectedWhenElapsed = whenElapsed; in UpdateWhenElapsedFromNow()
87 return (oldWhenElapsed != whenElapsed) || (oldMaxWhenElapsed != maxWhenElapsed); in UpdateWhenElapsedFromNow()
92 auto oldWhenElapsed = whenElapsed; in AdjustTimer()
96 …auto oldTimeSec = std::chrono::duration_cast<std::chrono::seconds>(whenElapsed.time_since_epoch()); in AdjustTimer()
98 whenElapsed = std::chrono::steady_clock::time_point(timeSec); in AdjustTimer()
100 maxWhenElapsed = whenElapsed; in AdjustTimer()
[all …]
Dbatch.cpp30 : start_ {seed.whenElapsed}, in Batch()
47 bool Batch::CanHold(std::chrono::steady_clock::time_point whenElapsed, in CanHold() argument
50 return (end_ > whenElapsed) && (start_ <= maxWhen); in CanHold()
60 return first->whenElapsed < second->whenElapsed; in Add()
64 if (alarm->whenElapsed > start_) { in Add()
65 start_ = alarm->whenElapsed; in Add()
97 if (alarm->whenElapsed > newStart) { in Remove()
98 newStart = alarm->whenElapsed; in Remove()
Dtimer_manager.cpp347 std::chrono::steady_clock::time_point whenElapsed, in SetHandlerLocked() argument
359 auto alarm = std::make_shared<TimerInfo>(id, type, when, whenElapsed, windowLength, maxWhen, in SetHandlerLocked()
408 if (pendingTimer->whenElapsed <= GetBootTimeNs()) { in RemoveLocked()
438 alarm->offset = duration_cast<milliseconds>(alarm->whenElapsed - GetBootTimeNs()); in SetHandlerLocked()
482 timer->whenElapsed.time_since_epoch().count(), GetBootTimeNs().time_since_epoch().count()); in ReAddTimerLocked()
483 auto whenElapsed = ConvertToElapsed(timer->when, timer->type); in ReAddTimerLocked() local
486 maxElapsed = whenElapsed; in ReAddTimerLocked()
489 (whenElapsed + timer->windowLength) : in ReAddTimerLocked()
490 MaxTriggerTime(nowElapsed, whenElapsed, timer->repeatInterval); in ReAddTimerLocked()
492 timer->whenElapsed = whenElapsed; in ReAddTimerLocked()
[all …]
Dtimer_proxy.cpp517 … timePointMap.insert(std::make_pair(itUidTimersMap->first, itUidTimersMap->second->whenElapsed)); in UpdateProxyWhenElapsedForProxyUidMap()
522 itUidTimersMap->second->whenElapsed.time_since_epoch().count(), in UpdateProxyWhenElapsedForProxyUidMap()
550 … timePointMap.insert(std::make_pair(itPidTimersMap->first, itPidTimersMap->second->whenElapsed)); in UpdateProxyWhenElapsedForProxyPidMap()
555 itPidTimersMap->second->whenElapsed.time_since_epoch().count(), in UpdateProxyWhenElapsedForProxyPidMap()
592 itTimerInfo->second->whenElapsed.time_since_epoch().count(), in RestoreProxyWhenElapsedByUid()
628 itTimerInfo->second->whenElapsed.time_since_epoch().count(), in RestoreProxyWhenElapsedByPid()
717 …dprintf(fd, " * timer whenElapsed = %lld\n", itTimerInfo->second->whenElapsed.time_since_epoch()… in ShowUidTimerMapInfo()
734 …dprintf(fd, " * timer whenElapsed = %lld\n", itTimerInfo->second->whenElapsed.time_since_epoch()… in ShowPidTimerMapInfo()
751 dprintf(fd, " * timer whenElapsed = %lld\n\n", timer->whenElapsed); in ShowAdjustTimerInfo()
/base/time/time_service/services/timer/include/
Dtimer_info.h45 std::chrono::steady_clock::time_point whenElapsed; variable
55 std::chrono::steady_clock::time_point whenElapsed,
Dbatch.h37 bool CanHold(std::chrono::steady_clock::time_point whenElapsed,
Dtimer_manager.h87 std::chrono::steady_clock::time_point whenElapsed,
106 int64_t AttemptCoalesceLocked(std::chrono::steady_clock::time_point whenElapsed,
/base/time/time_service/services/dfx/src/
Dtime_sysevent.cpp32 int64_t triggerTime = timer->whenElapsed.time_since_epoch().count(); in StatisticReporter()
/base/time/time_service/test/unittest/service_test/src/
Dtime_proxy_test.cpp376 …steady_clock::time_point time = TimerProxy::GetInstance().uidTimersMap_[uid][timerId]->whenElapsed;
397 EXPECT_NE(it4->second->whenElapsed, time);
410 EXPECT_EQ(it6->second->whenElapsed, time);
589 …steady_clock::time_point time = TimerProxy::GetInstance().pidTimersMap_[pid][timerId]->whenElapsed;
610 EXPECT_NE(it4->second->whenElapsed, time);
623 EXPECT_EQ(it6->second->whenElapsed, time);