/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | ComposeShader.java | 25 public class ComposeShader extends Shader { 27 Shader mShaderA; 29 Shader mShaderB; 44 public ComposeShader(@NonNull Shader shaderA, @NonNull Shader shaderB, @NonNull Xfermode mode) { in ComposeShader() 58 public ComposeShader(@NonNull Shader shaderA, @NonNull Shader shaderB, in ComposeShader() 72 public ComposeShader(@NonNull Shader shaderA, @NonNull Shader shaderB, in ComposeShader() 77 private ComposeShader(Shader shaderA, Shader shaderB, int nativeMode) { in ComposeShader()
|
H A D | Shader.java | 32 public class Shader { class 37 Shader.class.getClassLoader(), nativeGetFinalizer()); 44 public Shader() { in Shader() method in Shader 51 protected Shader(ColorSpace colorSpace) { in Shader() method in Shader
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GradientStopsActivity.java | 25 import android.graphics.Shader; 48 colors, positions, Shader.TileMode.CLAMP); in onDraw() 58 colors, positions, Shader.TileMode.CLAMP); in onDraw() 68 colors, positions, Shader.TileMode.CLAMP); in onDraw() 77 colors, null, Shader.TileMode.CLAMP); in onDraw() 85 colors, null, Shader.TileMode.REPEAT); in onDraw() 93 colors, null, Shader.TileMode.MIRROR); in onDraw() 101 colors, null, Shader.TileMode.CLAMP); in onDraw() 109 colors, null, Shader.TileMode.CLAMP); in onDraw() 117 colors, null, Shader.TileMode.CLAMP); in onDraw()
|
H A D | ShadersActivity.java | 29 import android.graphics.Shader; 68 mRepeatShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT, in ShadersView() 69 Shader.TileMode.REPEAT); in ShadersView() 71 mTranslatedShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT, in ShadersView() 72 Shader.TileMode.REPEAT); in ShadersView() 78 mScaledShader = new BitmapShader(mTexture, Shader.TileMode.MIRROR, in ShadersView() 79 Shader.TileMode.MIRROR); in ShadersView() 85 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); in ShadersView() 93 Color.BLUE, Color.MAGENTA, Shader.TileMode.CLAMP); in ShadersView() 96 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ShadersView()
|
H A D | MoreShadersActivity.java | 33 import android.graphics.Shader; 71 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView() 72 Shader.TileMode.MIRROR); in ShadersView() 77 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView() 78 Shader.TileMode.MIRROR); in ShadersView() 84 Color.RED, 0x7f00ff00, Shader.TileMode.CLAMP); in ShadersView() 90 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ShadersView()
|
H A D | AdvancedBlendActivity.java | 31 import android.graphics.Shader; 69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView() 70 Shader.TileMode.MIRROR); in ShadersView() 75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView() 76 Shader.TileMode.MIRROR); in ShadersView() 82 Color.BLACK, Color.WHITE, Shader.TileMode.CLAMP); in ShadersView()
|
H A D | GradientsActivity.java | 29 import android.graphics.Shader; 98 BitmapShader shader = new BitmapShader(texture, Shader.TileMode.REPEAT, in BitmapView() 99 Shader.TileMode.REPEAT); in BitmapView() 124 Shader.TileMode.CLAMP); in GradientView() 149 Shader.TileMode.MIRROR); in RadialGradientView() 205 mGradient = new LinearGradient(0, 0, 0, 1, 0xFF000000, 0, Shader.TileMode.CLAMP); in ShadersView() 207 new int[] { 0xFFFF0000, 0xFF00FF00, 0xFF0000FF }, null, Shader.TileMode.CLAMP); in ShadersView()
|
H A D | BlurActivity.java | 27 import android.graphics.Shader; 68 Shader.TileMode.DECAL in BlurGradientView() 83 Shader.TileMode.CLAMP in onLayout() 127 Shader.TileMode.DECAL in BlurView()
|
H A D | Alpha8BitmapActivity.java | 29 import android.graphics.Shader; 57 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in BitmapsView()
|
H A D | BigGradientActivity.java | 24 import android.graphics.Shader; 45 0xff333333, Shader.TileMode.CLAMP)); in onDraw()
|
/aosp12/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ResourceModifiers.java | 32 import android.graphics.Shader; 72 mRepeatShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, in ResourceModifiers() 73 Shader.TileMode.REPEAT); in ResourceModifiers() 75 mTranslatedShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, in ResourceModifiers() 76 Shader.TileMode.REPEAT); in ResourceModifiers() 82 mScaledShader = new BitmapShader(mBitmap, Shader.TileMode.MIRROR, in ResourceModifiers() 83 Shader.TileMode.MIRROR); in ResourceModifiers() 89 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); in ResourceModifiers() 97 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); in ResourceModifiers() 100 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); in ResourceModifiers() [all …]
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 41 import android.graphics.Shader; 395 public Shader.TileMode getTileModeX() { in getTileModeX() 406 public Shader.TileMode getTileModeY() { in getTileModeY() 422 public void setTileModeX(Shader.TileMode mode) { in setTileModeX() 454 public void setTileModeXY(Shader.TileMode xmode, Shader.TileMode ymode) { in setTileModeXY() 539 final Shader shader = paint.getShader(); in draw() 936 return Shader.TileMode.CLAMP; in parseTileMode() 938 return Shader.TileMode.REPEAT; in parseTileMode() 940 return Shader.TileMode.MIRROR; in parseTileMode() 989 Shader.TileMode mTileModeX = null; [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | PaintNativeInstanceTest.kt | 56 private fun setupComposeShader(test: (Paint, ComposeShader, Shader, Shader) -> Unit) { 59 Shader.TileMode.MIRROR) 61 Shader.TileMode.MIRROR) 70 private fun Shader.changeMatrix() { regex
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
H A D | ColorBrightnessView.java | 27 import android.graphics.Shader; 92 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in ColorBrightnessView() 137 0, .3f, .31f, 1 }, Shader.TileMode.CLAMP); in setupButton() 159 Shader sg = new LinearGradient( in updatePaint() 161 color1, color2, Shader.TileMode.CLAMP); in updatePaint()
|
H A D | ColorOpacityView.java | 28 import android.graphics.Shader; 97 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in makeCheckPaint() 142 0, .3f, .31f, 1 }, Shader.TileMode.CLAMP); in setupButton() 160 Shader sg = new LinearGradient( in updatePaint() 161 mBorder, mBorder, mWidth - mBorder, mBorder, color1, color2, Shader.TileMode.CLAMP); in updatePaint()
|
H A D | ColorSaturationView.java | 27 import android.graphics.Shader; 92 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in ColorSaturationView() 137 0, .3f, .31f, 1 }, Shader.TileMode.CLAMP); in setupButton() 158 Shader sg = new LinearGradient( in updatePaint() 160 color1, color2, Shader.TileMode.CLAMP); in updatePaint()
|
H A D | ColorRectView.java | 26 import android.graphics.Shader; 148 mBorder, 0, mWidth - mBorder, 0, wheelColor, null, Shader.TileMode.CLAMP); in setUpColorPanel() 152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP); in setUpColorPanel() 155 0, mBorder, 0, mHeight - mBorder, colors2, null, Shader.TileMode.CLAMP); in setUpColorPanel() 192 0, .3f, .31f, 1 }, Shader.TileMode.CLAMP); in updateDotPaint()
|
H A D | ColorValueView.java | 25 import android.graphics.Shader; 119 0, .3f, .31f, 1 }, Shader.TileMode.CLAMP); in setupButton() 139 Shader sg = new LinearGradient(mBorder, mBorder, mBorder, mHeight - mBorder, color1, color2, in updatePaint() 140 Shader.TileMode.CLAMP); in updatePaint()
|
H A D | ColorHueView.java | 28 import android.graphics.Shader; 154 0, .3f, .31f, 1}, Shader.TileMode.CLAMP); in setupButton() 197 BitmapShader bs = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in makeCheckPaint()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/ |
H A D | MinimizedDockShadow.java | 25 import android.graphics.Shader; 67 new float[] { 0f, 0.35f, 0.6f, 1f }, Shader.TileMode.CLAMP)); in updatePaint() 72 new float[] { 0f, 0.35f, 0.6f, 1f }, Shader.TileMode.CLAMP)); in updatePaint() 77 new float[] { 0f, 0.35f, 0.6f, 1f }, Shader.TileMode.CLAMP)); in updatePaint()
|
/aosp12/frameworks/base/core/java/android/content/res/ |
H A D | GradientColor.java | 34 import android.graphics.Shader; 98 private Shader mShader = null; 168 private static Shader.TileMode parseTileMode(@GradientTileMode int tileMode) { in parseTileMode() 171 return Shader.TileMode.CLAMP; in parseTileMode() 173 return Shader.TileMode.REPEAT; in parseTileMode() 175 return Shader.TileMode.MIRROR; in parseTileMode() 177 return Shader.TileMode.CLAMP; in parseTileMode() 249 public Shader getShader() { in getShader()
|
/aosp12/frameworks/base/libs/hwui/shader/ |
H A D | BlurShader.h | 25 class BlurShader : public Shader { 37 BlurShader(float radiusX, float radiusY, Shader* inputShader, SkTileMode edgeTreatment,
|
H A D | BlurShader.cpp | 23 BlurShader::BlurShader(float radiusX, float radiusY, Shader* inputShader, SkTileMode edgeTreatment, in BlurShader() 25 : Shader(matrix) in BlurShader()
|
/aosp12/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/hdr/ |
H A D | RadialGlow.kt | 24 import android.graphics.Shader 41 glow = RadialGradient(0f, 0f, 100.dp(), glowColor, bgColor, Shader.TileMode.CLAMP) 52 min(w, h).toFloat(), glowColor, bgColor, Shader.TileMode.CLAMP)
|
/aosp12/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | CircularImageView.java | 11 import android.graphics.Shader; 98 BitmapShader shader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, in drawBitmapWithCircleOnCanvas() 99 Shader.TileMode.CLAMP); in drawBitmapWithCircleOnCanvas()
|