/frameworks/base/opengl/java/javax/microedition/khronos/egl/ |
EGL11.java | 19 public interface EGL11 extends EGL10 {
|
/development/ndk/platforms/android-5/samples/hello-gl2/src/com/android/gl2jni/ |
GL2JNIView.java | 43 import javax.microedition.khronos.egl.EGL10; 60 * EGL10.ELG_RENDERABLE_TYPE containing the EGL_OPENGL_ES2_BIT flag 112 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 115 int[] attrib_list = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 116 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 121 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { 126 private static void checkEglError(String prompt, EGL10 egl) { 128 while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) { 151 EGL10.EGL_RED_SIZE, 4, 152 EGL10.EGL_GREEN_SIZE, 4 [all...] |
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
GL2JNIView.java | 42 import javax.microedition.khronos.egl.EGL10; 80 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 83 int[] attrib_list = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 84 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 89 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { 94 private static void checkEglError(String prompt, EGL10 egl) { 96 while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) { 105 EGL10.EGL_RED_SIZE, 4, 106 EGL10.EGL_GREEN_SIZE, 4, 107 EGL10.EGL_BLUE_SIZE, 4 [all...] |
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
GLPerfView.java | 42 import javax.microedition.khronos.egl.EGL10; 80 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 83 int[] attrib_list = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 84 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 89 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { 94 private static void checkEglError(String prompt, EGL10 egl) { 96 while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) { 105 EGL10.EGL_RED_SIZE, 4, 106 EGL10.EGL_GREEN_SIZE, 4, 107 EGL10.EGL_BLUE_SIZE, 4 [all...] |
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
GLDualGL2View.java | 35 import javax.microedition.khronos.egl.EGL10; 83 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 86 int[] attrib_list = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 87 EGLContext context = egl.eglCreateContext(display, eglConfig, EGL10.EGL_NO_CONTEXT, attrib_list); 92 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { 97 private static void checkEglError(String prompt, EGL10 egl) { 99 while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) { 108 EGL10.EGL_RED_SIZE, 4, 109 EGL10.EGL_GREEN_SIZE, 4, 110 EGL10.EGL_BLUE_SIZE, 4 [all...] |
/cts/tests/tests/effect/src/android/effect/cts/ |
GLEnv.java | 37 EGL10 egl = (EGL10)EGLContext.getEGL(); 39 mEGLDisplay = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 45 EGL10.EGL_SURFACE_TYPE, EGL10.EGL_PBUFFER_BIT, 46 EGL10.EGL_RED_SIZE, 8, 47 EGL10.EGL_GREEN_SIZE, 8, 48 EGL10.EGL_BLUE_SIZE, 8, 49 EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, 50 EGL10.EGL_NON [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
MosaicRendererSurfaceView.java | 28 import javax.microedition.khronos.egl.EGL10; 102 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig) { 105 int[] attribList = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 107 display, eglConfig, EGL10.EGL_NO_CONTEXT, attribList); 112 public void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context) { 117 private static void checkEglError(String prompt, EGL10 egl) { 119 while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) { 142 EGL10.EGL_RED_SIZE, 4, 143 EGL10.EGL_GREEN_SIZE, 4, 144 EGL10.EGL_BLUE_SIZE, 4 [all...] |
/cts/tests/tests/textureview/src/android/textureview/cts/ |
GLProducerThread.java | 27 import javax.microedition.khronos.egl.EGL10; 45 private EGL10 mEgl; 46 private EGLDisplay mEglDisplay = EGL10.EGL_NO_DISPLAY; 47 private EGLContext mEglContext = EGL10.EGL_NO_CONTEXT; 48 private EGLSurface mEglSurface = EGL10.EGL_NO_SURFACE; 79 mEgl = (EGL10) EGLContext.getEGL(); 81 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 82 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 94 EGL10.EGL_BUFFER_SIZE, 32, 95 EGL10.EGL_ALPHA_SIZE, 8 [all...] |
/frameworks/base/opengl/java/android/opengl/ |
GLUtils.java | 21 import javax.microedition.khronos.egl.EGL10; 237 case EGL10.EGL_SUCCESS: 239 case EGL10.EGL_NOT_INITIALIZED: 241 case EGL10.EGL_BAD_ACCESS: 243 case EGL10.EGL_BAD_ALLOC: 245 case EGL10.EGL_BAD_ATTRIBUTE: 247 case EGL10.EGL_BAD_CONFIG: 249 case EGL10.EGL_BAD_CONTEXT: 251 case EGL10.EGL_BAD_CURRENT_SURFACE: 253 case EGL10.EGL_BAD_DISPLAY [all...] |
ManagedEGLContext.java | 19 import static javax.microedition.khronos.egl.EGL10.EGL_DEFAULT_DISPLAY; 20 import static javax.microedition.khronos.egl.EGL10.EGL_NO_DISPLAY; 24 import javax.microedition.khronos.egl.EGL10; 113 EGL10 egl = (EGL10) EGLContext.getEGL();
|
GLSurfaceView.java | 23 import javax.microedition.khronos.egl.EGL10; 760 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); 761 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); 767 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { 769 EGL10.EGL_NONE }; 771 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, 775 public void destroyContext(EGL10 egl, EGLDisplay display, 797 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, 799 void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface); 804 public EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display [all...] |
/cts/tests/src/android/opengl/cts/ |
EglConfigGLSurfaceView.java | 28 import javax.microedition.khronos.egl.EGL10; 59 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 61 EGL10.EGL_CONFIG_ID, mConfigId, 62 EGL10.EGL_NONE 243 private static void printConfig(EGL10 egl, EGLDisplay display, 246 EGL10.EGL_BUFFER_SIZE, 247 EGL10.EGL_ALPHA_SIZE, 248 EGL10.EGL_BLUE_SIZE, 249 EGL10.EGL_GREEN_SIZE, 250 EGL10.EGL_RED_SIZE [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
OutputSurface.java | 30 import javax.microedition.khronos.egl.EGL10; 61 private EGL10 mEGL; 133 mEGL = (EGL10)EGLContext.getEGL(); 134 mEGLDisplay = mEGL.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 136 throw new RuntimeException("unable to initialize EGL10"); 142 EGL10.EGL_RED_SIZE, 8, 143 EGL10.EGL_GREEN_SIZE, 8, 144 EGL10.EGL_BLUE_SIZE, 8, 145 EGL10.EGL_SURFACE_TYPE, EGL10.EGL_PBUFFER_BIT [all...] |
/cts/tests/tests/graphics/src/android/opengl/cts/ |
EglConfigTest.java | 23 import javax.microedition.khronos.egl.EGL10; 72 EGL10 egl = (EGL10) EGLContext.getEGL(); 73 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 77 EGL10.EGL_RENDERABLE_TYPE, renderableType, 80 EGL10.EGL_RED_SIZE, 1, 81 EGL10.EGL_GREEN_SIZE, 1, 82 EGL10.EGL_BLUE_SIZE, 1, 84 EGL10.EGL_SURFACE_TYPE, EGL10.EGL_WINDOW_BIT [all...] |
OpenGlEsVersionTest.java | 30 import javax.microedition.khronos.egl.EGL10; 100 EGL10 egl = (EGL10) EGLContext.getEGL(); 101 EGLDisplay display = egl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 106 boolean checkES3 = hasExtension(egl.eglQueryString(display, EGL10.EGL_EXTENSIONS), 115 EGL10.EGL_RENDERABLE_TYPE, value)) { 126 + "EGL10#eglGetConfigAttrib failed " 133 Log.e(TAG, "Getting configs with EGL10#eglGetConfigs failed: " 138 Log.e(TAG, "Getting number of configs with EGL10#eglGetConfigs failed: "
|
/external/jmonkeyengine/engine/src/android/com/jme3/system/android/ |
AndroidConfigChooser.java | 7 import javax.microedition.khronos.egl.EGL10; 54 public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { 67 public boolean findConfig(EGL10 egl, EGLDisplay display) { 107 private int getPixelFormat(EGLConfig conf, EGLDisplay display, EGL10 egl) { 111 egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RED_SIZE, value); 115 egl.eglGetConfigAttrib(display, conf, EGL10.EGL_ALPHA_SIZE, value); 134 private int getOpenGLVersion(EGLConfig conf, EGLDisplay display, EGL10 egl) { 138 egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RENDERABLE_TYPE, value); 154 public void logEGLConfig(EGLConfig conf, EGLDisplay display, EGL10 egl) { 157 egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RED_SIZE, value) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
MosaicPreviewRenderer.java | 30 import javax.microedition.khronos.egl.EGL10; 59 private EGL10 mEgl; 125 mEgl = (EGL10) EGLContext.getEGL(); 126 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 127 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 136 int[] attribList = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 138 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, 141 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 146 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 163 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
MosaicPreviewRenderer.java | 30 import javax.microedition.khronos.egl.EGL10; 59 private EGL10 mEgl; 126 mEgl = (EGL10) EGLContext.getEGL(); 127 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 128 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 137 int[] attribList = {EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE }; 139 mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, 142 if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) { 147 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 164 mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE [all...] |
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 28 import javax.microedition.khronos.egl.EGL10; 105 EGL10 mEgl; 126 EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, 127 EGL10.EGL_RED_SIZE, 8, 128 EGL10.EGL_GREEN_SIZE, 8, 129 EGL10.EGL_BLUE_SIZE, 8, 130 EGL10.EGL_ALPHA_SIZE, 8, 131 EGL10.EGL_DEPTH_SIZE, 0, 132 EGL10.EGL_STENCIL_SIZE, 0, 133 EGL10.EGL_NON [all...] |
/packages/screensavers/Basic/src/com/android/dreams/basic/ |
ColorsGLRenderer.java | 25 import javax.microedition.khronos.egl.EGL10; 68 private EGL10 mEgl; 146 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { 155 mEgl = (EGL10) EGLContext.getEGL(); 157 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 158 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 178 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 180 if (error == EGL10.EGL_BAD_NATIVE_WINDOW) { 199 private static EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) { 200 int[] attrib_list = { EGL14.EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE } [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
GLSurfaceView.java | 22 import javax.microedition.khronos.egl.EGL10; 701 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); 702 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); 708 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { 710 EGL10.EGL_NONE }; 712 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, 716 public void destroyContext(EGL10 egl, EGLDisplay display, 729 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, 731 void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface); 736 public EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 36 import javax.microedition.khronos.egl.EGL10; 140 private EGL10 mEgl; 334 if (error != EGL10.EGL_SUCCESS) { 353 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) { 362 mEgl = (EGL10) EGLContext.getEGL(); 364 mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); 365 if (mEglDisplay == EGL10.EGL_NO_DISPLAY) { 385 if (mEglSurface == null || mEglSurface == EGL10.EGL_NO_SURFACE) { 387 if (error == EGL10.EGL_BAD_NATIVE_WINDOW) { 404 EGLContext createContext(EGL10 egl, EGLDisplay eglDisplay, EGLConfig eglConfig) [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
GLSurfaceViewCustom.java | 29 import javax.microedition.khronos.egl.EGL10; 770 EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig eglConfig); 771 void destroyContext(EGL10 egl, EGLDisplay display, EGLContext context); 777 public EGLContext createContext(EGL10 egl, EGLDisplay display, EGLConfig config) { 779 EGL10.EGL_NONE }; 781 return egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, 785 public void destroyContext(EGL10 egl, EGLDisplay display, 807 EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display, EGLConfig config, 809 void destroySurface(EGL10 egl, EGLDisplay display, EGLSurface surface); 814 public EGLSurface createWindowSurface(EGL10 egl, EGLDisplay display [all...] |
/packages/apps/Nfc/src/com/android/nfc/ |
FireflyRenderer.java | 34 import javax.microedition.khronos.egl.EGL10; 52 EGL10.EGL_RED_SIZE, 8, 53 EGL10.EGL_GREEN_SIZE, 8, 54 EGL10.EGL_BLUE_SIZE, 8, 55 EGL10.EGL_ALPHA_SIZE, 0, 56 EGL10.EGL_DEPTH_SIZE, 0, 57 EGL10.EGL_STENCIL_SIZE, 0, 58 EGL10.EGL_NONE 158 EGL10 mEgl; 282 !mEglSurface.equals(mEgl.eglGetCurrentSurface(EGL10.EGL_DRAW))) [all...] |
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
EGLImpl.java | 26 public class EGLImpl implements EGL10 { 56 return EGL10.EGL_NO_CONTEXT; 64 return EGL10.EGL_NO_SURFACE; 73 return EGL10.EGL_NO_SURFACE; 103 return EGL10.EGL_NO_SURFACE; 111 return EGL10.EGL_NO_DISPLAY; 121 return EGL10.EGL_NO_CONTEXT; 131 return EGL10.EGL_NO_DISPLAY; 141 return EGL10.EGL_NO_SURFACE;
|