/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...] |
/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...] |
/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...] |
/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...] |
/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...] |
/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...] |
/external/chromium/chrome/browser/ui/cocoa/wrench_menu/ |
wrench_menu_button_cell.h | 11 // the same colors as NSSmallSquareBezelStyle but as a smooth gradient, rather 12 // than two blocks of colors. This also uses the blue menu highlight color for
|
/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,
|
/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...] |
/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...] |
/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...] |
/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...] |
/external/skia/include/core/ |
SkBlitRow.h | 12 //! If set, the src colors may have alpha != 255 14 //! If set, the resulting 16bit colors should be dithered 19 a corresponding scanline of 16bit colors (specific format based on the 24 @param alpha A global alpha to be applied to all of the src colors 32 /** Function pointer that blends a single color with a row of 32-bit colors 48 /** Function pointer that blends 32bit colors onto a 32bit destination. 49 @param dst array of dst 32bit colors 50 @param src array of src 32bit colors (w/ or w/o alpha) 51 @param count number of colors to blend 52 @param alpha global alpha to be applied to all src colors [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/jpeg/ |
djpeg.1 | 38 .BI \-colors " N" 39 Reduce image to at most N colors. This reduces the number of colors used in 42 display, you'd need to reduce to 256 or fewer colors. 46 .BR \-colors . 47 .B \-colors 73 .B \-colors 80 Select GIF output format. Since GIF does not support more than 256 colors, 81 .B \-colors 256 82 is assumed (unless you specify a smaller number of colors) [all...] |
/external/giflib/ |
gifalloc.c | 65 Object->Colors = (GifColorType *)calloc(ColorCount, sizeof(GifColorType)); 66 if (Object->Colors == (GifColorType *) NULL) { 74 memcpy((char *)Object->Colors, 88 free(Object->Colors); 110 Object->Colors[i + j].Red, 111 Object->Colors[i + j].Green, 112 Object->Colors[i + j].Blue); 122 * fit into 256 colors, NULL is returned, the allocated union otherwise. 123 * ColorIn1 is copied as is to ColorUnion, while colors from ColorIn2 are 148 ColorUnion->Colors[i] = ColorIn1->Colors[i] [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.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/skia/src/opts/ |
SkBitmapProcState_opts_SSE2.h | 22 int count, uint32_t* colors); 25 int count, uint32_t* colors);
|
/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/core/java/android/content/res/ |
package.html | 4 such as raw asset files, colors, drawables, media or other other files
|