/frameworks/native/opengl/tests/EGLTest/ |
EGL_test.cpp | 30 EGLDisplay mEglDisplay; 34 mEglDisplay(EGL_NO_DISPLAY) { 38 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 39 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 44 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 51 EGLBoolean success = eglTerminate(mEglDisplay); 68 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); 75 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); 78 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); 81 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]) [all...] |
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
GLTest_test.cpp | 38 mEglDisplay(EGL_NO_DISPLAY), 45 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 47 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 51 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 55 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 70 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 78 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 84 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 89 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 94 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)) [all...] |
/frameworks/native/include/gui/ |
GLConsumer.h | 249 return releaseBufferLocked(buf, mEglDisplay, eglFence); 265 // to mEglDisplay and mEglContext. If the fields have been previously 386 // mEglDisplay is the EGLDisplay with which this GLConsumer is currently 390 EGLDisplay mEglDisplay;
|
BufferQueue.h | 416 : mEglDisplay(EGL_NO_DISPLAY), 433 // mEglDisplay is the EGLDisplay used to create EGLSyncKHR objects. 434 EGLDisplay mEglDisplay;
|
/cts/tests/tests/textureview/src/android/textureview/cts/ |
GLProducerThread.java | 46 private EGLDisplay mEglDisplay = EGL10.EGL_NO_DISPLAY; 81 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 82 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 88 if (!mEgl.eglInitialize(mEglDisplay, version)) { 106 if (!mEgl.eglChooseConfig(mEglDisplay, configAttribs, configs, 1, numConfigs) || numConfigs[0] == 0) { 114 mEglContext = mEgl.eglCreateContext(mEglDisplay, configs[0], EGL10.EGL_NO_CONTEXT, contextAttribs); 116 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, configs[0], mSurfaceTexture, null); 127 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 136 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 137 mEgl.eglDestroySurface(mEglDisplay, mEglSurface) [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
NativeWindowRenderer.h | 88 EGLDisplay mEglDisplay;
|
/frameworks/native/libs/gui/tests/ |
SurfaceTextureClient_test.cpp | 32 mEglDisplay(EGL_NO_DISPLAY), 50 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 52 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 55 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 60 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), 69 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); 73 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); 77 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 86 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 87 eglDestroyContext(mEglDisplay, mEglContext) [all...] |
SurfaceTexture_test.cpp | 47 mEglDisplay(EGL_NO_DISPLAY), 58 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 60 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 64 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 70 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 102 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 110 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 116 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 121 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 126 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)) [all...] |
/frameworks/av/media/libstagefright/tests/ |
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, mEglSurface, EGL_WIDTH, &w)) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ImageWallpaper.java | 121 private EGLDisplay mEglDisplay; 488 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 602 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 603 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 604 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 605 mEgl.eglTerminate(mEglDisplay); 611 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); 612 if (mEglDisplay == EGL_NO_DISPLAY) { 618 if (!mEgl.eglInitialize(mEglDisplay, version)) { 628 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 141 private EGLDisplay mEglDisplay; 238 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 347 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 348 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 354 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 371 if (!mEgl.eglInitialize(mEglDisplay, version)) { 381 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
MosaicPreviewRenderer.java | 54 private EGLDisplay mEglDisplay; 108 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 120 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 126 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 127 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 131 if (!mEgl.eglInitialize(mEglDisplay, version)) { 137 mEglConfig = chooseConfig(mEgl, mEglDisplay); 138 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, 145 mEglDisplay, mEglConfig, mMosaicOutputSurfaceTexture, null); 150 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
MosaicPreviewRenderer.java | 54 private EGLDisplay mEglDisplay; 109 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 121 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 127 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 128 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 132 if (!mEgl.eglInitialize(mEglDisplay, version)) { 138 mEglConfig = chooseConfig(mEgl, mEglDisplay); 139 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, 146 mEglDisplay, mEglConfig, mMosaicOutputSurfaceTexture, null); 151 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 106 EGLDisplay mEglDisplay; 115 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 154 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 156 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 164 if(!mEgl.eglInitialize(mEglDisplay, version)) { 173 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 196 if (mEglDisplay == null) { 213 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 230 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 254 if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
FireflyRenderer.java | 159 EGLDisplay mEglDisplay; 204 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 230 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 283 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 294 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 295 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 302 if (!mEgl.eglInitialize(mEglDisplay, version)) { 314 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); 316 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); 324 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
ColorsGLRenderer.java | 69 private EGLDisplay mEglDisplay; 135 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 147 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 158 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 164 if (!mEgl.eglInitialize(mEglDisplay, version)) { 174 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); 176 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, eglConfig, mSurface, null); 188 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 195 mEgl.eglDestroyContext(mEglDisplay, mEglContext) [all...] |
/frameworks/base/services/java/com/android/server/power/ |
ElectronBeam.java | 87 private EGLDisplay mEglDisplay; 237 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); 443 if (mEglDisplay == null) { 444 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); 445 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { 451 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) { 452 mEglDisplay = null; 468 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0, 480 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, 493 if (!EGL14.eglDestroyContext(mEglDisplay, mEglContext)) [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
GLSurfaceViewCustom.java | [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
GLSurfaceView.java | [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLSurfaceView.java | [all...] |