/cts/tests/tests/provider/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()
|
D | Contacts_OrganizationsTest.java | 25 String display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel() local 27 assertEquals(label, display); in testGetDisplayLabel()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | DisplayTest.java | 17 package android.display.cts; 32 import android.hardware.display.DisplayManager; 33 import android.hardware.display.DisplayManager.DisplayListener; 142 private boolean isSecondaryDisplay(Display display) { in isSecondaryDisplay() argument 143 return display.toString().contains(OVERLAY_DISPLAY_TYPE); in isSecondaryDisplay() 148 for (Display display : displays) { in getSecondaryDisplay() 149 if (isSecondaryDisplay(display)) { in getSecondaryDisplay() 150 return display; in getSecondaryDisplay() 166 for (Display display : displays) { in testGetDisplays() 167 if (display.getDisplayId() == Display.DEFAULT_DISPLAY) { in testGetDisplays() [all …]
|
D | VirtualDisplayTest.java | 17 package android.display.cts; 25 import android.hardware.display.DisplayManager; 26 import android.hardware.display.VirtualDisplay; 124 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() local 126 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay() 131 display, BLUEISH, in testPrivateVirtualDisplay() 136 assertDisplayUnregistered(display); in testPrivateVirtualDisplay() 149 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() local 151 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay() 156 display, BLUEISH, in testPrivatePresentationVirtualDisplay() [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/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/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()
|
D | EglConfigGLSurfaceView.java | 59 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument 66 if (egl.eglChooseConfig(display, attributeList, configs, 1, new int[] {1})) { in chooseConfig() 68 printConfig(egl, display, configs[0]); in chooseConfig() 243 private static void printConfig(EGL10 egl, EGLDisplay display, in printConfig() argument 319 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { in printConfig()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
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 | MultiDisplayTestBase.java | 20 import static android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC; 106 for (ActivityDisplay display : displays) { in getDisplayState() 107 if (display.mId == displayId) { in getDisplayState() 108 return display; in getDisplayState() 117 for (ActivityDisplay display : displays) { in getDisplayState() 118 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState() 121 final Configuration config = display.mFullConfiguration; in getDisplayState() 124 return display; in getDisplayState() 468 ActivityDisplay display) { in launchActivityOnDisplay() argument 469 return launchActivityOnDisplay(activityName, display, null /* extrasConsumer */, in launchActivityOnDisplay() [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; 31 import android.hardware.display.DisplayManager; 32 import android.hardware.display.VirtualDisplay;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/display/ |
D | DisplayHdrCapabilitiesTestActivity.java | 17 package com.android.cts.verifier.tv.display; 96 Display display = mContext.getWindowManager().getDefaultDisplay(); in runTest() local 99 .that(display.isHdr()) in runTest() 103 .that(display.getHdrCapabilities().getSupportedHdrTypes()) in runTest() 132 Display display = mContext.getWindowManager().getDefaultDisplay(); in runTest() local 136 .that(display.isHdr()) in runTest() 139 Display.HdrCapabilities hdrCapabilities = display.getHdrCapabilities(); in runTest() 202 Display display = mContext.getWindowManager().getDefaultDisplay(); in runTestAsync() local 203 display.isHdr(); in runTestAsync() 204 display.getHdrCapabilities(); in runTestAsync()
|
D | DisplayModesTestActivity.java | 17 package com.android.cts.verifier.tv.display; 20 import android.hardware.display.DisplayManager; 127 Display display = in runTestAsync() local 129 display.getMode(); in runTestAsync() 130 display.getSupportedModes(); in runTestAsync() 164 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTest() local 168 .that(display.getMode()) in runTest() 195 .that(Arrays.asList(display.getSupportedModes())) in runTest() 225 Display display = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in runTest() local 230 .that(display.getMode()) in runTest() [all …]
|
/cts/hostsidetests/angle/app/common/src/com/android/angleIntegrationTest/common/ |
D | GlesView.java | 45 private EGLDisplay display; field in GlesView 62 display = EGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in createEGL() 63 EGL.eglInitialize(display, version); in createEGL() 66 EGL.eglGetConfigs(display, null, 0, numConfigs); in createEGL() 68 EGL.eglGetConfigs(display, allConfigs, numConfigs[0], numConfigs); in createEGL() 92 EGL.eglChooseConfig(display, configAttrib, selectedConfig, 1, numConfigs); in createEGL() 105 EGLSurface surface = EGL.eglCreateWindowSurface(display, eglConfig, this, null); in surfaceCreated() 108 .eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, contextAttribs); in surfaceCreated() 109 EGL.eglMakeCurrent(display, surface, surface, context); in surfaceCreated()
|
/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/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/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 …]
|
/cts/hostsidetests/gputools/apps/jni/ |
D | android_gputools_cts_RootlessGpuDebug.cpp | 82 EGLDisplay display; in initGLES() local 95 if ((display = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY) { in initGLES() 100 if (!eglInitialize(display, 0, 0)) { in initGLES() 105 if (!eglChooseConfig(display, attribs, &config, 1, &numConfigs)) { in initGLES() 111 if (!eglGetConfigAttrib(display, config, EGL_NATIVE_VISUAL_ID, &format)) { in initGLES() 117 eglTerminate(display); in initGLES()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RenderTarget.java | 141 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in setupThread() local 142 if (display == null) { in setupThread() 146 if (!eglInitialize(display, version, 0, version, 1)) { in setupThread() 162 if (!eglChooseConfig(display, egl_attribs, 0, configs, 0, 1, num_configs, 0) in setupThread() 171 EGLContext context = eglCreateContext(display, config, EGL_NO_CONTEXT, gl_attribs, 0); in setupThread() 176 EGLSurface pbuffer = eglCreatePbufferSurface(display, config, pbuffer_attribs, 0); in setupThread() 180 if (!eglMakeCurrent(display, pbuffer, pbuffer, context)) { in setupThread()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | RenderTarget.java | 144 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY); in setupThread() local 145 if (display == null) { in setupThread() 149 if (!eglInitialize(display, version, 0, version, 1)) { in setupThread() 165 if (!eglChooseConfig(display, egl_attribs, 0, configs, 0, 1, num_configs, 0) in setupThread() 174 EGLContext context = eglCreateContext(display, config, EGL_NO_CONTEXT, gl_attribs, 0); in setupThread() 179 EGLSurface pbuffer = eglCreatePbufferSurface(display, config, pbuffer_attribs, 0); in setupThread() 183 if (!eglMakeCurrent(display, pbuffer, pbuffer, context)) { in setupThread()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NoCaptureVideoPermissionTest.java | 21 import android.hardware.display.DisplayManager; 22 import android.hardware.display.VirtualDisplay; 94 VirtualDisplay display = displayManager.createVirtualDisplay( in testCreatePrivateVirtualDisplay() local 97 display.release(); in testCreatePrivateVirtualDisplay()
|