Home
last modified time | relevance | path

Searched refs:mEGLContext (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DNdkInputSurface.java29 private long mEGLContext; field in NdkInputSurface
59 mEGLContext = eglCreateContext(mEGLDisplay, mEGLConfig); in NdkInputSurface()
60 if (mEGLContext == 0) { in NdkInputSurface()
76 if (!eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLContext)) { in makeCurrent()
122 nativeRelease(mEGLDisplay, mEGLSurface, mEGLContext, mNativeWindow); in release()
125 mEGLContext = 0; in release()
DOutputSurface.java49 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in OutputSurface
155 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
158 if (mEGLContext == null) { in eglSetup()
182 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
194 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
206 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
DInputSurface.java43 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in InputSurface
107 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
110 if (mEGLContext == null) { in eglSetup()
158 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
168 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
179 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DCtsMediaOutputSurface.java53 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in CtsMediaOutputSurface
159 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
162 if (mEGLContext == null) { in eglSetup()
186 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
198 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
210 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
/cts/tests/tests/effect/src/android/effect/cts/
DGLEnv.java28 private EGLContext mEGLContext; field in GLEnv
62 mEGLContext = egl.eglCreateContext(mEGLDisplay, mEGLConfig, EGL10.EGL_NO_CONTEXT, attribs); in GLEnv()
72 egl.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext); in makeCurrent()
98 egl.eglDestroyContext(mEGLDisplay, mEGLContext); in tearDown()
/cts/tests/tests/opengl/src/android/opengl/cts/
DFramebufferTest.java160 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in FramebufferTest.EglCore
214 mEGLContext = context; in EglCore()
219 if (mEGLContext == EGL14.EGL_NO_CONTEXT) { // GLES 2 only, or GLES 3 attempt failed in EglCore()
233 mEGLContext = context; in EglCore()
239 EGL14.eglQueryContext(mEGLDisplay, mEGLContext, EGL14.EGL_CONTEXT_CLIENT_VERSION, in EglCore()
291 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
297 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
374 if (!EGL14.eglMakeCurrent(mEGLDisplay, eglSurface, eglSurface, mEGLContext)) { in makeCurrent()
387 if (!EGL14.eglMakeCurrent(mEGLDisplay, drawSurface, readSurface, mEGLContext)) { in makeCurrent()
422 return mEGLContext.equals(EGL14.eglGetCurrentContext()) && in isCurrent()
DWrapperTest.java39 private EGLContext mEGLContext; field in WrapperTest
174 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in testThreadCleanup()
278 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
281 if (mEGLContext == null) { in eglSetup()
298 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in eglSetup()
317 mEGLContext = null; in eglRelease()