Home
last modified time | relevance | path

Searched refs:getCountLocked (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCounterTest.java44 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
45 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
46 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
54 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
55 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
56 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
63 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
64 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_CURRENT)); in testCounter()
65 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_UNPLUGGED)); in testCounter()
71 assertEquals(6, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
[all …]
DBatteryStatsStopwatchTimerTest.java45 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
47 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
49 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
51 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
56 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
64 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
67 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
73 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
76 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
87 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
[all …]
DBatteryStatsSamplingTimerTest.java41 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 …]
DBatteryStatsSensorTest.java60 assertEquals(2, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
64 assertEquals(1, sensorBgTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
90 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
102 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
125 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
137 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
171 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
181 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
208 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
221 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
[all …]
DBatteryStatsNoteTest.java46 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
51 assertEquals(0, bgCntr.getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
58 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
61 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
DBatteryStatsBackgroundStatsTest.java249 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testAppBluetoothScan()
250 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testAppBluetoothScan()
309 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
310 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
370 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
371 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
DBatteryStatsTimerTest.java414 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/
DBluetoothPowerCalculator.java45 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()
DWifiPowerCalculator.java48 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()
DBatteryStatsImpl.java904 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Counter
1167 public long getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.LongSamplingCounter
1388 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Timer
5268 return mScreenOnTimer.getCountLocked(which); in getScreenOnCount()
5286 return mPowerSaveModeEnabledTimer.getCountLocked(which); in getPowerSaveModeEnabledCount()
5303 return mDeviceIdleModeLightTimer.getCountLocked(which); in getDeviceIdleModeCount()
5305 return mDeviceIdleModeFullTimer.getCountLocked(which); in getDeviceIdleModeCount()
5333 return mDeviceLightIdlingTimer.getCountLocked(which); in getDeviceIdlingCount()
5335 return mDeviceIdlingTimer.getCountLocked(which); in getDeviceIdlingCount()
5355 return mPhoneOnTimer.getCountLocked(which); in getPhoneOnCount()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java164 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
167 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
171 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid()
176 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
183 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
186 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
190 sum += counter.getCountLocked(STATS_SINCE_UNPLUGGED); in writeUid()
195 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
202 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
205 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java307 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Counter
326 public abstract long getCountLocked(int which); in getCountLocked() method in BatteryStats.LongCounter
396 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Timer
2717 int count = timer.getCountLocked(which); in printWakeLock()
2774 final int count = timer.getCountLocked(which); in printTimer()
2827 count = timer.getCountLocked(which); in printWakeLockCheckin()
2897 final int count = timer.getCountLocked(which); in dumpTimer()
2912 if (counter.getIdleTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
2913 || counter.getRxTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
2914 || counter.getPowerCounter().getCountLocked(which) != 0) { in controllerActivityHasData()
[all …]