/cts/tests/tests/media/common/src/android/media/cts/ |
D | NdkInputSurface.java | 27 private long mEGLDisplay; field in NdkInputSurface 49 mEGLDisplay = eglGetDisplay(); in NdkInputSurface() 50 if (mEGLDisplay == 0) { in NdkInputSurface() 54 mEGLConfig = eglChooseConfig(mEGLDisplay); in NdkInputSurface() 59 mEGLContext = eglCreateContext(mEGLDisplay, mEGLConfig); in NdkInputSurface() 64 mEGLSurface = createEGLSurface(mEGLDisplay, mEGLConfig, mNativeWindow); in NdkInputSurface() 69 mWidth = eglGetWidth(mEGLDisplay, mEGLSurface); in NdkInputSurface() 70 mHeight = eglGetHeight(mEGLDisplay, mEGLSurface); in NdkInputSurface() 76 if (!eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLContext)) { in makeCurrent() 83 return eglSwapBuffers(mEGLDisplay, mEGLSurface); in swapBuffers() [all …]
|
D | InputSurface.java | 43 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in InputSurface 81 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 82 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 86 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 87 mEGLDisplay = null; in eglSetup() 106 if (!EGL14.eglChooseConfig(mEGLDisplay, configAttribList, 0, mConfigs, 0, mConfigs.length, in eglSetup() 122 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 152 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs[0], mSurface, in createEGLSurface() 160 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in releaseEGLSurface() 161 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in releaseEGLSurface() [all …]
|
D | OutputSurface.java | 57 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in OutputSurface 148 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 149 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 153 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 154 mEGLDisplay = null; in eglSetup() 178 if (!EGL14.eglChooseConfig(mEGLDisplay, configAttribList, 0, configs, 0, configs.length, in eglSetup() 203 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 228 mEGLSurface = EGL14.eglCreatePbufferSurface(mEGLDisplay, configs[0], surfaceAttribs, 0); in eglSetup() 239 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in release() 240 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in release() [all …]
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | InputSurface.java | 30 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in InputSurface 53 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 54 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 58 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 59 mEGLDisplay = null; in eglSetup() 74 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, mConfigs, 0, mConfigs.length, in eglSetup() 84 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 102 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs[0], mSurface, in createEGLSurface() 115 EGL14.eglQuerySurface(mEGLDisplay, mEGLSurface, EGL14.EGL_WIDTH, value, 0); in getWidth() 124 EGL14.eglQuerySurface(mEGLDisplay, mEGLSurface, EGL14.EGL_HEIGHT, value, 0); in getHeight() [all …]
|
D | OutputSurface.java | 50 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in OutputSurface 129 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 130 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 134 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 135 mEGLDisplay = null; in eglSetup() 151 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, configs, 0, configs.length, in eglSetup() 161 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 175 mEGLSurface = EGL14.eglCreatePbufferSurface(mEGLDisplay, configs[0], surfaceAttribs, 0); in eglSetup() 186 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in release() 187 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in release() [all …]
|
D | ExtYuvTargetSupportTest.java | 53 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in ExtYuvTargetSupportTest 83 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 84 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 89 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 90 mEGLDisplay = null; in eglSetup() 107 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, configs, 0, configs.length, in eglSetup() 119 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 137 mEGLSurface = EGL14.eglCreatePbufferSurface(mEGLDisplay, configs[0], surfaceAttribs, 0); in eglSetup() 148 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in makeCurrent() 176 EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, in testYuvTextureSampling() [all …]
|
/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | InputSurface.java | 41 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in InputSurface 66 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 67 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 71 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 72 mEGLDisplay = null; in eglSetup() 93 if (!EGL14.eglChooseConfig(mEGLDisplay, configAttribList, 0, mConfigs, 0, in eglSetup() 103 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, mConfigs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 126 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs[0], mSurface, in createEGLSurface() 139 EGL14.eglQuerySurface(mEGLDisplay, mEGLSurface, EGL14.EGL_WIDTH, value, 0); in getWidth() 148 EGL14.eglQuerySurface(mEGLDisplay, mEGLSurface, EGL14.EGL_HEIGHT, value, 0); in getHeight() [all …]
|
D | OutputSurface.java | 52 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in OutputSurface 150 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 151 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 155 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 156 mEGLDisplay = null; in eglSetup() 175 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, configs, 0, configs.length, in eglSetup() 193 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 215 mEGLSurface = EGL14.eglCreatePbufferSurface(mEGLDisplay, configs[0], surfaceAttribs, 0); in eglSetup() 226 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in release() 227 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in release() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaOutputSurface.java | 52 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in CtsMediaOutputSurface 127 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 128 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 132 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 133 mEGLDisplay = null; in eglSetup() 149 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, configs, 0, configs.length, in eglSetup() 159 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 173 mEGLSurface = EGL14.eglCreatePbufferSurface(mEGLDisplay, configs[0], surfaceAttribs, 0); in eglSetup() 184 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in release() 185 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in release() [all …]
|
/cts/tests/tests/effect/src/android/effect/cts/ |
D | GLEnv.java | 30 private EGLDisplay mEGLDisplay; field in GLEnv 39 mEGLDisplay = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in GLEnv() 43 egl.eglInitialize(mEGLDisplay, version); in GLEnv() 54 egl.eglChooseConfig(mEGLDisplay, configSpec, configs, 1, num_config); in GLEnv() 62 mEGLContext = egl.eglCreateContext(mEGLDisplay, mEGLConfig, EGL10.EGL_NO_CONTEXT, attribs); in GLEnv() 66 mEGLSurface = egl.eglCreatePbufferSurface(mEGLDisplay, mEGLConfig, surfaceSize); in GLEnv() 72 egl.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext); in makeCurrent() 97 egl.eglDestroySurface(mEGLDisplay, mEGLSurface); in tearDown() 98 egl.eglDestroyContext(mEGLDisplay, mEGLContext); in tearDown()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | FramebufferTest.java | 159 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in FramebufferTest.EglCore 181 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in EglCore() 189 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in EglCore() 190 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in EglCore() 194 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in EglCore() 195 mEGLDisplay = null; in EglCore() 208 EGLContext context = EGL14.eglCreateContext(mEGLDisplay, config, sharedContext, in EglCore() 229 EGLContext context = EGL14.eglCreateContext(mEGLDisplay, config, sharedContext, in EglCore() 239 EGL14.eglQueryContext(mEGLDisplay, mEGLContext, EGL14.EGL_CONTEXT_CLIENT_VERSION, in EglCore() 276 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, configs, 0, configs.length, in getConfig() [all …]
|
D | WrapperTest.java | 38 private EGLDisplay mEGLDisplay; field in WrapperTest 174 if (!EGL14.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext)) { in testThreadCleanup() 201 EGL14.eglTerminate(mEGLDisplay); in testThreadCleanup() 235 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 236 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in eglSetup() 240 if (!EGL14.eglInitialize(mEGLDisplay, version, 0, version, 1)) { in eglSetup() 241 mEGLDisplay = null; in eglSetup() 268 if (!EGL14.eglChooseConfig(mEGLDisplay, attribList, 0, configs, 0, configs.length, in eglSetup() 278 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, in eglSetup() 291 mEGLSurface = EGL14.eglCreatePbufferSurface(mEGLDisplay, configs[0], surfaceAttribs, 0); in eglSetup() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | PreviewRecorder.java | 137 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in PreviewRecorder 224 EGL14.eglMakeCurrent(mEGLDisplay, mEGLRecorderSurface, in initPreviewRecorder() 309 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in initEGL() 310 if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) { in initEGL() 315 if (!EGL14.eglInitialize(mEGLDisplay, version, /* majorOffset= */0, in initEGL() 317 mEGLDisplay = null; in initEGL() 336 EGL14.eglChooseConfig(mEGLDisplay, configAttribList, 0, configs, in initEGL() 346 mEGLContext = EGL14.eglCreateContext(mEGLDisplay, EGLConfig, EGL14.EGL_NO_CONTEXT, in initEGL() 353 EGL14.eglQueryContext(mEGLDisplay, mEGLContext, EGL14.EGL_CONTEXT_CLIENT_VERSION, in initEGL() 359 mEGLRecorderSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, EGLConfig, mRecordSurface, in initEGL() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraGPURecordingTest.java | 379 private EGLDisplay mEGLDisplay = EGL14.EGL_NO_DISPLAY; field in CameraGPURecordingTest.CodecInputSurface 393 mEGLDisplay = EGL14.eglGetDisplay(EGL14.EGL_DEFAULT_DISPLAY); in eglSetup() 394 assertNotSame("Unable to get EGL14 display", mEGLDisplay, EGL14.EGL_NO_DISPLAY); in eglSetup() 397 assertTrue("Unable to initialize EGL14", EGL14.eglInitialize(mEGLDisplay, version, 0, in eglSetup() 419 mEGLDisplay, attribList, 0, configs, 0, configs.length, numConfigs, 0); in eglSetup() 426 mEGLDisplay, configs[0], EGL14.EGL_NO_CONTEXT, attrib_list, 0); in eglSetup() 433 mEGLDisplay, configs[0], mSurface, surfaceAttribs, 0); in eglSetup() 442 if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) { in release() 444 mEGLDisplay, in release() 448 EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface); in release() [all …]
|