/cts/tests/tests/graphics/src/android/graphics/cts/ |
ASurfaceTextureTest.java | 46 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; 53 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); 54 if (mEglDisplay == EGL_NO_DISPLAY) { 59 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 68 if (!EGL14.eglChooseConfig(mEglDisplay, 78 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, 84 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 90 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) {
|
SyncTest.java | 61 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; 66 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); 67 if (mEglDisplay == EGL_NO_DISPLAY) { 72 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 78 if (!EGL14.eglChooseConfig(mEglDisplay, 92 EGL14.eglTerminate(mEglDisplay);
|
EGL15Test.java | 52 private EGLDisplay mEglDisplay = EGL15.EGL_NO_DISPLAY; 62 mEglDisplay = EGL15.eglGetPlatformDisplay(EGL15.EGL_PLATFORM_ANDROID_KHR, 67 if (mEglDisplay == EGL15.EGL_NO_DISPLAY) { 77 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 91 if (!EGL14.eglChooseConfig(mEglDisplay, 106 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, 117 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, 128 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { 139 EGL14.eglTerminate(mEglDisplay); 147 EGLSync sync = EGL15.eglCreateSync(mEglDisplay, EGL15.EGL_SYNC_FENCE [all...] |
EGL14Test.java | 44 private EGLDisplay mEglDisplay = EGL14.EGL_NO_DISPLAY; 54 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); 55 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { 65 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 79 if (!EGL14.eglChooseConfig(mEglDisplay, 94 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, 105 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL14.EGL_NO_CONTEXT, 116 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) { 129 if (!EGL14.eglMakeCurrent(mEglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, 137 if (!EGL14.eglDestroySurface(mEglDisplay, mEglPbuffer)) [all...] |
ANativeWindowTest.java | 51 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; 58 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); 59 if (mEglDisplay == EGL_NO_DISPLAY) { 64 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 73 if (!EGL14.eglChooseConfig(mEglDisplay, 83 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, 89 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 95 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) {
|
/frameworks/av/cmds/screenrecord/ |
EglWindow.cpp | 52 mEglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, anw.get(), 81 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mEglConfig, pbufferAttribs); 92 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 103 if (mEglDisplay == EGL_NO_DISPLAY) { 109 result = eglInitialize(mEglDisplay, &majorVersion, &minorVersion); 136 result = eglChooseConfig(mEglDisplay, 148 mEglContext = eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 160 if (mEglDisplay != EGL_NO_DISPLAY) { 161 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE [all...] |
EglWindow.h | 35 mEglDisplay(EGL_NO_DISPLAY), 75 EGLDisplay mEglDisplay;
|
/cts/tests/tests/view/src/android/view/cts/ |
GLProducerThread.java | 41 private EGLDisplay mEglDisplay = EGL10.EGL_NO_DISPLAY; 76 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 77 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 83 if (!mEgl.eglInitialize(mEglDisplay, version)) { 101 if (!mEgl.eglChooseConfig(mEglDisplay, configAttribs, configs, 1, numConfigs) 110 mEglContext = mEgl.eglCreateContext(mEglDisplay, 113 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, 126 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 133 mEgl.eglMakeCurrent(mEglDisplay, 135 mEgl.eglDestroyContext(mEglDisplay, mEglContext) [all...] |
TextureViewCtsActivity.java | 76 private EGLDisplay mEglDisplay; 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 261 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 289 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 293 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 296 if (mEglDisplay != null) { 297 mEgl.eglTerminate(mEglDisplay); 337 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 338 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 344 if (!mEgl.eglInitialize(mEglDisplay, version)) [all...] |
/cts/tests/openglperf2/jni/graphics/ |
Renderer.cpp | 91 mOffscreen(offscreen), mEglDisplay(EGL_NO_DISPLAY), mEglSurface(EGL_NO_SURFACE), 97 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 98 EGL_RESULT_CHECK(mEglDisplay != EGL_NO_DISPLAY); 102 EGL_RESULT_CHECK(eglInitialize(mEglDisplay, &major, &minor)); 105 EGL_RESULT_CHECK(eglChooseConfig(mEglDisplay, configAttribs, &mGlConfig, 1, &numConfigs) 108 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, mWindow, NULL); 111 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, contextAttribs); 114 EGL_RESULT_CHECK(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 115 EGL_RESULT_CHECK(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &mWidth)); 116 EGL_RESULT_CHECK(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &mHeight)) [all...] |
Renderer.h | 36 EGLDisplay mEglDisplay;
|
/cts/tests/openglperf2/jni/primitive/contextswitch/ |
ContextSwitchRenderer.cpp | 109 mContexts[i] = eglCreateContext(mEglDisplay, mGlConfig, mEglContext, contextAttribs); 114 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]) 145 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); 150 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 151 eglDestroyContext(mEglDisplay, mContexts[i]); 155 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 181 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); 186 eglWaitSyncKHR(mEglDisplay, fence, 0); 187 eglDestroySyncKHR(mEglDisplay, fence); 204 fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL) [all...] |
/external/skia/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/ |
SkottieRunner.java | 42 private EGLDisplay mEglDisplay; 162 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 163 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 169 if (!mEgl.eglInitialize(mEglDisplay, version)) { 179 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 187 mPBufferSurface = mEgl.eglCreatePbufferSurface(mEglDisplay, mEglConfig, attribs); 194 if (!mEgl.eglMakeCurrent(mEglDisplay, mPBufferSurface, mPBufferSurface, mEglContext)) { 212 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 237 if (mEglDisplay != null) { 239 mEgl.eglDestroyContext(mEglDisplay, mEglContext) [all...] |
/external/skqp/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/ |
SkottieRunner.java | 42 private EGLDisplay mEglDisplay; 162 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 163 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 169 if (!mEgl.eglInitialize(mEglDisplay, version)) { 179 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 187 mPBufferSurface = mEgl.eglCreatePbufferSurface(mEglDisplay, mEglConfig, attribs); 194 if (!mEgl.eglMakeCurrent(mEglDisplay, mPBufferSurface, mPBufferSurface, mEglContext)) { 212 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 237 if (mEglDisplay != null) { 239 mEgl.eglDestroyContext(mEglDisplay, mEglContext) [all...] |
/device/generic/goldfish/camera/ |
EmulatedFakeRotatingCameraDevice.cpp | 273 if (mEglDisplay != EGL_NO_DISPLAY) 277 eglDestroyContext( mEglDisplay, mEglContext ); 278 eglDestroySurface( mEglDisplay, mEglSurface ); 279 eglTerminate( mEglDisplay ); 280 mEglDisplay = EGL_NO_DISPLAY; 356 if ( (mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY)) == EGL_NO_DISPLAY ) 362 if ( eglInitialize(mEglDisplay, NULL, NULL) != EGL_TRUE ) 376 eglChooseConfig(mEglDisplay, s_configAttribs, &myConfig, 1, &numConfigs); 378 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, attribs); 384 if ( (mEglContext = eglCreateContext(mEglDisplay, myConfig, 0, 0)) == EGL_NO_CONTEXT [all...] |
EmulatedFakeRotatingCameraDevice.h | 97 EGLDisplay mEglDisplay;
|
/cts/tests/tests/graphics/jni/ |
android_graphics_cts_CameraGpuCtsActivity.cpp | 105 eglDestroyImageKHR(mEglDisplay, mEglImage); 175 mEglDisplay = eglGetCurrentDisplay(); 214 eglDestroyImageKHR(mEglDisplay, mEglImage); 224 mEglImage = eglCreateImageKHR(mEglDisplay, EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, 285 EGLDisplay mEglDisplay{EGL_NO_DISPLAY};
|
/external/replicaisland/src/com/replica/replicaisland/ |
GLSurfaceView.java | [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
GLSurfaceViewCustom.java | [all...] |