Home
last modified time | relevance | path

Searched refs:mDisplayManager (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DHdrFormatPreferenceController.java52 private final DisplayManager mDisplayManager; field in HdrFormatPreferenceController
58 mDisplayManager = displayManager; in HdrFormatPreferenceController()
76 Display.Mode mode = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY).getMode(); in updateState()
97 if (!mDisplayManager.areUserDisabledHdrTypesAllowed()) { in getPreferenceCheckedState()
98 return !(toSet(mDisplayManager.getUserDisabledHdrTypes()).contains(mHdrType)); in getPreferenceCheckedState()
105 return !mDisplayManager.areUserDisabledHdrTypesAllowed(); in getPreferenceEnabledState()
116 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onPreferenceClicked()
121 enableHdrType(mDisplayManager, mHdrType); in onPreferenceClicked()
124 if (mDisplayManager.getHdrConversionMode().getConversionMode() in onPreferenceClicked()
129 disableHdrType(mDisplayManager, mHdrType); in onPreferenceClicked()
[all …]
DPreferredDynamicRangeFragment.java59 private DisplayManager mDisplayManager; field in PreferredDynamicRangeFragment
70 mDisplayManager = getDisplayManager(); in onAttach()
71 mHdrConversionMode = mDisplayManager.getHdrConversionModeSetting(); in onAttach()
77 mHdrConversionMode = mDisplayManager.getHdrConversionModeSetting(); in onResume()
119 if (mDisplayManager.getHdrConversionModeSetting().equals(new HdrConversionMode( in onPreferenceTreeClick()
121 mDisplayManager.setAreUserDisabledHdrTypesAllowed(true); in onPreferenceTreeClick()
125 mDisplayManager.setHdrConversionMode(mHdrConversionMode); in onPreferenceTreeClick()
134 selectForceHdrConversion(mDisplayManager); in onPreferenceTreeClick()
136 mHdrConversionMode = mDisplayManager.getHdrConversionModeSetting(); in onPreferenceTreeClick()
150 if (mDisplayManager.getHdrConversionModeSetting().equals(new HdrConversionMode( in selectSystemPreferredConversion()
[all …]
DPreferredDynamicRangeForceFragment.java66 private DisplayManager mDisplayManager; field in PreferredDynamicRangeForceFragment
76 mDisplayManager = getDisplayManager(); in onAttach()
83 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in getIntersectingDeviceAndDisplayHdrTypes()
87 int[] deviceSupportedHdrOutputTypes = mDisplayManager.getSupportedHdrOutputTypes(); in getIntersectingDeviceAndDisplayHdrTypes()
119 mDisplayManager.setHdrConversionMode( in onPreferenceTreeClick()
121 mDisplayManager.setAreUserDisabledHdrTypesAllowed(false); in onPreferenceTreeClick()
122 mDisplayManager.setUserDisabledHdrTypes(getDeviceSupportedHdrTypes()); in onPreferenceTreeClick()
128 final Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onPreferenceTreeClick()
133 mDisplayManager.setHdrConversionMode(new HdrConversionMode( in onPreferenceTreeClick()
135 enableHdrType(mDisplayManager, preferredHdrOutputType); in onPreferenceTreeClick()
[all …]
DDisplaySoundFragment.kt57 lateinit var mDisplayManager: DisplayManager variable in com.android.tv.settings.device.displaysound.DisplaySoundFragment
82 mDisplayManager = displayManager in onCreateView()
83 val display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY) in onCreateView()
85 mDisplayManager.registerDisplayListener(this, null) in onCreateView()
86 mCurrentMode = mDisplayManager.globalUserPreferredDisplayMode in onCreateView()
93 if (mDisplayManager.supportedHdrOutputTypes.isEmpty()) { in onCreateView()
108 mDisplayManager.unregisterDisplayListener(this) in onDestroy()
116 DisplaySoundUtils.getMatchContentDynamicRangeStatus(mDisplayManager) in onResume()
129 … .setMatchContentDynamicRangeStatus(context, mDisplayManager, dynamicPref.isChecked) in onPreferenceTreeClick()
176 val newMode = mDisplayManager.globalUserPreferredDisplayMode in onDisplayChanged()
DResolutionSelectionFragment.java72 private DisplayManager mDisplayManager; field in ResolutionSelectionFragment
89 mDisplayManager = getDisplayManager(); in onAttach()
108 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreatePreferences()
137 mDisplayManager.getGlobalUserPreferredDisplayMode()); in onCreatePreferences()
150 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in createPreferences()
222 Display.Mode previousMode = mDisplayManager.getGlobalUserPreferredDisplayMode(); in onPreferenceTreeClick()
224 mDisplayManager.clearGlobalUserPreferredDisplayMode(); in onPreferenceTreeClick()
228 mDisplayManager.setGlobalUserPreferredDisplayMode(newMode); in onPreferenceTreeClick()
263 mDisplayManager.setGlobalUserPreferredDisplayMode(mode); in setUserPreferredMode()
266 mDisplayManager.clearGlobalUserPreferredDisplayMode(); in setUserPreferredMode()
[all …]
DDisplaySoundFragment.java75 private DisplayManager mDisplayManager; field in DisplaySoundFragment
118 mDisplayManager = getDisplayManager(); in onCreatePreferences()
119 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreatePreferences()
121 mDisplayManager.registerDisplayListener(this, null); in onCreatePreferences()
122 mCurrentMode = mDisplayManager.getGlobalUserPreferredDisplayMode(); in onCreatePreferences()
130 if (mDisplayManager.getSupportedHdrOutputTypes().length == 0) { in onCreatePreferences()
143 mDisplayManager.unregisterDisplayListener(this); in onDestroy()
155 dynamicRangePreference.setChecked(getMatchContentDynamicRangeStatus(mDisplayManager)); in onResume()
169 getContext(), mDisplayManager, dynamicPref.isChecked()); in onPreferenceTreeClick() local
239 Display.Mode newMode = mDisplayManager.getGlobalUserPreferredDisplayMode(); in onDisplayChanged()
DHdrFormatSelectionFragment.java103 private DisplayManager mDisplayManager; field in HdrFormatSelectionFragment
112 mDisplayManager = getDisplayManager(); in onAttach()
114 mUserDisabledHdrTypes = toSet(mDisplayManager.getUserDisabledHdrTypes()); in onAttach()
118 mDisplayManager in onAttach()
151 if (mDisplayManager.areUserDisabledHdrTypesAllowed() || disableFormatSelectionManual) { in onCreatePreferences()
172 new HdrFormatPreferenceController(getContext(), hdrType, mDisplayManager)); in onCreatePreferenceControllers()
193 mDisplayManager.setAreUserDisabledHdrTypesAllowed(true); in onPreferenceTreeClick()
200 mDisplayManager.setAreUserDisabledHdrTypesAllowed(false); in onPreferenceTreeClick()
245 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in getDisplaySupportedHdrTypes()
246 if (mDisplayManager in getDisplaySupportedHdrTypes()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systeminterface/
DDisplayInterfaceTest.java61 private DisplayManager mDisplayManager; field in DisplayInterfaceTest
89 when(mContext.getSystemService(DisplayManager.class)).thenReturn(mDisplayManager); in setUp()
92 when(mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY)).thenReturn(mDisplay); in setUp()
93 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{mDisplay}); in setUp()
98 when(mDisplayManager.getDisplay(anyInt())).thenReturn(mDisplay); in testStartDisplayStateMonitoring_perDisplayBrightnessSupported()
105 verify(mDisplayManager).registerDisplayListener(any(), isNull(), anyLong()); in testStartDisplayStateMonitoring_perDisplayBrightnessSupported()
111 when(mDisplayManager.getDisplay(anyInt())).thenReturn(mDisplay); in testStartDisplayStateMonitoring_perDisplayBrightnessNotSupported()
118 verify(mDisplayManager, never()).registerDisplayListener(any(), isNull(), anyLong()); in testStartDisplayStateMonitoring_perDisplayBrightnessNotSupported()
128 verify(mDisplayManager).unregisterDisplayListener(any()); in testStopDisplayStateMonitoring_perDisplayBrightnessSupported()
139 verify(mDisplayManager, never()).unregisterDisplayListener(any()); in testStopDisplayStateMonitoring_perDisplayBrightnessNoSupported()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/displaysound/
DPreferredDynamicRangeFragmentTest.java54 private DisplayManager mDisplayManager; field in PreferredDynamicRangeFragmentTest
72 verify(mDisplayManager).setHdrConversionMode(mode.capture()); in testOnPreferenceTreeClick_selectSystem()
87 verify(mDisplayManager).setHdrConversionMode(mode.capture()); in testOnPreferenceTreeClick_selectMatchContent()
138 doReturn(mDisplay).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createPreferredDynamicRangeFragmentWith()
140 doReturn(hdrTypes).when(mDisplayManager).getSupportedHdrOutputTypes(); in createPreferredDynamicRangeFragmentWith()
142 .when(mDisplayManager).getHdrConversionModeSetting(); in createPreferredDynamicRangeFragmentWith()
145 doReturn(mDisplayManager).when(fragment).getDisplayManager(); in createPreferredDynamicRangeFragmentWith()
155 doReturn(mDisplay).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createPreferredDynamicRangeForceFragmentWith()
157 doReturn(hdrTypes).when(mDisplayManager).getSupportedHdrOutputTypes(); in createPreferredDynamicRangeForceFragmentWith()
159 .when(mDisplayManager).getHdrConversionModeSetting(); in createPreferredDynamicRangeForceFragmentWith()
[all …]
DDisplaySoundFragmentTest.java42 private DisplayManager mDisplayManager; field in DisplaySoundFragmentTest
83 doReturn(new int[]{}).when(mDisplayManager).getSupportedHdrOutputTypes(); in createDisplaySoundFragmentWith()
84 doReturn(display).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createDisplaySoundFragmentWith()
87 doReturn(mDisplayManager).when(fragment).getDisplayManager(); in createDisplaySoundFragmentWith()
DResolutionSelectionFragmentTest.java54 private DisplayManager mDisplayManager; field in ResolutionSelectionFragmentTest
75 verify(mDisplayManager).clearGlobalUserPreferredDisplayMode(); in testOnPreferenceTreeClick_selectAuto()
94 verify(mDisplayManager).setGlobalUserPreferredDisplayMode(mode.capture()); in testOnPreferenceTreeClick_selectMode()
195 doReturn(display).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createResolutionSelectionFragmentWith()
198 doReturn(mDisplayManager).when(fragment).getDisplayManager(); in createResolutionSelectionFragmentWith()
199 doReturn(userPreferredMode).when(mDisplayManager).getGlobalUserPreferredDisplayMode(); in createResolutionSelectionFragmentWith()
DHdrFormatSelectionFragmentTest.java62 @Mock private DisplayManager mDisplayManager; field in HdrFormatSelectionFragmentTest
76 verify(mDisplayManager).setAreUserDisabledHdrTypesAllowed(true); in testOnPreferenceTreeClick_withAuto_allowsUserDisabledHdrTypes()
86 verify(mDisplayManager).setAreUserDisabledHdrTypesAllowed(false); in testOnPreferenceTreeClick_withManual_disallowsUserDisabledHdrTypes()
112 verify(mDisplayManager).setUserDisabledHdrTypes( in testOnPreferenceTreeClick_withFormatDisabled_disablesHdrTypeInDisplayManager()
140 verify(mDisplayManager).setUserDisabledHdrTypes( in testOnPreferenceTreeClick_withFormatEnabled_enablesHdrTypeInDisplayManager()
332 doReturn(userDisabledHdrTypes).when(mDisplayManager).getUserDisabledHdrTypes(); in createHdrFormatSelectionFragmentWithDisplayManagerReturning()
337 doReturn(display).when(mDisplayManager).getDisplay(Display.DEFAULT_DISPLAY); in createHdrFormatSelectionFragmentWithDisplayManagerReturning()
340 doReturn(mDisplayManager).when(fragment).getDisplayManager(); in createHdrFormatSelectionFragmentWithDisplayManagerReturning()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/vendor/
DDisplayPreviewFragment.java50 private DisplayManager mDisplayManager; field in DisplayPreviewFragment
72 mDisplayManager = getDisplayManager(); in onCreatePreferences()
73 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreatePreferences()
75 mCurrentMode = mDisplayManager.getGlobalUserPreferredDisplayMode(); in onCreatePreferences()
83 if (mDisplayManager.getSupportedHdrOutputTypes().length == 0) { in onCreatePreferences()
106 Display.Mode newMode = mDisplayManager.getGlobalUserPreferredDisplayMode(); in onDisplayChanged()
119 getContext(), mDisplayManager, dynamicPref.isChecked()); in onPreferenceTreeClick() local
128 mDisplayManager.registerDisplayListener(this, null); in onStart()
136 dynamicRangePreference.setChecked(getMatchContentDynamicRangeStatus(mDisplayManager)); in onResume()
145 mDisplayManager.unregisterDisplayListener(this); in onStop()
/packages/services/Car/tests/SampleRearViewCamera/src/com/google/android/car/rvc/
DRearViewCameraActivityBase.java38 private DisplayManager mDisplayManager; field in RearViewCameraActivityBase
64 mDisplayManager = getSystemService(DisplayManager.class); in onCreate()
65 mDisplayManager.registerDisplayListener(mDisplayListener, null); in onCreate()
72 mDisplayManager.unregisterDisplayListener(mDisplayListener); in onDestroy()
78 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in decideViewVisibility()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/
DCarDisplayTrackerImpl.java52 private final DisplayManager mDisplayManager; field in CarDisplayTrackerImpl
124 mDisplayManager = mContext.getSystemService(DisplayManager.class); in CarDisplayTrackerImpl()
148 return mDisplayManager.getDisplays(); in getAllDisplays()
154 return new Display[]{mDisplayManager.getDisplay(mContext.getDisplayId())}; in getAllDisplays()
159 return mDisplayManager.getDisplay(displayId); in getDisplay()
166 mDisplayManager.registerDisplayListener(mDisplayListener, mHandler); in addDisplayChangeCallback()
176 mDisplayManager.registerDisplayListener(mBrightnessChangedListener, mHandler, in addBrightnessChangeCallback()
188 mDisplayManager.unregisterDisplayListener(mDisplayListener); in removeCallback()
195 mDisplayManager.unregisterDisplayListener(mBrightnessChangedListener); in removeCallback()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DScreenOffHandlerUnitTest.java84 private DisplayManager mDisplayManager; field in ScreenOffHandlerUnitTest
123 DisplayPowerModeBuilder builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_valid_returnNonNull()
138 builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_valid_returnNonNull()
159 builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_valid_returnNonNull()
174 builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_valid_returnNonNull()
187 builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_valid_returnNonNull()
204 DisplayPowerModeBuilder builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_invalid_returnNull()
219 builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_invalid_returnNull()
239 builder = new DisplayPowerModeBuilder(mDisplayManager); in testParseSetting_invalid_returnNull()
421 when(mContext.getSystemService(DisplayManager.class)).thenReturn(mDisplayManager); in setService()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java34 private DisplayManager mDisplayManager; field in ColorModePreference
42 mDisplayManager = getContext().getSystemService(DisplayManager.class); in ColorModePreference()
50 mDisplayManager.registerDisplayListener(this, new Handler(Looper.getMainLooper())); in startListening()
54 mDisplayManager.unregisterDisplayListener(this); in stopListening()
76 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in updateCurrentAndSupported()
/packages/apps/Settings/src/com/android/settings/development/
DColorModePreference.java36 private DisplayManager mDisplayManager; field in ColorModePreference
65 mDisplayManager = getContext().getSystemService(DisplayManager.class); in ColorModePreference()
73 mDisplayManager.registerDisplayListener(this, new Handler(Looper.getMainLooper())); in startListening()
77 mDisplayManager.unregisterDisplayListener(this); in stopListening()
99 mDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in updateCurrentAndSupported()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/displaysound/
DHdrFormatSelectionState.java83 private DisplayManager mDisplayManager; field in HdrFormatSelectionState
93 mDisplayManager = getDisplayManager(); in onAttach()
95 mUserDisabledHdrTypes = toSet(mDisplayManager.getUserDisabledHdrTypes()); in onAttach()
97 if (mDisplayManager in onAttach()
104 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onAttach()
141 if (mDisplayManager.areUserDisabledHdrTypesAllowed()) { in onCreate()
212 mPreferenceCompatManager, hdrType, mDisplayManager, in createFormatInfoOnManual()
245 mDisplayManager.setAreUserDisabledHdrTypesAllowed(true); in onPreferenceTreeClick()
250 mDisplayManager.setAreUserDisabledHdrTypesAllowed(false); in onPreferenceTreeClick()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DBrightnessSlider.java59 private DisplayManager mDisplayManager; field in BrightnessSlider
76 mDisplayManager = context.getSystemService(DisplayManager.class); in BrightnessSlider()
105 if (mDisplayManager != null) { in onNotifyChange()
107 mDisplayManager.setBrightness(getMyOccupantZoneDisplayId(), linearFloat); in onNotifyChange()
145 if (mDisplayManager != null) { in getSeekbarValue()
146 float linearFloat = mDisplayManager.getBrightness(getMyOccupantZoneDisplayId()); in getSeekbarValue()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
DClusterOsDoubleApplication.java65 private final DisplayManager mDisplayManager; field in ClusterOsDoubleApplication.ClusterDisplayMonitor
94 mDisplayManager = displayManager; in ClusterDisplayMonitor()
106 mDisplayManager.registerDisplayListener(mDisplayListener, handler); in start()
140 for (Display display : mDisplayManager.getDisplays()) { in findDisplayIdByUniqueId()
149 for (Display display : mDisplayManager.getDisplays()) { in findDisplayByPort()
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/viewmodel/
DDeviceRotationViewModel.java42 private final DisplayManager mDisplayManager; field in DeviceRotationViewModel
71 mDisplayManager = application.getSystemService(DisplayManager.class); in DeviceRotationViewModel()
72 mDisplayManager.registerDisplayListener(mDisplayListener, in DeviceRotationViewModel()
110 mDisplayManager.unregisterDisplayListener(mDisplayListener); in onCleared()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListener.java39 private DisplayManager mDisplayManager; field in SideLoadedAppListener
50 mDisplayManager = displayManager; in SideLoadedAppListener()
66 Display display = mDisplayManager.getDisplay(taskInfo.displayId); in onTaskCreated()
75 Display[] displays = mDisplayManager.getDisplays(); in onTaskStackChanged()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DDisplayInputLockTestFragment.java58 private DisplayManager mDisplayManager; field in DisplayInputLockTestFragment
73 Display display = mDisplayManager.getDisplay(displayId);
106 mDisplayManager = getContext().getSystemService(DisplayManager.class); in onCreate()
122 mDisplayManager.registerDisplayListener(mDisplayListener, /* handler= */ null); in onCreateView()
133 mDisplayManager.unregisterDisplayListener(mDisplayListener); in onDestroyView()
193 Display display = mDisplayManager.getDisplay(displayId); in getDisplayUniqueId()
217 Display[] displays = mDisplayManager.getDisplays(); in parseDisplayInputLockSettingValue()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java64 private DisplayManager mDisplayManager; field in SideLoadedAppListenerTest
75 mActivityTaskManager, mDisplayManager, mSideLoadedAppStateController); in setUp()
123 when(mDisplayManager.getDisplay(displayId)).thenReturn(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
146 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{display}); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
170 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{display}); in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed()
210 when(mDisplayManager.getDisplays()) in onTaskStackChanged_multiDisplay_callsTasksDisplayed()

123