Home
last modified time | relevance | path

Searched refs:egl (Results 1 – 25 of 53) sorted by relevance

123

/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGLtestView.java43 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/
DEgl10Utils.java22 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 …]
DOpenGlEsVersionTest.java47 import javax.microedition.khronos.egl.EGL10;
48 import javax.microedition.khronos.egl.EGLConfig;
49 import javax.microedition.khronos.egl.EGLContext;
50 import javax.microedition.khronos.egl.EGLDisplay;
219 EGL10 egl = (EGL10) EGLContext.getEGL(); in testRequiredExtensionsForVrHighPerformance() local
220 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance()
221 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance()
261 EGL10 egl = (EGL10) EGLContext.getEGL(); in testRequiredEglExtensions() local
262 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredEglExtensions()
264 if (egl.eglInitialize(display, null)) { in testRequiredEglExtensions()
[all …]
DEglSurfacesTest.java29 import javax.microedition.khronos.egl.EGL10;
30 import javax.microedition.khronos.egl.EGLConfig;
31 import javax.microedition.khronos.egl.EGLContext;
32 import javax.microedition.khronos.egl.EGLDisplay;
43 EGL10 egl = (EGL10) EGLContext.getEGL(); in testCreatePixmapSurface() local
44 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testCreatePixmapSurface()
51 if (!egl.eglInitialize(display, version)) { in testCreatePixmapSurface()
55 EGLConfig config = Egl10Utils.chooseConfig(egl, display, in testCreatePixmapSurface()
71 EGLContext context = egl.eglCreateContext(display, config, in testCreatePixmapSurface()
77 egl.eglCreatePixmapSurface(display, config, null, null); in testCreatePixmapSurface()
[all …]
DEglConfigCtsActivity.java33 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;
145 EGL10 egl = (EGL10) EGLContext.getEGL(); in getEglConfigIds() local
146 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getEglConfigIds()
161 if (egl.eglInitialize(display, null)) { in getEglConfigIds()
163 if (egl.eglChooseConfig(display, attributeList, null, 0, numConfigs)) { in getEglConfigIds()
165 if (egl.eglChooseConfig(display, attributeList, configs, configs.length, in getEglConfigIds()
170 if (egl.eglGetConfigAttrib(display, configs[i], EGL10.EGL_CONFIG_ID, in getEglConfigIds()
[all …]
DEglConfigGLSurfaceView.java28 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()
DEglConfigTest.java35 import javax.microedition.khronos.egl.EGL10;
36 import javax.microedition.khronos.egl.EGLConfig;
37 import javax.microedition.khronos.egl.EGLContext;
38 import javax.microedition.khronos.egl.EGLDisplay;
DRendererNineShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererEightShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererOneProgramTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererTwelveShaderTest.java19 import javax.microedition.khronos.egl.EGLConfig;
DRendererElevenShaderTest.java19 import javax.microedition.khronos.egl.EGLConfig;
DRendererTenShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererSevenShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererFourShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererSixShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererFiveShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
/cts/tests/vr/src/android/vr/cts/
DOpenGLESActivity.java34 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/tests/effect/src/android/effect/cts/
DGLEnv.java23 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/framework/base/windowmanager/src/android/server/wm/
DActivityManagerGetConfigTests.java62 import javax.microedition.khronos.egl.EGL10;
63 import javax.microedition.khronos.egl.EGLConfig;
64 import javax.microedition.khronos.egl.EGLContext;
65 import javax.microedition.khronos.egl.EGLDisplay;
66 import javax.microedition.khronos.egl.EGLSurface;
111 EGL10 egl, in addExtensionsForConfig() argument
119 egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, contextAttribs); in addExtensionsForConfig()
126 EGLSurface surface = egl.eglCreatePbufferSurface(display, config, surfaceSize); in addExtensionsForConfig()
128 egl.eglDestroyContext(display, context); in addExtensionsForConfig()
133 egl.eglMakeCurrent(display, surface, surface, context); in addExtensionsForConfig()
[all …]
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DGLSurfaceViewCustom.java29 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/hostsidetests/angle/app/common/src/com/android/angleIntegrationTest/common/
DGlesView.java19 import static javax.microedition.khronos.egl.EGL10.EGL_STENCIL_SIZE;
30 import javax.microedition.khronos.egl.EGL10;
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;
/cts/tests/tests/view/src/android/view/cts/
DGLProducerThread.java26 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;
DTextureViewCtsActivity.java45 import javax.microedition.khronos.egl.EGL10;
46 import javax.microedition.khronos.egl.EGLConfig;
47 import javax.microedition.khronos.egl.EGLContext;
48 import javax.microedition.khronos.egl.EGLDisplay;
49 import javax.microedition.khronos.egl.EGLSurface;
419 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
421 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
/cts/tests/camera/src/android/hardware/cts/
DCameraGLTest.java51 import javax.microedition.khronos.egl.EGL10;
52 import javax.microedition.khronos.egl.EGLConfig;
53 import javax.microedition.khronos.egl.EGLContext;
54 import javax.microedition.khronos.egl.EGLDisplay;
261 EGL10 egl = (EGL10) EGLContext.getEGL(); in getDetectedVersion() local
262 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getDetectedVersion()
265 if (egl.eglInitialize(display, null)) { in getDetectedVersion()
267 if (egl.eglGetConfigs(display, null, 0, numConfigs)) { in getDetectedVersion()
269 if (egl.eglGetConfigs(display, configs, numConfigs[0], numConfigs)) { in getDetectedVersion()
272 if (egl.eglGetConfigAttrib(display, configs[i], in getDetectedVersion()
[all …]

123