/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/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/pts/deviceTests/opengl/jni/graphics/ |
Renderer.cpp | 82 mOffscreen(offscreen), mWindow(window), mEglDisplay(EGL_NO_DISPLAY), 88 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 89 if (EGL_NO_DISPLAY == mEglDisplay || EGL_SUCCESS != eglGetError()) { 95 if (!eglInitialize(mEglDisplay, &major, &minor) || EGL_SUCCESS != eglGetError()) { 100 if (!eglChooseConfig(mEglDisplay, configAttribs, &mGlConfig, 1, &numConfigs) 105 mEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, mWindow, NULL); 110 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, contextAttribs); 115 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext) 120 if (!eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &mWidth) 124 if (!eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &mHeight [all...] |
Renderer.h | 36 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...] |
/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/Camera2/src/com/android/camera/ |
SurfaceTextureRenderer.java | 40 private EGLDisplay mEglDisplay; 55 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 97 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 98 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 99 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, 101 mEgl.eglTerminate(mEglDisplay); 104 mEglDisplay = null; 132 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 133 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 137 if (!mEgl.eglInitialize(mEglDisplay, version)) [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...] |
/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/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...] |
/cts/suite/pts/deviceTests/opengl/jni/primitive/contextswitch/ |
ContextSwitchRenderer.cpp | 108 mContexts[i] = eglCreateContext(mEglDisplay, mGlConfig, mEglContext, contextAttribs); 113 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]) 144 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]); 149 eglDestroyContext(mEglDisplay, mContexts[i]); 153 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 174 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); 179 eglWaitSyncKHR(mEglDisplay, fence, 0); 180 eglDestroySyncKHR(mEglDisplay, fence); 197 fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); 201 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mContexts[i]) [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/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/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...] |
/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/SystemUI/src/com/android/systemui/ |
ImageWallpaper.java | 122 private EGLDisplay mEglDisplay; 490 boolean status = mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 604 mEgl.eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 605 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 606 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 607 mEgl.eglTerminate(mEglDisplay); 613 mEglDisplay = mEgl.eglGetDisplay(EGL_DEFAULT_DISPLAY); 614 if (mEglDisplay == EGL_NO_DISPLAY) { 620 if (!mEgl.eglInitialize(mEglDisplay, version)) { 630 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...] |
/frameworks/native/libs/gui/ |
GLConsumer.cpp | 133 mEglDisplay(EGL_NO_DISPLAY), 238 err = syncForReleaseLocked(mEglDisplay); 248 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); 266 bindUnslottedBufferLocked(mEglDisplay); 325 if (!eglDestroyImageKHR(mEglDisplay, mEglSlots[slot].mEglImage)) { 375 EGLImageKHR image = createImage(mEglDisplay, 379 mEglDisplay, buf); 387 err = syncForReleaseLocked(mEglDisplay); 394 mEglDisplay, EGL_NO_SYNC_KHR); 406 mCurrentTexture, mCurrentTextureBuf, mEglDisplay, [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
NativeWindowRenderer.cpp | 187 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 192 eglInitialize(mEglDisplay, &majorVersion, &minorVersion); 205 eglChooseConfig(mEglDisplay, configAttribs, &config, 1, &numConfigs); 208 mEglSurface = eglCreateWindowSurface(mEglDisplay, config, 213 mEglContext = eglCreateContext(mEglDisplay, config, EGL_NO_CONTEXT, 217 eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); 222 eglDestroyContext(mEglDisplay, mEglContext); 223 eglDestroySurface(mEglDisplay, mEglSurface); 224 eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); 225 eglTerminate(mEglDisplay); [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...] |
/external/replicaisland/src/com/replica/replicaisland/ |
GLSurfaceView.java | [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
GLSurfaceViewCustom.java | [all...] |