Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DShaderTest.java49 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testAccessLocalMatrix() local
52 shader.setLocalMatrix(m); in testAccessLocalMatrix()
53 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix()
55 shader.setLocalMatrix(null); in testAccessLocalMatrix()
56 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix()
61 Shader shader = new Shader(); in testMutateBaseObject() local
62 shader.setLocalMatrix(null); in testMutateBaseObject()
76 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testGetSetLocalMatrix() local
79 shader.setLocalMatrix(null); in testGetSetLocalMatrix()
81 assertFalse("shader should have no matrix set", shader.getLocalMatrix(paramMatrix)); in testGetSetLocalMatrix()
[all …]
DBitmapShaderTest.java53 BitmapShader shader = new BitmapShader(tile, Shader.TileMode.REPEAT, in testBitmapShader() local
56 paint.setShader(shader); in testBitmapShader()
105 BitmapShader shader = new BitmapShader(bitmap, in testClamp() local
111 paint.setShader(shader); in testClamp()
127 BitmapShader shader = new BitmapShader(bitmap, in testRepeat() local
133 paint.setShader(shader); in testRepeat()
149 BitmapShader shader = new BitmapShader(bitmap, in testMirror() local
155 paint.setShader(shader); in testMirror()
DSweepGradientTest.java65 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); in test2Colors() local
66 mPaint.setShader(shader); in test2Colors()
75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray() local
76 mPaint.setShader(shader); in testColorArray()
87 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor() local
88 mPaint.setShader(shader); in testMultiColor()
DComposeShaderTest.java52 ComposeShader shader = new ComposeShader(blueGradient, redGradient, PorterDuff.Mode.SCREEN); in testPorterDuff() local
57 paint.setShader(shader); in testPorterDuff()
91 ComposeShader shader = new ComposeShader(redShader, cyanShader, xferMode); in testXfermode() local
96 paint.setShader(shader); in testXfermode()
DCanvasTest.java2139 Shader shader = new ComposeShader(gradientShader, bitmapShader, Mode.OVERLAY); in testHwBitmapShaderInSwCanvas1() local
2141 p.setShader(shader); in testHwBitmapShaderInSwCanvas1()
2152 Shader shader = new ComposeShader(bitmapShader, gradientShader, Mode.OVERLAY); in testHwBitmapShaderInSwCanvas2() local
2154 p.setShader(shader); in testHwBitmapShaderInSwCanvas2()
/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.java201 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()
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()
DEncodeVirtualDisplayWithCompositionTest.java722 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
724 GLES20.glShaderSource(shader, source); in loadShader()
725 GLES20.glCompileShader(shader); in loadShader()
727 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
730 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader()
731 GLES20.glDeleteShader(shader); in loadShader()
732 shader = 0; in loadShader()
734 return shader; in loadShader()
DDecodeAccuracyTestBase.java1217 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
1219 GLES20.glShaderSource(shader, source); in loadShader()
1220 GLES20.glCompileShader(shader); in loadShader()
1222 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
1226 Log.e(TAG, " " + GLES20.glGetShaderInfoLog(shader)); in loadShader()
1227 GLES20.glDeleteShader(shader); in loadShader()
1228 shader = 0; in loadShader()
1230 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/tests/tests/openglperf/src/android/openglperf/cts/
DPlanetsRenderer.java301 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
302 if (shader != 0) { in loadShader()
303 GLES20.glShaderSource(shader, source); in loadShader()
304 GLES20.glCompileShader(shader); in loadShader()
306 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
309 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
310 GLES20.glDeleteShader(shader); in loadShader()
311 shader = 0; in loadShader()
314 return shader; in loadShader()
/cts/tests/camera/src/android/hardware/cts/
DCameraGLTest.java792 int shader = GLES20.glCreateShader(shaderType); in loadShader() local
793 if (shader != 0) { in loadShader()
794 GLES20.glShaderSource(shader, source); in loadShader()
795 GLES20.glCompileShader(shader); in loadShader()
797 GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compiled, 0); in loadShader()
800 Log.e(TAG, GLES20.glGetShaderInfoLog(shader)); in loadShader()
801 GLES20.glDeleteShader(shader); in loadShader()
802 shader = 0; in loadShader()
805 return shader; in loadShader()
/cts/tools/dex-tools/dex/
Dclasses.out.dex86872 public android.graphics.Shader shader