/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | Contacts_PhonesTest.java | 26 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 …]
|
D | Contacts_ContactMethodsTest.java | 52 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/ |
D | PresentationTest.java | 44 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 …]
|
D | ActivityManagerGetConfigTests.java | 36 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 …]
|
D | RoundedCornerTests.java | 105 final Display display = activity.getDisplay(); in testRoundedCorner_fullscreen() local 107 assertEquals(insets.getRoundedCorner(i), display.getRoundedCorner(i)); in testRoundedCorner_fullscreen() 182 final Display display = getDisplay(); in hasRoundedCorners() local 183 return display.getRoundedCorner(POSITION_TOP_LEFT) != null in hasRoundedCorners() 184 || display.getRoundedCorner(POSITION_TOP_RIGHT) != null in hasRoundedCorners() 185 || display.getRoundedCorner(POSITION_BOTTOM_RIGHT) != null in hasRoundedCorners() 186 || display.getRoundedCorner(POSITION_BOTTOM_LEFT) != null; in hasRoundedCorners() 190 final Display display = getDisplay(); in calculateWindowBounds() local 198 final RoundedCorner topLeft = display.getRoundedCorner(POSITION_TOP_LEFT); in calculateWindowBounds() 199 final RoundedCorner topRight = display.getRoundedCorner(POSITION_TOP_RIGHT); in calculateWindowBounds() [all …]
|
D | WindowContextPolicyTests.java | 74 final Display display = mDm.getDisplay(Display.DEFAULT_DISPLAY); in testWindowContextWithDisplayOnNonUiContext() local 75 mContext.createWindowContext(display, TYPE_APPLICATION_OVERLAY, null /* options */); in testWindowContextWithDisplayOnNonUiContext() 80 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testCreateMultipleWindowContextsWithoutView() local 83 createWindowContext(display.mId); in testCreateMultipleWindowContextsWithoutView() 89 final WindowManagerState.DisplayContent display = createManagedVirtualDisplaySession() in testWindowContextWithAllPublicTypes() local 104 createWindowContext(display.mId, windowType); in testWindowContextWithAllPublicTypes()
|
D | MultiDisplayTestBase.java | 130 for (DisplayContent display : displays) { in getDisplayState() 131 if (display.mId == displayId) { in getDisplayState() 132 return display; in getDisplayState() 141 for (DisplayContent display : displays) { in getDisplayState() 142 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState() 145 final Configuration config = display.mFullConfiguration; in getDisplayState() 148 return display; in getDisplayState() 496 final DisplayContent display = createDisplays(1).stream().findFirst().orElse(null); in createDisplay() local 497 if (mustBeCreated && display == null) { in createDisplay() 500 return display; in createDisplay() [all …]
|
D | VirtualDisplayHelper.java | 19 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/ |
D | ContextGetDisplayTest.java | 83 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, windowContext.getDisplay()); 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/ |
D | GLtestView.java | 112 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/ |
D | Egl10Utils.java | 30 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 …]
|
D | EglSurfacesTest.java | 44 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()
|
D | OpenGlEsVersionTest.java | 220 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance() local 221 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance() 262 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensions() local 264 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensions() 266 String eglExtensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredEglExtensions() 275 egl.eglTerminate(display); in testRequiredEglExtensions() 302 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensionsForHdrCapableDisplay() local 304 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensionsForHdrCapableDisplay() 306 String eglExtensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredEglExtensionsForHdrCapableDisplay() 312 egl.eglTerminate(display); in testRequiredEglExtensionsForHdrCapableDisplay() [all …]
|
D | EglConfigCtsActivity.java | 146 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getEglConfigIds() local 161 if (egl.eglInitialize(display, null)) { in getEglConfigIds() 163 if (egl.eglChooseConfig(display, attributeList, null, 0, numConfigs)) { in getEglConfigIds() 165 if (egl.eglChooseConfig(display, attributeList, configs, configs.length, in getEglConfigIds() 170 if (egl.eglGetConfigAttrib(display, configs[i], EGL10.EGL_CONFIG_ID, in getEglConfigIds() 185 egl.eglTerminate(display); in getEglConfigIds()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | VirtualDisplayTest.java | 17 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 …]
|
D | DisplayTest.java | 17 package android.display.cts; 40 import android.hardware.display.DeviceProductInfo; 41 import android.hardware.display.DisplayManager; 42 import android.hardware.display.DisplayManager.DisplayListener; 134 DisplayModeState(Display display) { in DisplayModeState() argument 135 mHeight = display.getMode().getPhysicalHeight(); in DisplayModeState() 136 mWidth = display.getMode().getPhysicalWidth(); in DisplayModeState() 146 mRefreshRate = display.getRefreshRate(); in DisplayModeState() 251 private boolean isSecondaryDisplay(Display display) { in isSecondaryDisplay() argument 252 return display.getType() == Display.TYPE_OVERLAY; in isSecondaryDisplay() [all …]
|
/cts/tests/vr/src/android/vr/cts/ |
D | OpenGLESActivity.java | 234 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/tests/tests/util/src/android/util/cts/ |
D | DisplayMetricsTest.java | 41 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/ |
D | DisplayUtils.java | 17 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY; 18 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC; 25 import android.hardware.display.DisplayManager; 26 import android.hardware.display.VirtualDisplay; 118 final Display display = createDisplay(context, metrics.widthPixels, in createDisplayWithDefaultDisplayMetricsAndWait() local 123 () -> displayManager.getDisplay(display.getDisplayId()) != null, in createDisplayWithDefaultDisplayMetricsAndWait() 125 … String.format("wait for virtual display %d adding", display.getDisplayId())); in createDisplayWithDefaultDisplayMetricsAndWait() 129 return display; in createDisplayWithDefaultDisplayMetricsAndWait()
|
/cts/hostsidetests/angle/app/common/src/com/android/angleIntegrationTest/common/ |
D | GlesView.java | 51 EGLDisplay display = EGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in createEGL() local 52 EGL.eglInitialize(display, version); in createEGL() 55 EGL.eglGetConfigs(display, null, 0, numConfigs); in createEGL() 57 EGL.eglGetConfigs(display, allConfigs, numConfigs[0], numConfigs); in createEGL() 81 EGL.eglChooseConfig(display, configAttrib, selectedConfig, 1, numConfigs); in createEGL() 91 EGLSurface surface = EGL.eglCreatePbufferSurface(display, eglConfig, null); in createEGL() 94 .eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, contextAttribs); in createEGL() 95 EGL.eglMakeCurrent(display, surface, surface, context); in createEGL()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/ |
D | HotplugTestActivity.java | 17 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 …]
|
D | ModeSwitchingTestActivity.java | 17 package com.android.cts.verifier.tv.display; 23 import android.hardware.display.DisplayManager; 72 Display display = displayManager.getDisplay(Display.DEFAULT_DISPLAY); in onCreate() local 74 List<Display.Mode> modeList = findTestModes(display); in onCreate() 76 Display.Mode lastMode = display.getMode(); in onCreate() 125 private List<Display.Mode> findTestModes(Display display) { in findTestModes() argument 126 Display.Mode activeMode = display.getMode(); in findTestModes() 131 Arrays.stream(display.getSupportedModes()) in findTestModes() 140 Arrays.stream(display.getSupportedModes()) in findTestModes() 149 Arrays.stream(display.getSupportedModes()) in findTestModes()
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | VirtualDisplayActivity.java | 19 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 …]
|
/cts/hostsidetests/gputools/apps/jni/ |
D | android_gputools_cts_RootlessGpuDebug.cpp | 100 EGLDisplay display; in initGLES() local 113 if ((display = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY) { in initGLES() 118 if (!eglInitialize(display, 0, 0)) { in initGLES() 123 if (!eglChooseConfig(display, attribs, &config, 1, &numConfigs)) { in initGLES() 129 if (!eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format)) { in initGLES() 135 eglTerminate(display); in initGLES()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GLSurfaceViewCustom.java | 770 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); in createContext() argument 771 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); in destroyContext() argument 777 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 781 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 785 public void destroyContext(EGL10 egl, EGLDisplay display, in destroyContext() argument 787 if (!egl.eglDestroyContext(display, context)) { in destroyContext() 788 Log.e("DefaultContextFactory", "display:" + display + " context: " + context); in destroyContext() 807 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, in createWindowSurface() argument 809 void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface); in destroySurface() argument 814 public EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, in createWindowSurface() argument [all …]
|