Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsStopwatchTimerTest.java47 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()
53 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
58 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
66 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
69 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
75 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
78 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
89 assertEquals(expectedCount, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCount()
[all …]
DBatteryStatsSamplingTimerTest.java44 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
49 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
54 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
71 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
78 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
87 assertEquals(10, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
94 assertEquals(15, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
99 assertEquals(15, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
114 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
123 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
[all …]
DBatteryStatsCounterTest.java46 assertEquals(0, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
54 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
61 assertEquals(4, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
67 assertEquals(6, counter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCounter()
82 assertEquals(3, origCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling()
94 assertEquals(4, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling()
99 assertEquals(4, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling()
104 assertEquals(6, summaryCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling()
116 assertEquals(7, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling()
121 assertEquals(7, fullParcelCounter.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testParceling()
[all …]
DLongSamplingCounterTest.java121 assertEquals(111, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
123 assertEquals(333, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
127 assertEquals(333, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
130 assertEquals(777, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
132 assertEquals(777, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
162 return mCounter.getCountLocked(STATS_SINCE_CHARGED); in getCount()
DBatteryStatsSensorTest.java63 assertEquals(2, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
67 assertEquals(1, sensorBgTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
93 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
105 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
128 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
140 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
174 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
184 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
211 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
224 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
[all …]
DBatteryStatsBackgroundStatsTest.java262 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
263 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
322 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
323 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
383 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
384 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
DBatteryStatsNoteTest.java71 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
74 assertEquals(0, bgCntr.getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
81 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
84 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
394 assertEquals(1, pkg.getWakeupAlarmStats().get("tag").getCountLocked(STATS_SINCE_CHARGED)); in testNoteWakupAlarmLocked()
DBatteryStatsTimerTest.java286 Assert.assertEquals(10000, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testGetCountLocked()
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java164 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
167 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
171 sum += counter.getCountLocked(STATS_SINCE_CHARGED); in writeUid()
176 controller.getPowerCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
183 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
186 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
190 sum += counter.getCountLocked(STATS_SINCE_CHARGED); in writeUid()
195 controller.getPowerCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
202 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
205 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DBluetoothPowerCalculator.java186 return counter.getIdleTimeCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED) in calculateDuration()
187 + counter.getRxTimeCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED) in calculateDuration()
188 + counter.getTxTimeCounters()[0].getCountLocked(BatteryStats.STATS_SINCE_CHARGED); in calculateDuration()
204 counter.getPowerCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED) in calculatePowerMah()
216 counter.getIdleTimeCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED); in calculatePowerMah()
218 counter.getRxTimeCounter().getCountLocked(BatteryStats.STATS_SINCE_CHARGED); in calculatePowerMah()
220 counter.getTxTimeCounters()[0].getCountLocked(BatteryStats.STATS_SINCE_CHARGED); in calculatePowerMah()
DWifiPowerCalculator.java203 final long idleTime = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateApp()
204 final long txTime = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateApp()
205 final long rxTime = counter.getRxTimeCounter().getCountLocked(statsType); in calculateApp()
258 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining()
259 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining()
260 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateRemaining()
265 totalPowerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateRemaining()
DBatteryStatsImpl.java1152 return mDischargeCounter.getCountLocked(which); in getUahDischarge()
1157 return mDischargeScreenOffCounter.getCountLocked(which); in getUahDischargeScreenOff()
1162 return mDischargeScreenDozeCounter.getCountLocked(which); in getUahDischargeScreenDoze()
1167 return mDischargeLightDozeCounter.getCountLocked(which); in getUahDischargeLightDoze()
1172 return mDischargeDeepDozeCounter.getCountLocked(which); in getUahDischargeDeepDoze()
1518 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Counter
1722 public long getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.LongSamplingCounter
1902 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Timer
6627 return mScreenOnTimer.getCountLocked(which); in getScreenOnCount()
6635 return mScreenDozeTimer.getCountLocked(which); in getScreenDozeCount()
[all …]
/frameworks/base/core/java/android/os/
DBatteryStats.java441 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Counter
460 public abstract long getCountLocked(int which); in getCountLocked() method in BatteryStats.LongCounter
553 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Timer
3391 int count = timer.getCountLocked(which); in printWakeLock()
3448 final int count = timer.getCountLocked(which); in printTimer()
3501 count = timer.getCountLocked(which); in printWakeLockCheckin()
3571 final int count = timer.getCountLocked(which); in dumpTimer()
3594 final int count = timer.getCountLocked(which); in dumpTimer()
3625 if (counter.getIdleTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
3626 || counter.getRxTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
[all …]
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt38319 Landroid/os/BatteryStats$LongCounter;->getCountLocked(I)J
76805 Lcom/android/internal/os/BatteryStatsImpl$Counter;->getCountLocked(I)I
76870 Lcom/android/internal/os/BatteryStatsImpl$LongSamplingCounter;->getCountLocked(I)J