Home
last modified time | relevance | path

Searched refs:MockBatteryStatsImpl (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMockBatteryStatsImpl.java51 public class MockBatteryStatsImpl extends BatteryStatsImpl { class
59 MockBatteryStatsImpl() { in MockBatteryStatsImpl() method in MockBatteryStatsImpl
63 MockBatteryStatsImpl(Clock clock) { in MockBatteryStatsImpl() method in MockBatteryStatsImpl
67 MockBatteryStatsImpl(Clock clock, File historyDirectory) { in MockBatteryStatsImpl() method in MockBatteryStatsImpl
71 MockBatteryStatsImpl(Clock clock, File historyDirectory, Handler handler) { in MockBatteryStatsImpl() method in MockBatteryStatsImpl
75 MockBatteryStatsImpl(BatteryStatsConfig config, Clock clock, File historyDirectory) { in MockBatteryStatsImpl() method in MockBatteryStatsImpl
80 MockBatteryStatsImpl(BatteryStatsConfig config, Clock clock, File historyDirectory, in MockBatteryStatsImpl() method in MockBatteryStatsImpl
145 public MockBatteryStatsImpl setNetworkStats(NetworkStats networkStats) { in setNetworkStats()
162 public MockBatteryStatsImpl setPowerProfile(PowerProfile powerProfile) { in setPowerProfile()
168 public MockBatteryStatsImpl setTestCpuScalingPolicies() { in setTestCpuScalingPolicies()
[all …]
DBatteryStatsServTest.java43 TestServ(MockBatteryStatsImpl bsi) { in TestServ()
104 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testConstructAndDetach()
118 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testParceling()
147 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testLaunchTimeToNow()
165 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testStartTimeToNow()
182 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl() { in testStartLaunchedLockedWhileLaunched()
211 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl() { in testStartLaunchedLockedWhileNotLaunched()
238 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl() { in testStopLaunchedLockedWhileNotLaunched()
268 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl() { in testStopLaunchedLockedWhileLaunchedNormal()
297 MockBatteryStatsImpl bsi = new MockBatteryStatsImpl(); in testStopLaunchedLockedWhileLaunchedTooQuick()
[all …]
DBatteryStatsSensorTest.java51 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testSensorStartStop()
88 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testCountingWhileOffBattery()
124 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testCountingWhileOnBattery()
159 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testBatteryStatusOnToOff()
205 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testBatteryStatusOffToOn()
256 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testPooledBackgroundUsage()
393 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testSensorReset()
437 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testSensorResetTimes()
DBatteryStatsNoteTest.java112 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(new MockClock()); in testNoteBluetoothScanResultLocked()
142 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteStartWakeLocked()
173 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(MockBatteryStatsImpl.DEFAULT_CONFIG, in testNoteStartWakeLocked_isolatedUid()
215 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(MockBatteryStatsImpl.DEFAULT_CONFIG, in testNoteStartWakeLocked_isolatedUidRace()
259 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(MockBatteryStatsImpl.DEFAULT_CONFIG, in testNoteLongPartialWakelockStart_isolatedUid()
314 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(MockBatteryStatsImpl.DEFAULT_CONFIG, in testNoteLongPartialWakelockStart_isolatedUidRace()
371 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteUidProcessStateLocked()
458 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testUpdateTimeBasesLocked()
482 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteScreenStateLocked()
529 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteScreenStateLocked_multiDisplay()
[all …]
DBatteryStatsBackgroundStatsTest.java54 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testBgTimeBase()
123 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testScreenOffBgTimeBase()
172 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testWifiScan()
227 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in doTestAppBluetoothScanInternal()
297 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testJob()
359 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testSyncs()
DBatteryStatsBinderCallStatsTest.java58 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testNoteBinderCallStats()
100 MockBatteryStatsImpl bi = new MockBatteryStatsImpl(clocks); in testProportionalSystemServiceUsage_noStatsForSomeMethods()
DBatteryUsageStatsTest.java267 final MockBatteryStatsImpl batteryStats = new MockBatteryStatsImpl(clocks); in buildBatteryUsageStats1()
311 final MockBatteryStatsImpl batteryStats = new MockBatteryStatsImpl(clocks); in buildBatteryUsageStats2()
347 MockBatteryStatsImpl batteryStats, int uid, String packageWithHighestDrain, in addUidBatteryConsumer()
DBatteryUsageStatsRule.java71 private MockBatteryStatsImpl mBatteryStats;
120 mBatteryStats = new MockBatteryStatsImpl(mBatteryStatsConfigBuilder.build(), in initBatteryStats()
368 public MockBatteryStatsImpl getBatteryStats() {
DBatteryStatsResetTest.java54 private MockBatteryStatsImpl mBatteryStatsImpl;
97 mBatteryStatsImpl = new MockBatteryStatsImpl(mConfig, mMockClock, in setUp()
DBatteryStatsHistoryIteratorTest.java55 private MockBatteryStatsImpl mBatteryStats;
63 mBatteryStats = new MockBatteryStatsImpl(mMockClock, historyDir); in setup()
323 private class MockExternalStatsSync extends MockBatteryStatsImpl.DummyExternalStatsSync {
DBluetoothPowerStatsCollectorTest.java67 private MockBatteryStatsImpl mBatteryStats;
165 mBatteryStats.setDummyExternalStatsSync(new MockBatteryStatsImpl.DummyExternalStatsSync(){ in triggering()
DSystemServicePowerCalculatorTest.java104 private MockBatteryStatsImpl mMockBatteryStats;
DBatteryStatsCpuTimesTest.java111 private MockBatteryStatsImpl mBatteryStatsImpl;
121 mBatteryStatsImpl = new MockBatteryStatsImpl(MockBatteryStatsImpl.DEFAULT_CONFIG, in setUp()
DWifiPowerStatsCollectorTest.java77 private MockBatteryStatsImpl mBatteryStats;
DBatteryStatsImplTest.java115 private MockBatteryStatsImpl mBatteryStatsImpl;
134 mBatteryStatsImpl = new MockBatteryStatsImpl(mMockClock, null, mHandler) in setUp()
DMobileRadioPowerStatsCollectorTest.java85 private MockBatteryStatsImpl mBatteryStats;