/frameworks/native/opengl/tests/EGLTest/ |
EGL_test.cpp | 29 EGLDisplay mEglDisplay; 33 mEglDisplay(EGL_NO_DISPLAY) { 37 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 43 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 50 EGLBoolean success = eglTerminate(mEglDisplay); 67 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); 74 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); 77 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); 80 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]) [all...] |
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
Renderer.h | 36 EGLDisplay mEglDisplay;
|
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
EGLCreateContext_test.cpp | 50 : mEglDisplay(EGL_NO_DISPLAY), 61 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 62 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 65 ASSERT_TRUE(eglInitialize(mEglDisplay, &major, &minor)); 68 ASSERT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), 73 mEglWindowSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, 81 eglDestroyContext(mEglDisplay, mEglContext); 84 eglDestroySurface(mEglDisplay, mEglWindowSurface); 86 if (mEglDisplay != EGL_NO_DISPLAY) { 87 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE [all...] |
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...] |
EGLCleanup_test.cpp | 77 ChainedThread(TestType testType) : mEglDisplay(EGL_NO_DISPLAY), 114 EGLDisplay mEglDisplay; 207 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 245 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 246 if (mEglDisplay == EGL_NO_DISPLAY) { 252 if (!eglInitialize(mEglDisplay, &majorVersion, &minorVersion)) { 259 if (!eglChooseConfig(mEglDisplay, kConfigAttribs, &eglConfig, 265 mEglSurface = eglCreatePbufferSurface(mEglDisplay, eglConfig, 272 mEglContext = eglCreateContext(mEglDisplay, eglConfig, EGL_NO_CONTEXT, 287 if (mEglDisplay == EGL_NO_DISPLAY) [all...] |
/frameworks/native/include/gui/ |
GLConsumer.h | 250 return releaseBufferLocked(slot, graphicBuffer, mEglDisplay, eglFence); 266 // to mEglDisplay and mEglContext. If the fields have been previously 400 // mEglDisplay is the EGLDisplay with which this GLConsumer is currently 404 EGLDisplay mEglDisplay;
|
BufferQueue.h | 362 : mEglDisplay(EGL_NO_DISPLAY), 375 // mEglDisplay is the EGLDisplay used to create EGLSyncKHR objects. 376 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 | 35 mEglDisplay(EGL_NO_DISPLAY), 54 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 56 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 59 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 64 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), 73 mEglSurface = eglCreatePbufferSurface(mEglDisplay, myConfig, pbufferAttribs); 77 mEglContext = eglCreateContext(mEglDisplay, myConfig, EGL_NO_CONTEXT, 0); 81 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)); 90 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 91 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...] |
/packages/apps/Camera2/src/com/android/camera/ |
SurfaceTextureRenderer.java | 40 private EGLDisplay mEglDisplay; 54 if (mEglDisplay != null && mEglSurface != null) { 56 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 99 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 100 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 101 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, 103 mEgl.eglTerminate(mEglDisplay); 106 mEglDisplay = null; 134 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 135 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) [all...] |
/frameworks/av/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 57 mEglDisplay(EGL_NO_DISPLAY), 64 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 66 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 70 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 76 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 108 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 117 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 123 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 128 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 133 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)) [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; 118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 199 if (mEglDisplay == null) { 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) [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/photos/views/ |
BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; 118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 199 if (mEglDisplay == null) { 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
BlockingGLTextureView.java | 109 EGLDisplay mEglDisplay; 118 if (!mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, configsCount)) { 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 167 if (!mEgl.eglInitialize(mEglDisplay, version)) { 176 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 199 if (mEglDisplay == null) { 216 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 233 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 257 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 | 88 private EGLDisplay mEglDisplay; 238 EGL14.eglSwapBuffers(mEglDisplay, mEglSurface); 444 if (mEglDisplay == null) { 445 mEglDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); 446 if (mEglDisplay == EGL14.EGL_NO_DISPLAY) { 452 if (!EGL14.eglInitialize(mEglDisplay, version, 0, version, 1)) { 453 mEglDisplay = null; 469 if (!EGL14.eglChooseConfig(mEglDisplay, eglConfigAttribList, 0, 481 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, 494 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...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
ImageWallpaper.java | 127 private EGLDisplay mEglDisplay; 555 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 669 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 670 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 671 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 672 mEgl.eglTerminate(mEglDisplay); 678 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); 679 if (mEglDisplay == EGL_NO_DISPLAY) { 685 if (!mEgl.eglInitialize(mEglDisplay, version)) { 695 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig) [all...] |