Home
last modified time | relevance | path

Searched refs:isPowerSaveMode (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DDarkUIPreferenceControllerTest.java54 doReturn(true).when(mController).isPowerSaveMode(); in batterySaverToggles_disabledStateUpdates()
58 doReturn(false).when(mController).isPowerSaveMode(); in batterySaverToggles_disabledStateUpdates()
62 doReturn(true).when(mController).isPowerSaveMode(); in batterySaverToggles_disabledStateUpdates()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverControllerTest.java77 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in getSummary_batterySaverOn_showSummaryOn()
84 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in getSummary_batterySaverOffButScheduled_showSummaryScheduled()
93 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in getSummary_batterySaverOff_showSummaryOff()
/packages/apps/Settings/src/com/android/settings/display/
DDarkUIPreferenceController.java110 boolean isBatterySaver = isPowerSaveMode(); in updateEnabledStateIfNeeded()
121 boolean isPowerSaveMode() { in isPowerSaveMode() method in DarkUIPreferenceController
122 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerTest.java77 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in updateState_lowPowerOn_preferenceIsChecked()
86 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in testUpdateState_lowPowerOff_preferenceIsUnchecked()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHeaderPreferenceController.java118 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in updateHeaderPreference()
131 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in quickUpdateHeaderPreference()
DBatterySaverController.java89 final boolean isPowerSaveOn = mPowerManager.isPowerSaveMode(); in getSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryHeaderPreferenceController.java124 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in updateHeaderPreference()
137 mBatteryMeterView.setPowerSave(mPowerManager.isPowerSaveMode()); in quickUpdateHeaderPreference()
DBatterySaverController.java89 final boolean isPowerSaveOn = mPowerManager.isPowerSaveMode(); in getSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java67 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in setUp()
105 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in getSlice_batterySaver_returnErrorSlice()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSlice.java82 if (mPowerManager.isPowerSaveMode() || (!sKeepSliceShow && !isAvailable(mContext))) { in getSlice()
158 if (mContext.getSystemService(PowerManager.class).isPowerSaveMode()) {
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DEarlyWarningDetector.java54 final boolean powerSaveModeOn = mPowerManager.isPowerSaveMode(); in detect()
DLowBatteryDetector.java48 final boolean powerSaveModeOn = mPowerManager.isPowerSaveMode(); in detect()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DEarlyWarningDetector.java54 final boolean powerSaveModeOn = mPowerManager.isPowerSaveMode(); in detect()
DLowBatteryDetector.java48 final boolean powerSaveModeOn = mPowerManager.isPowerSaveMode(); in detect()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeScheduleSelectorController.java58 final boolean batterySaver = mPowerManager.isPowerSaveMode(); in updateState()
DDarkModePreference.java40 final boolean batterySaver = mPowerManager.isPowerSaveMode(); in DarkModePreference()
DDarkModeActivationPreferenceController.java48 final boolean batterySaver = mPowerManager.isPowerSaveMode(); in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java80 return mPowerManager.isPowerSaveMode(); in isChecked()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java80 return mPowerManager.isPowerSaveMode(); in isChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DBatterySaverConditionController.java56 return mPowerManager.isPowerSaveMode(); in isDisplayable()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java56 return mPowerManager.isPowerSaveMode(); in isDisplayable()
/packages/apps/Dialer/java/com/android/dialer/util/
DViewUtil.java140 || powerManager.isPowerSaveMode(); in areAnimationsDisabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DEarlyWarningDetectorTest.java90 doReturn(true).when(mPowerManager).isPowerSaveMode(); in testDetect_batterySaverOn_tipHandled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeScheduleSelectorControllerTest.java98 when(mPM.isPowerSaveMode()).thenReturn(true); in batterySaver_dropDown_disabledSelector()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRecentAppStatsMixin.java118 final List<UsageStats> mStats = mPowerManager.isPowerSaveMode() in loadDisplayableRecentApps()

12