Searched refs:setPowerSaveModeEnabled (Results 1 – 11 of 11) sorted by relevance
63 when(mMockPowerManager.setPowerSaveModeEnabled(anyBoolean())).thenReturn(true); in setUp()74 verify(mMockPowerManager, times(0)).setPowerSaveModeEnabled(anyBoolean()); in testSetPowerSaveMode_enable_firstCall_needWarning()91 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_secondCall_needWarning()105 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_thridCall_needWarning()119 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(true)); in testSetPowerSaveMode_enable_firstCall_noWarning()134 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(false)); in testSetPowerSaveMode_disable_firstCall_noWarning()150 verify(mMockPowerManager, times(1)).setPowerSaveModeEnabled(eq(false)); in testSetPowerSaveMode_disable_firstCall_needWarning()
74 mInterface.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); in runSetMode()
4996 public boolean setPowerSaveModeEnabled(boolean enabled) {
62 boolean setPowerSaveModeEnabled(boolean mode); in setPowerSaveModeEnabled() method
1573 public boolean setPowerSaveModeEnabled(boolean mode) { in setPowerSaveModeEnabled() method in PowerManager1575 return mService.setPowerSaveModeEnabled(mode); in setPowerSaveModeEnabled()
44 public boolean setPowerSaveModeEnabled(boolean mode) throws RemoteException { in setPowerSaveModeEnabled() method in BridgePowerManager
132 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
2788 ….DEVICE_POWER", "android.permission.POWER_SAVER"}) public boolean setPowerSaveModeEnabled(boolean);
8359 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
7279 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
28439 PLcom/android/server/power/PowerManagerService$BinderService;->setPowerSaveModeEnabled(Z)Z