Lines Matching refs:which

531         public long computeUptime(long curTime, int which) {
532 switch (which) {
543 public long computeRealtime(long curTime, int which) {
544 switch (which) {
705 public int getCountLocked(int which) {
707 if (which == STATS_SINCE_UNPLUGGED) {
709 } else if (which != STATS_SINCE_CHARGED) {
809 public long getCountLocked(int which) {
811 if (which == STATS_SINCE_UNPLUGGED) {
813 } else if (which != STATS_SINCE_CHARGED) {
1005 public long getTotalTimeLocked(long elapsedRealtimeUs, int which) {
1007 if (which == STATS_SINCE_UNPLUGGED) {
1009 } else if (which != STATS_SINCE_CHARGED) {
1017 public int getCountLocked(int which) {
1019 if (which == STATS_SINCE_UNPLUGGED) {
1021 } else if (which != STATS_SINCE_CHARGED) {
1224 * The last time at which we updated the timer. This is in elapsed realtime microseconds.
1359 * The last time at which we updated the timer. If mNesting is > 0,
1366 * The total time at which the timer was acquired, to determine if it
3942 @Override public long getScreenOnTime(long elapsedRealtimeUs, int which) {
3943 return mScreenOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
3946 @Override public int getScreenOnCount(int which) {
3947 return mScreenOnTimer.getCountLocked(which);
3951 long elapsedRealtimeUs, int which) {
3953 elapsedRealtimeUs, which);
3956 @Override public long getInteractiveTime(long elapsedRealtimeUs, int which) {
3957 return mInteractiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
3960 @Override public long getLowPowerModeEnabledTime(long elapsedRealtimeUs, int which) {
3961 return mLowPowerModeEnabledTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
3964 @Override public int getLowPowerModeEnabledCount(int which) {
3965 return mLowPowerModeEnabledTimer.getCountLocked(which);
3968 @Override public long getPhoneOnTime(long elapsedRealtimeUs, int which) {
3969 return mPhoneOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
3972 @Override public int getPhoneOnCount(int which) {
3973 return mPhoneOnTimer.getCountLocked(which);
3977 long elapsedRealtimeUs, int which) {
3979 elapsedRealtimeUs, which);
3983 long elapsedRealtimeUs, int which) {
3985 elapsedRealtimeUs, which);
3988 @Override public int getPhoneSignalStrengthCount(int strengthBin, int which) {
3989 return mPhoneSignalStrengthsTimer[strengthBin].getCountLocked(which);
3993 long elapsedRealtimeUs, int which) {
3995 elapsedRealtimeUs, which);
3998 @Override public int getPhoneDataConnectionCount(int dataType, int which) {
3999 return mPhoneDataConnectionsTimer[dataType].getCountLocked(which);
4002 @Override public long getMobileRadioActiveTime(long elapsedRealtimeUs, int which) {
4003 return mMobileRadioActiveTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4006 @Override public int getMobileRadioActiveCount(int which) {
4007 return mMobileRadioActiveTimer.getCountLocked(which);
4010 @Override public long getMobileRadioActiveAdjustedTime(int which) {
4011 return mMobileRadioActiveAdjustedTime.getCountLocked(which);
4014 @Override public long getMobileRadioActiveUnknownTime(int which) {
4015 return mMobileRadioActiveUnknownTime.getCountLocked(which);
4018 @Override public int getMobileRadioActiveUnknownCount(int which) {
4019 return (int)mMobileRadioActiveUnknownCount.getCountLocked(which);
4022 @Override public long getWifiOnTime(long elapsedRealtimeUs, int which) {
4023 return mWifiOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4026 @Override public long getGlobalWifiRunningTime(long elapsedRealtimeUs, int which) {
4027 return mGlobalWifiRunningTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4031 long elapsedRealtimeUs, int which) {
4033 elapsedRealtimeUs, which);
4036 @Override public int getWifiStateCount(int wifiState, int which) {
4037 return mWifiStateTimer[wifiState].getCountLocked(which);
4041 long elapsedRealtimeUs, int which) {
4043 elapsedRealtimeUs, which);
4046 @Override public int getWifiSupplStateCount(int state, int which) {
4047 return mWifiSupplStateTimer[state].getCountLocked(which);
4051 long elapsedRealtimeUs, int which) {
4053 elapsedRealtimeUs, which);
4056 @Override public int getWifiSignalStrengthCount(int strengthBin, int which) {
4057 return mWifiSignalStrengthsTimer[strengthBin].getCountLocked(which);
4060 @Override public long getBluetoothOnTime(long elapsedRealtimeUs, int which) {
4061 return mBluetoothOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4065 long elapsedRealtimeUs, int which) {
4067 elapsedRealtimeUs, which);
4070 @Override public int getBluetoothStateCount(int bluetoothState, int which) {
4071 return mBluetoothStateTimer[bluetoothState].getCountLocked(which);
4074 @Override public long getFlashlightOnTime(long elapsedRealtimeUs, int which) {
4075 return mFlashlightOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4078 @Override public long getFlashlightOnCount(int which) {
4079 return mFlashlightOnTimer.getCountLocked(which);
4083 public long getNetworkActivityBytes(int type, int which) {
4085 return mNetworkByteActivityCounters[type].getCountLocked(which);
4092 public long getNetworkActivityPackets(int type, int which) {
4094 return mNetworkPacketActivityCounters[type].getCountLocked(which);
4484 public long getWifiRunningTime(long elapsedRealtimeUs, int which) {
4488 return mWifiRunningTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4492 public long getFullWifiLockTime(long elapsedRealtimeUs, int which) {
4496 return mFullWifiLockTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4500 public long getWifiScanTime(long elapsedRealtimeUs, int which) {
4504 return mWifiScanTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4508 public long getWifiBatchedScanTime(int csphBin, long elapsedRealtimeUs, int which) {
4513 return mWifiBatchedScanTimer[csphBin].getTotalTimeLocked(elapsedRealtimeUs, which);
4517 public long getWifiMulticastTime(long elapsedRealtimeUs, int which) {
4521 return mWifiMulticastTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4525 public long getAudioTurnedOnTime(long elapsedRealtimeUs, int which) {
4529 return mAudioTurnedOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4533 public long getVideoTurnedOnTime(long elapsedRealtimeUs, int which) {
4537 return mVideoTurnedOnTimer.getTotalTimeLocked(elapsedRealtimeUs, which);
4558 public long getProcessStateTime(int state, long elapsedRealtimeUs, int which) {
4563 return mProcessStateTimer[state].getTotalTimeLocked(elapsedRealtimeUs, which);
4590 public int getUserActivityCount(int type, int which) {
4594 return mUserActivityCounters[type].getCountLocked(which);
4649 public long getNetworkActivityBytes(int type, int which) {
4652 return mNetworkByteActivityCounters[type].getCountLocked(which);
4659 public long getNetworkActivityPackets(int type, int which) {
4662 return mNetworkPacketActivityCounters[type].getCountLocked(which);
4669 public long getMobileRadioActiveTime(int which) {
4671 ? mMobileRadioActiveTime.getCountLocked(which) : 0;
4675 public int getMobileRadioActiveCount(int which) {
4677 ? (int)mMobileRadioActiveCount.getCountLocked(which) : 0;
5644 public long getUserTime(int which) {
5646 if (which == STATS_CURRENT) {
5648 } else if (which == STATS_SINCE_UNPLUGGED) {
5655 public long getSystemTime(int which) {
5657 if (which == STATS_CURRENT) {
5659 } else if (which == STATS_SINCE_UNPLUGGED) {
5666 public long getForegroundTime(int which) {
5668 if (which == STATS_CURRENT) {
5670 } else if (which == STATS_SINCE_UNPLUGGED) {
5677 public int getStarts(int which) {
5679 if (which == STATS_CURRENT) {
5681 } else if (which == STATS_SINCE_UNPLUGGED) {
5702 public long getTimeAtCpuSpeedStep(int speedStep, int which) {
5705 return c != null ? c.getCountLocked(which) : 0;
5797 public int getWakeups(int which) {
5799 if (which == STATS_CURRENT) {
5801 } else if (which == STATS_SINCE_UNPLUGGED) {
6013 public int getLaunches(int which) {
6015 if (which == STATS_CURRENT) {
6017 } else if (which == STATS_SINCE_UNPLUGGED) {
6024 public long getStartTime(long now, int which) {
6026 if (which == STATS_CURRENT) {
6028 } else if (which == STATS_SINCE_UNPLUGGED) {
6035 public int getStarts(int which) {
6037 if (which == STATS_CURRENT) {
6039 } else if (which == STATS_SINCE_UNPLUGGED) {
7046 private void updateNetworkActivityLocked(int which, long elapsedRealtimeMs) {
7049 if ((which&NET_UPDATE_MOBILE) != 0 && mMobileIfaces.length > 0) {
7113 if ((which&NET_UPDATE_WIFI) != 0 && mWifiIfaces.length > 0) {
7173 public long computeUptime(long curTime, int which) {
7174 switch (which) {
7183 public long computeRealtime(long curTime, int which) {
7184 switch (which) {
7193 public long computeBatteryUptime(long curTime, int which) {
7194 return mOnBatteryTimeBase.computeUptime(curTime, which);
7198 public long computeBatteryRealtime(long curTime, int which) {
7199 return mOnBatteryTimeBase.computeRealtime(curTime, which);
7203 public long computeBatteryScreenOffUptime(long curTime, int which) {
7204 return mOnBatteryScreenOffTimeBase.computeUptime(curTime, which);
7208 public long computeBatteryScreenOffRealtime(long curTime, int which) {
7209 return mOnBatteryScreenOffTimeBase.computeRealtime(curTime, which);
7382 public int getDischargeAmount(int which) {
7383 int dischargeAmount = which == STATS_SINCE_CHARGED
7494 public void distributeWorkLocked(int which) {
7498 long uSecTime = computeBatteryRealtime(SystemClock.elapsedRealtime() * 1000, which);
7501 long totalRunningTime = getGlobalWifiRunningTime(uSecTime, which);
7505 long uidRunningTime = uid.getWifiRunningTime(uSecTime, which);
7508 long time = proc.getUserTime(which);
7512 time = proc.getSystemTime(which);
7516 time = proc.getForegroundTime(which);
7523 time = sc.getCountLocked(which);