Home
last modified time | relevance | path

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

/cts/tests/tests/opengl/src/android/opengl/cts/
DEgl14Utils.java71 EGLDisplay eglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in createEglDisplay() local
72 if (eglDisplay == EGL14.EGL_NO_DISPLAY) { in createEglDisplay()
78 if (!EGL14.eglInitialize(eglDisplay, major, 0, minor, 0)) { in createEglDisplay()
82 return eglDisplay; in createEglDisplay()
88 static EGLContext createEglContext(EGLDisplay eglDisplay) { in createEglContext() argument
89 return createEglContext(eglDisplay, getEglConfig(eglDisplay, 2), 2); in createEglContext()
95 static EGLContext createEglContext(EGLDisplay eglDisplay, EGLConfig eglConfig, int version) { in createEglContext() argument
97 return EGL14.eglCreateContext(eglDisplay, eglConfig, in createEglContext()
104 static void destroyEglContext(EGLDisplay eglDisplay, EGLContext eglContext) { in destroyEglContext() argument
105 EGL14.eglMakeCurrent(eglDisplay, in destroyEglContext()
[all …]
DEglContextTest.java40 EGLDisplay eglDisplay = null; in testCreateAndReleaseContext() local
43 eglDisplay = Egl14Utils.createEglDisplay(); in testCreateAndReleaseContext()
44 eglContext = Egl14Utils.createEglContext(eglDisplay); in testCreateAndReleaseContext()
45 Egl14Utils.destroyEglContext(eglDisplay, eglContext); in testCreateAndReleaseContext()
46 Egl14Utils.releaseAndTerminate(eglDisplay); in testCreateAndReleaseContext()
47 eglDisplay = null; in testCreateAndReleaseContext()
50 if (eglDisplay != null) { in testCreateAndReleaseContext()
52 EGL14.eglDestroyContext(eglDisplay, eglContext); in testCreateAndReleaseContext()
55 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.java1025 private EGLDisplay eglDisplay = null; field in GLSurfaceViewFactory.GLSurfaceViewThread
1073 eglDisplay = egl10.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in eglSetup()
1074 if (eglDisplay == EGL10.EGL_NO_DISPLAY) { in eglSetup()
1078 if (!egl10.eglInitialize(eglDisplay, version)) { in eglSetup()
1079 eglDisplay = null; in eglSetup()
1095 eglDisplay, configAttribs, configs, configs.length, numConfigs)) { in eglSetup()
1104 eglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, contextAttribs); in eglSetup()
1115 eglSurface = egl10.eglCreatePbufferSurface(eglDisplay, configs[0], surfaceAttribs); in eglSetup()
1128 if (eglDisplay != EGL10.EGL_NO_DISPLAY) { in release()
1129 egl10.eglMakeCurrent(eglDisplay, in release()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp1328 EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in Java_android_media_cts_NdkInputSurface_eglGetDisplay() local
1329 if (eglDisplay == EGL_NO_DISPLAY) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
1334 if (!eglInitialize(eglDisplay, &major, &minor)) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
1338 return reinterpret_cast<jlong>(eglDisplay); in Java_android_media_cts_NdkInputSurface_eglGetDisplay()
1343 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay) { in Java_android_media_cts_NdkInputSurface_eglChooseConfig() argument
1358 …if (!eglChooseConfig(reinterpret_cast<EGLDisplay>(eglDisplay), attribList, configs, 1, numConfigs)… in Java_android_media_cts_NdkInputSurface_eglChooseConfig()
1366 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig) { in Java_android_media_cts_NdkInputSurface_eglCreateContext() argument
1375 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_eglCreateContext()
1389 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig, jlong nativeWindow) { in Java_android_media_cts_NdkInputSurface_createEGLSurface() argument
1393 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_createEGLSurface()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DTextureViewCtsActivity.java419 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
421 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()