Searched refs:mBatteryStatsImpl (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsResetTest.java | 54 private MockBatteryStatsImpl mBatteryStatsImpl; field in BatteryStatsResetTest 97 mBatteryStatsImpl = new MockBatteryStatsImpl(mConfig, mMockClock, in setUp() 99 mBatteryStatsImpl.onSystemReady(mock(Context.class)); in setUp() 126 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_highBatteryLevel() 131 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_highBatteryLevel() 136 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_highBatteryLevel() 147 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_highBatteryLevel() 163 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_significantCharge() 169 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_significantCharge() 179 assertThat(mBatteryStatsImpl.getStatsStartRealtime()).isEqualTo(expectedResetTimeUs); in testResetOnUnplug_significantCharge() [all …]
|
D | BatteryStatsImplTest.java | 115 private MockBatteryStatsImpl mBatteryStatsImpl; field in BatteryStatsImplTest 134 mBatteryStatsImpl = new MockBatteryStatsImpl(mMockClock, null, mHandler) in setUp() 155 mPowerProfile, mBatteryStatsImpl.getCpuScalingPolicies(), mPowerStatsStore, in setUp() 161 mBatteryStatsImpl.setOnBatteryInternal(true); in testUpdateProcStateCpuTimes() 162 mBatteryStatsImpl.updateTimeBasesLocked(true, Display.STATE_ON, 0, 0); in testUpdateProcStateCpuTimes() 183 mBatteryStatsImpl.noteUidProcessStateLocked(testUids[i], activityManagerProcStates[i]); in testUpdateProcStateCpuTimes() 190 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() 210 mBatteryStatsImpl.updateProcStateCpuTimesLocked(testUids[i], in testUpdateProcStateCpuTimes() 215 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() 244 mBatteryStatsImpl.updateProcStateCpuTimesLocked(testUids[i], in testUpdateProcStateCpuTimes() [all …]
|
D | BatteryStatsCpuTimesTest.java | 111 private MockBatteryStatsImpl mBatteryStatsImpl; field in BatteryStatsCpuTimesTest 121 mBatteryStatsImpl = new MockBatteryStatsImpl(MockBatteryStatsImpl.DEFAULT_CONFIG, in setUp() 135 mBatteryStatsImpl.setOnBatteryInternal(false); in testUpdateCpuTimeLocked() 140 synchronized (mBatteryStatsImpl) { in testUpdateCpuTimeLocked() 141 mBatteryStatsImpl.updateCpuTimeLocked(false, false, null); in testUpdateCpuTimeLocked() 158 mBatteryStatsImpl.setOnBatteryInternal(true); in testUpdateCpuTimeLocked() 161 synchronized (mBatteryStatsImpl) { in testUpdateCpuTimeLocked() 162 mBatteryStatsImpl.updateCpuTimeLocked(true, false, null); in testUpdateCpuTimeLocked() 190 mBatteryStatsImpl.setPartialTimers(partialTimers); in testMarkPartialTimersAsEligible() 191 mBatteryStatsImpl.setLastPartialTimers(lastPartialTimers); in testMarkPartialTimersAsEligible() [all …]
|