Home
last modified time | relevance | path

Searched refs:shader (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DShaderTest.java50 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 …]
DBitmapShaderTest.java54 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()
DComposeShaderTest.java54 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()
DSweepGradientTest.java70 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/
Dcommon.cpp24 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/opengl/src/android/opengl/cts/
DRendererBase.java53 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()
DOpenGlEsVersionCtsActivity.java209 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()
DRendererOneColorBufferTest.java100 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()
DEglConfigGLSurfaceView.java192 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()
DCompressedTextureSurfaceView.java338 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/
Dutils.cpp25 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()
Dutils.h52 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);
Dshadertoy_shader.cpp24 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()
Dshadertoy_renderer.cpp28 ShadertoyShader shader; variable
70 shader.CreateShaderFromString(g_shader); in CreateShader()
122shader.PrepareForDraw(g_framebuffer_width, g_framebuffer_height, global_time, frame_count, (float)… in DrawFrame()
/cts/tests/openglperf2/jni/graphics/
DGLUtils.cpp132 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/mediastress/src/android/mediastress/cts/
DSurfaceTextureRenderer.java245 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/
DCtsMediaTextureRender.java199 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/
DTextureRender.java195 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()
DDecodeAccuracyTestBase.java1231 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
1233 GLES20.glShaderSource(shader, source); in loadShader()
1234 GLES20.glCompileShader(shader); in loadShader()
1236 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
1240 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader()
1241 GLES20.glDeleteShader(shader); in loadShader()
1242 shader = 0; in loadShader()
1244 return shader; in loadShader()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_CameraGpuCtsActivity.cpp264 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/
DRendererBasicTest.java64 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/
DglesLayer.cpp50 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/
DPlanetsRenderer.java303 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/
DCameraGLTest.java814 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/
DCanvasTests.java207 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()

12