/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() 32 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel() 34 assertEquals(labels[Phones.TYPE_HOME - 1], display); in testGetDisplayLabel() 36 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel() 38 assertEquals(labels[Phones.TYPE_MOBILE - 1], display); in testGetDisplayLabel() 40 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel() 42 assertEquals(labels[Phones.TYPE_WORK - 1], display); in testGetDisplayLabel() 44 display = Phones.getDisplayLabel(getContext(), in testGetDisplayLabel() 46 assertEquals(labels[Phones.TYPE_FAX_WORK - 1], display); in testGetDisplayLabel() [all …]
|
D | Contacts_ContactMethodsTest.java | 56 String display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test() local 58 assertEquals(label, display); in test() 62 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test() 64 assertEquals(labels[ContactMethods.TYPE_HOME - 1], display); in test() 66 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test() 68 assertEquals(labels[ContactMethods.TYPE_OTHER - 1], display); in test() 70 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_EMAIL, in test() 72 assertEquals(labels[ContactMethods.TYPE_WORK - 1], display); in test() 75 display = ContactMethods.getDisplayLabel(getContext(), Contacts.KIND_IM, in test() 77 assertEquals(untitled, display); in test() [all …]
|
D | Contacts_OrganizationsTest.java | 26 String display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel() local 28 assertEquals(label, display); in testGetDisplayLabel() 32 display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel() 34 assertEquals(labels[Organizations.TYPE_OTHER - 1], display); in testGetDisplayLabel() 36 display = Organizations.getDisplayLabel(getContext(), in testGetDisplayLabel() 38 assertEquals(labels[Organizations.TYPE_WORK - 1], 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/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 | 42 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testCreatePixmapSurface() local 44 if (display == EGL10.EGL_NO_DISPLAY) { in testCreatePixmapSurface() 49 if (!egl.eglInitialize(display, version)) { in testCreatePixmapSurface() 53 EGLConfig config = Egl10Utils.chooseConfig(egl, display, in testCreatePixmapSurface() 69 EGLContext context = egl.eglCreateContext(display, config, in testCreatePixmapSurface() 75 egl.eglCreatePixmapSurface(display, config, null, null); in testCreatePixmapSurface() 80 egl.eglDestroyContext(display, context); in testCreatePixmapSurface() 81 egl.eglTerminate(display); in testCreatePixmapSurface()
|
D | EglConfigTest.java | 86 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getEglConfigIds() local 101 if (egl.eglInitialize(display, null)) { in getEglConfigIds() 103 if (egl.eglChooseConfig(display, attributeList, null, 0, numConfigs)) { in getEglConfigIds() 105 if (egl.eglChooseConfig(display, attributeList, configs, configs.length, in getEglConfigIds() 110 if (egl.eglGetConfigAttrib(display, configs[i], EGL10.EGL_CONFIG_ID, in getEglConfigIds() 125 egl.eglTerminate(display); in getEglConfigIds()
|
D | OpenGlEsVersionTest.java | 192 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance() local 193 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance() 226 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensions() local 228 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensions() 230 String eglExtensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredEglExtensions() 239 egl.eglTerminate(display); in testRequiredEglExtensions() 261 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getDetectedMajorVersion() local 264 if (egl.eglInitialize(display, null)) { in getDetectedMajorVersion() 266 boolean checkES3 = hasExtension(egl.eglQueryString(display, EGL10.EGL_EXTENSIONS), in getDetectedMajorVersion() 268 if (egl.eglGetConfigs(display, null, 0, numConfigs)) { in getDetectedMajorVersion() [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/util/src/android/util/cts/ |
D | DisplayMetricsTest.java | 40 Display display = windowManager.getDefaultDisplay(); in initDisplay() local 41 assertNotNull(display); in initDisplay() 42 return display; in initDisplay() 57 Display display = initDisplay(); in testDisplayMetricsOp() local 58 display.getMetrics(outMetrics); in testDisplayMetricsOp() 61 assertEquals(display.getHeight(), metrics.heightPixels); in testDisplayMetricsOp() 62 assertEquals(display.getWidth(), metrics.widthPixels); in testDisplayMetricsOp()
|
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | ActivityManagerGetConfigTests.java | 32 import android.hardware.display.DisplayManager; 111 EGLDisplay display, in addExtensionsForConfig() argument 118 egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, contextAttribs); in addExtensionsForConfig() 125 EGLSurface surface = egl.eglCreatePbufferSurface(display, config, surfaceSize); in addExtensionsForConfig() 127 egl.eglDestroyContext(display, context); in addExtensionsForConfig() 132 egl.eglMakeCurrent(display, surface, surface, context); in addExtensionsForConfig() 145 … egl.eglMakeCurrent(display, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); in addExtensionsForConfig() 146 egl.eglDestroySurface(display, surface); in addExtensionsForConfig() 147 egl.eglDestroyContext(display, context); in addExtensionsForConfig() 161 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getGlExtensionsFromDriver() local [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; 28 import android.hardware.display.DisplayManager; 29 import android.hardware.display.VirtualDisplay;
|
D | ActivityManagerDisplayTestBase.java | 72 for (ActivityDisplay display : displays) { in getDisplayState() 73 if (display.mId == displayId) { in getDisplayState() 74 return display; in getDisplayState() 83 for (ActivityDisplay display : displays) { in getDisplayState() 84 if (display.mId == DEFAULT_DISPLAY) { in getDisplayState() 87 final Configuration config = display.mFullConfiguration; in getDisplayState() 90 return display; in getDisplayState() 458 for (ActivityDisplay display : displays) { in areDisplaysValid() 459 if (display.mOverrideConfiguration.densityDpi == 0) { in areDisplaysValid()
|
/cts/tests/framework/base/activitymanager/app/src/android/server/am/ |
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_PUBLIC; 40 import android.hardware.display.DisplayManager; 41 import android.hardware.display.VirtualDisplay; 72 final VirtualDisplay display; field in VirtualDisplayActivity.VirtualDisplayEntry 77 VirtualDisplayEntry(VirtualDisplay display, SurfaceView surfaceView, int density, in VirtualDisplayEntry() argument 79 this.display = display; in VirtualDisplayEntry() 147 Log.d(TAG, "destroying:" + entry.display); in destroyVirtualDisplays() 148 entry.display.release(); in destroyVirtualDisplays() 218 entry.display.resize(width, height, entry.density); in surfaceChanged() [all …]
|
/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()
|
/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/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/apps/CtsVerifier/src/com/android/cts/verifier/projection/offscreen/ |
D | OffscreenPresentation.java | 31 public OffscreenPresentation(Context outerContext, Display display) { in OffscreenPresentation() argument 32 super(outerContext, display); in OffscreenPresentation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/ |
D | TouchPresentation.java | 35 public TouchPresentation(Context outerContext, Display display) { in TouchPresentation() argument 36 super(outerContext, display); in TouchPresentation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/ |
D | WidgetPresentation.java | 36 public WidgetPresentation(Context outerContext, Display display) { in WidgetPresentation() argument 37 super(outerContext, display); in WidgetPresentation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/ |
D | ProjectedPresentation.java | 30 public ProjectedPresentation(Context outerContext, Display display) { in ProjectedPresentation() argument 32 super(outerContext, display, android.R.style.Theme_Holo_Light_NoActionBar_TranslucentDecor); in ProjectedPresentation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/ |
D | ListPresentation.java | 42 public ListPresentation(Context outerContext, Display display) { in ListPresentation() argument 43 super(outerContext, display); in ListPresentation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/ |
D | CubePresentation.java | 37 public CubePresentation(Context context, Display display) { in CubePresentation() argument 38 super(context, display); in CubePresentation()
|