HomeSort by relevance Sort by last modified time
    Searched refs:colors (Results 1 - 25 of 384) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/legacy/src/opts/
SkBitmapProcState_opts_SSSE3.h 12 int count, uint32_t* colors);
15 int count, uint32_t* colors);
SkBitmapProcState_opts_arm.cpp 19 uint16_t* SK_RESTRICT colors) __attribute__((optimize("O1")));
23 int count, uint16_t* SK_RESTRICT colors) {
24 SkASSERT(count > 0 && colors != NULL);
42 sk_memset16(colors, dstValue, count);
90 "stmia %[colors]!, {r5, r6, r8, r10} \n\t" // store last 8 pixels
93 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors)
99 src = srcAddr[*xx++]; *colors++ = table[src];
110 SkPMColor* SK_RESTRICT colors) __attribute__((optimize("O1")));
114 int count, SkPMColor* SK_RESTRICT colors) {
    [all...]
SkBitmapProcState_opts_SSE2.h 14 int count, uint32_t* colors);
17 int count, uint32_t* colors);
  /external/skia/src/opts/
SkBitmapProcState_opts_SSSE3.h 12 int count, uint32_t* colors);
15 int count, uint32_t* colors);
18 int count, uint32_t* colors);
21 int count, uint32_t* colors);
SkBitmapProcState_opts_SSE2.h 14 int count, uint32_t* colors);
17 int count, uint32_t* colors);
30 int count, uint16_t* colors);
SkBitmapProcState_opts_arm.cpp 19 uint16_t* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1;
23 int count, uint16_t* SK_RESTRICT colors) {
24 SkASSERT(count > 0 && colors != NULL);
42 sk_memset16(colors, dstValue, count);
90 "stmia %[colors]!, {r5, r6, r8, r10} \n\t" // store last 8 pixels
93 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors)
99 src = srcAddr[*xx++]; *colors++ = table[src];
110 SkPMColor* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1;
114 int count, SkPMColor* SK_RESTRICT colors) {
    [all...]
  /frameworks/base/graphics/java/android/graphics/
SweepGradient.java 26 * @param colors The colors to be distributed between around the center.
27 * There must be at least 2 colors in the array.
29 * each corresponding color in the colors array, beginning
32 * If positions is NULL, then the colors are automatically
36 int colors[], float positions[]) {
37 if (colors.length < 2) {
38 throw new IllegalArgumentException("needs >= 2 number of colors");
40 if (positions != null && colors.length != positions.length) {
44 native_instance = nativeCreate1(cx, cy, colors, positions)
    [all...]
LinearGradient.java 25 @param colors The colors to be distributed along the gradient line
27 each corresponding color in the colors array. If this is null,
28 the the colors are distributed evenly along the gradient line.
31 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[],
33 if (colors.length < 2) {
34 throw new IllegalArgumentException("needs >= 2 number of colors");
36 if (positions != null && colors.length != positions.length) {
39 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt);
40 native_shader = nativePostCreate1(native_instance, x0, y0, x1, y1, colors, positions
    [all...]
RadialGradient.java 25 @param colors The colors to be distributed between the center and edge of the circle
27 each corresponding color in the colors array. If this is NULL,
28 the the colors are distributed evenly between the center and edge of the circle.
32 int colors[], float positions[], TileMode tile) {
36 if (colors.length < 2) {
37 throw new IllegalArgumentException("needs >= 2 number of colors");
39 if (positions != null && colors.length != positions.length) {
42 native_instance = nativeCreate1(x, y, radius, colors, positions, tile.nativeInt);
43 native_shader = nativePostCreate1(native_instance, x, y, radius, colors, positions
    [all...]
  /external/skia/gm/
composeshader.cpp 25 SkColor colors[2]; local
29 colors[0] = SK_ColorRED;
30 colors[1] = SK_ColorBLUE;
31 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2,
36 colors[0] = SK_ColorBLACK;
37 colors[1] = SkColorSetARGB(0x80, 0, 0, 0);
38 SkShader* shaderB = SkGradientShader::CreateLinear(pts, colors, NULL, 2,
  /external/skia/legacy/include/effects/
SkGradientShader.h 31 @param colors The array[count] of colors, to be distributed between the two points
33 each corresponding color in the colors array. If this is NULL,
34 the the colors are distributed evenly between the start and end point.
37 @param count Must be >=2. The number of colors (and pos if not NULL) entries.
39 @param mapper May be NULL. Callback to modify the spread of the colors.
42 const SkColor colors[], const SkScalar pos[], int count,
53 @param colors The array[count] of colors, to be distributed between the center and edge of the circle
55 each corresponding color in the colors array. If this is NULL
    [all...]
  /frameworks/base/libs/hwui/
GradientCache.h 36 colors = NULL;
40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) {
41 copy(colors, positions, count);
45 copy(entry.colors, entry.positions, entry.count);
49 delete[] colors;
55 delete[] colors;
58 copy(entry.colors, entry.positions, entry.count);
76 uint32_t* colors; member in struct:android::uirenderer::GradientCacheEntry
81 void copy(uint32_t* colors, float* positions, uint32_t count) {
83 this->colors = new uint32_t[count]
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 53 final int[] colors = new int[] { Color.GREEN, Color.RED }; local
55 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]);
58 checkColors(colors, positions, TOLERANCE);
62 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; local
64 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
68 checkColors(colors, positions, TOLERANCE);
72 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; local
75 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
79 checkColors(colors, positions, TOLERANCE)
    [all...]
  /external/skia/legacy/src/core/
SkBitmapProcState_sample.h 28 int count, DSTTYPE* SK_RESTRICT colors) {
29 SkASSERT(count > 0 && colors != NULL);
47 *colors++ = RETURNDST(src);
53 *colors++ = RETURNDST(src);
60 *colors++ = RETURNDST(src);
70 int count, DSTTYPE* SK_RESTRICT colors) {
71 SkASSERT(count > 0 && colors != NULL);
93 BITMAPPROC_MEMSET(colors, dstValue, count);
104 *colors++ = RETURNDST(x0);
105 *colors++ = RETURNDST(x1)
    [all...]
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapTest.java 81 int[] colors = new int[100]; local
83 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
86 Bitmap bm = Bitmap.createBitmap(colors, 10, 10,
98 assertEquals("getPixel", p, colors[i]);
107 int[] colors = new int[100]; local
109 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
112 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565);
124 int[] colors = new int[100]; local
126 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i;
130 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config)
150 int[] colors = new int[100]; local
180 int[] colors = new int[256]; local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/text/
HtmlTest.java 80 ForegroundColorSpan[] colors; local
83 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
84 assertEquals(1, colors.length);
85 assertEquals(0xFF00FF00, colors[0].getForegroundColor());
88 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
89 assertEquals(1, colors.length);
90 assertEquals(0xFF000080, colors[0].getForegroundColor());
93 colors = s.getSpans(0, s.length(), ForegroundColorSpan.class);
94 assertEquals(0, colors.length);
102 TextAppearanceSpan[] colors; local
    [all...]
  /external/skia/tests/
ShaderOpacityTest.cpp 57 SkColor colors[2]; local
63 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0);
64 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0);
65 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count,
72 colors[0] = SkColorSetARGB(0, 0, 0, 0);
73 colors[1] = SkColorSetARGB(0, 0, 0, 0);
74 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode);
80 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0);
81 colors[1] = SkColorSetARGB(0x40, 0, 0, 0);
82 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode)
    [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/include/effects/
SkGradientShader.h 31 @param colors The array[count] of colors, to be distributed between the two points
33 each corresponding color in the colors array. If this is NULL,
34 the the colors are distributed evenly between the start and end point.
37 @param count Must be >=2. The number of colors (and pos if not NULL) entries.
39 @param mapper May be NULL. Callback to modify the spread of the colors.
42 const SkColor colors[], const SkScalar pos[], int count,
53 @param colors The array[count] of colors, to be distributed between the center and edge of the circle
55 each corresponding color in the colors array. If this is NULL
    [all...]
  /external/skia/src/core/
SkBitmapProcState_sample.h 30 int count, DSTTYPE* SK_RESTRICT colors);
33 int count, DSTTYPE* SK_RESTRICT colors);
36 int count, DSTTYPE* SK_RESTRICT colors);
39 int count, DSTTYPE* SK_RESTRICT colors);
43 int count, DSTTYPE* SK_RESTRICT colors) {
44 SkASSERT(count > 0 && colors != NULL);
62 *colors++ = RETURNDST(src);
68 *colors++ = RETURNDST(src);
75 *colors++ = RETURNDST(src);
85 int count, DSTTYPE* SK_RESTRICT colors) {
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/skia/
GradientSkia.cpp 75 // Collect sorted stop position and color information into the pos and colors
80 size_t count, SkScalar* pos, SkColor* colors)
87 colors[0] = makeSkColor(0.0, 0.0, 0.0, 0.0);
95 colors[0] = makeSkColor(stop->alpha, stop->red, stop->green, stop->blue);
101 colors[i] = makeSkColor(stop->alpha, stop->red, stop->green, stop->blue);
109 colors[start + count] = colors[start + count - 1];
127 SkColor* colors = (SkColor*)storage.get(); local
128 SkScalar* pos = (SkScalar*)(colors + countUsed);
130 fillStops(m_stops.data(), m_stops.size(), pos, colors);
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/video/
SDL_pixels.c 133 (format->palette)->colors = (SDL_Color *)SDL_malloc(
135 if ( (format->palette)->colors == NULL ) {
190 format->palette->colors[i].r=r;
194 format->palette->colors[i].g=g;
198 format->palette->colors[i].b=b;
203 format->palette->colors[i].unused=a;
205 format->palette->colors[i].unused=0;
210 format->palette->colors[0].r = 0xFF;
211 format->palette->colors[0].g = 0xFF;
212 format->palette->colors[0].b = 0xFF
493 SDL_Color colors[256]; local
    [all...]
  /external/chromium/chrome/browser/themes/
browser_theme_pack_unittest.cc 30 // Transformation for link underline colors.
35 void GenerateDefaultFrameColor(std::map<int, SkColor>* colors,
37 (*colors)[color] = HSLShift(
47 std::map<int, SkColor> colors; local
50 colors[i] = ThemeService::GetDefaultColor(i);
53 GenerateDefaultFrameColor(&colors, ThemeService::COLOR_FRAME,
55 GenerateDefaultFrameColor(&colors,
58 GenerateDefaultFrameColor(&colors,
62 &colors,
66 return colors;
208 std::map<int, SkColor> colors = GetDefaultColorMap(); local
229 std::map<int, SkColor> colors = GetDefaultColorMap(); local
245 std::map<int, SkColor> colors = GetDefaultColorMap(); local
257 std::map<int, SkColor> colors = GetDefaultColorMap(); local
327 std::map<int, SkColor> colors = GetDefaultColorMap(); local
    [all...]
  /external/qemu/distrib/sdl-1.2.15/test/
testwin.c 28 SDL_Color *colors, *cmap; local
42 /* Set the display colors -- on a hicolor display this is a no-op */
45 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
47 memcpy(colors, picture->format->palette->colors,
54 colors = (SDL_Color *)malloc(ncolors*sizeof(SDL_Color));
62 colors[i].r = r<<5;
63 colors[i].g = g<<5;
64 colors[i].b = b<<6;
69 NOTICE("testwin: setting colors\n")
    [all...]
  /cts/tests/tests/text/src/android/text/style/cts/
TextAppearanceSpanTest.java 33 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
34 ColorStateList csl = new ColorStateList(states, colors);
70 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
71 ColorStateList csl = new ColorStateList(states, colors);
79 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
80 ColorStateList csl = new ColorStateList(states, colors);
101 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
102 ColorStateList csl = new ColorStateList(states, colors);
119 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
120 ColorStateList csl = new ColorStateList(states, colors);
134 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
143 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
155 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
    [all...]

Completed in 569 milliseconds

1 2 3 4 5 6 7 8 91011>>