/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ShaderTest.java | 27 import android.graphics.Shader; 40 new Shader(); in testConstructor() 50 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testAccessLocalMatrix() 62 Shader shader = new Shader(); in testMutateBaseObject() 77 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testGetSetLocalMatrix() 93 Shader shader = new Shader(); in testGetWithNullParam()
|
D | BitmapShaderTest.java | 29 import android.graphics.Shader; 69 BitmapShader shader = new BitmapShader(tile, Shader.TileMode.REPEAT, in testBitmapShader() 70 Shader.TileMode.REPEAT); in testBitmapShader() 123 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testClamp() 146 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testRepeat() 169 Shader.TileMode.MIRROR, Shader.TileMode.MIRROR); in testMirror() 194 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testFiltering() 237 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testAnisotropicFiltering() 254 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testRecycledBitmapThrowsISE() 263 new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testRecycledBitmapThrowsISE() [all …]
|
D | ComposeShaderTest.java | 32 import android.graphics.Shader; 33 import android.graphics.Shader.TileMode; 51 Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP); in testPorterDuff() 53 Color.GREEN, Color.RED, Shader.TileMode.CLAMP); in testPorterDuff() 84 Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP); in testBlendMode() 86 Color.GREEN, Color.RED, Shader.TileMode.CLAMP); in testBlendMode()
|
D | Shader_TileModeTest.java | 21 import android.graphics.Shader.TileMode;
|
D | SweepGradientTest.java | 30 import android.graphics.Shader; 70 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); in test2Colors() 80 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testColorArray() 92 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); in testMultiColor()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ShaderTests.java | 30 import android.graphics.Shader; 58 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); in testSinglePixelBitmapShader() 79 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in testSinglePixelComposeShader() 86 Shader.TileMode.CLAMP); in testSinglePixelComposeShader() 130 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testComplexShaderUsage() 136 null, Shader.TileMode.CLAMP); in testComplexShaderUsage() 157 Color.TRANSPARENT, Color.WHITE, Shader.TileMode.REPEAT)); in testRepeatAlphaGradientShader() 175 Color.TRANSPARENT, Color.WHITE, Shader.TileMode.CLAMP)); in testClampAlphaGradientShader() 196 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); in testSinglePixelBitmapShaderWith1010102Config() 218 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in testAnisotropicFilteredBitmapShader() [all …]
|
D | GradientTests.java | 29 import android.graphics.Shader; 58 0xffffffff, 0x00ffffff, Shader.TileMode.CLAMP) in testAlphaPreMultiplication() 91 Shader.TileMode.CLAMP in testRadialGradientWithFocalPoint() 131 Shader.TileMode.CLAMP in testRadialGradientSameStartEndCircles() 177 Shader.TileMode.CLAMP in testNegativeFocalRadiusThrows() 192 Shader.TileMode.CLAMP in testMismatchColorsAndStopsThrows() 206 Shader.TileMode.CLAMP in createRadialGradientGoldenBitmap() 228 Shader.TileMode.CLAMP in testRadialGradientWithFocalPointMatchesRegularRadialGradient() 247 Shader.TileMode.CLAMP in testZeroEndRadiusThrows() 261 Shader.TileMode.CLAMP in testNullColorsThrows() [all …]
|
D | ShaderClippingTests.java | 29 import android.graphics.Shader; 72 BitmapShader s = new BitmapShader(bitmap, Shader.TileMode.REPEAT, in testBitmapShader() 73 Shader.TileMode.REPEAT); in testBitmapShader() 88 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testLinearGradient() 103 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testCompose() 105 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testCompose() 120 Color.RED, Color.TRANSPARENT, Shader.TileMode.CLAMP); in testRadialGradient() 167 Color.TRANSPARENT, Color.RED, Shader.TileMode.DECAL); in testClipOutShader() 178 private void clipAndDraw(Canvas canvas, int width, int height, Shader s, boolean clipIn) { in clipAndDraw()
|
D | Rgba16fTests.java | 26 import android.graphics.Shader; 105 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); in testMasked() 131 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP)); in testTransferFunctionsShader()
|
D | GainmapTests.java | 36 import android.graphics.Shader; 288 BitmapShader shader = new BitmapShader(sTestImage, Shader.TileMode.CLAMP, 289 Shader.TileMode.CLAMP); 300 BitmapShader shader = new BitmapShader(sTestImage, Shader.TileMode.CLAMP, 301 Shader.TileMode.CLAMP); 313 BitmapShader shader = new BitmapShader(sTestImage, Shader.TileMode.CLAMP, 314 Shader.TileMode.CLAMP); 328 BitmapShader shader = new BitmapShader(sTestImage, Shader.TileMode.CLAMP, 329 Shader.TileMode.CLAMP); 346 BitmapShader shader = new BitmapShader(sTestImage, Shader.TileMode.CLAMP, [all …]
|
D | RuntimeShaderTests.kt | 31 import android.graphics.Shader in <lambda>() 58 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP) in <lambda>() 171 shader.setInputShader("inputShader", Nulls.type<Shader>()) in <lambda>() 286 val bitmapShader = BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP) in <lambda>() 340 val bitmapShader = BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP) in <lambda>() 387 val bitmapShader = BitmapShader(bitmap, Shader.TileMode.DECAL, Shader.TileMode.DECAL) in <lambda>()
|
D | SweepTests.java | 24 import android.graphics.Shader; 59 Shader.TileMode.REPEAT);
|
D | CanvasTests.java | 37 import android.graphics.Shader; 313 BitmapShader bitmapShader = new BitmapShader(hwBitmap, Shader.TileMode.REPEAT, in testHwBitmapShaderInSwCanvas1() 314 Shader.TileMode.REPEAT); in testHwBitmapShaderInSwCanvas1() 316 Color.BLACK, Color.CYAN, Shader.TileMode.REPEAT); in testHwBitmapShaderInSwCanvas1() 317 Shader shader = new ComposeShader(gradientShader, bitmapShader, PorterDuff.Mode.OVERLAY); in testHwBitmapShaderInSwCanvas1() 326 BitmapShader bitmapShader = new BitmapShader(hwBitmap, Shader.TileMode.REPEAT, in testHwBitmapShaderInSwCanvas2() 327 Shader.TileMode.REPEAT); in testHwBitmapShaderInSwCanvas2() 329 Color.BLACK, Color.CYAN, Shader.TileMode.REPEAT); in testHwBitmapShaderInSwCanvas2() 330 Shader shader = new ComposeShader(bitmapShader, gradientShader, PorterDuff.Mode.OVERLAY); in testHwBitmapShaderInSwCanvas2()
|
D | ForceDarkTests.java | 26 import android.graphics.Shader; 146 color, null, Shader.TileMode.CLAMP) in testLinearGradient()
|
D | PaintTests.kt | 28 import android.graphics.Shader in <lambda>() 197 Shader.TileMode.CLAMP) in <lambda>()
|
D | ColorSpaceTests.java | 35 import android.graphics.Shader; 319 p.setShader(new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); in drawAsset()
|
D | RenderNodeTests.java | 42 import android.graphics.Shader; 639 30f, 30f, null, Shader.TileMode.CLAMP) in testRenderEffectOnParentInvalidatesWhenChildChanges() 710 Shader.TileMode.DECAL in testBlurRenderEffectImplicitInput() 757 Shader.TileMode.DECAL in testBlurRenderEffect() 854 Shader.TileMode.CLAMP in testShaderRenderEffect() 932 Shader.TileMode.CLAMP in testBlurShaderLargeRadiiEdgeReplication()
|
D | ExactCanvasTests.java | 30 import android.graphics.Shader; 440 Shader.TileMode.REPEAT)); in testDrawVertices_blendVertexAndShaderColors() 486 Shader.TileMode.REPEAT)); in testDrawVertices_ignoreShaderIfTexsNotSet()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | ResourceModifier.java | 30 import android.graphics.Shader; 62 repeatShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, in ResourceModifier() 63 Shader.TileMode.REPEAT); in ResourceModifier() 65 translatedShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, in ResourceModifier() 66 Shader.TileMode.REPEAT); in ResourceModifier() 72 scaledShader = new BitmapShader(bitmap, Shader.TileMode.MIRROR, in ResourceModifier() 73 Shader.TileMode.MIRROR); in ResourceModifier() 79 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); in ResourceModifier() 87 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); in ResourceModifier() 90 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ResourceModifier() [all …]
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Shader.cpp | 26 Shader *Shader::loadShader(const std::string &vertexSource, const std::string &fragmentSource, in loadShader() 30 Shader *shader = nullptr; in loadShader() 75 shader = new Shader(program, positionAttribute, uvAttribute, in loadShader() 90 GLuint Shader::loadShader(GLenum shaderType, const std::string &shaderSource) { in loadShader() 121 void Shader::activate() const { in activate() 125 void Shader::deactivate() const { in deactivate() 129 void Shader::drawModel(const Model &model) const { in drawModel() 162 void Shader::setProjectionMatrix(float *projectionMatrix) const { in setProjectionMatrix()
|
D | Shader.h | 32 class Shader { 47 static Shader *loadShader(const std::string &vertexSource, const std::string &fragmentSource, 52 inline ~Shader() { in ~Shader() 98 constexpr Shader(GLuint program, GLint position, GLint uv, GLint projectionMatrix) in Shader() function
|
D | Renderer.h | 150 std::unique_ptr<Shader> shader_;
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ShapeDrawable_ShaderFactoryTest.java | 21 import android.graphics.Shader; 43 public Shader resize(int width, int height) { in resize()
|
/cts/hostsidetests/adpf/app/hintsession/ |
D | Android.bp | 27 "src/cpp/Shader.cpp",
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimationActivity.java | 32 import android.graphics.Shader; 257 50f, color, darkColor, Shader.TileMode.CLAMP); in addBall()
|