Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A 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 …]
H A 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()
114 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
123 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
129 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
[all …]
H A 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 …]
H A 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()
H A 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()
356 assertEquals(2, timer1.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testPooledBackgroundUsage()
358 assertEquals(1, bgTimer1.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testPooledBackgroundUsage()
373 assertEquals(2, timer2.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testPooledBackgroundUsage()
[all …]
H A 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()
H A DBatteryStatsNoteTest.java81 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
84 assertEquals(0, bgCntr.getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
91 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
94 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
883 assertEquals(1, pkg.getWakeupAlarmStats().get("tag").getCountLocked(STATS_SINCE_CHARGED)); in testNoteWakupAlarmLocked()
H A DBatteryStatsTimerTest.java286 Assert.assertEquals(10000, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testGetCountLocked()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DHealthStatsBatteryStatsWriter.java167 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()
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()
205 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
209 sum += counter.getCountLocked(STATS_SINCE_CHARGED); in writeUid()
214 controller.getPowerCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
437 entry.getKey(), counter.getCountLocked(STATS_SINCE_CHARGED)); in writePkg()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A 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()
H A 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()
261 final long idleTimeMs = counter.getIdleTimeCounter().getCountLocked(statsType); in calculateRemaining()
262 final long txTimeMs = counter.getTxTimeCounters()[0].getCountLocked(statsType); in calculateRemaining()
263 final long rxTimeMs = counter.getRxTimeCounter().getCountLocked(statsType); in calculateRemaining()
268 totalPowerMah = counter.getPowerCounter().getCountLocked(statsType) in calculateRemaining()
H A DBatteryStatsImpl.java1228 return mDischargeCounter.getCountLocked(which); in getUahDischarge()
1594 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Counter
1798 public long getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.LongSamplingCounter
1978 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Timer
6960 return mScreenOnTimer.getCountLocked(which); in getScreenOnCount()
6968 return mScreenDozeTimer.getCountLocked(which); in getScreenDozeCount()
7106 return mPhoneOnTimer.getCountLocked(which); in getPhoneOnCount()
7276 return mFlashlightOnTimer.getCountLocked(which); in getFlashlightOnCount()
8531 return mWifiScanTimer.getCountLocked(which); in getWifiScanCount()
8811 return mUserCpuTime.getCountLocked(which); in getUserCpuTimeUs()
[all …]
/aosp12/frameworks/base/core/java/android/os/
H A 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
3423 int count = timer.getCountLocked(which); in printWakeLock()
3480 final int count = timer.getCountLocked(which); in printTimer()
3533 count = timer.getCountLocked(which); in printWakeLockCheckin()
3603 final int count = timer.getCountLocked(which); in dumpTimer()
3626 final int count = timer.getCountLocked(which); in dumpTimer()
3665 if (c.getCountLocked(which) != 0) { in controllerActivityHasData()
3700 pw.print(c.getCountLocked(which)); in dumpControllerActivityLine()
[all …]
/aosp12/frameworks/base/boot/hiddenapi/
H A 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