/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 | 26 @param colors The colors to be distributed along the gradient line 28 each corresponding color in the colors array. If this is null, 29 the the colors are distributed evenly along the gradient line. 33 int colors[], float positions[], TileMode tile) { 34 if (colors.length < 2) { 35 throw new IllegalArgumentException("needs >= 2 number of colors"); 37 if (positions != null && colors.length != positions.length) { 40 native_instance = nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt); 59 int colors[], float positions[], int tileMode) [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); 62 int colors[], float positions[], int tileMode) [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...] |
/external/skia/src/opts/ |
SkBitmapProcState_opts_arm.cpp | 28 int count, uint16_t* SK_RESTRICT colors) { 29 SkASSERT(count > 0 && colors != NULL); 47 sk_memset16(colors, dstValue, count); 95 "stmia %[colors]!, {r5, r6, r8, r10} \n\t" // store last 8 pixels 98 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors) 104 src = srcAddr[*xx++]; *colors++ = table[src]; 113 int count, SkPMColor* SK_RESTRICT colors) { 114 SkASSERT(count > 0 && colors != NULL); 129 sk_memset32(colors, dstValue, count) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
GradientShader.java | 39 * @param colors The colors to be distributed along the gradient line 41 * corresponding color in the colors array. If this is null, the 42 * the colors are distributed evenly along the gradient line. 44 protected GradientShader(int colors[], float positions[]) { 45 if (colors.length < 2) { 46 throw new IllegalArgumentException("needs >= 2 number of colors"); 48 if (positions != null && colors.length != positions.length) { 53 float spacing = 1.f / (colors.length - 1); 54 positions = new float[colors.length] [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...] |
RadialGradientTest.java | 45 final int[] colors = { Color.BLUE, Color.GREEN, Color.RED }; local 48 RadialGradient rg = new RadialGradient(CENTER, CENTER, RADIUS, colors, positions, 55 checkPixels(b, colors, positions, tolerance); 64 final int[] colors = { Color.BLUE, Color.GREEN }; local 67 RadialGradient rg = new RadialGradient(CENTER, CENTER, RADIUS, colors[0], colors[1], 74 checkPixels(b, colors, positions, tolerance); 77 private void checkPixels(Bitmap bitmap, int[] colors, float[] positions, int tolerance) { 90 color = colors[0]; 93 color = colors[positions.length - 1] [all...] |
BitmapTest.java | 212 int[] colors = createColors(100); local 213 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); 317 int[] colors = createColors(100); local 321 Bitmap.createBitmap(colors, 0, 100, -1, 100, Config.RGB_565); 328 Bitmap.createBitmap(colors, 10, 10, 100, 100, Config.RGB_565); 335 Bitmap.createBitmap(colors, -10, 100, 100, 100, Config.RGB_565); 340 //abnormal case: (offset + width) bigger than colors' length 342 Bitmap.createBitmap(colors, 10, 100, 100, 100, Config.RGB_565); 347 //abnormal case: (lastScanline + width) bigger than colors' length 349 Bitmap.createBitmap(colors, 10, 100, 50, 100, Config.RGB_565) 662 int[] colors = createColors(100); local 792 int[] colors = new int[size]; local [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 | 79 int[] colors = new int[100]; local 81 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; 84 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, 96 assertEquals("getPixel", p, colors[i]); 105 int[] colors = new int[100]; local 107 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; 110 Bitmap bm = Bitmap.createBitmap(colors, 10, 10, Bitmap.Config.RGB_565); 122 int[] colors = new int[100]; local 124 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; 128 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config) 148 int[] colors = new int[100]; local 178 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/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]; 136 SkColor* colors = (SkColor*)storage.get(); local 137 SkScalar* pos = (SkScalar*)(colors + countUsed); 139 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...] |
SDL_pixels_c.h | 44 extern void SDL_DitherColors(SDL_Color *colors, int bpp); 46 extern void SDL_ApplyGamma(Uint16 *gamma, SDL_Color *colors, SDL_Color *output, int ncolors);
|
/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); 104 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local 105 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); 146 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local 147 ColorStateList csl = new ColorStateList(states, colors); 169 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local 170 ColorStateList csl = new ColorStateList(states, colors); 189 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local 203 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local 221 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; local [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 | 43 int[] colors = new int[STRIDE * HEIGHT]; local 50 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; 53 return colors; 77 int[] colors = mColors; local 80 // these three are initialized with colors[] 81 mBitmaps[0] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 83 mBitmaps[1] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 85 mBitmaps[2] = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 88 // these three will have their colors set later 96 mBitmaps[i].setPixels(colors, 0, STRIDE, 0, 0, WIDTH, HEIGHT) [all...] |
PurgeableBitmapView.java | 58 int[] colors = createColors(); local 59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 68 int[] colors = new int[STRIDE * HEIGHT]; local 75 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; 78 return colors;
|
/external/skia/src/images/ |
SkImageDecoder_libico.cpp | 53 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 56 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 59 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 62 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 65 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 168 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; 207 SkPMColor* colors = NULL; local 211 colors = new SkPMColor[colorCount]; 218 colors[j] = SkPackARGB32(0xFF, red & 0xFF, green & 0xFF, blue & 0xFF); 243 delete[] colors; [all...] |
/frameworks/base/core/jni/android/graphics/ |
Shader.cpp | 120 SkColor colors[2]; local 121 colors[0] = color0; 122 colors[1] = color1; 124 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode); 171 SkColor colors[2]; local 172 colors[0] = color0; 173 colors[1] = color1; 175 SkShader* s = SkGradientShader::CreateRadial(center, SkFloatToScalar(radius), colors, NULL, 187 const jint* colors = env->GetIntArrayElements(jcolors, NULL); local 203 reinterpret_cast<const SkColor*>(colors), 214 SkColor colors[2]; local [all...] |
/external/webkit/WebCore/platform/graphics/android/ |
GradientAndroid.cpp | 80 SkColor* colors = (SkColor*)storage.get(); local 81 SkScalar* pos = (SkScalar*)(colors + count); 86 colors[i] = SkColorSetARGB(F2B(iter->alpha), F2B(iter->red), 97 colors, pos, count, mode); 99 s = SkGradientShader::CreateLinear(pts, colors, pos, count, mode);
|
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/ |
SDL_syswm.c | 124 SDL_memcpy(pal_256->colors, icon->format->palette->colors, 128 pal_256->colors[black] = pal_256->colors[0]; 129 pal_256->colors[0].r = 0x00; 130 pal_256->colors[0].g = 0x00; 131 pal_256->colors[0].b = 0x00; 133 SDL_DitherColors(pal_256->colors, 139 icon_win32->biColors[i].rgbRed = pal_256->colors[i].r; 140 icon_win32->biColors[i].rgbGreen = pal_256->colors[i].g [all...] |