Home
last modified time | relevance | path

Searched refs:getCountLocked (Results 1 – 15 of 15) 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.java43 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
48 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
53 assertEquals(1, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testSettingStalePreservesData()
69 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
76 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
85 assertEquals(10, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
92 assertEquals(15, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
97 assertEquals(15, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testEndSampleAndContinueWhenTimeOrCountDecreases()
112 assertEquals(0, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); in testFirstUpdateIsAbsorbed()
121 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.java69 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
72 assertEquals(0, bgCntr.getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
79 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
82 .getCountLocked(STATS_SINCE_CHARGED)); in testNoteBluetoothScanResultLocked()
390 assertEquals(1, pkg.getWakeupAlarmStats().get("tag").getCountLocked(STATS_SINCE_CHARGED)); in testNoteWakupAlarmLocked()
DBatteryStatsTimerTest.java285 Assert.assertEquals(10000, timer.getCountLocked(BatteryStats.STATS_SINCE_CHARGED)); 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.java1048 return mDischargeCounter.getCountLocked(which); in getUahDischarge()
1053 return mDischargeScreenOffCounter.getCountLocked(which); in getUahDischargeScreenOff()
1058 return mDischargeScreenDozeCounter.getCountLocked(which); in getUahDischargeScreenDoze()
1063 return mDischargeLightDozeCounter.getCountLocked(which); in getUahDischargeLightDoze()
1068 return mDischargeDeepDozeCounter.getCountLocked(which); in getUahDischargeDeepDoze()
1392 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Counter
1596 public long getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.LongSamplingCounter
1766 public int getCountLocked(int which) { in getCountLocked() method in BatteryStatsImpl.Timer
6131 return mScreenOnTimer.getCountLocked(which); in getScreenOnCount()
6139 return mScreenDozeTimer.getCountLocked(which); in getScreenDozeCount()
[all …]
/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/android/os/
DBatteryStats.java425 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Counter
444 public abstract long getCountLocked(int which); in getCountLocked() method in BatteryStats.LongCounter
538 public abstract int getCountLocked(int which); in getCountLocked() method in BatteryStats.Timer
3230 int count = timer.getCountLocked(which); in printWakeLock()
3287 final int count = timer.getCountLocked(which); in printTimer()
3340 count = timer.getCountLocked(which); in printWakeLockCheckin()
3410 final int count = timer.getCountLocked(which); in dumpTimer()
3433 final int count = timer.getCountLocked(which); in dumpTimer()
3464 if (counter.getIdleTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
3465 || counter.getRxTimeCounter().getCountLocked(which) != 0 in controllerActivityHasData()
[all …]
/frameworks/base/config/
Dboot-image-profile.txt20521 HPLcom/android/internal/os/BatteryStatsImpl$Counter;->getCountLocked(I)I
20557 HSPLcom/android/internal/os/BatteryStatsImpl$LongSamplingCounter;->getCountLocked(I)J
20629 HPLcom/android/internal/os/BatteryStatsImpl$Timer;->getCountLocked(I)I
Dhiddenapi-greylist-max-o.txt48835 Landroid/os/BatteryStats$LongCounter;->getCountLocked(I)J
87911 Lcom/android/internal/os/BatteryStatsImpl$Counter;->getCountLocked(I)I
87976 Lcom/android/internal/os/BatteryStatsImpl$LongSamplingCounter;->getCountLocked(I)J