Home
last modified time | relevance | path

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

12

/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/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;
230 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
236 EGLContext context = egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, in createContext()
245 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { in destroyContext() argument
246 if (!egl.eglDestroyContext(display, context)) { in destroyContext()
256 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { in createContext() argument
[all …]
DRendererProtectedTexturesTest.java20 import javax.microedition.khronos.egl.EGLConfig;
/cts/tests/tests/graphics/src/android/opengl/cts/
DEglConfigTest.java23 import javax.microedition.khronos.egl.EGL10;
24 import javax.microedition.khronos.egl.EGLConfig;
25 import javax.microedition.khronos.egl.EGLContext;
26 import javax.microedition.khronos.egl.EGLDisplay;
72 EGL10 egl = (EGL10) EGLContext.getEGL(); in getEglConfigIds() local
73 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getEglConfigIds()
88 if (egl.eglInitialize(display, null)) { in getEglConfigIds()
90 if (egl.eglChooseConfig(display, attributeList, null, 0, numConfigs)) { in getEglConfigIds()
92 if (egl.eglChooseConfig(display, attributeList, configs, configs.length, in getEglConfigIds()
97 if (egl.eglGetConfigAttrib(display, configs[i], EGL10.EGL_CONFIG_ID, in getEglConfigIds()
[all …]
DOpenGlEsVersionTest.java30 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;
169 EGL10 egl = (EGL10) EGLContext.getEGL(); in testRequiredExtensionsForVrHighPerformance() local
170 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in testRequiredExtensionsForVrHighPerformance()
171 extensions = egl.eglQueryString(display, EGL10.EGL_EXTENSIONS); in testRequiredExtensionsForVrHighPerformance()
200 EGL10 egl = (EGL10) EGLContext.getEGL(); in getDetectedMajorVersion() local
201 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getDetectedMajorVersion()
204 if (egl.eglInitialize(display, null)) { in getDetectedMajorVersion()
[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()
DGLSurfaceViewCtsActivity.java24 import javax.microedition.khronos.egl.EGLConfig;
/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/
DTextureViewCtsActivity.java39 import javax.microedition.khronos.egl.EGL10;
40 import javax.microedition.khronos.egl.EGLConfig;
41 import javax.microedition.khronos.egl.EGLContext;
42 import javax.microedition.khronos.egl.EGLDisplay;
43 import javax.microedition.khronos.egl.EGLSurface;
244 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { in createContext() argument
246 return egl.eglCreateContext(eglDisplay, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); in createContext()
/cts/tests/tests/textureview/src/android/textureview/cts/
DGLProducerThread.java27 import javax.microedition.khronos.egl.EGL10;
28 import javax.microedition.khronos.egl.EGLConfig;
29 import javax.microedition.khronos.egl.EGLContext;
30 import javax.microedition.khronos.egl.EGLDisplay;
31 import javax.microedition.khronos.egl.EGLSurface;
/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;
254 EGL10 egl = (EGL10) EGLContext.getEGL(); in getDetectedVersion() local
255 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); in getDetectedVersion()
258 if (egl.eglInitialize(display, null)) { in getDetectedVersion()
260 if (egl.eglGetConfigs(display, null, 0, numConfigs)) { in getDetectedVersion()
262 if (egl.eglGetConfigs(display, configs, numConfigs[0], numConfigs)) { in getDetectedVersion()
265 if (egl.eglGetConfigAttrib(display, configs[i], in getDetectedVersion()
[all …]
/cts/tests/tests/deqp/
Ddeqp_egl.mk18 DEQP_API := egl
/cts/tests/tests/opengl/src/android/opengl/cts/
DRendererNineShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererEightShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererOneProgramTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererElevenShaderTest.java19 import javax.microedition.khronos.egl.EGLConfig;
DRendererTwelveShaderTest.java19 import javax.microedition.khronos.egl.EGLConfig;
DRendererTenShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererFourShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererSevenShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererSixShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererFiveShaderTest.java18 import javax.microedition.khronos.egl.EGLConfig;
DRendererTwoShaderTest.java24 import javax.microedition.khronos.egl.EGLConfig;
DNativeRendererOneColorBufferTest.java26 import javax.microedition.khronos.egl.EGLConfig;

12