/external/skia/src/opts/ |
SkBitmapProcState_opts_SSSE3.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors); 21 int count, uint32_t* colors); 24 int count, uint32_t* colors);
|
SkBitmapProcState_opts_SSE2.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors);
|
/external/skia/gm/ |
verylargebitmap.cpp | 15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { 19 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, nullptr, 2, 25 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) { 27 draw(surface->getCanvas(), width, height, colors); 31 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) { 33 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors); 40 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]); 42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], 44 sk_sp<SkImage> image(proc(width, height, colors)); 95 SkColor colors[2] variable [all...] |
shallowgradient.cpp | 14 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { 16 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkShader::kClamp_TileMode); 19 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { 21 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count, 25 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { 28 colors, nullptr, count, SkShader::kClamp_TileMode); 31 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { 32 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count); 54 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555), variable 56 const int colorCount = SK_ARRAY_COUNT(colors); [all...] |
/external/skia/src/core/ |
SkColorTable.cpp | 15 void SkColorTable::init(const SkPMColor colors[], int count) { 21 memcpy(fColors, colors, count * sizeof(SkPMColor)); 24 SkColorTable::SkColorTable(const SkPMColor colors[], int count) { 25 SkASSERT(0 == count || colors); 31 this->init(colors, count); 34 SkColorTable::SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc) 35 : fColors(colors) 39 SkASSERT(colors); 104 std::unique_ptr<SkPMColor> colors((SkPMColor*)sk_malloc_throw(allocSize)); 105 if (!buffer.readColorArray(colors.get(), count)) [all...] |
SkBitmapProcState_sample.h | 13 int count, SkPMColor* SK_RESTRICT colors); 16 int count, SkPMColor* SK_RESTRICT colors); 19 int count, SkPMColor* SK_RESTRICT colors); 22 int count, SkPMColor* SK_RESTRICT colors); 26 int count, SkPMColor* SK_RESTRICT colors) { 27 SkASSERT(count > 0 && colors != nullptr); 45 *colors++ = RETURNDST(src); 51 *colors++ = RETURNDST(src); 58 *colors++ = RETURNDST(src); 68 int count, SkPMColor* SK_RESTRICT colors) { [all...] |
/external/selinux/mcstrans/share/util/ |
mlscolor-test | 26 rc, colors = selinux_raw_context_to_color(raw) 28 print "Unable to get colors for '%s'" % (context) 31 colors = colors.rstrip() 32 if colors != expected: 33 print "For '%s' got\n\t'%s' expected\n\t'%s'" % (context, colors, expected)
|
/external/skia/tests/ |
ShaderOpacityTest.cpp | 53 SkColor colors[2]; local 59 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 60 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); 61 auto grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 66 colors[0] = SkColorSetARGB(0, 0, 0, 0); 67 colors[1] = SkColorSetARGB(0, 0, 0, 0); 68 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode); 73 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 74 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); 75 grad = SkGradientShader::MakeLinear(pts, colors, pos, count, mode) [all...] |
VerticesTest.cpp | 25 if (!!v0->colors() != !!v1->colors()) { 38 if (v0->colors()) { 39 if (v0->colors()[i] != v1->colors()[i]) { 70 if (builder.colors()) { 71 builder.colors()[i] = SkColorSetARGB(0xFF, i, 0x80, 0);
|
/external/skia/include/c/ |
sk_shader.h | 32 @param colors The array[count] of colors, to be distributed between 36 in the colors array. If this is NULL, the the 37 colors are distributed evenly between the start 41 @param colorCount Must be >=2. The number of colors (and pos if not 46 const sk_color_t colors[], 60 @param colors The array[count] of colors, to be distributed 63 position of each corresponding color in the colors 64 array. If this is NULL, the the colors ar [all...] |
/external/skia/src/effects/ |
SkOverdrawColorFilter.h | 26 static sk_sp<SkOverdrawColorFilter> Make(const SkPMColor colors[kNumColors]) { 27 return sk_sp<SkOverdrawColorFilter>(new SkOverdrawColorFilter(colors)); 45 SkOverdrawColorFilter(const SkPMColor colors[kNumColors]) { 46 memcpy(fColors, colors, kNumColors * sizeof(SkPMColor));
|
SkOverdrawColorFilter.cpp | 34 SkPMColor colors[kNumColors]; local 36 if (!buffer.validate(size == sizeof(colors))) { 39 if (!buffer.readByteArray(colors, sizeof(colors))) { 43 return SkOverdrawColorFilter::Make(colors); 58 static sk_sp<GrFragmentProcessor> Make(const SkPMColor* colors); 66 OverdrawFragmentProcessor(const GrColor4f* colors); 75 GLOverdrawFragmentProcessor(const GrColor4f* colors); 93 sk_sp<GrFragmentProcessor> OverdrawFragmentProcessor::Make(const SkPMColor* colors) { 96 grColors[i] = GrColor4f::FromGrColor(GrColorPackRGBA(SkGetPackedR32(colors[i]) [all...] |
/external/skia/samplecode/ |
SampleShaders.cpp | 25 SkColor colors[2]; local 29 colors[0] = SK_ColorBLACK; 30 colors[1] = SkColorSetARGB(0, 0, 0, 0); 31 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 48 SkColor colors[2]; local 52 colors[0] = SK_ColorRED; 53 colors[1] = SK_ColorBLUE; 54 auto shaderA = SkGradientShader::MakeLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 58 colors[0] = SK_ColorBLACK; 59 colors[1] = SkColorSetARGB(0x80, 0, 0, 0) [all...] |
/external/skia/include/effects/ |
SkGradientShader.h | 21 /** By default gradients will interpolate their colors in unpremul space 23 * gradients will premultiply their colors first, and then interpolate 32 @param colors The array[count] of colors, to be distributed between the two points 34 each corresponding color in the colors array. If this is NULL, 35 the the colors are distributed evenly between the start and end point. 38 @param count Must be >=2. The number of colors (and pos if not NULL) entries. 42 const SkColor colors[], const SkScalar pos[], int count, 46 const SkColor colors[], const SkScalar pos[], int count, 48 return MakeLinear(pts, colors, pos, count, mode, 0, NULL) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
LinearColorPreference.java | 68 LinearColorBar colors = (LinearColorBar)view.findViewById( local 70 colors.setShowIndicator(false); 71 colors.setColors(mRedColor, mYellowColor, mGreenColor); 72 colors.setRatios(mRedRatio, mYellowRatio, mGreenRatio); 73 colors.setColoredRegions(mColoredRegions); 74 colors.setOnRegionTappedListener(mOnRegionTappedListener);
|
/frameworks/base/libs/hwui/ |
GradientCache.h | 39 colors = nullptr; 43 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { 44 copy(colors, positions, count); 48 copy(entry.colors.get(), entry.positions.get(), entry.count); 53 copy(entry.colors.get(), entry.positions.get(), entry.count); 71 std::unique_ptr<uint32_t[]> colors; member in struct:android::uirenderer::GradientCacheEntry 76 void copy(uint32_t* colors, float* positions, uint32_t count) { 78 this->colors.reset(new uint32_t[count]); 81 memcpy(this->colors.get(), colors, count * sizeof(uint32_t)) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SweepGradientTest.java | 63 final int[] colors = new int[] { Color.GREEN, Color.RED }; local 65 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]); 68 verifyColors(colors, positions, TOLERANCE); 73 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; local 75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); 79 verifyColors(colors, positions, TOLERANCE); 84 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; local 87 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions); 91 verifyColors(colors, positions, TOLERANCE) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GradientStopsActivity.java | 45 int[] colors = new int[] { 0xffff0000, 0xff0000ff }; local 48 colors, positions, Shader.TileMode.CLAMP); 55 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 }; 58 colors, positions, Shader.TileMode.CLAMP); 65 colors = new int[] { 0xffff0000, 0xff0000ff, 0xff00ff00 }; 68 colors, positions, Shader.TileMode.CLAMP); 75 colors = new int[] { 0xff000000, 0xffffffff }; 77 colors, null, Shader.TileMode.CLAMP); 85 colors, null, Shader.TileMode.REPEAT); 93 colors, null, Shader.TileMode.MIRROR) [all...] |
/external/skia/fuzz/ |
FuzzGradients.cpp | 26 void initGradientParams(Fuzz* fuzz, std::vector<SkColor>* colors, 37 colors->clear(); 43 colors->push_back(c); 67 const std::vector<SkColor>& colors, 80 SkDebugf(" colors:\t[ "); 81 for (auto color : colors) { 112 std::vector<SkColor> colors; local 115 initGradientParams(fuzz, &colors, &pos, &mode); 125 p.setShader(SkGradientShader::MakeLinear(pts, colors.data(), pos.data(), 126 colors.size(), mode, flags, localMatrix.getMaybeNull())) 150 std::vector<SkColor> colors; local 188 std::vector<SkColor> colors; local 222 std::vector<SkColor> colors; local [all...] |
/external/skia/include/core/ |
SkColorTable.h | 20 SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by 27 /** Copy up to 256 colors into a new SkColorTable. 29 SkColorTable(const SkPMColor colors[], int count); 32 /** Returns the number of colors in the table. 44 /** Return the array of colors for reading. 48 /** read16BitCache() returns the array of RGB16 colors that mirror the 32bit colors. 61 // assumes ownership of colors (assumes it was allocated w/ malloc) 62 SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc); 69 void init(const SkPMColor* colors, int count) [all...] |
SkVertices.h | 24 * Create a vertices by copying the specified arrays. texs and colors may be nullptr, 30 const SkColor colors[], 37 const SkColor colors[]) { 38 return MakeCopy(mode, vertexCount, positions, texs, colors, 0, nullptr); 58 SkColor* colors(); // returns null if there are no colors 79 bool hasColors() const { return SkToBool(this->colors()); } 86 const SkColor* colors() const { return fColors; } function in class:SkVertices
|
/external/ImageMagick/MagickCore/ |
colormap-private.h | 32 if ((index < 0) || (index >= (ssize_t) image->colors)) 44 if ((index < 0) || (index >= (ssize_t) image->colors))
|
/frameworks/base/libs/hwui/tests/unit/ |
GradientCacheTests.cpp | 31 SkColor colors[] = { 0xFF00FF00, 0xFFFF0000, 0xFF0000FF }; local 33 Texture* texture = cache.get(colors, positions, 3);
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
BitmapTest.java | 82 int[] colors = new int[100]; local 84 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; 87 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, 99 assertEquals("getPixel", p, colors[i]); 108 int[] colors = new int[100]; local 110 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; 113 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); 125 int[] colors = new int[100]; local 127 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; 131 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config) 151 int[] colors = new int[100]; local 181 int[] colors = new int[256]; local [all...] |
/external/smali/smalidea/src/main/java/org/jf/smalidea/ |
SmaliColorsPage.java | 34 import com.intellij.openapi.editor.colors.TextAttributesKey; 36 import com.intellij.openapi.options.colors.AttributesDescriptor; 37 import com.intellij.openapi.options.colors.ColorDescriptor; 38 import com.intellij.openapi.options.colors.ColorSettingsPage;
|