Home
last modified time | relevance | path

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

123

/frameworks/base/graphics/java/android/graphics/
DComposeShader.java22 public class ComposeShader extends Shader {
39 private final Shader mShaderA;
41 private final Shader mShaderB;
51 public ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode) { in ComposeShader()
67 public ComposeShader(Shader shaderA, Shader shaderB, PorterDuff.Mode mode) { in ComposeShader()
80 protected Shader copy() { in copy()
DShader.java25 public class Shader { class
101 protected Shader copy() { in copy()
102 final Shader copy = new Shader(); in copy()
110 protected void copyLocalMatrix(Shader dest) { in copyLocalMatrix()
DBitmapShader.java25 public class BitmapShader extends Shader {
54 protected Shader copy() { in copy()
DSweepGradient.java19 public class SweepGradient extends Shader {
89 protected Shader copy() { in copy()
DRadialGradient.java22 public class RadialGradient extends Shader {
102 protected Shader copy() { in copy()
DLinearGradient.java19 public class LinearGradient extends Shader {
97 protected Shader copy() { in copy()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientStopsActivity.java25 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()
DShadersActivity.java29 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()
DMoreShadersActivity.java33 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()
DAdvancedBlendActivity.java31 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()
DGradientsActivity.java29 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()
DBigGradientActivity.java24 import android.graphics.Shader;
45 0xff333333, Shader.TileMode.CLAMP)); in onDraw()
DAlpha8BitmapActivity.java29 import android.graphics.Shader;
57 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); in BitmapsView()
DAdvancedGradientsActivity.java25 import android.graphics.Shader;
52 Shader.TileMode.MIRROR); in GradientsView()
DFramebufferBlendActivity.java30 import android.graphics.Shader;
58 Color.BLACK, Color.WHITE, Shader.TileMode.CLAMP); in BlendView()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DResourceModifiers.java32 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 …]
/frameworks/base/graphics/java/android/graphics/drawable/
DBitmapDrawable.java39 import android.graphics.Shader;
374 public Shader.TileMode getTileModeX() { in getTileModeX()
385 public Shader.TileMode getTileModeY() { in getTileModeY()
401 public void setTileModeX(Shader.TileMode mode) { in setTileModeX()
417 public final void setTileModeY(Shader.TileMode mode) { in setTileModeY()
433 public void setTileModeXY(Shader.TileMode xmode, Shader.TileMode ymode) { in setTileModeXY()
471 final Shader shader = mBitmapState.mPaint.getShader(); in onBoundsChange()
487 final Shader.TileMode tmx = state.mTileModeX; in draw()
488 final Shader.TileMode tmy = state.mTileModeY; in draw()
493 tmx == null ? Shader.TileMode.CLAMP : tmx, in draw()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DMinimizedDockShadow.java25 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()
/frameworks/base/core/java/android/content/res/
DGradientColor.java34 import android.graphics.Shader;
93 private Shader mShader = null;
163 private static Shader.TileMode parseTileMode(@GradientTileMode int tileMode) { in parseTileMode()
166 return Shader.TileMode.CLAMP; in parseTileMode()
168 return Shader.TileMode.REPEAT; in parseTileMode()
170 return Shader.TileMode.MIRROR; in parseTileMode()
172 return Shader.TileMode.CLAMP; in parseTileMode()
244 public Shader getShader() { in getShader()
/frameworks/opt/chips/src/com/android/ex/chips/
DCircularImageView.java11 import android.graphics.Shader;
98 BitmapShader shader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, in drawBitmapWithCircleOnCanvas()
99 Shader.TileMode.CLAMP); in drawBitmapWithCircleOnCanvas()
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java27 import android.graphics.Shader;
248 = new BitmapShader(mFrontBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in FrameSequenceDrawable()
250 = new BitmapShader(mBackBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in FrameSequenceDrawable()
/frameworks/support/design/base/android/support/design/widget/
DCircularBorderDrawable.java27 import android.graphics.Shader;
181 private Shader createGradientShader() { in createGradientShader()
209 Shader.TileMode.CLAMP); in createGradientShader()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatProgressBarHelper.java21 import android.graphics.Shader;
105 Shader.TileMode.REPEAT, Shader.TileMode.CLAMP); in tileify()
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java28 import android.graphics.Shader;
383 mBitmapShader = new BitmapShader(mBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); in RoundedBitmapDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherScrim.java27 import android.graphics.Shader;
109 Shader.TileMode.CLAMP)); in updatePaint()

123