Lines Matching refs:nowELAPSED

875             final long nowELAPSED = SystemClock.elapsedRealtime();
880 pw.print(" nowELAPSED="); TimeUtils.formatDuration(nowELAPSED, pw);
884 TimeUtils.formatDuration(nowELAPSED - mNonInteractiveStartTime, pw);
887 TimeUtils.formatDuration(currentNonWakeupFuzzLocked(nowELAPSED), pw);
890 TimeUtils.formatDuration(nowELAPSED - mLastAlarmDeliveryTime, pw);
893 TimeUtils.formatDuration(nowELAPSED - mNextNonWakeupDeliveryTime, pw);
897 long nextWakeupRTC = mNextWakeup + (nowRTC - nowELAPSED);
898 long nextNonWakeupRTC = mNextNonWakeup + (nowRTC - nowELAPSED);
900 TimeUtils.formatDuration(mNextNonWakeup, nowELAPSED, pw);
902 pw.print("Next wakeup: "); TimeUtils.formatDuration(mNextWakeup, nowELAPSED, pw);
912 dumpAlarmList(pw, b.alarms, " ", nowELAPSED, nowRTC, sdf);
920 dumpAlarmList(pw, mPendingNonWakeupAlarms, " ", nowELAPSED, nowRTC, sdf);
1054 final long nowELAPSED = SystemClock.elapsedRealtime();
1059 dumpAlarmList(pw, bz.alarms, " ", nowELAPSED, nowRTC, sdf);
1317 final long nowELAPSED = SystemClock.elapsedRealtime();
1320 final long thisDelayTime = nowELAPSED - mStartCurrentDelayTime;
1325 deliverAlarmsLocked(mPendingNonWakeupAlarms, nowELAPSED);
1329 long dur = nowELAPSED - mNonInteractiveStartTime;
1335 mNonInteractiveStartTime = nowELAPSED;
1374 String prefix, String label, long nowRTC, long nowELAPSED, SimpleDateFormat sdf) {
1379 a.dump(pw, prefix + " ", nowRTC, nowELAPSED, sdf);
1396 String prefix, long nowELAPSED, long nowRTC, SimpleDateFormat sdf) {
1402 a.dump(pw, prefix + " ", nowRTC, nowELAPSED, sdf);
1413 boolean triggerAlarmsLocked(ArrayList<Alarm> triggerList, final long nowELAPSED,
1421 if (batch.start > nowELAPSED) {
1441 alarm.count += (nowELAPSED - alarm.whenElapsed) / alarm.repeatInterval;
1447 maxTriggerTime(nowELAPSED, nextElapsed, alarm.repeatInterval),
1549 public void dump(PrintWriter pw, String prefix, long nowRTC, long nowELAPSED,
1555 nowELAPSED, pw);
1559 pw.print(" when="); TimeUtils.formatDuration(when, nowELAPSED, pw);
1569 void recordWakeupAlarms(ArrayList<Batch> batches, long nowELAPSED, long nowRTC) {
1573 if (b.start > nowELAPSED) {
1588 long currentNonWakeupFuzzLocked(long nowELAPSED) {
1589 long timeSinceOn = nowELAPSED - mNonInteractiveStartTime;
1602 boolean checkAllowNonWakeupDelayLocked(long nowELAPSED) {
1609 if (mPendingNonWakeupAlarms.size() > 0 && mNextNonWakeupDeliveryTime > nowELAPSED) {
1615 long timeSinceLast = nowELAPSED - mLastAlarmDeliveryTime;
1616 return timeSinceLast <= currentNonWakeupFuzzLocked(nowELAPSED);
1619 void deliverAlarmsLocked(ArrayList<Alarm> triggerList, long nowELAPSED) {
1620 mLastAlarmDeliveryTime = nowELAPSED;
1647 bs.startTime = nowELAPSED;
1655 fs.startTime = nowELAPSED;
1721 final long nowELAPSED = SystemClock.elapsedRealtime();
1724 + ", elapsed=" + nowELAPSED);
1738 recordWakeupAlarms(mAlarmBatches, nowELAPSED, nowRTC);
1742 boolean hasWakeup = triggerAlarmsLocked(triggerList, nowELAPSED, nowRTC);
1743 if (!hasWakeup && checkAllowNonWakeupDelayLocked(nowELAPSED)) {
1747 mStartCurrentDelayTime = nowELAPSED;
1748 mNextNonWakeupDeliveryTime = nowELAPSED
1749 + ((currentNonWakeupFuzzLocked(nowELAPSED)*3)/2);
1766 final long thisDelayTime = nowELAPSED - mStartCurrentDelayTime;
1773 deliverAlarmsLocked(triggerList, nowELAPSED);
1828 final long nowELAPSED = SystemClock.elapsedRealtime();
1829 triggerAlarmsLocked(triggerList, nowELAPSED, nowRTC);
2020 final long nowELAPSED = SystemClock.elapsedRealtime();
2025 bs.aggregateTime += nowELAPSED - bs.startTime;
2031 fs.aggregateTime += nowELAPSED - fs.startTime;