/cts/tests/tests/graphics/src/android/graphics/cts/ |
Shader_TileModeTest.java | 21 import android.graphics.Shader.TileMode; 33 assertEquals(TileMode.CLAMP, TileMode.valueOf("CLAMP")); 34 assertEquals(TileMode.MIRROR, TileMode.valueOf("MIRROR")); 35 assertEquals(TileMode.REPEAT, TileMode.valueOf("REPEAT")); 40 TileMode[] tileMode = TileMode.values() [all...] |
ComposeShaderTest.java | 32 import android.graphics.Shader.TileMode; 49 Color.GREEN, Color.BLUE, Shader.TileMode.CLAMP); 51 Color.GREEN, Color.RED, Shader.TileMode.CLAMP); 86 BitmapShader redShader = new BitmapShader(redBitmap, TileMode.CLAMP, TileMode.CLAMP); 87 BitmapShader cyanShader = new BitmapShader(cyanBitmap, TileMode.CLAMP, TileMode.CLAMP); 114 BitmapShader redShader = new BitmapShader(redBitmap, TileMode.CLAMP, TileMode.CLAMP); 118 BitmapShader cyanShader = new BitmapShader(cyanBitmap, TileMode.CLAMP, TileMode.CLAMP) [all...] |
/external/skia/src/image/ |
SkImageShader.h | 17 static sk_sp<SkShader> Make(sk_sp<SkImage>, TileMode tx, TileMode ty, 29 SkImageShader(sk_sp<SkImage>, TileMode tx, TileMode ty, const SkMatrix* localMatrix); 35 bool onIsABitmap(SkBitmap*, SkMatrix*, TileMode*) const override; 37 SkImage* onIsAImage(SkMatrix*, TileMode*) const override; 43 const TileMode fTileModeX; 44 const TileMode fTileModeY;
|
SkImageShader.cpp | 21 SkImageShader::SkImageShader(sk_sp<SkImage> img, TileMode tmx, TileMode tmy, const SkMatrix* matrix) 29 const TileMode tx = (TileMode)buffer.readUInt(); 30 const TileMode ty = (TileMode)buffer.readUInt(); 57 SkImage* SkImageShader::onIsAImage(SkMatrix* texM, TileMode xy[]) const { 62 xy[0] = (TileMode)fTileModeX; 63 xy[1] = (TileMode)fTileModeY; 69 bool SkImageShader::onIsABitmap(SkBitmap* texture, SkMatrix* texM, TileMode xy[]) const [all...] |
/external/skia/src/core/ |
SkBitmapProcShader.h | 20 static Context* MakeContext(const SkShader&, TileMode tmx, TileMode tmy,
|
SkPictureShader.h | 25 static sk_sp<SkShader> Make(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, 43 SkPictureShader(sk_sp<SkPicture>, TileMode, TileMode, const SkMatrix*, const SkRect*); 51 TileMode fTmx, fTmy;
|
SkImagePriv.h | 25 sk_sp<SkShader> SkMakeBitmapShader(const SkBitmap& src, SkShader::TileMode, SkShader::TileMode,
|
SkLinearBitmapPipeline.h | 34 SkShader::TileMode xTile, SkShader::TileMode yTile, 83 SampleProcessorInterface* next, SkShader::TileMode yMode, SkISize dimensions, 89 SkShader::TileMode xMode, SkShader::TileMode yMode, 106 SkShader::TileMode xTile, SkShader::TileMode yTile,
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Shader_Delegate.java | 22 import android.graphics.Shader.TileMode; 57 * Returns the {@link TileMode} matching the given int. 58 * @param tileMode the tile mode int value 59 * @return the TileMode enum. 61 public static TileMode getTileMode(int tileMode) { 62 for (TileMode tm : TileMode.values()) { 63 if (tm.nativeInt == tileMode) { 69 return TileMode.CLAMP [all...] |
/external/skia/include/gpu/ |
GrSamplerParams.h | 38 GrSamplerParams(SkShader::TileMode tileXAndY, FilterMode filterMode) { 42 GrSamplerParams(const SkShader::TileMode tileModes[2], FilterMode filterMode) { 61 void reset(SkShader::TileMode tileXAndY, FilterMode filterMode) { 66 void reset(const SkShader::TileMode tileModes[2], FilterMode filterMode) { 83 void setTileModeX(const SkShader::TileMode tm) { fTileModes[0] = tm; } 84 void setTileModeY(const SkShader::TileMode tm) { fTileModes[1] = tm; } 85 void setTileModeXAndY(const SkShader::TileMode tm) { fTileModes[0] = fTileModes[1] = tm; } 87 SkShader::TileMode getTileModeX() const { return fTileModes[0]; } 89 SkShader::TileMode getTileModeY() const { return fTileModes[1]; } 107 SkShader::TileMode fTileModes[2] [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmapDrawable.java | 10 import android.graphics.Shader.TileMode; 26 private TileMode tileModeX; 27 private TileMode tileModeY; 91 public void setTileModeX(TileMode mode) { 96 public TileMode getTileModeX() { 101 public void setTileModeY(TileMode mode) { 106 public TileMode getTileModeY() { 111 public void setTileModeXY(TileMode modeX, TileMode modeY) {
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
BitmapShaders.cpp | 53 SkShader::TileMode::kRepeat_TileMode, 54 SkShader::TileMode::kRepeat_TileMode, 60 SkShader::TileMode::kMirror_TileMode, 61 SkShader::TileMode::kMirror_TileMode,
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
ResourceModifier.java | 62 repeatShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, 63 Shader.TileMode.REPEAT); 65 translatedShader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, 66 Shader.TileMode.REPEAT); 72 scaledShader = new BitmapShader(bitmap, Shader.TileMode.MIRROR, 73 Shader.TileMode.MIRROR); 79 Color.RED, Color.GREEN, Shader.TileMode.CLAMP); 87 Color.BLUE, Color.RED, Shader.TileMode.CLAMP); 90 Color.YELLOW, Color.MAGENTA, Shader.TileMode.MIRROR); 117 bitmapColors, null, Shader.TileMode.REPEAT) [all...] |
/external/skia/gm/ |
localmatriximageshader.cpp | 31 sk_sp<SkShader> redImageShader = redImage->makeShader(SkShader::TileMode::kClamp_TileMode, 32 SkShader::TileMode::kClamp_TileMode, &translate); 41 sk_sp<SkShader> blueImageShader = blueImage->makeShader(SkShader::TileMode::kClamp_TileMode, 42 SkShader::TileMode::kClamp_TileMode, &rotate); 52 SkShader::TileMode mode[2];
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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);
|
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);
|
/external/skia/tests/ |
ShaderTest.cpp | 20 SkShader::TileMode expectedX, SkShader::TileMode expectedY, 22 SkShader::TileMode tileModes[2]; 37 tileModes[0] = tileModes[1] = (SkShader::TileMode)99; 55 const SkShader::TileMode tmx = SkShader::kRepeat_TileMode; 56 const SkShader::TileMode tmy = SkShader::kMirror_TileMode;
|
/frameworks/base/graphics/java/android/graphics/ |
BitmapShader.java | 43 public BitmapShader(@NonNull Bitmap bitmap, @NonNull TileMode tileX, @NonNull TileMode tileY) {
|
RadialGradient.java | 42 private TileMode mTileMode; 55 * @param tileMode The Shader tiling mode 59 @NonNull TileMode tileMode) { 75 mTileMode = tileMode; 86 * @param tileMode The Shader tiling mode 89 @ColorInt int centerColor, @ColorInt int edgeColor, @NonNull TileMode tileMode) { 99 mTileMode = tileMode; 130 int colors[], float positions[], int tileMode); [all...] |
/external/skia/include/effects/ |
SkMatrixConvolutionImageFilter.h | 26 /*! \enum TileMode */ 27 enum TileMode { 48 @param tileMode How accesses outside the image are treated. (@see 49 TileMode). 62 TileMode tileMode, 76 TileMode tileMode, 93 TileMode fTileMode;
|
SkGradientShader.h | 43 SkShader::TileMode mode, 47 SkShader::TileMode mode) { 65 const SkScalar pos[], int count, SkShader::TileMode mode, 69 const SkScalar pos[], int count, SkShader::TileMode mode) { 88 SkShader::TileMode mode, 92 SkShader::TileMode mode) { 111 const SkScalar pos[], int count, SkShader::TileMode mode, 115 const SkScalar pos[], int count, SkShader::TileMode mode) { 128 int count, SkShader::TileMode mode, 133 int count, SkShader::TileMode mode) [all...] |
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
ShaderTests.java | 53 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); 74 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); 81 Shader.TileMode.CLAMP); 125 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); 131 null, Shader.TileMode.CLAMP); 152 Color.TRANSPARENT, Color.WHITE, Shader.TileMode.REPEAT)); 170 Color.TRANSPARENT, Color.WHITE, Shader.TileMode.CLAMP)) [all...] |
/external/skia/include/core/ |
SkShader.h | 53 enum TileMode { 244 bool isABitmap(SkBitmap* outTexture, SkMatrix* outMatrix, TileMode xy[2]) const { 257 SkImage* isAImage(SkMatrix* localMatrix, TileMode xy[2]) const { 313 TileMode fTileMode; //!< The tile mode used. 434 static sk_sp<SkShader> MakeBitmapShader(const SkBitmap& src, TileMode tmx, TileMode tmy, 453 static sk_sp<SkShader> MakePictureShader(sk_sp<SkPicture> src, TileMode tmx, TileMode tmy, 487 virtual bool onIsABitmap(SkBitmap*, SkMatrix*, TileMode[2]) const { 492 virtual SkImage* onIsAImage(SkMatrix*, TileMode[2]) const [all...] |
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
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.REPEAT) [all...] |
/external/skia/src/effects/gradients/ |
Sk4fGradientBase.h | 39 SkShader::TileMode tileMode, bool premulColors, SkScalar alpha, bool reverse); 83 template<DstType, ApplyPremul, SkShader::TileMode tileMode> 90 template <DstType dstType, ApplyPremul premul, SkShader::TileMode tileMode>
|