Searched refs:mBatterManager (Results 1 – 1 of 1) sorted by relevance
73 private BatteryManager mBatterManager; field in UnattendedRebootManagerTest93 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()