Home
last modified time | relevance | path

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

/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.java58 EGLDisplay eglDisplay = null; in hasFloatBuffers() local
62 eglDisplay = Egl14Utils.createEglDisplay(); in hasFloatBuffers()
63 EGLConfig eglConfig = Egl14Utils.getEglConfig(eglDisplay, 2); in hasFloatBuffers()
64 eglContext = Egl14Utils.createEglContext(eglDisplay, eglConfig, 2); in hasFloatBuffers()
66 eglSurface = EGL14.eglCreatePbufferSurface(eglDisplay, eglConfig, new int[] { in hasFloatBuffers()
71 EGL14.eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); in hasFloatBuffers()
77 EGL14.eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); in hasFloatBuffers()
78 EGL14.eglDestroySurface(eglDisplay, eglSurface); in hasFloatBuffers()
80 Egl14Utils.destroyEglContext(eglDisplay, eglContext); in hasFloatBuffers()
81 Egl14Utils.releaseAndTerminate(eglDisplay); in hasFloatBuffers()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
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 …]
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()
/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.java1011 private EGLDisplay eglDisplay = null; field in GLSurfaceViewFactory.GLSurfaceViewThread
1059 eglDisplay = egl10.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in eglSetup()
1060 if (eglDisplay == EGL10.EGL_NO_DISPLAY) { in eglSetup()
1064 if (!egl10.eglInitialize(eglDisplay, version)) { in eglSetup()
1065 eglDisplay = null; in eglSetup()
1081 eglDisplay, configAttribs, configs, configs.length, numConfigs)) { in eglSetup()
1090 eglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, contextAttribs); in eglSetup()
1101 eglSurface = egl10.eglCreatePbufferSurface(eglDisplay, configs[0], surfaceAttribs); in eglSetup()
1110 if (eglDisplay != EGL10.EGL_NO_DISPLAY) { in release()
1111 egl10.eglMakeCurrent(eglDisplay, in release()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp963 EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in Java_android_media_cts_NdkInputSurface_eglGetDisplay() local
964 if (eglDisplay == EGL_NO_DISPLAY) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
969 if (!eglInitialize(eglDisplay, &major, &minor)) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
973 return reinterpret_cast<jlong>(eglDisplay); in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
978 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay) { in Java_android_media_cts_NdkInputSurface_eglChooseConfig() argument
993 …if (!eglChooseConfig(reinterpret_cast<EGLDisplay>(eglDisplay), attribList, configs, 1, numConfigs)… in Java_android_media_cts_NdkInputSurface_eglChooseConfig()
1001 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig) { in Java_android_media_cts_NdkInputSurface_eglCreateContext() argument
1010 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_eglCreateContext()
1024 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig, jlong nativeWindow) { in Java_android_media_cts_NdkInputSurface_createEGLSurface() argument
1028 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_createEGLSurface()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java260 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
262 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()