Home
last modified time | relevance | path

Searched refs:egl (Results 1 – 25 of 51) 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/
DEglSurfacesTest.java25 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 …]
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 …]
DEglConfigTest.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;
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 …]
DOpenGlEsVersionTest.java44 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 …]
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()
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;
DGLSurfaceViewCtsActivity.java24 import javax.microedition.khronos.egl.EGLConfig;
DRendererTwoShaderTest.java24 import javax.microedition.khronos.egl.EGLConfig;
/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/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/framework/base/activitymanager/src/android/server/am/
DActivityManagerGetConfigTests.java55 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/
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/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.java44 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/
DCameraGLTest.java53 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 …]

123