Home
last modified time | relevance | path

Searched refs:display (Results 1 – 25 of 602) sorted by relevance

12345678910>>...25

/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicRendererSurfaceView.java102 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
107 display, eglConfig, EGL10.EGL_NO_CONTEXT, attribList); in createContext()
112 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
113 egl.eglDestroyContext(display, context); in destroyContext()
149 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
154 egl.eglChooseConfig(display, CONFIG_ATTRIBUTES, null, 0, numConfig); in chooseConfig()
165 egl.eglChooseConfig(display, CONFIG_ATTRIBUTES, configs, numConfigs, numConfig); in chooseConfig()
168 printConfigs(egl, display, configs); in chooseConfig()
172 return chooseConfig(egl, display, configs); in chooseConfig()
175 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/input/
DDisplayInputSinkController.java31 import android.hardware.display.DisplayManager;
206 Display display = mOccupantZoneManager.getDisplayForOccupant(zone, DISPLAY_TYPE_MAIN); in initPassengerDisplays() local
207 if (display == null) { in initPassengerDisplays()
211 mPassengerDisplays.put(display.getDisplayId(), display); in initPassengerDisplays() local
233 Display display = mOccupantZoneManager.getDisplayForOccupant(zone, DISPLAY_TYPE_MAIN); in mayUpdatePassengerDisplayOnAdded() local
234 if (display == null) { in mayUpdatePassengerDisplayOnAdded()
238 mPassengerDisplays.put(displayId, display); in mayUpdatePassengerDisplayOnAdded()
256 Display display = mPassengerDisplays.valueAt(index); in decideDisplayInputSink() local
257 if (mDisplayInputLockSetting.contains(display.getUniqueId())) { in decideDisplayInputSink()
259 mayStartDisplayInputLock(display); in decideDisplayInputSink()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayMetricsRetriever.java56 public DisplayMetrics getDisplayMetrics(Resources resources, Display display) { in getDisplayMetrics() argument
59 return getPortraitDisplayMetrics(display); in getDisplayMetrics()
61 return getLandscapeDisplayMetrics(display); in getDisplayMetrics()
64 return getPortraitDisplayMetrics(display); in getDisplayMetrics()
68 private DisplayMetrics getPortraitDisplayMetrics(Display display) { in getPortraitDisplayMetrics() argument
71 writeDisplayMetrics(display, mPortraitDisplayMetrics); in getPortraitDisplayMetrics()
76 private DisplayMetrics getLandscapeDisplayMetrics(Display display) { in getLandscapeDisplayMetrics() argument
79 writeDisplayMetrics(display, mLandscapeDisplayMetrics); in getLandscapeDisplayMetrics()
84 private void writeDisplayMetrics(Display display, DisplayMetrics outMetrics) { in writeDisplayMetrics() argument
85 display.getMetrics(outMetrics); in writeDisplayMetrics()
DScreenSizeCalculator.java62 public Point getScreenSize(Display display) { in getScreenSize() argument
65 return getPortraitScreenSize(display); in getScreenSize()
67 return getLandscapeScreenSize(display); in getScreenSize()
71 return getPortraitScreenSize(display); in getScreenSize()
95 private Point getPortraitScreenSize(Display display) { in getPortraitScreenSize() argument
99 writeDisplaySizeToPoint(display, mPortraitScreenSize); in getPortraitScreenSize()
103 private Point getLandscapeScreenSize(Display display) { in getLandscapeScreenSize() argument
107 writeDisplaySizeToPoint(display, mLandscapeScreenSize); in getLandscapeScreenSize()
114 private void writeDisplaySizeToPoint(Display display, Point outPoint) { in writeDisplaySizeToPoint() argument
116 display.getRealSize(outPoint); in writeDisplaySizeToPoint()
[all …]
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/present/
DPresentTestFragment.java26 import android.hardware.display.DisplayManager;
144 final Display display = (Display) v.getTag(); in setupListeners()
148 R.string.presentation_alert_info_text, display.getDisplayId())) in setupListeners()
149 .setMessage(display.toString()) in setupListeners()
165 final Display display = (Display) buttonView.getTag(); in setupListeners()
169 showPresentation(display, contents); in setupListeners()
171 hidePresentation(display); in setupListeners()
205 private void showPresentation(Display display, DemoPresentationContents contents) { in showPresentation() argument
206 final int displayId = display.getDisplayId(); in showPresentation()
215 DemoPresentation presentation = new DemoPresentation(getContext(), display, contents); in showPresentation()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/display/
DVirtualDisplayFragment.java16 package com.google.android.car.kitchensink.display;
151 onAllDisplays((index, display) -> display.release()); in onDestroyView()
174 onAllDisplays((index, display) -> { in dump() argument
176 display.dump(prefix2, writer, args); in dump()
197 SelfManagedVirtualDisplayView display = mDisplays[i]; in onDisplays() local
198 if (display == null) { in onDisplays()
202 visitor.visit(i, display); in onDisplays()
237 SelfManagedVirtualDisplayView display = mDisplays[i]; in updateNumberDisplays() local
239 if (i >= numberDisplays && display != null) { in updateNumberDisplays()
241 toggleView(display, /* on= */ false); in updateNumberDisplays()
[all …]
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java27 import android.hardware.display.DisplayManager;
28 import android.hardware.display.WifiDisplay;
29 import android.hardware.display.WifiDisplayStatus;
286 for (WifiDisplay display : mWifiDisplayStatus.getDisplays()) { in update()
287 if (!display.isRemembered() && display.isAvailable() in update()
288 && !display.equals(mWifiDisplayStatus.getActiveDisplay())) { in update()
290 getPrefContext(), display)); in update()
307 WifiDisplay display = findWifiDisplay(route.getDeviceAddress()); in createRoutePreference() local
308 if (display != null) { in createRoutePreference()
309 return new WifiDisplayRoutePreference(getPrefContext(), route, display); in createRoutePreference()
[all …]
/packages/apps/Settings/src/com/android/settings/display/
DColorModeUtils.java17 package com.android.settings.display;
19 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_AUTOMATIC;
20 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_BOOSTED;
21 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_NATURAL;
22 import static android.hardware.display.ColorDisplayManager.COLOR_MODE_SATURATED;
23 import static android.hardware.display.ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MAX;
24 import static android.hardware.display.ColorDisplayManager.VENDOR_COLOR_MODE_RANGE_MIN;
/packages/services/Car/car-builtin-lib/src/android/car/builtin/view/
DDisplayHelper.java47 public static int getPhysicalPort(Display display) { in getPhysicalPort() argument
48 DisplayAddress address = display.getAddress(); in getPhysicalPort()
61 public static String getUniqueId(Display display) { in getUniqueId() argument
62 return display.getUniqueId(); in getUniqueId()
69 public static int getType(Display display) { in getType() argument
70 return display.getType(); in getType()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/input/
DDisplayInputLockTestFragment.java30 import android.hardware.display.DisplayManager;
73 Display display = mDisplayManager.getDisplay(displayId);
75 mDisplayInputLockSetting.contains(display.getUniqueId())));
193 Display display = mDisplayManager.getDisplay(displayId); in getDisplayUniqueId() local
194 if (display == null) { in getDisplayUniqueId()
197 return display.getUniqueId(); in getDisplayUniqueId()
202 Display display = displays[i]; in findDisplayIdByUniqueId() local
203 if (displayUniqueId.equals(display.getUniqueId())) { in findDisplayIdByUniqueId()
204 return display.getDisplayId(); in findDisplayIdByUniqueId()
242 Display display = mOccupantZoneManager.getDisplayForOccupant(zone, in initDisplayInputLockData() local
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListenerTest.java27 import android.hardware.display.DisplayManager;
28 import android.hardware.display.DisplayManagerGlobal;
119 Display display = createDisplay(displayId); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated() local
123 when(mDisplayManager.getDisplay(displayId)).thenReturn(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
130 verify(mSideLoadedAppStateController).onUnsafeTaskCreatedOnDisplay(display); in onTaskCreated_unsafeTask_callsUnsafeTaskCreated()
137 Display display = createDisplay(123); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed() local
143 when(mActivityTaskManager.getAllRootTaskInfosOnDisplay(display.getDisplayId())) in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
146 when(mDisplayManager.getDisplays()).thenReturn(new Display[]{display}); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
155 verify(mSideLoadedAppStateController).onSafeTaskDisplayedOnDisplay(display); in onTaskStackChanged_safeTask_callsSafeTaskDisplayed()
161 Display display = createDisplay(123); in onTaskStackChanged_unsafeTask_callsUnsafeTaskDisplayed() local
[all …]
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/wm/
DCarUiPortraitDisplaySystemBarsController.java122 CarUiPortraitPerDisplay display = mCarUiPerDisplaySparseArray.get(displayId); in requestImmersiveMode() local
123 if (display == null) { in requestImmersiveMode()
126 display.setImmersiveMode(state); in requestImmersiveMode()
135 CarUiPortraitPerDisplay display = mCarUiPerDisplaySparseArray.get(displayId); in requestImmersiveModeForSUW() local
136 if (display == null) { in requestImmersiveModeForSUW()
140 display.setImmersiveMode(immersive ? STATE_IMMERSIVE_WITHOUT_NAV_BAR : STATE_DEFAULT); in requestImmersiveModeForSUW()
147 CarUiPortraitPerDisplay display = mCarUiPerDisplaySparseArray.get(displayId); in registerCallback() local
148 if (display == null) { in registerCallback()
151 display.addCallbackForDisplay(callback); in registerCallback()
158 CarUiPortraitPerDisplay display = mCarUiPerDisplaySparseArray.get(displayId); in unregisterCallback() local
[all …]
/packages/services/Car/cpp/evs/support_library/
DRenderBase.cpp68 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in prepareGL() local
69 if (display == EGL_NO_DISPLAY) { in prepareGL()
76 if (!eglInitialize(display, &major, &minor)) { in prepareGL()
86 if (!eglChooseConfig(display, config_attribs, &egl_config, 1, &num_configs)) { in prepareGL()
94 sMockSurface = eglCreatePbufferSurface(display, egl_config, surface_attribs); in prepareGL()
105 EGLContext context = eglCreateContext(display, egl_config, EGL_NO_CONTEXT, context_attribs); in prepareGL()
112 if (!eglMakeCurrent(display, sMockSurface, sMockSurface, context)) { in prepareGL()
132 sDisplay = display; in prepareGL()
/packages/apps/Settings/src/com/android/settings/
DDisplaySettings.java24 import com.android.settings.display.BrightnessLevelPreferenceController;
25 import com.android.settings.display.CameraGesturePreferenceController;
26 import com.android.settings.display.LiftToWakePreferenceController;
27 import com.android.settings.display.ShowOperatorNamePreferenceController;
28 import com.android.settings.display.TapToWakePreferenceController;
29 import com.android.settings.display.ThemePreferenceController;
30 import com.android.settings.display.VrDisplayPreferenceController;
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/
DSideLoadedAppListener.java23 import android.hardware.display.DisplayManager;
66 Display display = mDisplayManager.getDisplay(taskInfo.displayId); in onTaskCreated() local
67 mSideLoadedAppStateController.onUnsafeTaskCreatedOnDisplay(display); in onTaskCreated()
76 for (Display display : displays) { in onTaskStackChanged()
79 mActivityTaskManager.getAllRootTaskInfosOnDisplay(display.getDisplayId()); in onTaskStackChanged()
89 mSideLoadedAppStateController.onSafeTaskDisplayedOnDisplay(display); in onTaskStackChanged()
91 mSideLoadedAppStateController.onUnsafeTaskDisplayedOnDisplay(display); in onTaskStackChanged()
/packages/apps/Gallery2/jni/
Djni_egl_fence.cpp40 EGLDisplay display = eglGetCurrentDisplay(); in IsEglKHRFenceSyncSupported() local
41 const char* eglExtensions = eglQueryString(display, EGL_EXTENSIONS); in IsEglKHRFenceSyncSupported()
60 EGLDisplay display = eglGetCurrentDisplay(); in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait() local
65 EGLSyncKHR fence = FuncEglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, NULL); in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait()
70 EGLint result = FuncEglClientWaitSyncKHR(display, in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait()
77 FuncEglDestroySyncKHR(display, fence); in Java_com_android_gallery3d_photoeditor_FilterStack_nativeEglSetFenceAndWait()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/display/
DDisplayManagerHelper.java17 package android.car.builtin.display;
24 import android.hardware.display.DisplayManager;
25 import android.hardware.display.DisplayManager.DisplayListener;
26 import android.hardware.display.DisplayManager.EventsMask;
123 public static String getUniqueId(@NonNull Display display) { in getUniqueId() argument
124 return display.getUniqueId(); in getUniqueId()
/packages/services/Car/cpp/evs/apps/default/src/
DRenderBase.cpp73 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in prepareGL() local
74 if (display == EGL_NO_DISPLAY) { in prepareGL()
81 if (!eglInitialize(display, &major, &minor)) { in prepareGL()
91 if (!eglChooseConfig(display, config_attribs, &egl_config, 1, &num_configs)) { in prepareGL()
99 sMockSurface = eglCreatePbufferSurface(display, egl_config, surface_attribs); in prepareGL()
110 EGLContext context = eglCreateContext(display, egl_config, EGL_NO_CONTEXT, context_attribs); in prepareGL()
117 if (!eglMakeCurrent(display, sMockSurface, sMockSurface, context)) { in prepareGL()
137 sDisplay = display; in prepareGL()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestInCallUI.java271 StringBuilder display = new StringBuilder(); in onCreate() local
272 display.append("priority="); in onCreate()
275 display.append("normal"); in onCreate()
278 display.append("urgent"); in onCreate()
281 display.append("unset"); in onCreate()
283 display.append(";"); in onCreate()
285 display.append("lat=" + location.getLatitude()); in onCreate()
286 display.append("lon=" + location.getLongitude()); in onCreate()
288 display.append("loc=null"); in onCreate()
291 display.append(" subject=" + subject); in onCreate()
[all …]
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
DClusterOsDoubleApplication.java27 import android.hardware.display.DisplayManager;
140 for (Display display : mDisplayManager.getDisplays()) { in findDisplayIdByUniqueId()
141 if (displayUniqueId.equals(display.getUniqueId())) { in findDisplayIdByUniqueId()
142 return display.getDisplayId(); in findDisplayIdByUniqueId()
149 for (Display display : mDisplayManager.getDisplays()) { in findDisplayByPort()
150 DisplayAddress address = display.getAddress(); in findDisplayByPort()
156 return display.getDisplayId(); in findDisplayByPort()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DDisplaySoundUtils.java26 import android.hardware.display.DisplayManager;
27 import android.hardware.display.HdrConversionMode;
100 public static boolean doesCurrentModeNotSupportDvBecauseLimitedTo4k30(Display display) { in doesCurrentModeNotSupportDvBecauseLimitedTo4k30() argument
101 Display.Mode[] supportedModes = display.getSupportedModes(); in doesCurrentModeNotSupportDvBecauseLimitedTo4k30()
102 Display.Mode currentMode = display.getMode(); in doesCurrentModeNotSupportDvBecauseLimitedTo4k30()
115 public static Display.Mode findMode1080p60(Display display) { in findMode1080p60() argument
116 for (Display.Mode mode : display.getSupportedModes()) { in findMode1080p60()
DHdrFormatPreferenceController.java32 import android.hardware.display.DisplayManager;
33 import android.hardware.display.HdrConversionMode;
116 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in onPreferenceClicked() local
118 && doesCurrentModeNotSupportDvBecauseLimitedTo4k30(display)) { in onPreferenceClicked()
119 enableDvAndChangeTo1080p60(display, preference); in onPreferenceClicked()
149 private void enableDvAndChangeTo1080p60(Display display, SwitchPreference preference) { in enableDvAndChangeTo1080p60() argument
157 mDisplayManager.setGlobalUserPreferredDisplayMode(findMode1080p60(display)); in enableDvAndChangeTo1080p60()
/packages/apps/Launcher3/src/com/android/launcher3/util/window/
DRefreshRateTracker.java23 import android.hardware.display.DisplayManager;
24 import android.hardware.display.DisplayManager.DisplayListener;
72 Display display = mDM.getDisplay(DEFAULT_DISPLAY); in updateSingleFrameMs() local
73 if (display != null) { in updateSingleFrameMs()
74 float refreshRate = display.getRefreshRate(); in updateSingleFrameMs()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DDisplayControllerTest.kt23 import android.hardware.display.DisplayManager in <lambda>()
66 private val display: Display = mock() in <lambda>() constant in com.android.launcher3.util.DisplayControllerTest
123 whenever(display.rotation).thenReturn(displayInfo.rotation) in <lambda>()
124 whenever(context.display).thenReturn(display) in <lambda>()
125 whenever(displayManager.getDisplay(any())).thenReturn(display) in <lambda>()
142 whenever(display.rotation).thenReturn(displayInfo.rotation) in <lambda>()
170 displayController.handleInfoChange(display) in <lambda>()
179 displayController.handleInfoChange(display) in <lambda>()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/display/displaysound/
DHdrFormatPreferenceController.java17 package com.android.tv.settings.library.device.display.displaysound;
19 import static com.android.tv.settings.library.device.display.displaysound.HdrFormatSelectionState.K…
20 import static com.android.tv.settings.library.device.display.displaysound.HdrFormatSelectionState.K…
21 import static com.android.tv.settings.library.device.display.displaysound.HdrFormatSelectionState.K…
22 import static com.android.tv.settings.library.device.display.displaysound.HdrFormatSelectionState.K…
26 import android.hardware.display.DisplayManager;

12345678910>>...25