/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ShaderTest.java | 50 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testAccessLocalMatrix() local 53 shader.setLocalMatrix(m); in testAccessLocalMatrix() 54 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix() 56 shader.setLocalMatrix(null); in testAccessLocalMatrix() 57 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix() 62 Shader shader = new Shader(); in testMutateBaseObject() local 63 shader.setLocalMatrix(null); in testMutateBaseObject() 77 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testGetSetLocalMatrix() local 80 shader.setLocalMatrix(null); in testGetSetLocalMatrix() 82 assertFalse("shader should have no matrix set", shader.getLocalMatrix(paramMatrix)); in testGetSetLocalMatrix() [all …]
|
D | BitmapShaderTest.java | 54 BitmapShader shader = new BitmapShader(tile, Shader.TileMode.REPEAT, in testBitmapShader() local 57 paint.setShader(shader); in testBitmapShader() 106 BitmapShader shader = new BitmapShader(bitmap, in testClamp() local 112 paint.setShader(shader); in testClamp() 128 BitmapShader shader = new BitmapShader(bitmap, in testRepeat() local 134 paint.setShader(shader); in testRepeat() 150 BitmapShader shader = new BitmapShader(bitmap, in testMirror() local 156 paint.setShader(shader); in testMirror()
|
D | ComposeShaderTest.java | 54 ComposeShader shader = new ComposeShader(blueGradient, redGradient, PorterDuff.Mode.SCREEN); in testPorterDuff() local 59 paint.setShader(shader); in testPorterDuff() 87 ComposeShader shader = new ComposeShader(blueGradient, redGradient, BlendMode.SCREEN); in testBlendMode() local 92 paint.setShader(shader); in testBlendMode() 126 ComposeShader shader = new ComposeShader(redShader, cyanShader, xferMode); in testXfermode() local 131 paint.setShader(shader); in testXfermode()
|
D | SweepGradientTest.java | 70 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); in test2Colors() local 71 mPaint.setShader(shader); in test2Colors() 80 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray() local 81 mPaint.setShader(shader); in testColorArray() 92 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor() local 93 mPaint.setShader(shader); in testMultiColor()
|
/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/openglperf2/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() 148 glDeleteShader(shader); in loadShader() 149 shader = 0; in loadShader() 152 return shader; in loadShader()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
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()
|
D | OpenGlEsVersionCtsActivity.java | 209 int shader = GLES31.glCreateShader(shaderType); in compileShaderAndAttach() local 210 if (shader == 0) { in compileShaderAndAttach() 214 GLES31.glShaderSource(shader, source); in compileShaderAndAttach() 215 GLES31.glCompileShader(shader); in compileShaderAndAttach() 217 GLES31.glGetShaderiv(shader, GLES31.GL_COMPILE_STATUS, compiled, 0); in compileShaderAndAttach() 220 Log.e(TAG, GLES31.glGetShaderInfoLog(shader)); in compileShaderAndAttach() 221 GLES31.glDeleteShader(shader); in compileShaderAndAttach() 224 GLES31.glAttachShader(program, shader); in compileShaderAndAttach() 225 GLES31.glDeleteShader(shader); in compileShaderAndAttach()
|
D | RendererBase.java | 53 int shader = GLES20.glCreateShader(type); in loadShader() local 54 GLES20.glShaderSource(shader, shaderCode); in loadShader() 55 GLES20.glCompileShader(shader); in loadShader() 56 mInfoLog = GLES20.glGetShaderInfoLog(shader); in loadShader() 57 return shader; in loadShader()
|
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 | 338 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 339 if (shader != 0) { in loadShader() 340 GLES20.glShaderSource(shader, source); in loadShader() 341 GLES20.glCompileShader(shader); in loadShader() 343 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 346 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 347 GLES20.glDeleteShader(shader); in loadShader() 348 shader = 0; in loadShader() 351 return shader; in loadShader()
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | utils.cpp | 25 bool CompileShader(GLuint shader, const std::string& shader_string) { in CompileShader() argument 29 glShaderSource(shader, 1, shader_str, NULL); in CompileShader() 30 glCompileShader(shader); in CompileShader() 34 glGetShaderiv(shader, GL_COMPILE_STATUS, &success); in CompileShader() 37 glGetShaderInfoLog(shader, 512, NULL, infoLog); in CompileShader()
|
D | utils.h | 52 std::string StripLambda(const char(&shader)[size]) { in StripLambda() 53 return std::string(shader + 6, shader + size - 2); in StripLambda() 58 bool CompileShader(GLuint shader, const std::string& shader_string);
|
D | shadertoy_shader.cpp | 24 bool CompileShader10(GLuint shader, const std::string& shader_string) { in CompileShader10() argument 28 glShaderSource(shader, 1, shader_str, NULL); in CompileShader10() 29 glCompileShader(shader); in CompileShader10() 33 glGetShaderiv(shader, GL_COMPILE_STATUS, &success); in CompileShader10() 36 glGetShaderInfoLog(shader, 512, NULL, infoLog); in CompileShader10()
|
D | shadertoy_renderer.cpp | 28 ShadertoyShader shader; variable 70 shader.CreateShaderFromString(g_shader); in CreateShader() 122 …shader.PrepareForDraw(g_framebuffer_width, g_framebuffer_height, global_time, frame_count, (float)… in DrawFrame()
|
/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/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/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 | 823 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 825 GLES20.glShaderSource(shader, source); in loadShader() 826 GLES20.glCompileShader(shader); in loadShader() 828 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 831 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader() 832 GLES20.glDeleteShader(shader); in loadShader() 833 shader = 0; in loadShader() 835 return shader; in loadShader()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_CameraGpuCtsActivity.cpp | 264 GLuint shader = glCreateShader(shaderType); in loadShader() local 266 glShaderSource(shader, 1, &source, nullptr); in loadShader() 267 glCompileShader(shader); in loadShader() 270 glGetShaderiv(shader, GL_COMPILE_STATUS, &success); in loadShader() 273 shader = 0; in loadShader() 275 return shader; in loadShader()
|
/cts/tests/vr/src/android/vr/cts/ |
D | RendererBasicTest.java | 64 int shader = GLES20.glCreateShader(type); in loadShader() local 65 GLES20.glShaderSource(shader, shaderCode); in loadShader() 66 GLES20.glCompileShader(shader); in loadShader() 67 return shader; in loadShader()
|
/cts/hostsidetests/gputools/layers/jni/ |
D | glesLayer.cpp | 50 EGLAPI void EGLAPIENTRY glesLayer_glCompileShaderA (GLuint shader) { in glesLayer_glCompileShaderA() argument 51 ALOGI("%s%u", "glesLayer_glCompileShaderA called with parameter ", shader); in glesLayer_glCompileShaderA() 60 next(shader); in glesLayer_glCompileShaderA() 63 EGLAPI void EGLAPIENTRY glesLayer_glCompileShaderB (GLuint shader) { in glesLayer_glCompileShaderB() argument 64 ALOGI("%s%u", "glesLayer_CompileShaderB called with parameter ", shader); in glesLayer_glCompileShaderB() 73 next(shader); in glesLayer_glCompileShaderB()
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | PlanetsRenderer.java | 303 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 304 if (shader != 0) { in loadShader() 305 GLES20.glShaderSource(shader, source); in loadShader() 306 GLES20.glCompileShader(shader); in loadShader() 308 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 311 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 312 GLES20.glDeleteShader(shader); in loadShader() 313 shader = 0; in loadShader() 316 return shader; in loadShader()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraGLTest.java | 814 int shader = GLES20.glCreateShader(shaderType); in loadShader() local 815 if (shader != 0) { in loadShader() 816 GLES20.glShaderSource(shader, source); in loadShader() 817 GLES20.glCompileShader(shader); in loadShader() 819 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader() 822 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader() 823 GLES20.glDeleteShader(shader); in loadShader() 824 shader = 0; in loadShader() 827 return shader; in loadShader()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasTests.java | 207 Shader shader = new ComposeShader(gradientShader, bitmapShader, PorterDuff.Mode.OVERLAY); in testHwBitmapShaderInSwCanvas1() local 209 p.setShader(shader); in testHwBitmapShaderInSwCanvas1() 220 Shader shader = new ComposeShader(bitmapShader, gradientShader, PorterDuff.Mode.OVERLAY); in testHwBitmapShaderInSwCanvas2() local 222 p.setShader(shader); in testHwBitmapShaderInSwCanvas2()
|