Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContacts_PhonesTest.java26 String display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel() local
28 assertEquals(label, display); in testGetDisplayLabel()
42 String display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray() local
44 assertEquals(label, display); in testGetDisplayLabelCharSequenceArray()
46 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
48 assertEquals(labelArray[Phones.TYPE_HOME - 1], display); in testGetDisplayLabelCharSequenceArray()
50 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
52 assertEquals(labelArray[Phones.TYPE_MOBILE - 1], display); in testGetDisplayLabelCharSequenceArray()
54 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabelCharSequenceArray()
56 assertEquals(labelArray[Phones.TYPE_WORK - 1], display); in testGetDisplayLabelCharSequenceArray()
[all …]
DContacts_ContactMethodsTest.java52 String display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test() local
54 assertEquals(label, display); in test()
56 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_POSTAL, in test()
58 assertEquals(label, display); in test()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DPresentationTest.java44 for (Display display : mDm.getDisplays()) { in testPresentationFollowsDisplayFlag()
45 launchPresentationActivity(display.getDisplayId()); in testPresentationFollowsDisplayFlag()
46 if ((display.getFlags() & Display.FLAG_PRESENTATION) != Display.FLAG_PRESENTATION) { in testPresentationFollowsDisplayFlag()
49 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.getDisplayId()); in testPresentationFollowsDisplayFlag()
56 WindowManagerState.DisplayContent display = in testPresentationAllowedOnPresentationDisplay() local
62 assertThat(display.getFlags() & Display.FLAG_PRESENTATION) in testPresentationAllowedOnPresentationDisplay()
65 launchPresentationActivity(display.mId); in testPresentationAllowedOnPresentationDisplay()
66 assertPresentationOnDisplayAndMatchesDisplayMetrics(display.mId); in testPresentationAllowedOnPresentationDisplay()
72 WindowManagerState.DisplayContent display = virtualDisplaySession in testPresentationNotDismissAfterResizeDisplay() local
78 assertThat(display.getFlags() & Display.FLAG_PRESENTATION) in testPresentationNotDismissAfterResizeDisplay()
[all …]
DActivityManagerGetConfigTests.java36 import android.hardware.display.DisplayManager;
112 EGLDisplay display, in addExtensionsForConfig() argument
119 egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, contextAttribs); in addExtensionsForConfig()
126 EGLSurface surface = egl.eglCreatePbufferSurface(display, config, surfaceSize); in addExtensionsForConfig()
128 egl.eglDestroyContext(display, context); in addExtensionsForConfig()
133 egl.eglMakeCurrent(display, surface, surface, context); in addExtensionsForConfig()
146 … egl.eglMakeCurrent(display, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); in addExtensionsForConfig()
147 egl.eglDestroySurface(display, surface); in addExtensionsForConfig()
148 egl.eglDestroyContext(display, context); in addExtensionsForConfig()
162 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getGlExtensionsFromDriver() local
[all …]
DWindowContextPolicyTests.java76 final Display display = mDm.getDisplay(Display.DEFAULT_DISPLAY); in testWindowContextWithDisplayOnNonUiContext() local
77 mContext.createWindowContext(display, TYPE_APPLICATION_OVERLAY, null /* options */); in testWindowContextWithDisplayOnNonUiContext()
82 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testCreateMultipleWindowContextsWithoutView() local
85 createWindowContext(display.mId); in testCreateMultipleWindowContextsWithoutView()
91 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextWithAllPublicTypes() local
106 createWindowContext(display.mId, windowType); in testWindowContextWithAllPublicTypes()
112 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextAddMismatchedWindowType() local
114 final Context windowContext = createWindowContext(display.mId); in testWindowContextAddMismatchedWindowType()
DMultiDisplayTestBase.java131 for (DisplayContent display : displays) { in getDisplayState()
132 if (display.mId == displayId) { in getDisplayState()
133 return display; in getDisplayState()
142 for (DisplayContent display : displays) { in getDisplayState()
143 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState()
146 final Configuration config = display.mFullConfiguration; in getDisplayState()
149 return display; in getDisplayState()
309 final DisplayContent display = createDisplays(1).stream().findFirst().orElse(null); in createDisplay() local
310 if (mustBeCreated && display == null) { in createDisplay()
313 return display; in createDisplay()
[all …]
DRoundedCornerTests.java150 final Display display = activity.getDisplay(); in verifyRoundedCorners() local
152 assertEquals(insets.getRoundedCorner(j), display.getRoundedCorner(j)); in verifyRoundedCorners()
252 final Display display = getDisplay(); in hasRoundedCorners() local
253 return display.getRoundedCorner(POSITION_TOP_LEFT) != null in hasRoundedCorners()
254 || display.getRoundedCorner(POSITION_TOP_RIGHT) != null in hasRoundedCorners()
255 || display.getRoundedCorner(POSITION_BOTTOM_RIGHT) != null in hasRoundedCorners()
256 || display.getRoundedCorner(POSITION_BOTTOM_LEFT) != null; in hasRoundedCorners()
260 final Display display = getDisplay(); in calculateWindowBounds() local
268 final RoundedCorner topLeft = display.getRoundedCorner(POSITION_TOP_LEFT); in calculateWindowBounds()
269 final RoundedCorner topRight = display.getRoundedCorner(POSITION_TOP_RIGHT); in calculateWindowBounds()
[all …]
DVirtualDisplayHelper.java19 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY;
20 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION;
21 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC;
30 import android.hardware.display.DisplayManager;
31 import android.hardware.display.VirtualDisplay;
/cts/tests/tests/content/src/android/content/wm/cts/
DContextGetDisplayTest.java83 final Display display = getDefaultDisplay(); in testGetDisplayFromDisplayContext() local
84 Context displayContext = mApplicationContext.createDisplayContext(display); in testGetDisplayFromDisplayContext()
86 assertEquals(display, displayContext.getDisplay()); in testGetDisplayFromDisplayContext()
100 final Display display = onSecondaryDisplay ? getSecondaryDisplay() : getDefaultDisplay(); in verifyGetDisplayFromDisplayContextDerivedContext() local
101 final Context context = mApplicationContext.createDisplayContext(display) in verifyGetDisplayFromDisplayContextDerivedContext()
103 assertEquals(display, context.getDisplay()); in verifyGetDisplayFromDisplayContextDerivedContext()
108 final Display display = getDefaultDisplay(); in testGetDisplayFromWindowContext() local
110 assertEquals(display.getDisplayId(), windowContext.getDisplay().getDisplayId()); in testGetDisplayFromWindowContext()
115 final Display display = getDefaultDisplay(); in testGetDisplayFromWindowContextWithDefaultDisplay() local
116 final Context windowContext = mApplicationContext.createWindowContext(display, in testGetDisplayFromWindowContextWithDefaultDisplay()
[all …]
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGLtestView.java112 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument
116 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
121 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
122 egl.eglDestroyContext(display, context); in destroyContext()
158 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument
163 egl.eglChooseConfig(display, s_configAttribs2, null, 0, num_config); in chooseConfig()
174 egl.eglChooseConfig(display, s_configAttribs2, configs, numConfigs, num_config); in chooseConfig()
177 printConfigs(egl, display, configs); in chooseConfig()
181 return chooseConfig(egl, display, configs); in chooseConfig()
184 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DEgl10Utils.java30 static EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, int[] configSpec) { in chooseConfig() argument
32 if (!egl.eglChooseConfig(display, configSpec, null, 0, in chooseConfig()
43 if (!egl.eglChooseConfig(display, configSpec, configs, numConfigs, value)) { in chooseConfig()
46 EGLConfig config = chooseConfig(egl, display, configs, configSpec); in chooseConfig()
73 private static EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument
84 int d = findConfigAttrib(egl, display, config, EGL10.EGL_DEPTH_SIZE); in chooseConfig()
85 int s = findConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE); in chooseConfig()
87 int r = findConfigAttrib(egl, display, config, EGL10.EGL_RED_SIZE); in chooseConfig()
88 int g = findConfigAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE); in chooseConfig()
89 int b = findConfigAttrib(egl, display, config, EGL10.EGL_BLUE_SIZE); in chooseConfig()
[all …]
DEglSurfacesTest.java44 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testCreatePixmapSurface() local
46 if (display == EGL10.EGL_NO_DISPLAY) { in testCreatePixmapSurface()
51 if (!egl.eglInitialize(display, version)) { in testCreatePixmapSurface()
55 EGLConfig config = Egl10Utils.chooseConfig(egl, display, in testCreatePixmapSurface()
71 EGLContext context = egl.eglCreateContext(display, config, in testCreatePixmapSurface()
77 egl.eglCreatePixmapSurface(display, config, null, null); in testCreatePixmapSurface()
82 egl.eglDestroyContext(display, context); in testCreatePixmapSurface()
83 egl.eglTerminate(display); in testCreatePixmapSurface()
DOpenGlEsVersionTest.java210 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance() local
211 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance()
252 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensions() local
254 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensions()
256 String eglExtensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredEglExtensions()
265 egl.eglTerminate(display); in testRequiredEglExtensions()
290 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensionsForHdrCapableDisplay() local
292 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensionsForHdrCapableDisplay()
294 String eglExtensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredEglExtensionsForHdrCapableDisplay()
300 egl.eglTerminate(display); in testRequiredEglExtensionsForHdrCapableDisplay()
[all …]
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java17 package android.display.cts;
19 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_SHOULD_SHOW_SYSTEM_DECOR…
20 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_TRUSTED;
36 import android.hardware.display.DisplayManager;
37 import android.hardware.display.VirtualDisplay;
165 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() local
167 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay()
172 display, BLUEISH, 0); in testPrivateVirtualDisplay()
176 assertDisplayUnregistered(display); in testPrivateVirtualDisplay()
191 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() local
[all …]
DDisplayTest.java17 package android.display.cts;
47 import android.hardware.display.DeviceProductInfo;
48 import android.hardware.display.DisplayManager;
49 import android.hardware.display.DisplayManager.DisplayListener;
146 DisplayModeState(Display display) { in DisplayModeState() argument
147 mHeight = display.getMode().getPhysicalHeight(); in DisplayModeState()
148 mWidth = display.getMode().getPhysicalWidth(); in DisplayModeState()
158 mRefreshRate = display.getRefreshRate(); in DisplayModeState()
264 private boolean isSecondaryDisplay(Display display) { in isSecondaryDisplay() argument
265 return display.getType() == Display.TYPE_OVERLAY; in isSecondaryDisplay()
[all …]
/cts/tests/vr/src/android/vr/cts/
DOpenGLESActivity.java234 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
240 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
249 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
250 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
251 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext()
260 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
266 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
275 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
276 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
277 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext()
[all …]
/cts/hostsidetests/graphics/displaymode/app/src/com/android/cts/graphics/displaymode/
DBootDisplayModeTest.java20 import android.hardware.display.DisplayManager;
98 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testGetBootDisplayMode() local
99 Display.Mode[] supportedModes = display.getSupportedModes(); in testGetBootDisplayMode()
100 Display.Mode initialDefaultMode = display.getDefaultMode(); in testGetBootDisplayMode()
115 waitUntil(display, in testGetBootDisplayMode()
116 display1 -> display.getDefaultMode().getModeId() == mode.getModeId(), in testGetBootDisplayMode()
140 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testClearBootDisplayMode() local
141 Display.Mode[] supportedModes = display.getSupportedModes(); in testClearBootDisplayMode()
143 Display.Mode initialDefaultMode = display.getDefaultMode(); in testClearBootDisplayMode()
146 Display.Mode systemPreferredMode = display.getSystemPreferredDisplayMode(); in testClearBootDisplayMode()
[all …]
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DSimulatedVirtualDisplaySession.java19 import static android.hardware.display.DisplayManager.DISPLAY_CATEGORY_PRESENTATION;
26 import android.hardware.display.DisplayManager;
48 private SimulatedVirtualDisplaySession(@NonNull Display display) { in SimulatedVirtualDisplaySession() argument
49 mDisplay = display; in SimulatedVirtualDisplaySession()
70 for (Display display : displays) { in create()
72 (display.getFlags() & FLAG_TRUSTED) == FLAG_TRUSTED; in create()
73 if (isTrusted && display.getType() == Display.TYPE_OVERLAY) { in create()
75 wm.setDisplayImePolicy(display.getDisplayId(), in create()
77 simulatedDisplay.set(display); in create()
/cts/tests/tests/util/src/android/util/cts/
DDisplayMetricsTest.java41 Display display = windowManager.getDefaultDisplay(); in initDisplay() local
42 assertNotNull(display); in initDisplay()
43 return display; in initDisplay()
58 Display display = initDisplay(); in testDisplayMetricsOp() local
59 display.getMetrics(outMetrics); in testDisplayMetricsOp()
62 assertEquals(display.getHeight(), metrics.heightPixels); in testDisplayMetricsOp()
63 assertEquals(display.getWidth(), metrics.widthPixels); in testDisplayMetricsOp()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java17 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY;
18 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC;
24 import android.hardware.display.DisplayManager;
25 import android.hardware.display.VirtualDisplay;
115 final Display display = createDisplay(context, metrics.widthPixels, in createDisplayWithDefaultDisplayMetricsAndWait() local
120 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait()
122 … String.format("wait for virtual display %d adding", display.getDisplayId())); in createDisplayWithDefaultDisplayMetricsAndWait()
126 return display; in createDisplayWithDefaultDisplayMetricsAndWait()
/cts/hostsidetests/angle/app/common/src/com/android/angleIntegrationTest/common/
DGlesView.java52 EGLDisplay display = EGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in createEGL() local
53 EGL.eglInitialize(display, version); in createEGL()
56 EGL.eglGetConfigs(display, null, 0, numConfigs); in createEGL()
58 EGL.eglGetConfigs(display, allConfigs, numConfigs[0], numConfigs); in createEGL()
82 EGL.eglChooseConfig(display, configAttrib, selectedConfig, 1, numConfigs); in createEGL()
92 EGLSurface surface = EGL.eglCreatePbufferSurface(display, eglConfig, null); in createEGL()
95 .eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, contextAttribs); in createEGL()
96 EGL.eglMakeCurrent(display, surface, surface, context); in createEGL()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/
DHotplugTestActivity.java17 package com.android.cts.verifier.tv.display;
21 import android.hardware.display.DisplayManager;
68 DisplayCapabilities(Display display) { in DisplayCapabilities() argument
69 this.modes = display.getSupportedModes(); in DisplayCapabilities()
70 this.hdrCapabilities = display.getHdrCapabilities(); in DisplayCapabilities()
167 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTestAsync() local
168 mRecordedCapabilities.add(new DisplayCapabilities(display)); in runTestAsync()
188 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onDisplayChanged() local
189 DisplayCapabilities currCapabilities = new DisplayCapabilities(display); in onDisplayChanged()
198 display.getHdrCapabilities().getSupportedHdrTypes().length == 0 in onDisplayChanged()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVirtualDisplayActivity.java19 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY;
20 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION;
21 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC;
43 import android.hardware.display.DisplayManager;
44 import android.hardware.display.VirtualDisplay;
77 final VirtualDisplay display; field in VirtualDisplayActivity.VirtualDisplayEntry
82 VirtualDisplayEntry(VirtualDisplay display, SurfaceView surfaceView, int density, in VirtualDisplayEntry() argument
84 this.display = display; in VirtualDisplayEntry()
154 Log.d(TAG, "destroying:" + entry.display); in destroyVirtualDisplays()
155 entry.display.release(); in destroyVirtualDisplays()
[all …]
DLandscapeOrientationActivity.java28 import android.hardware.display.DisplayManager;
43 final Display display = getDisplay(); in onCreate()
45 display.getRealSize(size); in onCreate()
46 extras.putParcelable(EXTRA_CONFIG_INFO_IN_ON_CREATE, new ConfigInfo(this, display)); in onCreate()
/cts/hostsidetests/gputools/apps/jni/
Dandroid_gputools_cts_RootlessGpuDebug.cpp101 EGLDisplay display; in initGLES() local
114 if ((display = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY) { in initGLES()
119 if (!eglInitialize(display, 0, 0)) { in initGLES()
124 if (!eglChooseConfig(display, attribs, &config, 1, &numConfigs)) { in initGLES()
130 if (!eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format)) { in initGLES()
136 eglTerminate(display); in initGLES()

1234567