Searched refs:setPowerSaveModeEnabled (Results 1 – 10 of 10) 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()
71 mInterface.setPowerSaveModeEnabled(mode == LOW_POWER_MODE_ON); in runSetMode()
4527 public boolean setPowerSaveModeEnabled(boolean enabled) { in setPowerSaveModeEnabled() method in PowerManagerService.BinderService
56 boolean setPowerSaveModeEnabled(boolean mode); in setPowerSaveModeEnabled() method
1426 public boolean setPowerSaveModeEnabled(boolean mode) { in setPowerSaveModeEnabled() method in PowerManager1428 return mService.setPowerSaveModeEnabled(mode); in setPowerSaveModeEnabled()
44 public boolean setPowerSaveModeEnabled(boolean mode) throws RemoteException { in setPowerSaveModeEnabled() method in BridgePowerManager
131 if (context.getSystemService(PowerManager.class).setPowerSaveModeEnabled(enable)) { in setPowerSaveMode()
2183 ….DEVICE_POWER", "android.permission.POWER_SAVER"}) public boolean setPowerSaveModeEnabled(boolean);
6112 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);
6018 …E_POWER, android.Manifest.permission.POWER_SAVER}) public boolean setPowerSaveModeEnabled(boolean);