/packages/apps/Settings/src/com/android/settings/display/ |
D | NightDisplayActivationPreferenceController.java | 35 private ColorDisplayManager mColorDisplayManager; field in NightDisplayActivationPreferenceController 43 … mColorDisplayManager.setNightDisplayActivated(!mColorDisplayManager.isNightDisplayActivated()); 51 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayActivationPreferenceController() 86 return mColorDisplayManager.isNightDisplayActivated(); in isChecked() 91 return mColorDisplayManager.setNightDisplayActivated(isChecked); in setChecked() 96 return mTimeFormatter.getAutoModeSummary(mContext, mColorDisplayManager); in getSummary() 104 final boolean isActivated = mColorDisplayManager.isNightDisplayActivated(); in updateStateInternal() 105 final int autoMode = mColorDisplayManager.getNightDisplayAutoMode(); in updateStateInternal() 113 ? mColorDisplayManager.getNightDisplayCustomStartTime() in updateStateInternal() 114 : mColorDisplayManager.getNightDisplayCustomEndTime())); in updateStateInternal()
|
D | NightDisplayIntensityPreferenceController.java | 31 private ColorDisplayManager mColorDisplayManager; field in NightDisplayIntensityPreferenceController 35 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayIntensityPreferenceController() 42 } else if (!mColorDisplayManager.isNightDisplayActivated()) { in getAvailabilityStatus() 65 preference.setEnabled(mColorDisplayManager.isNightDisplayActivated()); in updateState() 70 return convertTemperature(mColorDisplayManager.getNightDisplayColorTemperature()); in getSliderPosition() 75 return mColorDisplayManager.setNightDisplayColorTemperature(convertTemperature(position)); in setSliderPosition()
|
D | ColorModePreferenceFragment.java | 57 private ColorDisplayManager mColorDisplayManager; field in ColorModePreferenceFragment 63 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in onAttach() 145 final int colorMode = mColorDisplayManager.getColorMode(); in getDefaultKey() 160 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_NATURAL); in setDefaultKey() 163 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_BOOSTED); in setDefaultKey() 166 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_SATURATED); in setDefaultKey() 169 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_AUTOMATIC); in setDefaultKey()
|
D | NightDisplaySettings.java | 53 private ColorDisplayManager mColorDisplayManager; field in NightDisplaySettings 61 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in onCreate() 98 initialTime = mColorDisplayManager.getNightDisplayCustomStartTime(); in onCreateDialog() 100 initialTime = mColorDisplayManager.getNightDisplayCustomEndTime(); in onCreateDialog() 108 mColorDisplayManager.setNightDisplayCustomStartTime(time); in onCreateDialog() 110 mColorDisplayManager.setNightDisplayCustomEndTime(time); in onCreateDialog()
|
D | NightDisplayCustomStartTimePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in NightDisplayCustomStartTimePreferenceController 32 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayCustomStartTimePreferenceController() 45 .setVisible(mColorDisplayManager.getNightDisplayAutoMode() in updateState() 48 mColorDisplayManager.getNightDisplayCustomStartTime())); in updateState()
|
D | NightDisplayCustomEndTimePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in NightDisplayCustomEndTimePreferenceController 32 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayCustomEndTimePreferenceController() 45 .setVisible(mColorDisplayManager.getNightDisplayAutoMode() in updateState() 48 mColorDisplayManager.getNightDisplayCustomEndTime())); in updateState()
|
D | ColorModePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in ColorModePreferenceController 57 if (mColorDisplayManager == null) { in getColorDisplayManager() 58 mColorDisplayManager = mContext.getSystemService(ColorDisplayManager.class); in getColorDisplayManager() 60 return mColorDisplayManager; in getColorDisplayManager()
|
D | NightDisplayAutoModePreferenceController.java | 33 private ColorDisplayManager mColorDisplayManager; field in NightDisplayAutoModePreferenceController 37 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayAutoModePreferenceController() 66 mPreference.setValue(String.valueOf(mColorDisplayManager.getNightDisplayAutoMode())); in updateState() 71 return mColorDisplayManager.setNightDisplayAutoMode(Integer.parseInt((String) newValue)); in onPreferenceChange()
|
D | DisplayWhiteBalancePreferenceController.java | 40 private ColorDisplayManager mColorDisplayManager; field in DisplayWhiteBalancePreferenceController 111 if (mColorDisplayManager == null) { in getColorDisplayManager() 112 mColorDisplayManager = mContext.getSystemService(ColorDisplayManager.class); in getColorDisplayManager() 114 return mColorDisplayManager; in getColorDisplayManager()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | NightDisplayActivationPreferenceController.java | 35 private ColorDisplayManager mColorDisplayManager; field in NightDisplayActivationPreferenceController 43 … mColorDisplayManager.setNightDisplayActivated(!mColorDisplayManager.isNightDisplayActivated()); 51 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayActivationPreferenceController() 86 return mColorDisplayManager.isNightDisplayActivated(); in isChecked() 91 return mColorDisplayManager.setNightDisplayActivated(isChecked); in setChecked() 96 return mTimeFormatter.getAutoModeTimeSummary(mContext, mColorDisplayManager); in getSummary() 104 final boolean isActivated = mColorDisplayManager.isNightDisplayActivated(); in updateStateInternal() 105 final int autoMode = mColorDisplayManager.getNightDisplayAutoMode(); in updateStateInternal() 113 ? mColorDisplayManager.getNightDisplayCustomStartTime() in updateStateInternal() 114 : mColorDisplayManager.getNightDisplayCustomEndTime())); in updateStateInternal()
|
D | NightDisplayIntensityPreferenceController.java | 31 private ColorDisplayManager mColorDisplayManager; field in NightDisplayIntensityPreferenceController 35 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayIntensityPreferenceController() 42 } else if (!mColorDisplayManager.isNightDisplayActivated()) { in getAvailabilityStatus() 64 preference.setEnabled(mColorDisplayManager.isNightDisplayActivated()); in updateState() 69 return convertTemperature(mColorDisplayManager.getNightDisplayColorTemperature()); in getSliderPosition() 74 return mColorDisplayManager.setNightDisplayColorTemperature(convertTemperature(position)); in setSliderPosition()
|
D | ColorModePreferenceFragment.java | 57 private ColorDisplayManager mColorDisplayManager; field in ColorModePreferenceFragment 63 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in onAttach() 145 final int colorMode = mColorDisplayManager.getColorMode(); in getDefaultKey() 160 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_NATURAL); in setDefaultKey() 163 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_BOOSTED); in setDefaultKey() 166 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_SATURATED); in setDefaultKey() 169 mColorDisplayManager.setColorMode(ColorDisplayManager.COLOR_MODE_AUTOMATIC); in setDefaultKey()
|
D | NightDisplaySettings.java | 53 private ColorDisplayManager mColorDisplayManager; field in NightDisplaySettings 61 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in onCreate() 98 initialTime = mColorDisplayManager.getNightDisplayCustomStartTime(); in onCreateDialog() 100 initialTime = mColorDisplayManager.getNightDisplayCustomEndTime(); in onCreateDialog() 108 mColorDisplayManager.setNightDisplayCustomStartTime(time); in onCreateDialog() 110 mColorDisplayManager.setNightDisplayCustomEndTime(time); in onCreateDialog()
|
D | NightDisplayCustomEndTimePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in NightDisplayCustomEndTimePreferenceController 32 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayCustomEndTimePreferenceController() 45 .setVisible(mColorDisplayManager.getNightDisplayAutoMode() in updateState() 48 mColorDisplayManager.getNightDisplayCustomEndTime())); in updateState()
|
D | NightDisplayCustomStartTimePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in NightDisplayCustomStartTimePreferenceController 32 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayCustomStartTimePreferenceController() 45 .setVisible(mColorDisplayManager.getNightDisplayAutoMode() in updateState() 48 mColorDisplayManager.getNightDisplayCustomStartTime())); in updateState()
|
D | DisplayWhiteBalancePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in DisplayWhiteBalancePreferenceController 54 if (mColorDisplayManager == null) { in getColorDisplayManager() 55 mColorDisplayManager = mContext.getSystemService(ColorDisplayManager.class); in getColorDisplayManager() 57 return mColorDisplayManager; in getColorDisplayManager()
|
D | ColorModePreferenceController.java | 26 private ColorDisplayManager mColorDisplayManager; field in ColorModePreferenceController 57 if (mColorDisplayManager == null) { in getColorDisplayManager() 58 mColorDisplayManager = mContext.getSystemService(ColorDisplayManager.class); in getColorDisplayManager() 60 return mColorDisplayManager; in getColorDisplayManager()
|
D | NightDisplayAutoModePreferenceController.java | 33 private ColorDisplayManager mColorDisplayManager; field in NightDisplayAutoModePreferenceController 37 mColorDisplayManager = context.getSystemService(ColorDisplayManager.class); in NightDisplayAutoModePreferenceController() 66 mPreference.setValue(String.valueOf(mColorDisplayManager.getNightDisplayAutoMode())); in updateState() 71 return mColorDisplayManager.setNightDisplayAutoMode(Integer.parseInt((String) newValue)); in onPreferenceChange()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/ |
D | DisplayWhiteBalancePreferenceControllerTest.java | 40 private ColorDisplayManager mColorDisplayManager; field in DisplayWhiteBalancePreferenceControllerTest 66 doReturn(mColorDisplayManager).when(mController).getColorDisplayManager(); in setUp() 87 when(mColorDisplayManager.setDisplayWhiteBalanceEnabled(true)).thenReturn(true); in setChecked_true_setSuccessfully() 93 when(mColorDisplayManager.setDisplayWhiteBalanceEnabled(false)).thenReturn(true); in setChecked_false_setSuccessfully() 99 when(mColorDisplayManager.isDisplayWhiteBalanceEnabled()).thenReturn(true); in isChecked_true() 105 when(mColorDisplayManager.isDisplayWhiteBalanceEnabled()).thenReturn(false); in isChecked_false() 122 when(mColorDisplayManager.getColorMode()) in onStart_configuredAvailable() 179 when(mColorDisplayManager.getColorMode()).thenReturn(ColorDisplayManager.COLOR_MODE_NATURAL); in visibility_configuredAvailableColorModeChanged() 185 when(mColorDisplayManager.getColorMode()).thenReturn(ColorDisplayManager.COLOR_MODE_SATURATED); in visibility_configuredAvailableColorModeChanged() 190 when(mColorDisplayManager.getColorMode()).thenReturn(ColorDisplayManager.COLOR_MODE_NATURAL); in visibility_configuredAvailableColorModeChanged()
|
D | ColorModePreferenceControllerTest.java | 44 private ColorDisplayManager mColorDisplayManager; field in ColorModePreferenceControllerTest 56 doReturn(mColorDisplayManager).when(mController).getColorDisplayManager(); in setup() 61 when(mColorDisplayManager.getColorMode()) in updateState_colorModeAutomatic_shouldSetSummaryToAutomatic() 72 when(mColorDisplayManager.getColorMode()) in updateState_colorModeSaturated_shouldSetSummaryToSaturated() 83 when(mColorDisplayManager.getColorMode()) in updateState_colorModeBoosted_shouldSetSummaryToBoosted() 94 when(mColorDisplayManager.getColorMode()) in updateState_colorModeNatural_shouldSetSummaryToNatural()
|
D | NightDisplayActivationPreferenceControllerTest.java | 49 private ColorDisplayManager mColorDisplayManager; field in NightDisplayActivationPreferenceControllerTest 56 mColorDisplayManager = mContext.getSystemService(ColorDisplayManager.class); in setUp() 99 mColorDisplayManager.setNightDisplayActivated(false); in onClick_activates() 105 assertThat(mColorDisplayManager.isNightDisplayActivated()).isEqualTo(true); in onClick_activates() 110 mColorDisplayManager.setNightDisplayActivated(true); in onClick_deactivates() 116 assertThat(mColorDisplayManager.isNightDisplayActivated()).isEqualTo(false); in onClick_deactivates()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/ |
D | GrayscaleConditionControllerTest.java | 46 private ColorDisplayManager mColorDisplayManager; field in GrayscaleConditionControllerTest 54 mColorDisplayManager = spy(mContext.getSystemService(ColorDisplayManager.class)); in setUp() 55 doReturn(mColorDisplayManager).when(mContext).getSystemService(ColorDisplayManager.class); in setUp() 67 doReturn(true).when(mColorDisplayManager).isSaturationActivated(); in isDisplayable_validIntentAndGrayscaleOn_shouldReturnTrue() 75 doReturn(false).when(mColorDisplayManager).isSaturationActivated(); in isDisplayable_validIntentAndGrayscaleOff_shouldReturnFalse()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | NightDisplayConditionController.java | 38 private final ColorDisplayManager mColorDisplayManager; field in NightDisplayConditionController 44 mColorDisplayManager = appContext.getSystemService(ColorDisplayManager.class); in NightDisplayConditionController() 55 return mColorDisplayManager.isNightDisplayActivated(); in isDisplayable() 69 mColorDisplayManager.setNightDisplayActivated(false); in onActionClick()
|
D | GrayscaleConditionController.java | 46 private final ColorDisplayManager mColorDisplayManager; field in GrayscaleConditionController 54 mColorDisplayManager = mAppContext.getSystemService(ColorDisplayManager.class); in GrayscaleConditionController() 73 return mColorDisplayManager.isSaturationActivated(); in isDisplayable() 84 mColorDisplayManager.setSaturationLevel(100 /* staturationLevel */); in onActionClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/ |
D | NightDisplayConditionController.java | 38 private final ColorDisplayManager mColorDisplayManager; field in NightDisplayConditionController 44 mColorDisplayManager = appContext.getSystemService(ColorDisplayManager.class); in NightDisplayConditionController() 55 return mColorDisplayManager.isNightDisplayActivated(); in isDisplayable() 69 mColorDisplayManager.setNightDisplayActivated(false); in onActionClick()
|