Home
last modified time | relevance | path

Searched refs:getCountLocked (Results 1 – 16 of 16) 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 …]
DLongSamplingCounterTest.java115 assertEquals(0, mCounter.getCountLocked(0)); in testAddCountLocked()
118 assertEquals(111, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
121 assertEquals(333, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
126 assertEquals(333, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
130 assertEquals(777, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
133 assertEquals(777, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testAddCountLocked()
140 assertEquals(0, mCounter.getCountLocked(0)); in testUpdate()
143 assertEquals(111, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testUpdate()
146 assertEquals(333, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testUpdate()
151 assertEquals(333, mCounter.getCountLocked(STATS_SINCE_CHARGED)); in testUpdate()
[all …]
DBatteryStatsSensorTest.java61 assertEquals(2, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
65 assertEquals(1, sensorBgTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSensorStartStop()
91 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
103 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOffBattery()
126 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
138 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testCountingWhileOnBattery()
172 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
182 assertEquals(1, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOnToOff()
209 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
222 assertEquals(0, sensorTimer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testBatteryStatusOffToOn()
[all …]
DBatteryStatsBackgroundStatsTest.java260 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
261 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in doTestAppBluetoothScanInternal()
320 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
321 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testJob()
381 int count = timer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
382 int bgCount = bgTimer.getCountLocked(STATS_SINCE_CHARGED); in testSyncs()
DBatteryStatsNoteTest.java70 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
73 assertEquals(0, bgCntr.getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
80 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
83 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
391 assertEquals(1, pkg.getWakeupAlarmStats().get("tag").getCountLocked(STATS_CURRENT)); in testNoteWakupAlarmLocked()
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.java1006 return mDischargeCounter.getCountLocked(which); in getUahDischarge()
1011 return mDischargeScreenOffCounter.getCountLocked(which); in getUahDischargeScreenOff()
1016 return mDischargeScreenDozeCounter.getCountLocked(which); in getUahDischargeScreenDoze()
1021 return mDischargeLightDozeCounter.getCountLocked(which); in getUahDischargeLightDoze()
1026 return mDischargeDeepDozeCounter.getCountLocked(which); in getUahDischargeDeepDoze()
1340 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Counter
1606 public long getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.LongSamplingCounter
1841 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Timer
6292 return mScreenOnTimer.getCountLocked(which); in getScreenOnCount()
6300 return mScreenDozeTimer.getCountLocked(which); in getScreenDozeCount()
[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.java393 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Counter
412 public abstract long getCountLocked(int which); in getCountLocked() method in BatteryStats.LongCounter
494 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Timer
3072 int count = timer.getCountLocked(which); in printWakeLock()
3129 final int count = timer.getCountLocked(which); in printTimer()
3182 count = timer.getCountLocked(which); in printWakeLockCheckin()
3251 final int count = timer.getCountLocked(which); in dumpTimer()
3274 final int count = timer.getCountLocked(which); in dumpTimer()
3305 if (counter.getIdleTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
3306 || counter.getRxTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
[all …]
/frameworks/base/config/
Dhiddenapi-vendor-list.txt322 Landroid/os/BatteryStats$Timer;->getCountLocked(I)I
Dhiddenapi-light-greylist.txt3843 Landroid/os/BatteryStats$Counter;->getCountLocked(I)I
7678 Lcom/android/internal/os/BatteryStatsImpl$Timer;->getCountLocked(I)I
Dboot-image-profile.txt8686 HPLcom/android/internal/os/BatteryStatsImpl$Counter;->getCountLocked(I)I
8704 HPLcom/android/internal/os/BatteryStatsImpl$LongSamplingCounter;->getCountLocked(I)J
8730 HPLcom/android/internal/os/BatteryStatsImpl$Timer;->getCountLocked(I)I
26999 HSPLandroid/os/BatteryStats$Counter;->getCountLocked(I)I
27014 HSPLandroid/os/BatteryStats$LongCounter;->getCountLocked(I)J
27019 HSPLandroid/os/BatteryStats$Timer;->getCountLocked(I)I