Lines Matching defs:curTime

535         public long computeUptime(long curTime, int which) {
538 return mUptime + getUptime(curTime);
540 return getUptime(curTime);
542 return getUptime(curTime) - mUnpluggedUptime;
547 public long computeRealtime(long curTime, int which) {
550 return mRealtime + getRealtime(curTime);
552 return getRealtime(curTime);
554 return getRealtime(curTime) - mUnpluggedRealtime;
559 public long getUptime(long curTime) {
562 time += curTime - mUptimeStart;
567 public long getRealtime(long curTime) {
570 time += curTime - mRealtimeStart;
1288 private long computeOverage(long curTime) {
1290 return mLastTime + mLastAddedDuration - curTime;
1295 private void recomputeLastDuration(long curTime, boolean abort) {
1296 final long overage = computeOverage(curTime);
1307 mLastAddedTime = curTime;
7271 public long computeUptime(long curTime, int which) {
7273 case STATS_SINCE_CHARGED: return mUptime + (curTime-mUptimeStart);
7274 case STATS_CURRENT: return (curTime-mUptimeStart);
7275 case STATS_SINCE_UNPLUGGED: return (curTime-mOnBatteryTimeBase.getUptimeStart());
7281 public long computeRealtime(long curTime, int which) {
7283 case STATS_SINCE_CHARGED: return mRealtime + (curTime-mRealtimeStart);
7284 case STATS_CURRENT: return (curTime-mRealtimeStart);
7285 case STATS_SINCE_UNPLUGGED: return (curTime-mOnBatteryTimeBase.getRealtimeStart());
7291 public long computeBatteryUptime(long curTime, int which) {
7292 return mOnBatteryTimeBase.computeUptime(curTime, which);
7296 public long computeBatteryRealtime(long curTime, int which) {
7297 return mOnBatteryTimeBase.computeRealtime(curTime, which);
7301 public long computeBatteryScreenOffUptime(long curTime, int which) {
7302 return mOnBatteryScreenOffTimeBase.computeUptime(curTime, which);
7306 public long computeBatteryScreenOffRealtime(long curTime, int which) {
7307 return mOnBatteryScreenOffTimeBase.computeRealtime(curTime, which);
7349 public long computeBatteryTimeRemaining(long curTime) {
7359 long duration = computeBatteryRealtime(curTime, STATS_SINCE_CHARGED);
7385 public long computeChargeTimeRemaining(long curTime) {
7396 long duration = computeBatteryRealtime(curTime, STATS_SINCE_UNPLUGGED);
7426 public long getBatteryUptime(long curTime) {
7427 return mOnBatteryTimeBase.getUptime(curTime);
7431 public long getBatteryRealtime(long curTime) {
7432 return mOnBatteryTimeBase.getRealtime(curTime);