/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 65 when(mMockPowerManager.setPowerSaveMode(anyBoolean())).thenReturn(true); in setUp() 73 assertEquals(false, BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)); in testSetPowerSaveMode_enable_firstCall_needWarning() 76 verify(mMockPowerManager, times(0)).setPowerSaveMode(anyBoolean()); in testSetPowerSaveMode_enable_firstCall_needWarning() 90 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)); in testSetPowerSaveMode_enable_secondCall_needWarning() 93 verify(mMockPowerManager, times(1)).setPowerSaveMode(eq(true)); in testSetPowerSaveMode_enable_secondCall_needWarning() 104 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, true, true)); in testSetPowerSaveMode_enable_thridCall_needWarning() 107 verify(mMockPowerManager, times(1)).setPowerSaveMode(eq(true)); in testSetPowerSaveMode_enable_thridCall_needWarning() 118 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, true, false)); in testSetPowerSaveMode_enable_firstCall_noWarning() 121 verify(mMockPowerManager, times(1)).setPowerSaveMode(eq(true)); in testSetPowerSaveMode_enable_firstCall_noWarning() 133 assertEquals(true, BatterySaverUtils.setPowerSaveMode(mMockContext, false, false)); in testSetPowerSaveMode_disable_firstCall_noWarning() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 91 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode() method in BatterySaverUtils 105 if (context.getSystemService(PowerManager.class).setPowerSaveMode(enable)) { in setPowerSaveMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryController.java | 36 void setPowerSaveMode(boolean powerSave); in setPowerSaveMode() method
|
D | BatteryControllerImpl.java | 96 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in BatteryControllerImpl 97 BatterySaverUtils.setPowerSaveMode(mContext, powerSave, /*needFirstTimeWarning*/ true); in setPowerSaveMode()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakeBatteryController.java | 43 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in FakeBatteryController
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerShellCommand.java | 64 mInterface.setPowerSaveMode(mode == LOW_POWER_MODE_ON); in runSetMode()
|
D | PowerManagerService.java | 4357 public boolean setPowerSaveMode(boolean enabled) { in setPowerSaveMode() method in PowerManagerService.BinderService
|
/frameworks/base/core/java/android/os/ |
D | IPowerManager.aidl | 50 boolean setPowerSaveMode(boolean mode); in setPowerSaveMode() method
|
D | PowerManager.java | 1145 public boolean setPowerSaveMode(boolean mode) { in setPowerSaveMode() method in PowerManager 1147 return mService.setPowerSaveMode(mode); in setPowerSaveMode()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePowerManager.java | 43 public boolean setPowerSaveMode(boolean mode) throws RemoteException { in setPowerSaveMode() method in BridgePowerManager
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTile.java | 73 mBatteryController.setPowerSaveMode(!mPowerSave); in handleClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
D | CarBatteryController.java | 97 public void setPowerSaveMode(boolean powerSave) { in setPowerSaveMode() method in CarBatteryController
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerNotificationWarnings.java | 613 BatterySaverUtils.setPowerSaveMode(mContext, mode, needFirstTimeWarning); in setSaverMode()
|
/frameworks/base/config/ |
D | hiddenapi-light-greylist.txt | 4150 Landroid/os/PowerManager;->setPowerSaveMode(Z)Z
|
D | boot-image-profile.txt | 27803 HSPLandroid/os/IPowerManager;->setPowerSaveMode(Z)Z
|