Lines Matching refs:time

145     // elapsed time by the number of active timers to arrive at that timer's share of the time.
254 * These provide time bases that discount the time the device is plugged
589 * The total time we have accumulated since the start of the original
590 * boot, to the last time something interesting happened in the
596 * The total time we loaded for the previous runs. Subtract this from
597 * mTotalTime to find the time for the current run of the system.
602 * The run time of the last run of the system, as loaded from the
609 * this from mTotalTime to find the time since the last unplug from
852 // Updating the reported value for the first time.
862 // Updating the reported value for the first time.
940 * The last time at which we updated the timer. This is in elapsed realtime microseconds.
1014 // actually add the time.
1077 * The last time at which we updated the timer. If mNesting is > 0,
1078 * subtract this from the current battery time to find the amount of
1079 * time we have been running since we last computed an update.
1084 * The total time at which the timer was acquired, to determine if it
1145 // Accumulate time to all currently active timers before adding
1173 // Accumulate time to all active counters, scaled by the total
1193 // If there was no change in the time, then discard this
1200 // Update the total time for all other running Timers with the same type as this Timer
1479 final long timeDiff = (mHistoryBaseTime+curTime) - mHistoryLastWritten.time;
1498 curTime = mHistoryLastWritten.time - mHistoryBaseTime;
1558 // If the current time is basically the same as the last time,
1563 && (mHistoryBaseTime+curTime) < (mHistoryEnd.time+2000)
1568 && (mHistoryBaseTime+curTime) < (mHistoryEnd.time+500)
1577 mHistoryEnd.setTo(mHistoryEnd.time, HistoryItem.CMD_UPDATE, mHistoryCur);
1658 // Track radio awake time
1672 // Track radio awake time
1801 // Just in case, collect any lost CPU time.
3578 * Total time (in 1/100 sec) spent executing in user code.
3583 * Total time (in 1/100 sec) spent executing in kernel code.
3588 * Amount of time the process was running in the foreground.
3598 * The amount of user time loaded from a previous save.
3603 * The amount of system time loaded from a previous save.
3608 * The amount of foreground time loaded from a previous save.
3618 * The amount of user time loaded from the previous run.
3623 * The amount of system time loaded from the previous run.
3628 * The amount of foreground time loaded from the previous run
3638 * The amount of user time when last unplugged.
3643 * The amount of system time when last unplugged.
3648 * The amount of foreground time since unplugged.
4029 * Total time (ms in battery uptime) the service has been left started.
4050 * Total time (ms in battery uptime) the service has been left launched.
4071 * The amount of time spent started loaded from a previous save
4087 * The amount of time spent started as of the last run (ms
4103 * The amount of time spent started when last unplugged (ms
4192 long time = getBatteryUptimeLocked() - mLaunchedSince;
4193 if (time > 0) {
4194 mLaunchedTime += time;
4212 long time = getBatteryUptimeLocked() - mRunningSince;
4213 if (time > 0) {
4214 mStartTime += time;
4879 // The next time we are unplugged, history will be cleared.
4910 // Set timers to stale if they didn't appear in /proc/wakelocks this time.
5027 long time = mTrackBatteryPastUptime;
5029 time += curTime - mTrackBatteryUptimeStart;
5031 return time;
5044 long time = mTrackBatteryPastRealtime;
5046 time += curTime - mTrackBatteryRealtimeStart;
5048 return time;
5218 // Aggregate all CPU time associated with WIFI.
5230 long time = proc.getUserTime(which);
5231 time = (time*uidRunningTime)/totalRunningTime;
5232 uidProc.mUserTime += time;
5233 proc.mUserTime -= time;
5234 time = proc.getSystemTime(which);
5235 time = (time*uidRunningTime)/totalRunningTime;
5236 uidProc.mSystemTime += time;
5237 proc.mSystemTime -= time;
5238 time = proc.getForegroundTime(which);
5239 time = (time*uidRunningTime)/totalRunningTime;
5240 uidProc.mForegroundTime += time;
5241 proc.mForegroundTime -= time;
5245 time = sc.getCountLocked(which);
5246 time = (time*uidRunningTime)/totalRunningTime;
5252 uidSc.mCount.addAndGet((int)time);
5253 sc.mCount.addAndGet((int)-time);
5457 long time;
5458 while (in.dataAvail() > 0 && (time=in.readLong()) >= 0) {
5459 HistoryItem rec = new HistoryItem(time, in);
5490 if (rec.time >= 0) rec.writeToParcel(out, 0);
5940 long time = ss.getStartTimeToNowLocked(NOW);
5941 out.writeLong(time);