/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
Gles2ColoredTriangleList.java | 23 import android.opengl.GLES20; 120 GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, mNumCoords); 130 * mColorHandle = GLES20.glGetUniformLocation(mProgram, "uColor"); 140 int error = GLES20.glGetError(); 141 if (error != GLES20.GL_NO_ERROR) { 156 * @param type {@link GLES20#GL_VERTEX_SHADER} or {@link GLES20#GL_FRAGMENT_SHADER} 162 int shader = GLES20.glCreateShader(type); 169 GLES20.glShaderSource(shader, shaderCode) [all...] |
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/ |
TestLatencyView.java | 36 import android.opengl.GLES20; 94 GLES20.glClearColor(0.4f, 0.4f, 0.4f, 1.0f); 95 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); 96 GLES20.glUseProgram(mProgram); 114 GLES20.glEnableVertexAttribArray(mvPositionHandle); 116 GLES20.glEnableVertexAttribArray(mvColorHandle); 134 GLES20.glVertexAttribPointer(mvPositionHandle, 2, GLES20.GL_FLOAT, false, 6*4, mTriangleVertices) [all...] |
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
GL2CameraEye.java | 34 import android.opengl.GLES20; 198 // Ignore the passed-in GL10 interface, and use the GLES20 200 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); 201 GLES20.glUseProgram(mProgram); 204 GLES20.glActiveTexture(GLES20.GL_TEXTURE0); 205 GLES20.glBindTexture(GL_TEXTURE_EXTERNAL_OES, mTextureID); 208 GLES20.glVertexAttribPointer(maPositionHandle, 3, GLES20.GL_FLOAT, false [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
ColorFade.java | 37 import android.opengl.GLES20; 205 int shader = GLES20.glCreateShader(type); 207 GLES20.glShaderSource(shader, source); 208 GLES20.glCompileShader(shader); 211 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); 214 Slog.e(TAG, GLES20.glGetShaderSource(shader)); 215 Slog.e(TAG, GLES20.glGetShaderInfoLog(shader)); 216 GLES20.glDeleteShader(shader); 225 GLES20.GL_VERTEX_SHADER) [all...] |
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/ |
MyGLRenderer.java | 21 import android.opengl.GLES20; 53 GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); 64 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT); 97 GLES20.glViewport(0, 0, width, height); 119 // create a vertex shader type (GLES20.GL_VERTEX_SHADER) 120 // or a fragment shader type (GLES20.GL_FRAGMENT_SHADER) 121 int shader = GLES20.glCreateShader(type); 124 GLES20.glShaderSource(shader, shaderCode) [all...] |
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/ |
SimpleGLRenderer.java | 22 import android.opengl.GLES20; 55 GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); 66 GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT); 99 GLES20.glViewport(0, 0, width, height); 122 // create a vertex shader type (GLES20.GL_VERTEX_SHADER) 123 // or a fragment shader type (GLES20.GL_FRAGMENT_SHADER) 124 int shader = GLES20.glCreateShader(type); 127 GLES20.glShaderSource(shader, shaderCode) [all...] |
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
GlRectDrawerTest.java | 30 import android.opengl.GLES20; 109 final int rgbTexture = GlUtil.generateTexture(GLES20.GL_TEXTURE_2D); 110 GLES20.glActiveTexture(GLES20.GL_TEXTURE0); 111 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, rgbTexture); 112 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, WIDTH, 113 HEIGHT, 0, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, rgbPlane) [all...] |
/cts/tests/openglperf2/src/android/opengl2/cts/reference/ |
GLGameActivity.java | 22 import android.opengl.GLES20; 158 GLES20.glGenTextures(1, textures, 0); 162 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureID); 163 GLES20.glTexParameteri( 164 GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR); 165 GLES20.glTexParameteri( 166 GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR) [all...] |
/cts/tests/tests/graphics/src/android/opengl/cts/ |
EglConfigGLSurfaceView.java | 20 import android.opengl.GLES20; 143 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition"); 162 int vertexShader = loadShader(GLES20.GL_VERTEX_SHADER, vertexSource); 167 int pixelShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource); 172 int program = GLES20.glCreateProgram(); 174 GLES20.glAttachShader(program, vertexShader); 176 GLES20.glAttachShader(program, pixelShader); 178 GLES20.glLinkProgram(program); 180 GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0) [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 21 import android.opengl.GLES20; 199 handle = GLES20.glGetUniformLocation(program, mName); 211 handle = GLES20.glGetAttribLocation(program, mName); 278 int drawVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, DRAW_VERTEX_SHADER); 279 int textureVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, TEXTURE_VERTEX_SHADER); 280 int meshVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, MESH_VERTEX_SHADER); 281 int drawFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, DRAW_FRAGMENT_SHADER); 282 int textureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, TEXTURE_FRAGMENT_SHADER); 283 int oesTextureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, 292 GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA) [all...] |
GLES20IdImpl.java | 3 import android.opengl.GLES20; 13 GLES20.glGenTextures(1, mTempIntArray, 0); 20 GLES20.glGenBuffers(n, buffers, offset); 26 GLES20.glDeleteTextures(n, textures, offset); 33 GLES20.glDeleteBuffers(n, buffers, offset); 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 21 import android.opengl.GLES20; 199 handle = GLES20.glGetUniformLocation(program, mName); 211 handle = GLES20.glGetAttribLocation(program, mName); 278 int drawVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, DRAW_VERTEX_SHADER); 279 int textureVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, TEXTURE_VERTEX_SHADER); 280 int meshVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, MESH_VERTEX_SHADER); 281 int drawFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, DRAW_FRAGMENT_SHADER); 282 int textureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, TEXTURE_FRAGMENT_SHADER); 283 int oesTextureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, 292 GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA) [all...] |
GLES20IdImpl.java | 3 import android.opengl.GLES20; 13 GLES20.glGenTextures(1, mTempIntArray, 0); 20 GLES20.glGenBuffers(n, buffers, offset); 26 GLES20.glDeleteTextures(n, textures, offset); 33 GLES20.glDeleteBuffers(n, buffers, offset); 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
GLES20Canvas.java | 21 import android.opengl.GLES20; 197 handle = GLES20.glGetUniformLocation(program, mName); 209 handle = GLES20.glGetAttribLocation(program, mName); 276 int drawVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, DRAW_VERTEX_SHADER); 277 int textureVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, TEXTURE_VERTEX_SHADER); 278 int meshVertexShader = loadShader(GLES20.GL_VERTEX_SHADER, MESH_VERTEX_SHADER); 279 int drawFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, DRAW_FRAGMENT_SHADER); 280 int textureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, TEXTURE_FRAGMENT_SHADER); 281 int oesTextureFragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, 290 GLES20.glBlendFunc(GLES20.GL_ONE, GLES20.GL_ONE_MINUS_SRC_ALPHA) [all...] |
GLES20IdImpl.java | 3 import android.opengl.GLES20; 13 GLES20.glGenTextures(1, mTempIntArray, 0); 20 GLES20.glGenBuffers(n, buffers, offset); 26 GLES20.glDeleteTextures(n, textures, offset); 33 GLES20.glDeleteBuffers(n, buffers, offset); 39 GLES20.glDeleteFramebuffers(n, buffers, offset);
|
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/ |
VideoDumpView.java | 45 import android.opengl.GLES20; 88 public static final int PIXEL_FORMAT = GLES20.GL_RGB; 89 public static final int PIXEL_TYPE = PIXEL_FORMAT == GLES20.GL_RGBA 90 ? GLES20.GL_UNSIGNED_BYTE : GLES20.GL_UNSIGNED_SHORT_5_6_5; 92 PIXEL_FORMAT == GLES20.GL_RGBA ? 4 : 2; 94 = PIXEL_FORMAT == GLES20.GL_RGBA ? true : false; 387 GLES20.glClearColor(0.0f, 1.0f, 0.0f, 1.0f); 388 GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT) [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/ |
ImageFlipRenderThread.java | 37 import static android.opengl.GLES20.GL_CLAMP_TO_EDGE; 38 import static android.opengl.GLES20.GL_COLOR_BUFFER_BIT; 39 import static android.opengl.GLES20.GL_COMPILE_STATUS; 40 import static android.opengl.GLES20.GL_FLOAT; 41 import static android.opengl.GLES20.GL_FRAGMENT_SHADER; 42 import static android.opengl.GLES20.GL_LINEAR; 43 import static android.opengl.GLES20.GL_LINK_STATUS; 44 import static android.opengl.GLES20.GL_NO_ERROR; 45 import static android.opengl.GLES20.GL_RGBA; 46 import static android.opengl.GLES20.GL_TEXTURE0 [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererBase.java | 22 import android.opengl.GLES20; 52 int shader = GLES20.glCreateShader(type); 53 GLES20.glShaderSource(shader, shaderCode); 54 GLES20.glCompileShader(shader);
|
AttachShaderTest.java | 19 import android.opengl.GLES20; 44 * error : GLES20.GL_NO_ERROR 52 assertEquals(GLES20.GL_NO_ERROR, error); 59 * error : GLES20.GL_INVALID_VALUE 67 assertTrue(GLES20.GL_NO_ERROR != error); 74 * error : GLES20.GL_INVALID_OPERATION 82 assertTrue(GLES20.GL_NO_ERROR != error); 90 * error : GLES20.GL_NO_ERROR 100 assertEquals(GLES20.GL_NO_ERROR, error); 107 assertEquals(GLES20.GL_INVALID_OPERATION, error) [all...] |
RendererTwoShaderTest.java | 18 import android.opengl.GLES20; 40 GLES20.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); 44 int fragmentShader = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode); 45 mProgram = GLES20.glCreateProgram(); 47 GLES20.glAttachShader(mProgram, vertexShaderOne); 48 mError = GLES20.glGetError();
|
NativeAttachShaderTest.java | 19 import android.opengl.GLES20; 45 * error : GLES20.GL_NO_ERROR 53 assertEquals(GLES20.GL_NO_ERROR, error); 60 * error : GLES20.GL_INVALID_VALUE 67 assertTrue(GLES20.GL_NO_ERROR != error); 74 * error : GLES20.GL_INVALID_OPERATION 81 assertTrue(GLES20.GL_NO_ERROR != error); 88 * error : GLES20.GL_NO_ERROR 98 assertEquals(GLES20.GL_NO_ERROR, error); 105 assertTrue(GLES20.GL_NO_ERROR != error) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
ImageShader.java | 20 import android.opengl.GLES20; 46 private int mSFactor = GLES20.GL_SRC_ALPHA; 47 private int mDFactor = GLES20.GL_ONE_MINUS_SRC_ALPHA; 48 private int mDrawMode = GLES20.GL_TRIANGLE_STRIP; 50 private int mBaseTexUnit = GLES20.GL_TEXTURE0; 51 private int mClearBuffers = GLES20.GL_COLOR_BUFFER_BIT; 126 GLES20.glVertexAttrib1fv(mIndex, mValues); 129 GLES20.glVertexAttrib2fv(mIndex, mValues); 132 GLES20.glVertexAttrib3fv(mIndex, mValues); 135 GLES20.glVertexAttrib4fv(mIndex, mValues) [all...] |
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
SurfaceTextureHelper.java | 32 import android.opengl.GLES20; 178 GLES20.glUniform1i(shader.getUniformLocation("oesTex"), 0); 261 GLES20.glActiveTexture(GLES20.GL_TEXTURE0); 262 GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, textureId); 263 GLES20.glUniformMatrix4fv(texMatrixLoc, 1, false, transformMatrix, 0); 266 GLES20.glViewport(0, 0, y_width, height); 268 GLES20.glUniform2f(xUnitLoc, 274 GLES20.glUniform4f(coeffsLoc, 0.299f, 0.587f, 0.114f, 0.0f); 275 GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4) [all...] |
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
BasicGLSurfaceView.java | 22 import android.opengl.GLES20;
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
GLESSurfaceView.java | 19 import android.opengl.GLES20; 63 extensions = GLES20.glGetString(GLES20.GL_EXTENSIONS); 64 vendor = GLES20.glGetString(GLES20.GL_VENDOR); 65 renderer = GLES20.glGetString(GLES20.GL_RENDERER);
|