Home
last modified time | relevance | path

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

/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/
DUnattendedRebootManagerTest.java73 private BatteryManager mBatterManager; field in UnattendedRebootManagerTest
93 mBatterManager = mock(BatteryManager.class); in setUp()
107 return mBatterManager; in setUp()
150 when(mBatterManager.isCharging()).thenReturn(true); in setUp()
203 when(mBatterManager.isCharging()).thenReturn(false); in scheduleReboot_requiresCharging_notCharging()
219 when(mBatterManager.isCharging()).thenReturn(true); in scheduleReboot_requiresCharging_notCharging()
240 when(mBatterManager.isCharging()).thenReturn(false); in scheduleReboot_doesNotRequireCharging_notCharging()
267 when(mBatterManager.isCharging()).thenReturn(false); in scheduleReboot_requiresCharging_flagNotEnabled()