Home
last modified time | relevance | path

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

/cts/tests/tests/media/common/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()
DInputSurface.java44 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in InputSurface
122 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
125 if (mEGLContext == null) { in eglSetup()
173 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
183 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
194 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
DOutputSurface.java58 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in OutputSurface
203 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
206 if (mEGLContext == null) { in eglSetup()
241 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
253 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
265 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
/cts/tests/mediapc/src/android/mediapc/cts/
DInputSurface.java31 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in InputSurface
84 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
87 if (mEGLContext == null) { in eglSetup()
145 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
151 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
161 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
DOutputSurface.java51 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in OutputSurface
161 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
164 if (mEGLContext == null) { in eglSetup()
188 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
198 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
210 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
DExtYuvTargetSupportTest.java54 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in ExtYuvTargetSupportTest
119 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
122 Assert.assertNotEquals("failed to configure context", mEGLContext, EGL14.EGL_NO_CONTEXT); in eglSetup()
125 if (mEGLContext == null) { in eglSetup()
148 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
179 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in testYuvTextureSampling()
/cts/tests/media/common/src/android/mediav2/common/cts/
DInputSurface.java42 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in InputSurface
103 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
105 if (mEGLContext != null && EGL14.EGL_SUCCESS == EGL14.eglGetError()) { in eglSetup()
110 if (mEGLContext == null) { in eglSetup()
200 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
210 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
220 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent()
DOutputSurface.java53 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in OutputSurface
193 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup()
196 if (mEGLContext == EGL14.EGL_NO_CONTEXT && useYuvSampling) { in eglSetup()
204 if (mEGLContext == null) { in eglSetup()
228 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
238 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
250 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DPreviewRecorder.java138 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in PreviewRecorder
225 mEGLRecorderSurface, mEGLContext); in initPreviewRecorder()
346 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, EGLConfig, EGL14.EGL_NO_CONTEXT, in initEGL()
348 if (mEGLContext == EGL14.EGL_NO_CONTEXT) { in initEGL()
353 EGL14.eglQueryContext(mEGLDisplay, mEGLContext, EGL14.EGL_CONTEXT_CLIENT_VERSION, in initEGL()
366 EGL14.eglMakeCurrent(mEGLDisplay, mEGLRecorderSurface, mEGLRecorderSurface, mEGLContext); in initEGL()
708 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in cleanupEgl()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraGPURecordingTest.java380 private EGLContext mEGLContext = EGL14.EGL_NO_CONTEXT; field in CameraGPURecordingTest.CodecInputSurface
424 mEGLContext = in eglSetup()
449 EGL14.eglDestroyContext(mEGLDisplay, mEGLContext); in release()
456 mEGLContext = EGL14.EGL_NO_CONTEXT; in release()
464 EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext); in makeCurrent()