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

1 2 3 4 5 6 7 8 91011

  /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.
32 int colors[], float positions[], TileMode tile) {
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/webkit/Source/WebCore/platform/graphics/android/
android_graphics.cpp 60 const CachedColor& colors = m_frame->color(m_node); local
70 ir.inset(-colors.outset(), -colors.outset());
78 SkIntToScalar(colors.radius())))->unref();
83 pressed = colors.fillColor();
86 outer = colors.pressedOuterColor();
87 inner = colors.pressedInnerColor();
89 outer = colors.selectedOuterColor();
90 inner = colors.selectedInnerColor();
93 paint.setStrokeWidth(colors.outerWidth() * WIDTH_SCALE)
137 const CachedColor& colors = m_frame->color(m_node); local
    [all...]
  /external/skia/src/opts/
SkBitmapProcState_opts_SSE2.h 22 int count, uint32_t* colors);
25 int count, uint32_t* colors);
SkBitmapProcState_opts_arm.cpp 30 uint16_t* SK_RESTRICT colors) __attribute__((optimize("O1")));
34 int count, uint16_t* SK_RESTRICT colors) {
35 SkASSERT(count > 0 && colors != NULL);
53 sk_memset16(colors, dstValue, count);
101 "stmia %[colors]!, {r5, r6, r8, r10} \n\t" // store last 8 pixels
104 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors)
110 src = srcAddr[*xx++]; *colors++ = table[src];
121 SkPMColor* SK_RESTRICT colors) __attribute__((optimize("O1")));
125 int count, SkPMColor* SK_RESTRICT colors) {
    [all...]
  /frameworks/base/libs/hwui/
GradientCache.h 34 colors = NULL;
39 GradientCacheEntry(uint32_t* colors, float* positions, int count,
41 copy(colors, positions, count, tileMode);
45 copy(entry.colors, entry.positions, entry.count, entry.tileMode);
49 delete[] colors;
55 delete[] colors;
58 copy(entry.colors, entry.positions, entry.count, entry.tileMode);
68 int result = memcmp(colors, rhs.colors, count * sizeof(uint32_t));
79 uint32_t* colors; member in struct:android::uirenderer::GradientCacheEntry
    [all...]
  /development/samples/GlobalTime/src/com/android/globaltime/
Annulus.java 58 int[] colors = new int[2 * 4 * radii]; local
78 colors[cidx++] = toFixed(rInner);
79 colors[cidx++] = toFixed(gInner);
80 colors[cidx++] = toFixed(bInner);
81 colors[cidx++] = toFixed(aInner);
83 colors[cidx++] = toFixed(rOuter);
84 colors[cidx++] = toFixed(gOuter);
85 colors[cidx++] = toFixed(bOuter);
86 colors[cidx++] = toFixed(aOuter);
99 allocateBuffers(vertices, null, null, colors, indices)
    [all...]
LatLongSphere.java 33 int[] colors = new int[4 * lats * longs]; local
91 colors[cidx++] = (i % 2) * 65536;
92 colors[cidx++] = 0;
93 colors[cidx++] = (j % 2) * 65536;
94 colors[cidx++] = 65536;
116 allocateBuffers(vertices, texcoords, normals, colors, indices);
  /external/skia/include/effects/
SkGradientShader.h 38 @param colors The array[count] of colors, to be distributed between the two points
40 each corresponding color in the colors array. If this is NULL,
41 the the colors are distributed evenly between the start and end point.
44 @param count Must be >=2. The number of colors (and pos if not NULL) entries.
46 @param mapper May be NULL. Callback to modify the spread of the colors.
49 const SkColor colors[], const SkScalar pos[], int count,
60 @param colors The array[count] of colors, to be distributed between the center and edge of the circle
62 each corresponding color in the colors array. If this is NULL
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
ColorSeekBar.java 44 private final int[] colors; field in class:ColorSeekBar
50 // Set up the predefined colors that could be indexed in the seek-bar.
52 colors = new int[a.length()];
54 colors[i] = a.getColor(i, 0x000000);
57 setMax(colors.length - 1);
73 // Draw two half circles in the first and last colors at seek-bar left/right ends.
81 paint.setColor(colors[0]);
83 paint.setColor(colors[colors.length - 1]);
88 float strip = (right - left) / (colors.length - 1)
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 62 final int[] colors = new int[] { Color.GREEN, Color.RED }; local
64 Shader shader = new SweepGradient(CENTER, CENTER, colors[0], colors[1]);
67 checkColors(colors, positions, TOLERANCE);
76 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE }; local
78 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
82 checkColors(colors, positions, TOLERANCE);
91 final int[] colors = new int[] { Color.GREEN, Color.RED, Color.BLUE, Color.GREEN }; local
94 Shader shader = new SweepGradient(CENTER, CENTER, colors, positions);
98 checkColors(colors, positions, TOLERANCE)
    [all...]
  /external/skia/src/core/
SkBitmapProcState_sample.h 21 int count, DSTTYPE* SK_RESTRICT colors) {
22 SkASSERT(count > 0 && colors != NULL);
40 *colors++ = RETURNDST(src);
46 *colors++ = RETURNDST(src);
53 *colors++ = RETURNDST(src);
63 int count, DSTTYPE* SK_RESTRICT colors) {
64 SkASSERT(count > 0 && colors != NULL);
86 BITMAPPROC_MEMSET(colors, dstValue, count);
97 *colors++ = RETURNDST(x0);
98 *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/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.12/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
492 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/skia/samplecode/
SampleShaders.cpp 22 SkColor colors[2]; local
26 colors[0] = SK_ColorBLACK;
27 colors[1] = SkColorSetARGB(0, 0, 0, 0);
28 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
52 SkColor colors[2]; local
56 colors[0] = SK_ColorRED;
57 colors[1] = SK_ColorBLUE;
58 SkShader* shaderA = SkGradientShader::CreateLinear(pts, colors, NULL, 2, SkShader::kClamp_TileMode);
62 colors[0] = SK_ColorBLACK;
63 colors[1] = SkColorSetARGB(0x80, 0, 0, 0)
    [all...]
SampleBigGradient.cpp 7 SkColor colors[] = { 0xFF000000, 0xFF333333 }; local
9 return SkGradientShader::CreateLinear(pts, colors, NULL, 2,
  /cts/tests/tests/text/src/android/text/style/cts/
TextAppearanceSpanTest.java 65 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
66 ColorStateList csl = new ColorStateList(states, colors);
107 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
108 ColorStateList csl = new ColorStateList(states, colors);
122 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
123 ColorStateList csl = new ColorStateList(states, colors);
149 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
150 ColorStateList csl = new ColorStateList(states, colors);
172 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
173 ColorStateList csl = new ColorStateList(states, colors);
192 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
206 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
224 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Gradient_Delegate.java 44 * @param colors The colors to be distributed along the gradient line
46 * corresponding color in the colors array. If this is null, the
47 * the colors are distributed evenly along the gradient line.
49 protected Gradient_Delegate(int colors[], float positions[]) {
50 if (colors.length < 2) {
51 throw new IllegalArgumentException("needs >= 2 number of colors");
53 if (positions != null && colors.length != positions.length) {
58 float spacing = 1.f / (colors.length - 1);
59 positions = new float[colors.length]
    [all...]
  /external/chromium/chrome/browser/ui/views/autocomplete/
autocomplete_result_view.cc 136 static SkColor colors[NUM_STATES][NUM_KINDS]; local
139 colors[NORMAL][BACKGROUND] = color_utils::GetSysSkColor(COLOR_WINDOW);
140 colors[SELECTED][BACKGROUND] = color_utils::GetSysSkColor(COLOR_HIGHLIGHT);
141 colors[NORMAL][TEXT] = color_utils::GetSysSkColor(COLOR_WINDOWTEXT);
142 colors[SELECTED][TEXT] = color_utils::GetSysSkColor(COLOR_HIGHLIGHTTEXT);
147 colors[NORMAL][BACKGROUND] = gfx::GdkColorToSkColor(bg_color);
148 colors[SELECTED][BACKGROUND] = gfx::GdkColorToSkColor(selected_bg_color);
149 colors[NORMAL][TEXT] = gfx::GdkColorToSkColor(text_color);
150 colors[SELECTED][TEXT] = gfx::GdkColorToSkColor(selected_text_color);
153 colors[NORMAL][BACKGROUND] = SK_ColorWHITE
    [all...]
  /external/skia/src/views/
SkParsePaint.cpp 16 SkColor colors[2]; local
19 colors[0] = colors[1] = SK_ColorBLACK; // need to initialized the alpha to opaque, since FindColor doesn't set it
21 SkParse::FindColor(str, &colors[0]) &&
23 SkParse::FindColor(str, &colors[1]) &&
32 return SkGradientShader::CreateLinear(pts, colors, NULL, 2, mode);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
CreateBitmap.java 39 int[] colors = new int[STRIDE * HEIGHT]; local
46 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b;
49 return colors;
73 int[] colors = mColors; local
76 // these three are initialized with colors[]
77 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
79 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
81 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT,
84 // these three will have their colors set later
92 mBitmaps[i].setPixels(colors, 0, STRIDE, 0, 0, WIDTH, HEIGHT)
    [all...]

Completed in 1089 milliseconds

1 2 3 4 5 6 7 8 91011