OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getCountLocked
(Results
1 - 22
of
22
) sorted by null
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
BatteryStatsCounterTest.java
44
assertEquals(0, counter.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
45
assertEquals(0, counter.
getCountLocked
(BatteryStats.STATS_CURRENT));
46
assertEquals(0, counter.
getCountLocked
(BatteryStats.STATS_SINCE_UNPLUGGED));
54
assertEquals(4, counter.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
55
assertEquals(4, counter.
getCountLocked
(BatteryStats.STATS_CURRENT));
56
assertEquals(4, counter.
getCountLocked
(BatteryStats.STATS_SINCE_UNPLUGGED));
63
assertEquals(4, counter.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
64
assertEquals(4, counter.
getCountLocked
(BatteryStats.STATS_CURRENT));
65
assertEquals(4, counter.
getCountLocked
(BatteryStats.STATS_SINCE_UNPLUGGED));
71
assertEquals(6, counter.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED))
[
all
...]
BatteryStatsStopwatchTimerTest.java
45
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
47
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
49
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
51
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
56
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
64
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
67
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
73
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
76
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
87
assertEquals(expectedCount, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED))
[
all
...]
BatteryStatsSamplingTimerTest.java
41
assertEquals(1, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
46
assertEquals(1, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
51
assertEquals(1, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
67
assertEquals(0, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
74
assertEquals(0, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
83
assertEquals(10, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
90
assertEquals(15, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
95
assertEquals(15, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
110
assertEquals(0, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
119
assertEquals(0, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED))
[
all
...]
LongSamplingCounterTest.java
115
assertEquals(0, mCounter.
getCountLocked
(0));
118
assertEquals(111, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
121
assertEquals(333, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
126
assertEquals(333, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
130
assertEquals(777, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
133
assertEquals(777, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
140
assertEquals(0, mCounter.
getCountLocked
(0));
143
assertEquals(111, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
146
assertEquals(333, mCounter.
getCountLocked
(STATS_SINCE_CHARGED));
151
assertEquals(333, mCounter.
getCountLocked
(STATS_SINCE_CHARGED))
[
all
...]
BatteryStatsSensorTest.java
61
assertEquals(2, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
65
assertEquals(1, sensorBgTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
91
assertEquals(0, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
103
assertEquals(0, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
126
assertEquals(1, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
138
assertEquals(1, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
172
assertEquals(1, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
182
assertEquals(1, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
209
assertEquals(0, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
222
assertEquals(0, sensorTimer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED))
[
all
...]
BatteryStatsBackgroundStatsTest.java
260
int count = timer.
getCountLocked
(STATS_SINCE_CHARGED);
261
int bgCount = bgTimer.
getCountLocked
(STATS_SINCE_CHARGED);
320
int count = timer.
getCountLocked
(STATS_SINCE_CHARGED);
321
int bgCount = bgTimer.
getCountLocked
(STATS_SINCE_CHARGED);
381
int count = timer.
getCountLocked
(STATS_SINCE_CHARGED);
382
int bgCount = bgTimer.
getCountLocked
(STATS_SINCE_CHARGED);
BatteryStatsNoteTest.java
70
.
getCountLocked
(STATS_SINCE_CHARGED));
73
assertEquals(0, bgCntr.
getCountLocked
(STATS_SINCE_CHARGED));
80
.
getCountLocked
(STATS_SINCE_CHARGED));
83
.
getCountLocked
(STATS_SINCE_CHARGED));
391
assertEquals(1, pkg.getWakeupAlarmStats().get("tag").
getCountLocked
(STATS_CURRENT));
BatteryStatsTimerTest.java
390
* Tests
getCountLocked
412
// Timer.
getCountLocked
(STATS_SINCE_CHARGED)
414
Assert.assertEquals(10000, timer.
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED));
416
// Timer.
getCountLocked
(STATS_CURRENT)
418
Assert.assertEquals(9998, timer.
getCountLocked
(BatteryStats.STATS_CURRENT));
420
// Timer.
getCountLocked
(STATS_SINCE_UNPLUGGED)
422
Assert.assertEquals(9996, timer.
getCountLocked
(BatteryStats.STATS_SINCE_UNPLUGGED));
/frameworks/base/core/java/com/android/internal/os/
BluetoothPowerCalculator.java
45
final long idleTimeMs = counter.getIdleTimeCounter().
getCountLocked
(statsType);
46
final long rxTimeMs = counter.getRxTimeCounter().
getCountLocked
(statsType);
47
final long txTimeMs = counter.getTxTimeCounters()[0].
getCountLocked
(statsType);
49
double powerMah = counter.getPowerCounter().
getCountLocked
(statsType)
72
final long idleTimeMs = counter.getIdleTimeCounter().
getCountLocked
(statsType);
73
final long txTimeMs = counter.getTxTimeCounters()[0].
getCountLocked
(statsType);
74
final long rxTimeMs = counter.getRxTimeCounter().
getCountLocked
(statsType);
76
double powerMah = counter.getPowerCounter().
getCountLocked
(statsType)
WifiPowerCalculator.java
48
final long idleTime = counter.getIdleTimeCounter().
getCountLocked
(statsType);
49
final long txTime = counter.getTxTimeCounters()[0].
getCountLocked
(statsType);
50
final long rxTime = counter.getRxTimeCounter().
getCountLocked
(statsType);
79
final long idleTimeMs = counter.getIdleTimeCounter().
getCountLocked
(statsType);
80
final long txTimeMs = counter.getTxTimeCounters()[0].
getCountLocked
(statsType);
81
final long rxTimeMs = counter.getRxTimeCounter().
getCountLocked
(statsType);
86
double powerDrainMah = counter.getPowerCounter().
getCountLocked
(statsType)
BatteryStatsImpl.java
[
all
...]
/frameworks/base/services/core/java/com/android/server/am/
HealthStatsBatteryStatsWriter.java
164
controller.getIdleTimeCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
167
controller.getRxTimeCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
171
sum += counter.
getCountLocked
(STATS_SINCE_UNPLUGGED);
176
controller.getPowerCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
183
controller.getIdleTimeCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
186
controller.getRxTimeCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
190
sum += counter.
getCountLocked
(STATS_SINCE_UNPLUGGED);
195
controller.getPowerCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
202
controller.getIdleTimeCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED));
205
controller.getRxTimeCounter().
getCountLocked
(STATS_SINCE_UNPLUGGED))
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/checker/
WakeupAlarmAnomalyDetectorTest.java
204
doReturn(NORMAL_WAKEUP_COUNT).when(mCounter).
getCountLocked
(anyInt());
219
doReturn(NORMAL_WAKEUP_COUNT).when(mCounter).
getCountLocked
(anyInt());
220
doReturn(BLACKLISTED_WAKEUP_COUNT).when(mCounter2).
getCountLocked
(anyInt());
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/
WakeupAlarmAnomalyDetector.java
137
int count = alarm.getValue().
getCountLocked
(BatteryStats.STATS_SINCE_CHARGED);
/frameworks/base/core/java/android/os/
BatteryStats.java
393
public abstract int
getCountLocked
(int which);
412
public abstract long
getCountLocked
(int which);
494
public abstract int
getCountLocked
(int which);
[
all
...]
/external/robolectric/v3/runtime/
android-all-4.4_r1-robolectric-1.jar
android-all-5.0.0_r2-robolectric-1.jar
android-all-5.1.1_r9-robolectric-1.jar
/prebuilts/misc/common/robolectric/android-all/
android-all-4.4_r1-robolectric-1.jar
android-all-5.0.0_r2-robolectric-1.jar
android-all-5.1.1_r9-robolectric-1.jar
android-all-6.0.0_r1-robolectric-0.jar
Completed in 139 milliseconds