/frameworks/base/opengl/tests/EGLTest/ |
H A D | EGL_test.cpp | 27 EGLDisplay mEglDisplay; member in class:android::EGLTest 31 mEglDisplay(EGL_NO_DISPLAY) { 35 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 36 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 41 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 48 EGLBoolean success = eglTerminate(mEglDisplay); 65 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); 72 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); 75 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); 78 success = eglGetConfigAttrib(mEglDisplay, confi [all...] |
/frameworks/base/libs/gui/tests/ |
H A D | SurfaceTextureClient_test.cpp | 27 mEglDisplay(EGL_NO_DISPLAY), 40 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 42 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 45 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 50 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), 58 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); 62 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); 66 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 75 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 76 eglDestroyContext(mEglDisplay, mEglContex 94 EGLDisplay mEglDisplay; member in class:android::SurfaceTextureClientTest 679 EGLDisplay mEglDisplay; member in class:android::MultiSurfaceTextureClientTest [all...] |
H A D | SurfaceTexture_test.cpp | 44 mEglDisplay(EGL_NO_DISPLAY), 50 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 52 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 56 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 62 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 94 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 102 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 108 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 113 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 118 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac 327 EGLDisplay mEglDisplay; member in class:android::GLTest [all...] |
/frameworks/base/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 55 mEglDisplay(EGL_NO_DISPLAY), 62 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 64 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 68 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 74 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 106 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 115 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 121 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 126 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 131 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurfac 339 EGLDisplay mEglDisplay; member in class:android::GLTest [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GLTextureViewActivity.java | 142 private EGLDisplay mEglDisplay; field in class:GLTextureViewActivity.RenderThread 236 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 345 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 346 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 352 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 362 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 363 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 369 if (!mEgl.eglInitialize(mEglDisplay, version)) { 379 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 381 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfi [all...] |
/frameworks/media/libvideoeditor/lvpp/ |
H A D | NativeWindowRenderer.cpp | 188 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 193 eglInitialize(mEglDisplay, &majorVersion, &minorVersion); 206 eglChooseConfig(mEglDisplay, configAttribs, &config, 1, &numConfigs); 209 mEglSurface = eglCreateWindowSurface(mEglDisplay, config, 214 mEglContext = eglCreateContext(mEglDisplay, config, EGL_NO_CONTEXT, 218 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 223 eglDestroyContext(mEglDisplay, mEglContext); 224 eglDestroySurface(mEglDisplay, mEglSurface); 225 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 226 eglTerminate(mEglDisplay); [all...] |
H A D | NativeWindowRenderer.h | 88 EGLDisplay mEglDisplay; member in class:android::NativeWindowRenderer
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLSurfaceView.java | 996 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 998 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 1006 if(!mEgl.eglInitialize(mEglDisplay, version)) { 1009 mEglConfig = mEGLConfigChooser.chooseConfig(mEgl, mEglDisplay); 1015 mEglContext = mEGLContextFactory.createContext(mEgl, mEglDisplay, mEglConfig); 1041 if (mEglDisplay == null) { 1057 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, 1059 mEGLWindowSurfaceFactory.destroySurface(mEgl, mEglDisplay, mEglSurface); 1066 mEglDisplay, mEglConfig, holder); 1080 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurfac 1182 EGLDisplay mEglDisplay; field in class:GLSurfaceView.EglHelper [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 115 private EGLDisplay mEglDisplay; field in class:ImageWallpaper.DrawableEngine 433 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 551 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 552 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 553 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 559 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); 560 if (mEglDisplay == EGL_NO_DISPLAY) { 566 if (!mEgl.eglInitialize(mEglDisplay, version)) { 576 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 578 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfi [all...] |
/frameworks/base/include/gui/ |
H A D | SurfaceTexture.h | 279 mEglDisplay(EGL_NO_DISPLAY), 297 // mEglDisplay is the EGLDisplay used to create mEglImage. 298 EGLDisplay mEglDisplay; member in struct:android::SurfaceTexture::BufferSlot
|
/frameworks/base/libs/gui/ |
H A D | SurfaceTexture.cpp | 470 eglDestroyImageKHR(mSlots[buf].mEglDisplay, 473 mSlots[buf].mEglDisplay = EGL_NO_DISPLAY; 483 dpy = mSlots[buf].mEglDisplay; 774 mSlots[buf].mEglDisplay = dpy; 986 eglDestroyImageKHR(mSlots[i].mEglDisplay, mSlots[i].mEglImage); 988 mSlots[i].mEglDisplay = EGL_NO_DISPLAY;
|