Home
last modified time | relevance | path

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

/ohos5.0/base/time/time_service/services/timer/src/
H A Dtimer_info.cpp57 whenElapsed {_whenElapsed},
70 auto oldWhenElapsed = whenElapsed; in UpdateWhenElapsedFromNow()
71 whenElapsed = now + offset; in UpdateWhenElapsedFromNow()
73 maxWhenElapsed = whenElapsed + windowLength; in UpdateWhenElapsedFromNow()
88 auto oldWhenElapsed = whenElapsed; in AdjustTimer()
94 whenElapsed = std::chrono::steady_clock::time_point(timeSec); in AdjustTimer()
96 maxWhenElapsed = whenElapsed; in AdjustTimer()
102 if (whenElapsed < now) { in AdjustTimer()
109 whenElapsed.time_since_epoch() - oldWhenElapsed.time_since_epoch()); in AdjustTimer()
116 auto oldWhenElapsed = whenElapsed; in RestoreAdjustTimer()
[all …]
H A 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()
94 if (alarm->whenElapsed > newStart) { in Remove()
95 newStart = alarm->whenElapsed; in Remove()
H A Dtimer_manager.cpp578 maxElapsed = whenElapsed; in ReAddTimerLocked()
581 (whenElapsed + timer->windowLength) : in ReAddTimerLocked()
584 timer->whenElapsed = whenElapsed; in ReAddTimerLocked()
775 return l->whenElapsed < r->whenElapsed; in TriggerTimersLocked()
849 (batch->CanHold(whenElapsed, maxWhen)); in AttemptCoalesceLocked()
1066 maxElapsed = whenElapsed; in ReCalcuOriWhenElapsed()
1069 (whenElapsed + timer->windowLength) : in ReCalcuOriWhenElapsed()
1072 timer->originWhenElapsed = whenElapsed; in ReCalcuOriWhenElapsed()
1162 } else if (alarm->whenElapsed > mPendingIdleUntil_->whenElapsed) { in AdjustDeliveryTimeBasedOnDeviceIdle()
1167 delayedTimers_[alarm->id] = alarm->whenElapsed; in AdjustDeliveryTimeBasedOnDeviceIdle()
[all …]
H A Dtimer_proxy.cpp437 it->second.insert(std::make_pair(alarm->id, alarm->whenElapsed)); in RecordProxyUidTimerMap()
440 …:unordered_map<uint64_t, std::chrono::steady_clock::time_point>{{alarm->id, alarm->whenElapsed}})); in RecordProxyUidTimerMap()
452 it->second.insert(std::make_pair(alarm->id, alarm->whenElapsed)); in RecordProxyPidTimerMap()
455 …:unordered_map<uint64_t, std::chrono::steady_clock::time_point>{{alarm->id, alarm->whenElapsed}})); in RecordProxyPidTimerMap()
557 … timePointMap.insert(std::make_pair(itUidTimersMap->first, itUidTimersMap->second->whenElapsed)); in UpdateProxyWhenElapsedForProxyUidMap()
562 itUidTimersMap->second->whenElapsed.time_since_epoch().count(), in UpdateProxyWhenElapsedForProxyUidMap()
592 … timePointMap.insert(std::make_pair(itPidTimersMap->first, itPidTimersMap->second->whenElapsed)); in UpdateProxyWhenElapsedForProxyPidMap()
597 itPidTimersMap->second->whenElapsed.time_since_epoch().count(), in UpdateProxyWhenElapsedForProxyPidMap()
635 itTimerInfo->second->whenElapsed.time_since_epoch().count(), in RestoreProxyWhenElapsedByUid()
672 itTimerInfo->second->whenElapsed.time_since_epoch().count(), in RestoreProxyWhenElapsedByPid()
[all …]
/ohos5.0/base/time/time_service/services/timer/include/
H A Dtimer_info.h44 std::chrono::steady_clock::time_point whenElapsed; variable
52 std::chrono::steady_clock::time_point whenElapsed,
H A Dbatch.h37 bool CanHold(std::chrono::steady_clock::time_point whenElapsed,
H A Dtimer_manager.h88 std::chrono::steady_clock::time_point whenElapsed,
107 int64_t AttemptCoalesceLocked(std::chrono::steady_clock::time_point whenElapsed,
/ohos5.0/base/time/time_service/services/dfx/src/
H A Dtime_sysevent.cpp32 int64_t triggerTime = timer->whenElapsed.time_since_epoch().count(); in StatisticReporter()
/ohos5.0/base/time/time_service/test/unittest/service_test/src/
H A Dtime_proxy_test.cpp378 …steady_clock::time_point time = TimerProxy::GetInstance().uidTimersMap_[uid][timerId]->whenElapsed;
399 EXPECT_NE(it4->second->whenElapsed, time);
412 EXPECT_EQ(it6->second->whenElapsed, time);
593 …steady_clock::time_point time = TimerProxy::GetInstance().pidTimersMap_[pid][timerId]->whenElapsed;
614 EXPECT_NE(it4->second->whenElapsed, time);
627 EXPECT_EQ(it6->second->whenElapsed, time);