Searched refs:setPowerSaveModeEnabled (Results 1 – 9 of 9) sorted by relevance
72 when(mMockPowerManager.setPowerSaveModeEnabled(anyBoolean())).thenReturn(true); in setUp()86 verify(mMockPowerManager, times(0)).setPowerSaveModeEnabled(anyBoolean()); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning()110 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent()133 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithWarning_thirdCall_expectUpdateIntent()156 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithWarning_5thCall_needAutoSuggestionWarning()179 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enableWithoutWarning_expectUpdateIntent()285 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(false)); in verifyDisablePowerSaveMode()
62 boolean setPowerSaveModeEnabled(boolean mode); in setPowerSaveModeEnabled() method
1953 public boolean setPowerSaveModeEnabled(boolean mode) { in setPowerSaveModeEnabled() method in PowerManager1955 return mService.setPowerSaveModeEnabled(mode); in setPowerSaveModeEnabled()
91 mService.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); in runSetMode()
6159 public boolean setPowerSaveModeEnabled(boolean enabled) {
59 public boolean setPowerSaveModeEnabled(boolean mode) throws RemoteException { in setPowerSaveModeEnabled() method in BridgePowerManager
139 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
2580 mService.getBinderServiceInstance().setPowerSaveModeEnabled(true); in testGetFullPowerSavePolicy_returnsStateMachineResult()2593 assertFalse(mService.getBinderServiceInstance().setPowerSaveModeEnabled(true)); in testGetFullPowerSavePolicy_whenNoBatterySaverSupported()2608 mService.getBinderServiceInstance().setPowerSaveModeEnabled(true); in testSetFullPowerSavePolicy_callsStateMachine()
11017 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);