Home
last modified time | relevance | path

Searched refs:eglDisplay (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/opengl/src/android/opengl/cts/
DEglContextTest.java39 EGLDisplay eglDisplay = null; in testCreateAndReleaseContext() local
42 eglDisplay = Egl14Utils.createEglDisplay(); in testCreateAndReleaseContext()
43 eglContext = Egl14Utils.createEglContext(eglDisplay); in testCreateAndReleaseContext()
44 Egl14Utils.destroyEglContext(eglDisplay, eglContext); in testCreateAndReleaseContext()
45 Egl14Utils.releaseAndTerminate(eglDisplay); in testCreateAndReleaseContext()
46 eglDisplay = null; in testCreateAndReleaseContext()
49 if (eglDisplay != null) { in testCreateAndReleaseContext()
51 EGL14.eglDestroyContext(eglDisplay, eglContext); in testCreateAndReleaseContext()
54 EGL14.eglTerminate(eglDisplay); in testCreateAndReleaseContext()
DEgl14Utils.java62 EGLDisplay eglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in createEglDisplay() local
63 if (eglDisplay == EGL14.EGL_NO_DISPLAY) { in createEglDisplay()
69 if (!EGL14.eglInitialize(eglDisplay, major, 0, minor, 0)) { in createEglDisplay()
73 return eglDisplay; in createEglDisplay()
79 static EGLContext createEglContext(EGLDisplay eglDisplay) { in createEglContext() argument
80 return createEglContext(eglDisplay, getEglConfig(eglDisplay, 2), 2); in createEglContext()
86 static EGLContext createEglContext(EGLDisplay eglDisplay, EGLConfig eglConfig, int version) { in createEglContext() argument
88 return EGL14.eglCreateContext(eglDisplay, eglConfig, in createEglContext()
95 static void destroyEglContext(EGLDisplay eglDisplay, EGLContext eglContext) { in destroyEglContext() argument
96 EGL14.eglMakeCurrent(eglDisplay, in destroyEglContext()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DEgl14Utils.java40 EGLDisplay eglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in createEglDisplay() local
41 if (eglDisplay == EGL14.EGL_NO_DISPLAY) { in createEglDisplay()
47 if (!EGL14.eglInitialize(eglDisplay, major, 0, minor, 0)) { in createEglDisplay()
51 return eglDisplay; in createEglDisplay()
57 static EGLContext createEglContext(EGLDisplay eglDisplay) { in createEglContext() argument
58 return createEglContext(eglDisplay, getEglConfig(eglDisplay, 2), 2); in createEglContext()
64 static EGLContext createEglContext(EGLDisplay eglDisplay, EGLConfig eglConfig, int version) { in createEglContext() argument
66 return EGL14.eglCreateContext(eglDisplay, eglConfig, in createEglContext()
73 static void destroyEglContext(EGLDisplay eglDisplay, EGLContext eglContext) { in destroyEglContext() argument
74 EGL14.eglMakeCurrent(eglDisplay, in destroyEglContext()
[all …]
DHardwareBufferTest.java59 EGLDisplay eglDisplay = null; in hasFloatBuffers() local
63 eglDisplay = Egl14Utils.createEglDisplay(); in hasFloatBuffers()
64 EGLConfig eglConfig = Egl14Utils.getEglConfig(eglDisplay, 2); in hasFloatBuffers()
65 eglContext = Egl14Utils.createEglContext(eglDisplay, eglConfig, 2); in hasFloatBuffers()
67 eglSurface = EGL14.eglCreatePbufferSurface(eglDisplay, eglConfig, new int[] { in hasFloatBuffers()
72 EGL14.eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); in hasFloatBuffers()
80 EGL14.eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in hasFloatBuffers()
81 EGL14.eglDestroySurface(eglDisplay, eglSurface); in hasFloatBuffers()
83 Egl14Utils.destroyEglContext(eglDisplay, eglContext); in hasFloatBuffers()
84 Egl14Utils.releaseAndTerminate(eglDisplay); in hasFloatBuffers()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DNdkInputSurface.java34 static private native long eglChooseConfig(long eglDisplay); in eglChooseConfig() argument
35 static private native long eglCreateContext(long eglDisplay, long eglConfig); in eglCreateContext() argument
36 static private native long createEGLSurface(long eglDisplay, long eglConfig, long nativeWindow); in createEGLSurface() argument
37 static private native boolean eglMakeCurrent(long eglDisplay, long eglSurface, long eglContext); in eglMakeCurrent() argument
38 static private native boolean eglSwapBuffers(long eglDisplay, long eglSurface); in eglSwapBuffers() argument
39 …static private native boolean eglPresentationTimeANDROID(long eglDisplay, long eglSurface, long ns… in eglPresentationTimeANDROID() argument
40 static private native int eglGetWidth(long eglDisplay, long eglSurface); in eglGetWidth() argument
41 static private native int eglGetHeight(long eglDisplay, long eglSurface); in eglGetHeight() argument
42 static private native boolean eglDestroySurface(long eglDisplay, long eglSurface); in eglDestroySurface() argument
43 …static private native void nativeRelease(long eglDisplay, long eglSurface, long eglContext, long n… in nativeRelease() argument
DDecodeAccuracyTestBase.java1026 private EGLDisplay eglDisplay = null; field in GLSurfaceViewFactory.GLSurfaceViewThread
1074 eglDisplay = egl10.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in eglSetup()
1075 if (eglDisplay == EGL10.EGL_NO_DISPLAY) { in eglSetup()
1079 if (!egl10.eglInitialize(eglDisplay, version)) { in eglSetup()
1080 eglDisplay = null; in eglSetup()
1096 eglDisplay, configAttribs, configs, configs.length, numConfigs)) { in eglSetup()
1105 eglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, contextAttribs); in eglSetup()
1116 eglSurface = egl10.eglCreatePbufferSurface(eglDisplay, configs[0], surfaceAttribs); in eglSetup()
1125 if (eglDisplay != EGL10.EGL_NO_DISPLAY) { in release()
1126 egl10.eglMakeCurrent(eglDisplay, in release()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp1221 EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in Java_android_media_cts_NdkInputSurface_eglGetDisplay() local
1222 if (eglDisplay == EGL_NO_DISPLAY) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
1227 if (!eglInitialize(eglDisplay, &major, &minor)) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
1231 return reinterpret_cast<jlong>(eglDisplay); in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
1236 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay) { in Java_android_media_cts_NdkInputSurface_eglChooseConfig() argument
1251 …if (!eglChooseConfig(reinterpret_cast<EGLDisplay>(eglDisplay), attribList, configs, 1, numConfigs)… in Java_android_media_cts_NdkInputSurface_eglChooseConfig()
1259 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig) { in Java_android_media_cts_NdkInputSurface_eglCreateContext() argument
1268 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_eglCreateContext()
1282 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig, jlong nativeWindow) { in Java_android_media_cts_NdkInputSurface_createEGLSurface() argument
1286 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_createEGLSurface()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java399 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
401 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()