/frameworks/native/libs/gui/tests/ |
SurfaceTextureGLToGL.h | 40 mProducerEglSurface = eglCreateWindowSurface(mEglDisplay, mGlConfig, 45 mProducerEglContext = eglCreateContext(mEglDisplay, mGlConfig, 53 eglDestroyContext(mEglDisplay, mProducerEglContext); 56 eglDestroySurface(mEglDisplay, mProducerEglSurface);
|
SurfaceTextureMultiContextGL.h | 38 mSecondEglContext = eglCreateContext(mEglDisplay, mGlConfig, 43 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 50 mThirdEglContext = eglCreateContext(mEglDisplay, mGlConfig, 55 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 62 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 68 eglDestroyContext(mEglDisplay, mThirdEglContext); 71 eglDestroyContext(mEglDisplay, mSecondEglContext);
|
SurfaceTextureGLToGL_test.cpp | 39 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, 46 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 50 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 68 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 71 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 93 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface, 98 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 116 eglSwapBuffers(mEglDisplay, mProducerEglSurface); 119 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 163 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mProducerEglSurface [all...] |
GLTest.cpp | 36 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 38 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 42 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 48 EXPECT_TRUE(eglChooseConfig(mEglDisplay, getConfigAttribs(), &mGlConfig, 1, 79 mEglSurface = createWindowSurface(mEglDisplay, mGlConfig, window); 86 mEglSurface = eglCreatePbufferSurface(mEglDisplay, mGlConfig, 92 mEglContext = eglCreateContext(mEglDisplay, mGlConfig, EGL_NO_CONTEXT, 97 EXPECT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 102 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_WIDTH, &w)); 104 EXPECT_TRUE(eglQuerySurface(mEglDisplay, mEglSurface, EGL_HEIGHT, &h)) [all...] |
SurfaceTextureMultiContextGL_test.cpp | 37 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 112 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, 129 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 161 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 193 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 221 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 294 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, 314 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 322 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, 349 ASSERT_TRUE(eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface [all...] |
GLTest.h | 39 mEglDisplay(EGL_NO_DISPLAY), 64 EGLDisplay mEglDisplay;
|
/frameworks/native/opengl/tests/EGLTest/ |
EGL_test.cpp | 68 EGLDisplay mEglDisplay; 72 mEglDisplay(EGL_NO_DISPLAY) { 76 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 77 ASSERT_NE(EGL_NO_DISPLAY, mEglDisplay); 82 EXPECT_TRUE(eglInitialize(mEglDisplay, &majorVersion, &minorVersion)); 89 EGLBoolean success = eglTerminate(mEglDisplay); 106 success = eglChooseConfig(mEglDisplay, attrs, &config, 1, &numConfigs); 113 success = eglGetConfigAttrib(mEglDisplay, config, EGL_RED_SIZE, &components[0]); 116 success = eglGetConfigAttrib(mEglDisplay, config, EGL_GREEN_SIZE, &components[1]); 119 success = eglGetConfigAttrib(mEglDisplay, config, EGL_BLUE_SIZE, &components[2]) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ASurfaceTextureTest.java | 48 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; 55 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); 56 if (mEglDisplay == EGL_NO_DISPLAY) { 61 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 70 if (!EGL14.eglChooseConfig(mEglDisplay, 80 mEglPbuffer = EGL14.eglCreatePbufferSurface(mEglDisplay, mEglConfig, 86 mEglContext = EGL14.eglCreateContext(mEglDisplay, mEglConfig, EGL_NO_CONTEXT, 92 if (!EGL14.eglMakeCurrent(mEglDisplay, mEglPbuffer, mEglPbuffer, mEglContext)) {
|
SyncTest.java | 68 private EGLDisplay mEglDisplay = EGL_NO_DISPLAY; 73 mEglDisplay = EGL14.eglGetDisplay(EGL_DEFAULT_DISPLAY); 74 if (mEglDisplay == EGL_NO_DISPLAY) { 79 if (!EGL14.eglInitialize(mEglDisplay, major, 0, minor, 0)) { 85 if (!EGL14.eglChooseConfig(mEglDisplay, 99 EGL14.eglTerminate(mEglDisplay);
|
/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;
|
/packages/apps/Camera2/src/com/android/camera/ |
SurfaceTextureRenderer.java | 41 private EGLDisplay mEglDisplay; 57 if (mEglDisplay != null && mEglSurface != null) { 59 mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); 79 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 80 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 81 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, 83 mEgl.eglTerminate(mEglDisplay); 86 mEglDisplay = null; 117 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 118 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) [all...] |
/frameworks/base/libs/hwui/renderthread/ |
EglManager.cpp | 90 , mEglDisplay(EGL_NO_DISPLAY) 102 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 103 LOG_ALWAYS_FATAL_IF(mEglDisplay == EGL_NO_DISPLAY, "Failed to get EGL_DEFAULT_DISPLAY! err=%s", 107 LOG_ALWAYS_FATAL_IF(eglInitialize(mEglDisplay, &major, &minor) == EGL_FALSE, 108 "Failed to initialize display %p! err=%s", mEglDisplay, eglErrorString()); 152 auto extensions = StringUtils::split(eglQueryString(mEglDisplay, EGL_EXTENSIONS)); 176 return mEglDisplay != EGL_NO_DISPLAY; 204 if (!eglChooseConfig(mEglDisplay, attribs, &mEglConfig, numConfigs, &numConfigs) || 241 if (!eglChooseConfig(mEglDisplay, attribs16F, &mEglConfigWideGamut, numConfigs, 262 mEglDisplay, EglExtensions.noConfigContext ? ((EGLConfig) nullptr) : mEglConfig [all...] |
/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...] |
/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...] |
/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...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
SingleFrameTextureViewTestActivity.java | 85 private EGLDisplay mEglDisplay; 105 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 121 mEgl.eglDestroyContext(mEglDisplay, mEglContext); 122 mEgl.eglDestroySurface(mEglDisplay, mEglSurface); 128 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 129 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 135 if (!mEgl.eglInitialize(mEglDisplay, version)) { 145 mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); 147 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, surface, null); 159 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |
/frameworks/native/libs/gui/ |
GLConsumer.cpp | 145 mEglDisplay(EGL_NO_DISPLAY), 174 mEglDisplay(EGL_NO_DISPLAY), 277 err = syncForReleaseLocked(mEglDisplay); 287 err = releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, mEglDisplay, EGL_NO_SYNC_KHR); 392 mEglDisplay, EGL_NO_SYNC_KHR); 400 mEglDisplay, EGL_NO_SYNC_KHR); 409 err = mEglSlots[slot].mEglImage->createIfNeeded(mEglDisplay, item.mCrop); 412 mEglDisplay, slot); 414 mEglDisplay, EGL_NO_SYNC_KHR); 420 err = syncForReleaseLocked(mEglDisplay); [all...] |
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
ColorsGLRenderer.java | 70 private EGLDisplay mEglDisplay; 136 if (!mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) { 148 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 158 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 159 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 165 if (!mEgl.eglInitialize(mEglDisplay, version)) { 175 mEglContext = createContext(mEgl, mEglDisplay, eglConfig); 177 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, eglConfig, mSurface, null); 189 if (!mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) { 196 mEgl.eglDestroyContext(mEglDisplay, mEglContext) [all...] |
/packages/apps/Nfc/src/com/android/nfc/beam/ |
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/native/libs/gui/include/gui/ |
BufferSlot.h | 178 mEglDisplay(EGL_NO_DISPLAY), 192 // mEglDisplay is the EGLDisplay used to create EGLSyncKHR objects. 193 EGLDisplay mEglDisplay;
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
Hwc2TestBuffer.cpp | 119 : mEglDisplay(EGL_NO_DISPLAY), 132 mEglDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); 133 if (mEglDisplay == EGL_NO_DISPLAY) return false; 137 if (!eglInitialize(mEglDisplay, &major, &minor)) { 158 if (!eglChooseConfig(mEglDisplay, configAttrs, configs, 1, 162 eglTerminate(mEglDisplay); 169 eglTerminate(mEglDisplay); 176 mEglContext = eglCreateContext(mEglDisplay, configs[0], EGL_NO_CONTEXT, 185 mEglSurface = eglCreateWindowSurface(mEglDisplay, configs[0], 193 if (!eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext)) [all...] |