Lines Matching refs:whenElapsed
356 std::chrono::steady_clock::time_point whenElapsed,
368 auto alarm = std::make_shared<TimerInfo>(id, type, when, whenElapsed, windowLength, maxWhen,
375 alarm->UpdateWhenElapsedFromNow(whenElapsed, milliseconds(TimerProxy::GetInstance().GetProxyDelayTime()));
381 alarm->UpdateWhenElapsedFromNow(whenElapsed, milliseconds(TimerProxy::GetInstance().GetProxyDelayTime()));
430 if (pendingTimer->whenElapsed <= GetBootTimeNs()) {
460 alarm->offset = duration_cast<milliseconds>(alarm->whenElapsed - GetBootTimeNs());
502 ", timer originMaxWhenElapsed=%{public}lld, whenElapsed=%{public}lld, now=%{public}lld",
504 timer->whenElapsed.time_since_epoch().count(), GetBootTimeNs().time_since_epoch().count());
505 auto whenElapsed = ConvertToElapsed(timer->when, timer->type);
508 maxElapsed = whenElapsed;
511 (whenElapsed + timer->windowLength) :
512 MaxTriggerTime(nowElapsed, whenElapsed, timer->repeatInterval);
514 timer->whenElapsed = whenElapsed;
619 if (pendingTimer->whenElapsed > GetBootTimeNs()) {
641 "uid= %{public}d, id=%{public}" PRId64 ", timer whenElapsed=%{public}lld, now=%{public}lld",
642 alarm->uid, alarm->id, alarm->whenElapsed.time_since_epoch().count(),
649 "pid= %{public}d, id=%{public}" PRId64 ", timer whenElapsed=%{public}lld, now=%{public}lld",
650 alarm->pid, alarm->id, alarm->whenElapsed.time_since_epoch().count(),
705 return l->whenElapsed < r->whenElapsed;
756 AttemptCoalesceLocked(alarm->whenElapsed, alarm->maxWhenElapsed);
759 whichBatch, alarm->id, alarm->whenElapsed.time_since_epoch().count(),
773 int64_t TimerManager::AttemptCoalesceLocked(std::chrono::steady_clock::time_point whenElapsed,
777 [whenElapsed, maxWhen](const std::shared_ptr<Batch> &batch) {
779 (batch->CanHold(whenElapsed, maxWhen));
993 auto whenElapsed = ConvertToElapsed(timer->origWhen, timer->type);
996 maxElapsed = whenElapsed;
999 (whenElapsed + timer->windowLength) :
1000 MaxTriggerTime(nowElapsed, whenElapsed, timer->repeatInterval);
1002 timer->originWhenElapsed = whenElapsed;
1092 } else if (alarm->whenElapsed > mPendingIdleUntil_->whenElapsed) {
1097 delayedTimers_[alarm->id] = alarm->whenElapsed;
1209 dprintf(fd, " * timer whenElapsed = %lu\n", mPendingIdleUntil_->whenElapsed);
1218 dprintf(fd, " * timer whenElapsed = %lu\n", pendingTimer->whenElapsed);
1223 dprintf(fd, " * timer whenElapsed = %lu\n", delayedTimer.second);
1268 duration_cast<milliseconds>(nowElapsed - timer->whenElapsed) / timer->repeatInterval);
1270 auto nextElapsed = timer->whenElapsed + delta;