/cts/hostsidetests/sustainedperf/shadertoy_android/src/ |
D | GLtestView.java | 43 import javax.microedition.khronos.egl.EGL10; 44 import javax.microedition.khronos.egl.EGLConfig; 45 import javax.microedition.khronos.egl.EGLContext; 46 import javax.microedition.khronos.egl.EGLDisplay; 112 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { in createContext() argument 114 checkEglError("Before eglCreateContext", egl); in createContext() 116 … EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext() 117 checkEglError("After eglCreateContext", egl); in createContext() 121 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument 122 egl.eglDestroyContext(display, context); in destroyContext() [all …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | EglSurfacesTest.java | 25 import javax.microedition.khronos.egl.EGL10; 26 import javax.microedition.khronos.egl.EGLConfig; 27 import javax.microedition.khronos.egl.EGLContext; 28 import javax.microedition.khronos.egl.EGLDisplay; 41 EGL10 egl = (EGL10) EGLContext.getEGL(); in testCreatePixmapSurface() local 42 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testCreatePixmapSurface() 49 if (!egl.eglInitialize(display, version)) { in testCreatePixmapSurface() 53 EGLConfig config = Egl10Utils.chooseConfig(egl, display, in testCreatePixmapSurface() 69 EGLContext context = egl.eglCreateContext(display, config, in testCreatePixmapSurface() 75 egl.eglCreatePixmapSurface(display, config, null, null); in testCreatePixmapSurface() [all …]
|
D | Egl10Utils.java | 22 import javax.microedition.khronos.egl.EGL10; 23 import javax.microedition.khronos.egl.EGLConfig; 24 import javax.microedition.khronos.egl.EGLDisplay; 30 static EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, int[] configSpec) { in chooseConfig() argument 32 if (!egl.eglChooseConfig(display, configSpec, null, 0, in chooseConfig() 43 if (!egl.eglChooseConfig(display, configSpec, configs, numConfigs, value)) { in chooseConfig() 46 EGLConfig config = chooseConfig(egl, display, configs, configSpec); in chooseConfig() 73 private static EGLConfig chooseConfig(EGL10 egl, EGLDisplay display, in chooseConfig() argument 84 int d = findConfigAttrib(egl, display, config, EGL10.EGL_DEPTH_SIZE); in chooseConfig() 85 int s = findConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE); in chooseConfig() [all …]
|
D | EglConfigTest.java | 33 import javax.microedition.khronos.egl.EGL10; 34 import javax.microedition.khronos.egl.EGLConfig; 35 import javax.microedition.khronos.egl.EGLContext; 36 import javax.microedition.khronos.egl.EGLDisplay; 85 EGL10 egl = (EGL10) EGLContext.getEGL(); in getEglConfigIds() local 86 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getEglConfigIds() 101 if (egl.eglInitialize(display, null)) { in getEglConfigIds() 103 if (egl.eglChooseConfig(display, attributeList, null, 0, numConfigs)) { in getEglConfigIds() 105 if (egl.eglChooseConfig(display, attributeList, configs, configs.length, in getEglConfigIds() 110 if (egl.eglGetConfigAttrib(display, configs[i], EGL10.EGL_CONFIG_ID, in getEglConfigIds() [all …]
|
D | OpenGlEsVersionTest.java | 44 import javax.microedition.khronos.egl.EGL10; 45 import javax.microedition.khronos.egl.EGLConfig; 46 import javax.microedition.khronos.egl.EGLContext; 47 import javax.microedition.khronos.egl.EGLDisplay; 191 EGL10 egl = (EGL10) EGLContext.getEGL(); in testRequiredExtensionsForVrHighPerformance() local 192 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance() 193 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance() 225 EGL10 egl = (EGL10) EGLContext.getEGL(); in testRequiredEglExtensions() local 226 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensions() 228 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensions() [all …]
|
D | EglConfigGLSurfaceView.java | 28 import javax.microedition.khronos.egl.EGL10; 29 import javax.microedition.khronos.egl.EGLConfig; 30 import javax.microedition.khronos.egl.EGLDisplay; 59 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { in chooseConfig() argument 66 if (egl.eglChooseConfig(display, attributeList, configs, 1, new int[] {1})) { in chooseConfig() 68 printConfig(egl, display, configs[0]); in chooseConfig() 243 private static void printConfig(EGL10 egl, EGLDisplay display, in printConfig() argument 319 if (egl.eglGetConfigAttrib(display, config, attribute, value)) { in printConfig() 323 while (egl.eglGetError() != EGL10.EGL_SUCCESS); in printConfig()
|
D | RendererNineShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererEightShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererOneProgramTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererTwelveShaderTest.java | 19 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererElevenShaderTest.java | 19 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererTenShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererSevenShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererFourShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererSixShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererFiveShaderTest.java | 18 import javax.microedition.khronos.egl.EGLConfig;
|
D | GLSurfaceViewCtsActivity.java | 24 import javax.microedition.khronos.egl.EGLConfig;
|
D | RendererTwoShaderTest.java | 24 import javax.microedition.khronos.egl.EGLConfig;
|
/cts/tests/tests/effect/src/android/effect/cts/ |
D | GLEnv.java | 23 import javax.microedition.khronos.egl.*; 37 EGL10 egl = (EGL10)EGLContext.getEGL(); in GLEnv() local 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() 71 EGL10 egl = (EGL10)EGLContext.getEGL(); in makeCurrent() local 72 egl.eglMakeCurrent(mEGLDisplay, mEGLSurface, mEGLSurface, mEGLContext); in makeCurrent() 96 EGL10 egl = (EGL10)EGLContext.getEGL(); in tearDown() local [all …]
|
/cts/tests/vr/src/android/vr/cts/ |
D | OpenGLESActivity.java | 34 import javax.microedition.khronos.egl.EGL10; 35 import javax.microedition.khronos.egl.EGLConfig; 36 import javax.microedition.khronos.egl.EGLContext; 37 import javax.microedition.khronos.egl.EGLDisplay; 38 import javax.microedition.khronos.egl.EGLSurface; 234 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 240 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() 249 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument 250 if (!egl.eglDestroyContext(display, context)) { in destroyContext() 260 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument [all …]
|
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | ActivityManagerGetConfigTests.java | 55 import javax.microedition.khronos.egl.EGL10; 56 import javax.microedition.khronos.egl.EGLConfig; 57 import javax.microedition.khronos.egl.EGLContext; 58 import javax.microedition.khronos.egl.EGLDisplay; 59 import javax.microedition.khronos.egl.EGLSurface; 110 EGL10 egl, in addExtensionsForConfig() argument 118 egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, contextAttribs); in addExtensionsForConfig() 125 EGLSurface surface = egl.eglCreatePbufferSurface(display, config, surfaceSize); in addExtensionsForConfig() 127 egl.eglDestroyContext(display, context); in addExtensionsForConfig() 132 egl.eglMakeCurrent(display, surface, surface, context); in addExtensionsForConfig() [all …]
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | GLSurfaceViewCustom.java | 29 import javax.microedition.khronos.egl.EGL10; 30 import javax.microedition.khronos.egl.EGL11; 31 import javax.microedition.khronos.egl.EGLConfig; 32 import javax.microedition.khronos.egl.EGLContext; 33 import javax.microedition.khronos.egl.EGLDisplay; 34 import javax.microedition.khronos.egl.EGLSurface; 770 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); in createContext() argument 771 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); in destroyContext() argument 777 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument 781 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GLProducerThread.java | 26 import javax.microedition.khronos.egl.EGL10; 27 import javax.microedition.khronos.egl.EGLConfig; 28 import javax.microedition.khronos.egl.EGLContext; 29 import javax.microedition.khronos.egl.EGLDisplay; 30 import javax.microedition.khronos.egl.EGLSurface;
|
D | TextureViewCtsActivity.java | 44 import javax.microedition.khronos.egl.EGL10; 45 import javax.microedition.khronos.egl.EGLConfig; 46 import javax.microedition.khronos.egl.EGLContext; 47 import javax.microedition.khronos.egl.EGLDisplay; 48 import javax.microedition.khronos.egl.EGLSurface; 399 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument 401 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraGLTest.java | 53 import javax.microedition.khronos.egl.EGL10; 54 import javax.microedition.khronos.egl.EGLConfig; 55 import javax.microedition.khronos.egl.EGLContext; 56 import javax.microedition.khronos.egl.EGLDisplay; 264 EGL10 egl = (EGL10) EGLContext.getEGL(); in getDetectedVersion() local 265 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getDetectedVersion() 268 if (egl.eglInitialize(display, null)) { in getDetectedVersion() 270 if (egl.eglGetConfigs(display, null, 0, numConfigs)) { in getDetectedVersion() 272 if (egl.eglGetConfigs(display, configs, numConfigs[0], numConfigs)) { in getDetectedVersion() 275 if (egl.eglGetConfigAttrib(display, configs[i], in getDetectedVersion() [all …]
|