Lines Matching defs:mOnBatteryTimeBase

324     protected final TimeBase mOnBatteryTimeBase = new TimeBase();
2676 rpmt = new SamplingTimer(mClocks, mOnBatteryTimeBase);
2699 timer = new SamplingTimer(mClocks, mOnBatteryTimeBase);
2721 kmt = new SamplingTimer(mClocks, mOnBatteryTimeBase);
3572 final boolean updateOnBatteryTimeBase = unplugged != mOnBatteryTimeBase.isRunning();
3593 mOnBatteryTimeBase.setRunning(unplugged, uptime, realtime);
4233 updateTimeBasesLocked(mOnBatteryTimeBase.isRunning(), state,
4241 updateTimeBasesLocked(mOnBatteryTimeBase.isRunning(), state,
5860 mUserCpuTime = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
5861 mSystemCpuTime = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
5871 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase);
5877 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase);
5882 mBsi.mWifiRunningTimers, mBsi.mOnBatteryTimeBase);
5884 mBsi.mFullWifiLockTimers, mBsi.mOnBatteryTimeBase);
5886 mBsi.mWifiScanTimers, mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase);
5889 mBsi.mWifiMulticastTimers, mBsi.mOnBatteryTimeBase);
5980 mBsi.mWifiRunningTimers, mBsi.mOnBatteryTimeBase);
6000 mBsi.mFullWifiLockTimers, mBsi.mOnBatteryTimeBase);
6020 mBsi.mWifiScanTimers, mBsi.mOnBatteryTimeBase,
6071 WIFI_MULTICAST_ENABLED, mBsi.mWifiMulticastTimers, mBsi.mOnBatteryTimeBase);
6102 mWifiControllerActivity = new ControllerActivityCounterImpl(mBsi.mOnBatteryTimeBase,
6110 mBluetoothControllerActivity = new ControllerActivityCounterImpl(mBsi.mOnBatteryTimeBase,
6118 mModemControllerActivity = new ControllerActivityCounterImpl(mBsi.mOnBatteryTimeBase,
6127 mBsi.mAudioTurnedOnTimers, mBsi.mOnBatteryTimeBase);
6151 mBsi.mVideoTurnedOnTimers, mBsi.mOnBatteryTimeBase);
6175 FLASHLIGHT_TURNED_ON, mBsi.mFlashlightTurnedOnTimers, mBsi.mOnBatteryTimeBase);
6199 mBsi.mCameraTurnedOnTimers, mBsi.mOnBatteryTimeBase);
6223 FOREGROUND_ACTIVITY, null, mBsi.mOnBatteryTimeBase);
6231 FOREGROUND_SERVICE, null, mBsi.mOnBatteryTimeBase);
6248 mBsi.mBluetoothScanOnTimers, mBsi.mOnBatteryTimeBase,
6258 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase);
6290 mBluetoothScanResultCounter = new Counter(mBsi.mOnBatteryTimeBase);
6334 mBsi.mOnBatteryTimeBase);
6504 mBsi.mOnBatteryTimeBase);
6507 mBsi.mOnBatteryTimeBase, in);
6567 collected, mBsi.mOnBatteryTimeBase);
6570 collected, mBsi.mOnBatteryTimeBase, in);
6578 mUserActivityCounters[i] = new Counter(mBsi.mOnBatteryTimeBase);
6670 mMobileRadioApWakeupCount = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
6685 mWifiRadioApWakeupCount = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
6702 mNetworkByteActivityCounters[i] = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
6703 mNetworkPacketActivityCounters[i] = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
6705 mMobileRadioActiveTime = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
6706 mMobileRadioActiveCount = new LongSamplingCounter(mBsi.mOnBatteryTimeBase);
7331 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase, in));
7341 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase, in));
7352 sensor.readFromParcelLocked(mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase,
7378 mBsi.mWifiRunningTimers, mBsi.mOnBatteryTimeBase, in);
7385 mBsi.mFullWifiLockTimers, mBsi.mOnBatteryTimeBase, in);
7392 mBsi.mWifiScanTimers, mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase,
7408 mBsi.mWifiMulticastTimers, mBsi.mOnBatteryTimeBase, in);
7414 mBsi.mAudioTurnedOnTimers, mBsi.mOnBatteryTimeBase, in);
7420 mBsi.mVideoTurnedOnTimers, mBsi.mOnBatteryTimeBase, in);
7426 FLASHLIGHT_TURNED_ON, mBsi.mFlashlightTurnedOnTimers, mBsi.mOnBatteryTimeBase, in);
7432 mBsi.mCameraTurnedOnTimers, mBsi.mOnBatteryTimeBase, in);
7438 FOREGROUND_ACTIVITY, null, mBsi.mOnBatteryTimeBase, in);
7444 FOREGROUND_SERVICE, null, mBsi.mOnBatteryTimeBase, in);
7458 mBsi.mBluetoothScanOnTimers, mBsi.mOnBatteryTimeBase,
7466 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase, in);
7471 mBluetoothScanResultCounter = new Counter(mBsi.mOnBatteryTimeBase, in);
7490 mBsi.mOnBatteryTimeBase, in);
7497 mUserActivityCounters[i] = new Counter(mBsi.mOnBatteryTimeBase, in);
7508 = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7510 = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7512 mMobileRadioActiveTime = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7513 mMobileRadioActiveCount = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7520 mWifiControllerActivity = new ControllerActivityCounterImpl(mBsi.mOnBatteryTimeBase,
7527 mBluetoothControllerActivity = new ControllerActivityCounterImpl(mBsi.mOnBatteryTimeBase,
7534 mModemControllerActivity = new ControllerActivityCounterImpl(mBsi.mOnBatteryTimeBase,
7540 mUserCpuTime = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7541 mSystemCpuTime = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7563 mBsi.mOnBatteryTimeBase, in);
7574 mCpuFreqTimeMs = LongSamplingCounterArray.readFromParcel(in, mBsi.mOnBatteryTimeBase);
7579 mMobileRadioApWakeupCount = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7585 mWifiRadioApWakeupCount = new LongSamplingCounter(mBsi.mOnBatteryTimeBase, in);
7912 mBsi.mOnBatteryTimeBase.add(this);
7929 mBsi.mOnBatteryTimeBase.remove(this);
8328 mBsi.mOnBatteryTimeBase.add(this);
8346 mBsi.mOnBatteryTimeBase.remove(this);
8558 boolean on = mBsi.mOnBatteryTimeBase.isRunning() && isInBackground();
8657 mBsi.mOnBatteryTimeBase, mOnBatteryBackgroundTimeBase);
8688 if (mBsi.mOnBatteryTimeBase.isRunning()) {
8718 mBsi.mFullTimers, mBsi.mOnBatteryTimeBase);
8727 mBsi.mWindowTimers, mBsi.mOnBatteryTimeBase);
8736 mBsi.mDrawTimers, mBsi.mOnBatteryTimeBase);
8840 mScreenOnTimer = new StopwatchTimer(mClocks, null, -1, null, mOnBatteryTimeBase);
8841 mScreenDozeTimer = new StopwatchTimer(mClocks, null, -1, null, mOnBatteryTimeBase);
8844 mOnBatteryTimeBase);
8846 mInteractiveTimer = new StopwatchTimer(mClocks, null, -10, null, mOnBatteryTimeBase);
8848 mOnBatteryTimeBase);
8850 mOnBatteryTimeBase);
8851 mDeviceIdleModeFullTimer = new StopwatchTimer(mClocks, null, -14, null, mOnBatteryTimeBase);
8852 mDeviceLightIdlingTimer = new StopwatchTimer(mClocks, null, -15, null, mOnBatteryTimeBase);
8853 mDeviceIdlingTimer = new StopwatchTimer(mClocks, null, -12, null, mOnBatteryTimeBase);
8854 mPhoneOnTimer = new StopwatchTimer(mClocks, null, -3, null, mOnBatteryTimeBase);
8857 mOnBatteryTimeBase);
8860 mOnBatteryTimeBase);
8863 mOnBatteryTimeBase);
8866 mNetworkByteActivityCounters[i] = new LongSamplingCounter(mOnBatteryTimeBase);
8867 mNetworkPacketActivityCounters[i] = new LongSamplingCounter(mOnBatteryTimeBase);
8869 mWifiActivity = new ControllerActivityCounterImpl(mOnBatteryTimeBase, NUM_WIFI_TX_LEVELS);
8870 mBluetoothActivity = new ControllerActivityCounterImpl(mOnBatteryTimeBase,
8872 mModemActivity = new ControllerActivityCounterImpl(mOnBatteryTimeBase,
8874 mMobileRadioActiveTimer = new StopwatchTimer(mClocks, null, -400, null, mOnBatteryTimeBase);
8876 mOnBatteryTimeBase);
8877 mMobileRadioActiveAdjustedTime = new LongSamplingCounter(mOnBatteryTimeBase);
8878 mMobileRadioActiveUnknownTime = new LongSamplingCounter(mOnBatteryTimeBase);
8879 mMobileRadioActiveUnknownCount = new LongSamplingCounter(mOnBatteryTimeBase);
8880 mWifiOnTimer = new StopwatchTimer(mClocks, null, -4, null, mOnBatteryTimeBase);
8881 mGlobalWifiRunningTimer = new StopwatchTimer(mClocks, null, -5, null, mOnBatteryTimeBase);
8884 mOnBatteryTimeBase);
8888 mOnBatteryTimeBase);
8892 mOnBatteryTimeBase);
8894 mAudioOnTimer = new StopwatchTimer(mClocks, null, -7, null, mOnBatteryTimeBase);
8895 mVideoOnTimer = new StopwatchTimer(mClocks, null, -8, null, mOnBatteryTimeBase);
8896 mFlashlightOnTimer = new StopwatchTimer(mClocks, null, -9, null, mOnBatteryTimeBase);
8897 mCameraOnTimer = new StopwatchTimer(mClocks, null, -13, null, mOnBatteryTimeBase);
8898 mBluetoothScanTimer = new StopwatchTimer(mClocks, null, -14, null, mOnBatteryTimeBase);
8900 mDischargeScreenDozeCounter = new LongSamplingCounter(mOnBatteryTimeBase);
8901 mDischargeCounter = new LongSamplingCounter(mOnBatteryTimeBase);
9458 mOnBatteryTimeBase.init(uptime, realtime);
9493 mOnBatteryTimeBase.reset(uptime, realtime);
9590 mOnBatteryTimeBase.remove(timer);
9610 mOnBatteryTimeBase.remove(mKernelMemoryStats.valueAt(i));
9617 mOnBatteryTimeBase.remove(timer);
10444 timer = new SamplingTimer(mClocks, mOnBatteryTimeBase);
10672 cpuSpeeds[speed] = new LongSamplingCounter(mOnBatteryTimeBase);
10732 u.mCpuFreqTimeMs = new LongSamplingCounterArray(mOnBatteryTimeBase);
11125 case STATS_SINCE_UNPLUGGED: return (curTime-mOnBatteryTimeBase.getUptimeStart());
11135 case STATS_SINCE_UNPLUGGED: return (curTime-mOnBatteryTimeBase.getRealtimeStart());
11142 return mOnBatteryTimeBase.computeUptime(curTime, which);
11147 return mOnBatteryTimeBase.computeRealtime(curTime, which);
11281 return mOnBatteryTimeBase.getUptime(mClocks.uptimeMillis() * 1000);
11286 return mOnBatteryTimeBase.getUptime(curTime);
11291 return mOnBatteryTimeBase.getRealtime(curTime);
11763 mOnBatteryTimeBase.readSummaryFromParcel(in);
12043 mOnBatteryTimeBase);
12056 in, mOnBatteryTimeBase);
12061 u.mMobileRadioApWakeupCount = new LongSamplingCounter(mOnBatteryTimeBase);
12068 u.mWifiRadioApWakeupCount = new LongSamplingCounter(mOnBatteryTimeBase);
12189 mOnBatteryTimeBase.writeSummaryToParcel(out, NOW_SYS, NOWREAL_SYS);
12622 mOnBatteryTimeBase.getUptime(NOW_SYS));
12657 mOnBatteryTimeBase.readFromParcel(in);
12661 mScreenOnTimer = new StopwatchTimer(mClocks, null, -1, null, mOnBatteryTimeBase, in);
12662 mScreenDozeTimer = new StopwatchTimer(mClocks, null, -1, null, mOnBatteryTimeBase, in);
12665 mOnBatteryTimeBase, in);
12668 mInteractiveTimer = new StopwatchTimer(mClocks, null, -10, null, mOnBatteryTimeBase, in);
12671 mOnBatteryTimeBase, in);
12675 mOnBatteryTimeBase, in);
12677 mOnBatteryTimeBase, in);
12679 mOnBatteryTimeBase, in);
12680 mDeviceIdlingTimer = new StopwatchTimer(mClocks, null, -12, null, mOnBatteryTimeBase, in);
12681 mPhoneOnTimer = new StopwatchTimer(mClocks, null, -3, null, mOnBatteryTimeBase, in);
12684 null, mOnBatteryTimeBase, in);
12687 mOnBatteryTimeBase, in);
12690 null, mOnBatteryTimeBase, in);
12693 mNetworkByteActivityCounters[i] = new LongSamplingCounter(mOnBatteryTimeBase, in);
12694 mNetworkPacketActivityCounters[i] = new LongSamplingCounter(mOnBatteryTimeBase, in);
12698 mOnBatteryTimeBase, in);
12700 mOnBatteryTimeBase, in);
12701 mMobileRadioActiveAdjustedTime = new LongSamplingCounter(mOnBatteryTimeBase, in);
12702 mMobileRadioActiveUnknownTime = new LongSamplingCounter(mOnBatteryTimeBase, in);
12703 mMobileRadioActiveUnknownCount = new LongSamplingCounter(mOnBatteryTimeBase, in);
12706 mWifiOnTimer = new StopwatchTimer(mClocks, null, -4, null, mOnBatteryTimeBase, in);
12709 mOnBatteryTimeBase, in);
12712 null, mOnBatteryTimeBase, in);
12716 null, mOnBatteryTimeBase, in);
12720 null, mOnBatteryTimeBase, in);
12723 mWifiActivity = new ControllerActivityCounterImpl(mOnBatteryTimeBase,
12725 mBluetoothActivity = new ControllerActivityCounterImpl(mOnBatteryTimeBase,
12727 mModemActivity = new ControllerActivityCounterImpl(mOnBatteryTimeBase,
12737 mAudioOnTimer = new StopwatchTimer(mClocks, null, -7, null, mOnBatteryTimeBase);
12739 mVideoOnTimer = new StopwatchTimer(mClocks, null, -8, null, mOnBatteryTimeBase);
12741 mFlashlightOnTimer = new StopwatchTimer(mClocks, null, -9, null, mOnBatteryTimeBase, in);
12743 mCameraOnTimer = new StopwatchTimer(mClocks, null, -13, null, mOnBatteryTimeBase, in);
12745 mBluetoothScanTimer = new StopwatchTimer(mClocks, null, -14, null, mOnBatteryTimeBase, in);
12760 mDischargeCounter = new LongSamplingCounter(mOnBatteryTimeBase, in);
12762 mDischargeScreenDozeCounter = new LongSamplingCounter(mOnBatteryTimeBase, in);
12770 SamplingTimer rpmt = new SamplingTimer(mClocks, mOnBatteryTimeBase, in);
12799 SamplingTimer timer = new SamplingTimer(mClocks, mOnBatteryTimeBase, in);
12809 SamplingTimer kmt = new SamplingTimer(mClocks, mOnBatteryTimeBase, in);
12834 u.readFromParcelLocked(mOnBatteryTimeBase, mOnBatteryScreenOffTimeBase, in);
12858 final long batteryRealtime = mOnBatteryTimeBase.getRealtime(uSecRealtime);
12877 mOnBatteryTimeBase.writeToParcel(out, uSecUptime, uSecRealtime);
13054 pw.println("mOnBatteryTimeBase:");
13055 mOnBatteryTimeBase.dump(pw, " ");