Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverControllerTest.java86 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in onPreferenceChange_onPowerSaveModeChanged_manualTrigger_logsType()
98 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in onPreferenceChange_onPowerSaveModeChanged_triggerPercent_logsTypeAndPercentage()
116 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in onPreferenceChange_onPowerSaveModeChanged_triggerDynamic_logsType()
129 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in getSummary_batterySaverOn_showSummaryOn()
136 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in getSummary_batterySaverOffButScheduled_showSummaryScheduled()
145 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in getSummary_batterySaverOffButScheduledZeroPercent_showSummaryOff()
154 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in getSummary_batterySaverOffButScheduledBasedOnRoutine_showSummaryBasedOnRoutine()
166 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in getSummary_batterySaverOff_showSummaryOff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerTest.java76 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in updateState_lowPowerOn_preferenceIsChecked()
78 mController.onSwitchChanged(null, mPowerManager.isPowerSaveMode()); in updateState_lowPowerOn_preferenceIsChecked()
85 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in testUpdateState_lowPowerOff_preferenceIsUnchecked()
87 mController.onSwitchChanged(null, mPowerManager.isPowerSaveMode()); in testUpdateState_lowPowerOff_preferenceIsUnchecked()
/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepBatterySaverPreferenceController.java58 boolean isPowerSaveMode() { in isPowerSaveMode() method in AdaptiveSleepBatterySaverPreferenceController
59 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
67 mPreference.setVisible(isPowerSaveMode()); in updateVisibility()
DAdaptiveSleepPreferenceController.java95 && !isPowerSaveMode()); in updatePreference()
122 && !isPowerSaveMode() && Settings.Secure.getInt(mContext.getContentResolver(), in isChecked()
137 boolean isPowerSaveMode() { in isPowerSaveMode() method in AdaptiveSleepPreferenceController
138 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
DSmartAutoRotateController.java87 && !isCameraLocked() && !isPowerSaveMode() ? AVAILABLE : DISABLED_DEPENDENT_SETTING; in getAvailabilityStatus()
108 boolean isPowerSaveMode() { in isPowerSaveMode() method in SmartAutoRotateController
109 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
139 && !isCameraLocked() && !isPowerSaveMode() && Settings.Secure.getInt( in isChecked()
DSmartAutoRotateBatterySaverController.java64 boolean isPowerSaveMode() { in isPowerSaveMode() method in SmartAutoRotateBatterySaverController
65 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
94 && isPowerSaveMode() ? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
DDarkUIPreferenceController.java110 boolean isBatterySaver = isPowerSaveMode(); in updateEnabledStateIfNeeded()
121 boolean isPowerSaveMode() { in isPowerSaveMode() method in DarkUIPreferenceController
122 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
DSmartAutoRotatePreferenceController.java120 boolean isPowerSaveMode() { in isPowerSaveMode() method in SmartAutoRotatePreferenceController
121 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
135 && !isPowerSaveMode() in getSummary()
/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()
DAdaptiveSleepBatterySaverPreferenceControllerTest.java61 when(mController.isPowerSaveMode()).thenReturn(false); in setUp()
73 when(mController.isPowerSaveMode()).thenReturn(true); in addToScreen_powerSaveEnabled_showPreference()
DSmartAutoRotateBatterySaverControllerTest.java63 when(mController.isPowerSaveMode()).thenReturn(false); in setUp()
77 when(mController.isPowerSaveMode()).thenReturn(true); in getAvailabilityStatus_powerSaveModeEnabled_returnAvailableUnSearchAble()
DSmartAutoRotateControllerTest.java79 when(mController.isPowerSaveMode()).thenReturn(false); in setUp()
121 when(mController.isPowerSaveMode()).thenReturn(true); in getAvailabilityStatus_powerSaveEnabled_returnDisableDependentSetting()
DAdaptiveSleepPreferenceControllerTest.java89 when(mController.isPowerSaveMode()).thenReturn(false); in setUp()
181 when(mController.isPowerSaveMode()).thenReturn(true); in addToScreen_powerSaveEnabled_disablePreference()
DSmartAutoRotatePreferenceControllerTest.java97 when(mController.isPowerSaveMode()).thenReturn(false); in setUp()
181 when(mController.isPowerSaveMode()).thenReturn(true); in getSummary_powerSaveEnabled_returnsOn()
/packages/apps/ThemePicker/src/com/android/customization/model/mode/
DDarkModeSectionController.java113 mDarkModeSectionView.setEnabled(!pm.isPowerSaveMode()); in createView()
140 mDarkModeSectionView.setEnabled(!mPowerManager.isPowerSaveMode()); in onReceive()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverController.java104 final boolean isPowerSaveOn = mPowerManager.isPowerSaveMode(); in getSummary()
131 if (!mPowerManager.isPowerSaveMode()) { in logPowerSaver()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSlice.java96 if (mPowerManager.isPowerSaveMode() in getSlice()
192 if (mContext.getSystemService(PowerManager.class).isPowerSaveMode()) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java73 when(mPowerManager.isPowerSaveMode()).thenReturn(false); in setUp()
130 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in getSlice_batterySaver_returnErrorSlice()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DSmartBatteryDetector.java56 smartBatteryOff && !mPowerManager.isPowerSaveMode() && isUnderExpectedBatteryLevel in detect()
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/
DDarkModePreference.java47 final boolean batterySaver = mPowerManager.isPowerSaveMode(); in DarkModePreference()
/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/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java104 return mPowerManager.isPowerSaveMode(); in isChecked()

12