/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatterySaverControllerTest.java | 86 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/ |
D | BatterySaverButtonPreferenceControllerTest.java | 76 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/ |
D | AdaptiveSleepBatterySaverPreferenceController.java | 58 boolean isPowerSaveMode() { in isPowerSaveMode() method in AdaptiveSleepBatterySaverPreferenceController 59 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode() 67 mPreference.setVisible(isPowerSaveMode()); in updateVisibility()
|
D | AdaptiveSleepPreferenceController.java | 95 && !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()
|
D | SmartAutoRotateController.java | 87 && !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()
|
D | SmartAutoRotateBatterySaverController.java | 64 boolean isPowerSaveMode() { in isPowerSaveMode() method in SmartAutoRotateBatterySaverController 65 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode() 94 && isPowerSaveMode() ? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
|
D | DarkUIPreferenceController.java | 110 boolean isBatterySaver = isPowerSaveMode(); in updateEnabledStateIfNeeded() 121 boolean isPowerSaveMode() { in isPowerSaveMode() method in DarkUIPreferenceController 122 return mPowerManager.isPowerSaveMode(); in isPowerSaveMode()
|
D | SmartAutoRotatePreferenceController.java | 120 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/ |
D | DarkUIPreferenceControllerTest.java | 54 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()
|
D | AdaptiveSleepBatterySaverPreferenceControllerTest.java | 61 when(mController.isPowerSaveMode()).thenReturn(false); in setUp() 73 when(mController.isPowerSaveMode()).thenReturn(true); in addToScreen_powerSaveEnabled_showPreference()
|
D | SmartAutoRotateBatterySaverControllerTest.java | 63 when(mController.isPowerSaveMode()).thenReturn(false); in setUp() 77 when(mController.isPowerSaveMode()).thenReturn(true); in getAvailabilityStatus_powerSaveModeEnabled_returnAvailableUnSearchAble()
|
D | SmartAutoRotateControllerTest.java | 79 when(mController.isPowerSaveMode()).thenReturn(false); in setUp() 121 when(mController.isPowerSaveMode()).thenReturn(true); in getAvailabilityStatus_powerSaveEnabled_returnDisableDependentSetting()
|
D | AdaptiveSleepPreferenceControllerTest.java | 89 when(mController.isPowerSaveMode()).thenReturn(false); in setUp() 181 when(mController.isPowerSaveMode()).thenReturn(true); in addToScreen_powerSaveEnabled_disablePreference()
|
D | SmartAutoRotatePreferenceControllerTest.java | 97 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/ |
D | DarkModeSectionController.java | 113 mDarkModeSectionView.setEnabled(!pm.isPowerSaveMode()); in createView() 140 mDarkModeSectionView.setEnabled(!mPowerManager.isPowerSaveMode()); in onReceive()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySaverController.java | 104 final boolean isPowerSaveOn = mPowerManager.isPowerSaveMode(); in getSummary() 131 if (!mPowerManager.isPowerSaveMode()) { in logPowerSaver()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSlice.java | 96 if (mPowerManager.isPowerSaveMode() in getSlice() 192 if (mContext.getSystemService(PowerManager.class).isPowerSaveMode()) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSliceTest.java | 73 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/ |
D | SmartBatteryDetector.java | 56 smartBatteryOff && !mPowerManager.isPowerSaveMode() && isUnderExpectedBatteryLevel in detect()
|
D | EarlyWarningDetector.java | 54 final boolean powerSaveModeOn = mPowerManager.isPowerSaveMode(); in detect()
|
D | LowBatteryDetector.java | 48 final boolean powerSaveModeOn = mPowerManager.isPowerSaveMode(); in detect()
|
/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModePreference.java | 47 final boolean batterySaver = mPowerManager.isPowerSaveMode(); in DarkModePreference()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | BatterySaverConditionController.java | 56 return mPowerManager.isPowerSaveMode(); in isDisplayable()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | ViewUtil.java | 140 || powerManager.isPowerSaveMode(); in areAnimationsDisabled()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/ |
D | BatterySaverButtonPreferenceController.java | 104 return mPowerManager.isPowerSaveMode(); in isChecked()
|