Home
last modified time | relevance | path

Searched refs:mColorDisplayManager (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/display/
DNightDisplayActivationPreferenceController.java35 private ColorDisplayManager mColorDisplayManager; field in NightDisplayActivationPreferenceController
43mColorDisplayManager.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()
DNightDisplayIntensityPreferenceController.java31 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()
DColorModePreferenceFragment.java57 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()
DNightDisplaySettings.java53 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()
DNightDisplayCustomStartTimePreferenceController.java26 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()
DNightDisplayCustomEndTimePreferenceController.java26 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()
DColorModePreferenceController.java26 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()
DNightDisplayAutoModePreferenceController.java33 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()
DDisplayWhiteBalancePreferenceController.java40 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/
DNightDisplayActivationPreferenceController.java35 private ColorDisplayManager mColorDisplayManager; field in NightDisplayActivationPreferenceController
43mColorDisplayManager.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()
DNightDisplayIntensityPreferenceController.java31 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()
DColorModePreferenceFragment.java57 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()
DNightDisplaySettings.java53 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()
DNightDisplayCustomEndTimePreferenceController.java26 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()
DNightDisplayCustomStartTimePreferenceController.java26 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()
DDisplayWhiteBalancePreferenceController.java26 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()
DColorModePreferenceController.java26 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()
DNightDisplayAutoModePreferenceController.java33 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/
DDisplayWhiteBalancePreferenceControllerTest.java40 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()
DColorModePreferenceControllerTest.java44 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()
DNightDisplayActivationPreferenceControllerTest.java49 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/
DGrayscaleConditionControllerTest.java46 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/
DNightDisplayConditionController.java38 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()
DGrayscaleConditionController.java46 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/
DNightDisplayConditionController.java38 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()

12