/cts/tests/tests/opengl/libopengltest/ |
D | common.cpp | 24 GLuint shader = glCreateShader(shaderType); in loadShader() local 25 glShaderSource(shader, 1, &pSource, NULL); in loadShader() 26 glCompileShader(shader); in loadShader() 27 return shader; in loadShader()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ShaderTest.java | 36 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testAccessLocalMatrix() local 39 shader.setLocalMatrix(m); in testAccessLocalMatrix() 40 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix() 42 shader.setLocalMatrix(null); in testAccessLocalMatrix() 43 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix()
|
D | SweepGradientTest.java | 55 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); in test2Colors() local 56 mPaint.setShader(shader); in test2Colors() 64 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray() local 65 mPaint.setShader(shader); in testColorArray() 75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor() local 76 mPaint.setShader(shader); in testMultiColor()
|
D | ComposeShaderTest.java | 46 ComposeShader shader = new ComposeShader(blueGradient, redGradient, PorterDuff.Mode.SCREEN); in testPorterDuff() local 51 paint.setShader(shader); in testPorterDuff() 84 ComposeShader shader = new ComposeShader(blueShader, redShader, xferMode); in testXfermode() local 89 paint.setShader(shader); in testXfermode()
|
D | BitmapShaderTest.java | 46 BitmapShader shader = new BitmapShader(tile, Shader.TileMode.REPEAT, in testBitmapShader() local 49 paint.setShader(shader); in testBitmapShader()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | RendererBase.java | 52 int shader = GLES20.glCreateShader(type); in loadShader() local 53 GLES20.glShaderSource(shader, shaderCode); in loadShader() 54 GLES20.glCompileShader(shader); in loadShader() 55 return shader; in loadShader()
|
D | RendererOneColorBufferTest.java | 100 int shader; in LoadShader() local 104 shader = GLES20.glCreateShader(type); in LoadShader() 106 if (shader == 0) in LoadShader() 110 GLES20.glShaderSource(shader, shaderSrc); in LoadShader() 113 GLES20.glCompileShader(shader); in LoadShader() 116 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in LoadShader() 119 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in LoadShader() 120 GLES20.glDeleteShader(shader); in LoadShader() 123 return shader; in LoadShader()
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
D | OpenGlEsVersionCtsActivity.java | 201 int shader = GLES31.glCreateShader(shaderType); in compileShaderAndAttach() local 202 if (shader == 0) { in compileShaderAndAttach() 206 GLES31.glShaderSource(shader, source); in compileShaderAndAttach() 207 GLES31.glCompileShader(shader); in compileShaderAndAttach() 209 GLES31.glGetShaderiv(shader, GLES31.GL_COMPILE_STATUS, compiled, 0); in compileShaderAndAttach() 212 Log.e(TAG, GLES31.glGetShaderInfoLog(shader)); in compileShaderAndAttach() 213 GLES31.glDeleteShader(shader); in compileShaderAndAttach() 216 GLES31.glAttachShader(program, shader); in compileShaderAndAttach() 217 GLES31.glDeleteShader(shader); in compileShaderAndAttach()
|
D | EglConfigGLSurfaceView.java | 192 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 193 if (shader != 0) { in loadShader() 194 GLES20.glShaderSource(shader, source); in loadShader() 195 GLES20.glCompileShader(shader); in loadShader() 197 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 200 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 201 GLES20.glDeleteShader(shader); in loadShader() 202 shader = 0; in loadShader() 205 return shader; in loadShader()
|
D | CompressedTextureSurfaceView.java | 368 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 369 if (shader != 0) { in loadShader() 370 GLES20.glShaderSource(shader, source); in loadShader() 371 GLES20.glCompileShader(shader); in loadShader() 373 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 376 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 377 GLES20.glDeleteShader(shader); in loadShader() 378 shader = 0; in loadShader() 381 return shader; in loadShader()
|
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
D | GLUtils.cpp | 132 GLuint shader = glCreateShader(shaderType); in loadShader() local 133 if (shader) { in loadShader() 134 glShaderSource(shader, 1, source, NULL); in loadShader() 135 glCompileShader(shader); in loadShader() 137 glGetShaderiv(shader, GL_COMPILE_STATUS, &compiled); in loadShader() 140 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen); in loadShader() 143 glGetShaderInfoLog(shader, infoLen, NULL, infoLog); in loadShader() 147 glDeleteShader(shader); in loadShader() 148 shader = 0; in loadShader() 151 return shader; in loadShader()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | SurfaceTextureRenderer.java | 245 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 246 if (shader != 0) { in loadShader() 247 GLES20.glShaderSource(shader, source); in loadShader() 248 GLES20.glCompileShader(shader); in loadShader() 250 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 253 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 254 GLES20.glDeleteShader(shader); in loadShader() 255 shader = 0; in loadShader() 258 return shader; in loadShader()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | TextureRender.java | 195 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 197 GLES20.glShaderSource(shader, source); in loadShader() 198 GLES20.glCompileShader(shader); in loadShader() 200 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 203 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader() 204 GLES20.glDeleteShader(shader); in loadShader() 205 shader = 0; in loadShader() 207 return shader; in loadShader()
|
D | EncodeVirtualDisplayWithCompositionTest.java | 704 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 706 GLES20.glShaderSource(shader, source); in loadShader() 707 GLES20.glCompileShader(shader); in loadShader() 709 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 712 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader() 713 GLES20.glDeleteShader(shader); in loadShader() 714 shader = 0; in loadShader() 716 return shader; in loadShader()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | CtsMediaTextureRender.java | 199 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 201 GLES20.glShaderSource(shader, source); in loadShader() 202 GLES20.glCompileShader(shader); in loadShader() 204 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 207 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader() 208 GLES20.glDeleteShader(shader); in loadShader() 209 shader = 0; in loadShader() 211 return shader; in loadShader()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | PlanetsRenderer.java | 300 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 301 if (shader != 0) { in loadShader() 302 GLES20.glShaderSource(shader, source); in loadShader() 303 GLES20.glCompileShader(shader); in loadShader() 305 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 308 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 309 GLES20.glDeleteShader(shader); in loadShader() 310 shader = 0; in loadShader() 313 return shader; in loadShader()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | CameraGLTest.java | 789 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 790 if (shader != 0) { in loadShader() 791 GLES20.glShaderSource(shader, source); in loadShader() 792 GLES20.glCompileShader(shader); in loadShader() 794 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 797 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 798 GLES20.glDeleteShader(shader); in loadShader() 799 shader = 0; in loadShader() 802 return shader; in loadShader()
|