/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapShader.java | 33 private TileMode mTileX; 34 private TileMode mTileY; 43 public BitmapShader(@NonNull Bitmap bitmap, TileMode tileX, TileMode tileY) {
|
H A D | Shader.java | 42 public enum TileMode { enum in class:Shader 58 TileMode(int nativeInt) { method in class:Shader.TileMode
|
H A D | LinearGradient.java | 39 private TileMode mTileMode; 53 TileMode tile) { 81 TileMode tile) {
|
H A D | RadialGradient.java | 41 private TileMode mTileMode; 55 @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) { 84 int centerColor, int edgeColor, @NonNull TileMode tileMode) {
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Shader_Delegate.java | 22 import android.graphics.Shader.TileMode; 57 * Returns the {@link TileMode} matching the given int. 59 * @return the TileMode enum. 61 public static TileMode getTileMode(int tileMode) { 62 for (TileMode tm : TileMode.values()) { 69 return TileMode.CLAMP;
|
H A D | BitmapShader_Delegate.java | 24 import android.graphics.Shader.TileMode; 95 TileMode tileModeX, TileMode tileModeY) { 101 private final TileMode mTileModeX; 102 private final TileMode mTileModeY; 105 TileMode tileModeX, TileMode tileModeY) { 207 private int getCoordinate(int i, int size, TileMode mode) {
|
H A D | Gradient_Delegate.java | 19 import android.graphics.Shader.TileMode; 73 * on the color and position lists, as well as the {@link TileMode} 81 private final TileMode mTileMode; 84 protected GradientPaint(int[] colors, float[] positions, TileMode tileMode) { 125 * will use {@link TileMode} value to convert it into a [0,1] value.
|
H A D | LinearGradient_Delegate.java | 24 import android.graphics.Shader.TileMode; 92 int colors[], float positions[], TileMode tile) { 112 float positions[], TileMode tile) {
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GradientStopsActivity.java | 48 colors, positions, Shader.TileMode.CLAMP); 58 colors, positions, Shader.TileMode.CLAMP); 68 colors, positions, Shader.TileMode.CLAMP); 77 colors, null, Shader.TileMode.CLAMP); 85 colors, null, Shader.TileMode.REPEAT); 93 colors, null, Shader.TileMode.MIRROR); 101 colors, null, Shader.TileMode.CLAMP); 109 colors, null, Shader.TileMode.CLAMP); 117 colors, null, Shader.TileMode.CLAMP);
|
H A D | ShadersActivity.java | 68 mRepeatShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT, 69 Shader.TileMode.REPEAT); 71 mTranslatedShader = new BitmapShader(mTexture, Shader.TileMode.REPEAT, 72 Shader.TileMode.REPEAT); 78 mScaledShader = new BitmapShader(mTexture, Shader.TileMode.MIRROR, 79 Shader.TileMode.MIRROR); 85 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 93 Color.BLUE, Color.MAGENTA, Shader.TileMode.CLAMP); 96 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR);
|
H A D | AdvancedBlendActivity.java | 69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, 70 Shader.TileMode.MIRROR); 75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, 76 Shader.TileMode.MIRROR); 82 Color.BLACK, Color.WHITE, Shader.TileMode.CLAMP);
|
H A D | BigGradientActivity.java | 45 0xff333333, Shader.TileMode.CLAMP));
|
H A D | MoreShadersActivity.java | 71 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, 72 Shader.TileMode.MIRROR); 77 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, 78 Shader.TileMode.MIRROR); 84 Color.RED, 0x7f00ff00, Shader.TileMode.CLAMP); 90 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR);
|
H A D | GradientsActivity.java | 98 BitmapShader shader = new BitmapShader(texture, Shader.TileMode.REPEAT, 99 Shader.TileMode.REPEAT); 124 Shader.TileMode.CLAMP); 149 Shader.TileMode.MIRROR); 205 mGradient = new LinearGradient(0, 0, 0, 1, 0xFF000000, 0, Shader.TileMode.CLAMP); 207 new int[] { 0xFFFF0000, 0xFF00FF00, 0xFF0000FF }, null, Shader.TileMode.CLAMP);
|
H A D | Alpha8BitmapActivity.java | 57 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ResourceModifiers.java | 72 mRepeatShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, 73 Shader.TileMode.REPEAT); 75 mTranslatedShader = new BitmapShader(mBitmap, Shader.TileMode.REPEAT, 76 Shader.TileMode.REPEAT); 82 mScaledShader = new BitmapShader(mBitmap, Shader.TileMode.MIRROR, 83 Shader.TileMode.MIRROR); 89 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 97 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); 100 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); 127 mBitmapColors, null, Shader.TileMode [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | MinimizedDockShadow.java | 67 new float[] { 0f, 0.35f, 0.6f, 1f }, Shader.TileMode.CLAMP)); 72 new float[] { 0f, 0.35f, 0.6f, 1f }, Shader.TileMode.CLAMP)); 77 new float[] { 0f, 0.35f, 0.6f, 1f }, Shader.TileMode.CLAMP));
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | CircularBitmapDrawable.java | 29 import android.graphics.Shader.TileMode; 136 shader = new BitmapShader(bitmap, TileMode.CLAMP, TileMode.CLAMP);
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | CircularImageView.java | 98 BitmapShader shader = new BitmapShader(bitmap, Shader.TileMode.CLAMP, 99 Shader.TileMode.CLAMP);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 370 * @return {@link android.graphics.Shader.TileMode#CLAMP} if the bitmap does not repeat, 371 * {@link android.graphics.Shader.TileMode#REPEAT} or 372 * {@link android.graphics.Shader.TileMode#MIRROR} otherwise. 374 public Shader.TileMode getTileModeX() { 381 * @return {@link android.graphics.Shader.TileMode#CLAMP} if the bitmap does not repeat, 382 * {@link android.graphics.Shader.TileMode#REPEAT} or 383 * {@link android.graphics.Shader.TileMode#MIRROR} otherwise. 385 public Shader.TileMode getTileModeY() { 391 * does not repeat its bitmap. Using {@link android.graphics.Shader.TileMode#REPEAT} or 392 * {@link android.graphics.Shader.TileMode#MIRRO [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SkiaBehaviorTests.cpp | 38 SkShader::TileMode xy[2];
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 33 import android.graphics.Shader.TileMode; 66 new float[]{0f, radius / outerArcRadius, 1f}, TileMode.CLAMP)); 68 TileMode.CLAMP)); 94 colors, new float[]{0f, 1 / 3f, 1f}, TileMode.CLAMP));
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Shader.cpp | 98 (SkShader::TileMode)tileModeX, 99 (SkShader::TileMode)tileModeY); 127 static_cast<SkShader::TileMode>(tileMode)); 146 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode); 171 static_cast<SkShader::TileMode>(tileMode)); 189 (SkShader::TileMode)tileMode);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatProgressBarHelper.java | 105 Shader.TileMode.REPEAT, Shader.TileMode.CLAMP);
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequenceDrawable.java | 248 = new BitmapShader(mFrontBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); 250 = new BitmapShader(mBackBitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);
|