Searched refs:getCountLocked (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSamplingTimerTest.java | 41 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 46 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 51 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData() 67 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 74 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 83 assertEquals(10, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 90 assertEquals(15, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 95 assertEquals(15, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases() 110 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed() 119 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed() [all …]
|
D | BatteryStatsTimerTest.java | 414 Assert.assertEquals(10000, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testGetCountLocked() 418 Assert.assertEquals(9998, timer.getCountLocked(BatteryStats.STATS_CURRENT)); in testGetCountLocked() 422 Assert.assertEquals(9996, timer.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testGetCountLocked()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BluetoothPowerCalculator.java | 45 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp() 46 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp() 47 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp() 49 double powerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateApp() 72 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining() 73 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining() 74 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateRemaining() 76 double powerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateRemaining()
|
D | WifiPowerCalculator.java | 48 final long idleTime = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp() 49 final long txTime = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp() 50 final long rxTime = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp() 79 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining() 80 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining() 81 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateRemaining() 86 double powerDrainMah = counter.getPowerCounter().getCountLocked(statsType) in calculateRemaining()
|
D | BatteryStatsImpl.java | 881 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Counter 969 public long getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.LongSamplingCounter 1188 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Timer 4606 return mScreenOnTimer.getCountLocked(which); in getScreenOnCount() 4624 return mPowerSaveModeEnabledTimer.getCountLocked(which); in getPowerSaveModeEnabledCount() 4641 return mDeviceIdleModeLightTimer.getCountLocked(which); in getDeviceIdleModeCount() 4643 return mDeviceIdleModeFullTimer.getCountLocked(which); in getDeviceIdleModeCount() 4671 return mDeviceLightIdlingTimer.getCountLocked(which); in getDeviceIdlingCount() 4673 return mDeviceIdlingTimer.getCountLocked(which); in getDeviceIdlingCount() 4693 return mPhoneOnTimer.getCountLocked(which); in getPhoneOnCount() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 163 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 166 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 170 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid() 175 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 182 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 185 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 189 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid() 194 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 201 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 204 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() [all …]
|
/frameworks/base/core/java/android/os/ |
D | BatteryStats.java | 262 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Counter 281 public abstract long getCountLocked(int which); in getCountLocked() method in BatteryStats.LongCounter 333 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Timer 2527 int count = timer.getCountLocked(which); in printWakeLock() 2560 final int count = timer.getCountLocked(which); in printTimer() 2595 count = timer.getCountLocked(which); in printWakeLockCheckin() 2651 final int count = timer.getCountLocked(which); in dumpTimer() 2666 if (counter.getIdleTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData() 2667 || counter.getRxTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData() 2668 || counter.getPowerCounter().getCountLocked(which) != 0) { in controllerActivityHasData() [all …]
|