/cts/tests/tests/media/common/jni/ |
D | NdkInputSurface-jni.cpp | 31 EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in Java_android_media_cts_NdkInputSurface_eglGetDisplay() local 32 if (eglDisplay == EGL_NO_DISPLAY) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay() 37 if (!eglInitialize(eglDisplay, &major, &minor)) { in Java_android_media_cts_NdkInputSurface_eglGetDisplay() 41 return reinterpret_cast<jlong>(eglDisplay); in Java_android_media_cts_NdkInputSurface_eglGetDisplay() 46 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay) { in Java_android_media_cts_NdkInputSurface_eglChooseConfig() argument 61 …if (!eglChooseConfig(reinterpret_cast<EGLDisplay>(eglDisplay), attribList, configs, 1, numConfigs)… in Java_android_media_cts_NdkInputSurface_eglChooseConfig() 69 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig) { in Java_android_media_cts_NdkInputSurface_eglCreateContext() argument 78 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_eglCreateContext() 92 JNIEnv * /*env*/, jclass /*clazz*/, jlong eglDisplay, jlong eglConfig, jlong nativeWindow) { in Java_android_media_cts_NdkInputSurface_createEGLSurface() argument 96 reinterpret_cast<EGLDisplay>(eglDisplay), in Java_android_media_cts_NdkInputSurface_createEGLSurface() [all …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | Egl14Utils.java | 71 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 …]
|
D | EglContextTest.java | 40 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/common/src/android/media/cts/ |
D | NdkInputSurface.java | 34 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
|
/cts/libs/hardware/src/com/android/cts/hardware/ |
D | SyncFenceUtil.java | 37 EGLDisplay eglDisplay = EGL15.EGL_NO_DISPLAY; in createUselessFence() local 43 eglDisplay = EGL15.eglGetPlatformDisplay(EGL15.EGL_PLATFORM_ANDROID_KHR, in createUselessFence() 48 if (eglDisplay == EGL15.EGL_NO_DISPLAY) { in createUselessFence() 58 if (!EGL14.eglInitialize(eglDisplay, major, 0, minor, 0)) { in createUselessFence() 71 if (!EGL14.eglChooseConfig(eglDisplay, in createUselessFence() 86 eglPbuffer = EGL14.eglCreatePbufferSurface(eglDisplay, eglConfig, in createUselessFence() 96 eglContext = EGL14.eglCreateContext(eglDisplay, eglConfig, EGL14.EGL_NO_CONTEXT, in createUselessFence() 106 if (!EGL14.eglMakeCurrent(eglDisplay, eglPbuffer, eglPbuffer, eglContext)) { in createUselessFence() 116 String eglExtensions = EGL14.eglQueryString(eglDisplay, EGL14.EGL_EXTENSIONS); in createUselessFence() 118 EGLSync sync = EGL15.eglCreateSync(eglDisplay, EGLExt.EGL_SYNC_NATIVE_FENCE_ANDROID, in createUselessFence() [all …]
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraUtils.java | 336 EGLDisplay eglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); in getMaximumTextureSize() local 337 assumeFalse(eglDisplay.equals(EGL_NO_DISPLAY)); in getMaximumTextureSize() 339 eglInitialize(eglDisplay, version, 0, version, 1); in getMaximumTextureSize() 347 eglDisplay, attribList, 0, configs, 0, configs.length, numConfigs, 0)) { in getMaximumTextureSize() 352 EGLContext eglContext = eglCreateContext(eglDisplay, configs[0], EGL_NO_CONTEXT, in getMaximumTextureSize() 354 eglMakeCurrent(eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, eglContext); in getMaximumTextureSize() 359 eglDestroyContext(eglDisplay, eglContext); in getMaximumTextureSize()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecodeAccuracyTestBase.java | 1033 private EGLDisplay eglDisplay = null; field in GLSurfaceViewFactory.GLSurfaceViewThread 1071 egl10.eglMakeCurrent(eglDisplay, in run() 1073 egl10.eglDestroySurface(eglDisplay, eglSurface); in run() 1074 egl10.eglDestroyContext(eglDisplay, eglContext); in run() 1078 eglDisplay = EGL10.EGL_NO_DISPLAY; in run() 1096 eglDisplay = egl10.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in eglSetup() 1097 if (eglDisplay == EGL10.EGL_NO_DISPLAY) { in eglSetup() 1101 if (!egl10.eglInitialize(eglDisplay, version)) { in eglSetup() 1102 eglDisplay = null; in eglSetup() 1118 eglDisplay, configAttribs, configs, configs.length, numConfigs)) { in eglSetup() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewCtsActivity.java | 419 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()
|
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/ |
D | AndroidTestUtil.java | 580 EGLDisplay eglDisplay = GlUtil.getDefaultEglDisplay(); in createOpenGlObjects() local 585 eglDisplay, /* openGlVersion= */ 2, GlUtil.EGL_CONFIG_ATTRIBUTES_RGBA_8888); in createOpenGlObjects() 586 glObjectsProvider.createFocusedPlaceholderEglSurface(eglContext, eglDisplay); in createOpenGlObjects()
|