/frameworks/base/libs/hwui/tests/common/scenes/ |
HwBitmapInCompositeShader.cpp | 65 2, SkShader::TileMode::kRepeat_TileMode); 81 return image->makeShader(SkShader::TileMode::kClamp_TileMode, 82 SkShader::TileMode::kClamp_TileMode);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ShaderTest.java | 49 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); 76 Shader shader = new BitmapShader(bitmap, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
|
BitmapShaderTest.java | 53 BitmapShader shader = new BitmapShader(tile, Shader.TileMode.REPEAT, 54 Shader.TileMode.REPEAT); 106 Shader.TileMode.CLAMP, Shader.TileMode.CLAMP); 128 Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); 150 Shader.TileMode.MIRROR, Shader.TileMode.MIRROR);
|
RadialGradientTest.java | 26 import android.graphics.Shader.TileMode; 42 Color.RED, Color.BLUE, TileMode.CLAMP);
|
LinearGradientTest.java | 29 import android.graphics.Shader.TileMode; 48 lg = new LinearGradient(0, 0, 0, 40, color, position, TileMode.CLAMP); 64 lg = new LinearGradient(0, 0, 0, 40, Color.RED, Color.BLUE, TileMode.CLAMP); 89 Color.RED, Color.BLUE, TileMode.CLAMP);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Patterns.java | 74 mShader1 = new BitmapShader(makeBitmap1(), Shader.TileMode.REPEAT, 75 Shader.TileMode.REPEAT); 76 mShader2 = new BitmapShader(makeBitmap2(), Shader.TileMode.REPEAT, 77 Shader.TileMode.REPEAT);
|
/external/skia/bench/ |
MatrixConvolutionBench.cpp | 14 static const char* name(SkMatrixConvolutionImageFilter::TileMode mode) { 25 MatrixConvolutionBench(SkMatrixConvolutionImageFilter::TileMode tileMode, bool convolveAlpha) 27 name(tileMode), 38 kernelOffset, tileMode, convolveAlpha,
|
HardStopGradientBench_ScaleNumColors.cpp | 17 static const char* get_tilemode_name(SkShader::TileMode tilemode) { 18 switch (tilemode) { 26 SkDEBUGFAIL("Unknown tilemode"); 33 HardStopGradientBench_ScaleNumColors(SkShader::TileMode tilemode, int count) { 34 fName.printf("hardstop_scale_num_colors_%s_%03d_colors", get_tilemode_name(tilemode), count); 36 fTileMode = tilemode; 106 SkShader::TileMode fTileMode;
|
/external/skia/samplecode/ |
SampleShaderText.cpp | 31 static sk_sp<SkShader> MakeBitmapShader(SkShader::TileMode tx, SkShader::TileMode ty, 57 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 61 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 69 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 76 static sk_sp<SkShader> Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 88 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm); 126 SkShader::TileMode tileModes[] = {
|
SampleGradients.cpp | 65 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 69 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 77 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 84 static sk_sp<SkShader> Make2Conical(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 97 SkShader::TileMode tm) { 107 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm); 147 paint.setShader(gGradMakers[j](pts, gGradData[i], (SkShader::TileMode)tm));
|
/external/skia/src/core/ |
SkLocalMatrixShader.h | 48 SkImage* onIsAImage(SkMatrix* matrix, TileMode* mode) const override; 54 bool onIsABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* mode) const override {
|
/external/skia/src/effects/gradients/ |
Sk4fLinearGradient.h | 30 template<DstType, ApplyPremul, TileMode> 37 template <DstType dstType, ApplyPremul premul, SkShader::TileMode tileMode>
|
/external/skia/src/gpu/effects/ |
GrBicubicEffect.h | 36 const SkShader::TileMode tileModes[2]) { 67 const SkMatrix &matrix, const SkShader::TileMode tileModes[2]);
|
/frameworks/base/graphics/java/android/graphics/ |
Shader.java | 56 public enum TileMode { 72 TileMode(int nativeInt) {
|
LinearGradient.java | 43 private TileMode mTileMode; 59 @Nullable float positions[], @NonNull TileMode tile) { 89 @NonNull TileMode tile) { 130 int colors[], float positions[], int tileMode); 132 int color0, int color1, int tileMode);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
BitmapShader_Delegate.java | 24 import android.graphics.Shader.TileMode; 95 TileMode tileModeX, TileMode tileModeY) { 102 private final TileMode mTileModeX; 103 private final TileMode mTileModeY; 106 TileMode tileModeX, TileMode tileModeY) { 208 private int getCoordinate(int i, int size, TileMode mode) {
|
/external/skia/gm/ |
gradientDirtyLaundry.cpp | 38 static sk_sp<SkShader> MakeLinear(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 42 static sk_sp<SkShader> MakeRadial(const SkPoint pts[2], const GradData& data, SkShader::TileMode tm) { 47 static sk_sp<SkShader> MakeSweep(const SkPoint pts[2], const GradData& data, SkShader::TileMode) { 53 typedef sk_sp<SkShader> (*GradMaker)(const SkPoint pts[2], const GradData&, SkShader::TileMode); 75 SkShader::TileMode tm = SkShader::kClamp_TileMode;
|
tilemodes.cpp | 38 SkShader::TileMode tmx, SkShader::TileMode tmy) { 91 constexpr SkShader::TileMode gModes[] = { 161 static sk_sp<SkShader> make_bm(SkShader::TileMode tx, SkShader::TileMode ty) { 167 static sk_sp<SkShader> make_grad(SkShader::TileMode tx, SkShader::TileMode ty) { 185 typedef sk_sp<SkShader> (*ShaderProc)(SkShader::TileMode, SkShader::TileMode); 210 constexpr SkShader::TileMode gModes[] = [all...] |
tilemodes_scaled.cpp | 37 SkShader::TileMode tmx, SkShader::TileMode tmy) { 94 constexpr SkShader::TileMode gModes[] = { 164 static sk_sp<SkShader> make_bm(SkShader::TileMode tx, SkShader::TileMode ty) { 170 static sk_sp<SkShader> make_grad(SkShader::TileMode tx, SkShader::TileMode ty) { 189 typedef sk_sp<SkShader> (*ShaderProc)(SkShader::TileMode, SkShader::TileMode); 214 constexpr SkShader::TileMode gModes[] = [all...] |
gradients_2pt_conical.cpp | 42 SkShader::TileMode tm, const SkMatrix& localMatrix) { 53 SkShader::TileMode tm, const SkMatrix& localMatrix) { 64 SkShader::TileMode tm, const SkMatrix& localMatrix) { 77 SkShader::TileMode tm, const SkMatrix& localMatrix) { 90 SkShader::TileMode tm, const SkMatrix& localMatrix) { 103 SkShader::TileMode tm, const SkMatrix& localMatrix) { 116 SkShader::TileMode tm, const SkMatrix& localMatrix) { 129 SkShader::TileMode tm, const SkMatrix& localMatrix) { 141 SkShader::TileMode tm, 154 SkShader::TileMode tm [all...] |
/external/skia/src/c/ |
sk_effects.cpp | 22 SkShader::TileMode fSK; 29 static bool from_c_tilemode(sk_shader_tilemode_t cMode, SkShader::TileMode* skMode) { 55 SkShader::TileMode mode; 82 SkShader::TileMode mode; 126 SkShader::TileMode mode;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
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));
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
BitmapDrawableTest.java | 99 drawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.MIRROR); 100 assertEquals(Shader.TileMode.REPEAT, drawable.getTileModeX()); 101 assertEquals(Shader.TileMode.MIRROR, drawable.getTileModeY());
|
/external/skia/experimental/svg/model/ |
SkSVGLinearGradient.cpp | 133 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kPad) == 135 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kRepeat) == 137 static_assert(static_cast<SkShader::TileMode>(SkSVGSpreadMethod::Type::kReflect) == 139 const auto tileMode = static_cast<SkShader::TileMode>(fSpreadMethod.type()); 142 tileMode, 0, &fGradientTransform.value()));
|