/external/chromium_org/third_party/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_arm.cpp | 23 uint16_t* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1; 27 int count, uint16_t* SK_RESTRICT colors) { 28 SkASSERT(count > 0 && colors != NULL); 46 sk_memset16(colors, dstValue, count); 94 "stmia %[colors]!, {r5, r6, r8, r10} \n\t" // store last 8 pixels 97 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors) 103 src = srcAddr[*xx++]; *colors++ = table[src]; 114 SkPMColor* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1; 118 int count, SkPMColor* SK_RESTRICT colors) { [all...] |
SkBitmapProcState_opts_SSE2.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors); 31 int count, uint16_t* colors);
|
/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_arm.cpp | 23 uint16_t* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1; 27 int count, uint16_t* SK_RESTRICT colors) { 28 SkASSERT(count > 0 && colors != NULL); 46 sk_memset16(colors, dstValue, count); 94 "stmia %[colors]!, {r5, r6, r8, r10} \n\t" // store last 8 pixels 97 : [xx] "+r" (xx), [count8] "+r" (count8), [colors] "+r" (colors) 103 src = srcAddr[*xx++]; *colors++ = table[src]; 114 SkPMColor* SK_RESTRICT colors) SK_ATTRIBUTE_OPTIMIZE_O1; 118 int count, SkPMColor* SK_RESTRICT colors) { [all...] |
SkBitmapProcState_opts_SSE2.h | 15 int count, uint32_t* colors); 18 int count, uint32_t* colors); 31 int count, uint16_t* colors);
|
/external/chromium_org/third_party/skia/gm/ |
verylargebitmap.cpp | 13 static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) { 18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2, 27 static void show_bm(SkCanvas* canvas, int width, int height, SkColor colors[2]) { 29 make_bm(&bm, width, height, colors); 77 SkColor colors[2]; variable 80 colors[0] = SK_ColorRED; 81 colors[1] = SK_ColorGREEN; 82 show_bm(canvas, small, small, colors); 85 colors[0] = SK_ColorBLUE; 86 colors[1] = SK_ColorMAGENTA [all...] |
shallowgradient.cpp | 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { 15 return SkGradientShader::CreateLinear(pts, colors, NULL, count, 19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { 21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count, 25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { 29 colors, NULL, count, 33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { 35 colors, NULL, count); 61 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; variable 62 const int colorCount = SK_ARRAY_COUNT(colors); [all...] |
/external/skia/gm/ |
verylargebitmap.cpp | 13 static void make_bm(SkBitmap* bm, int width, int height, SkColor colors[2]) { 18 SkShader* shader = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2, 27 static void show_bm(SkCanvas* canvas, int width, int height, SkColor colors[2]) { 29 make_bm(&bm, width, height, colors); 77 SkColor colors[2]; variable 80 colors[0] = SK_ColorRED; 81 colors[1] = SK_ColorGREEN; 82 show_bm(canvas, small, small, colors); 85 colors[0] = SK_ColorBLUE; 86 colors[1] = SK_ColorMAGENTA [all...] |
shallowgradient.cpp | 13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) { 15 return SkGradientShader::CreateLinear(pts, colors, NULL, count, 19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) { 21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, NULL, count, 25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) { 29 colors, NULL, count, 33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) { 35 colors, NULL, count); 61 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; variable 62 const int colorCount = SK_ARRAY_COUNT(colors); [all...] |
/external/chromium_org/third_party/skia/include/effects/ |
SkGradientShader.h | 23 /** By default gradients will interpolate their colors in unpremul space 25 * gradients will premultiply their colors first, and then interpolate 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. 48 const SkColor colors[], const SkScalar pos[], int count, 53 const SkColor colors[], const SkScalar pos[], int count, 55 return CreateLinear(pts, colors, pos, count, mode, 0, NULL) [all...] |
/external/skia/include/effects/ |
SkGradientShader.h | 23 /** By default gradients will interpolate their colors in unpremul space 25 * gradients will premultiply their colors first, and then interpolate 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. 48 const SkColor colors[], const SkScalar pos[], int count, 53 const SkColor colors[], const SkScalar pos[], int count, 55 return CreateLinear(pts, colors, pos, count, mode, 0, 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...] |
/frameworks/base/graphics/java/android/graphics/ |
SweepGradient.java | 42 * @param colors The colors to be distributed between around the center. 43 * There must be at least 2 colors in the array. 45 * each corresponding color in the colors array, beginning 48 * If positions is NULL, then the colors are automatically 52 int colors[], float positions[]) { 53 if (colors.length < 2) { 54 throw new IllegalArgumentException("needs >= 2 number of colors"); 56 if (positions != null && colors.length != positions.length) { 63 mColors = colors; [all...] |
LinearGradient.java | 46 @param colors The colors to be distributed along the gradient line 48 each corresponding color in the colors array. If this is null, 49 the the colors are distributed evenly along the gradient line. 52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], 54 if (colors.length < 2) { 55 throw new IllegalArgumentException("needs >= 2 number of colors"); 57 if (positions != null && colors.length != positions.length) { 65 mColors = colors; 68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt)) [all...] |
RadialGradient.java | 47 @param colors The colors to be distributed between the center and edge of the circle 50 the colors array. If <code>null</code>, colors are distributed evenly 55 @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) { 59 if (colors.length < 2) { 60 throw new IllegalArgumentException("needs >= 2 number of colors"); 62 if (stops != null && colors.length != stops.length) { 69 mColors = colors; 72 init(nativeCreate1(centerX, centerY, radius, colors, stops, tileMode.nativeInt)) [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
LinearColorPreference.java | 67 LinearColorBar colors = (LinearColorBar)view.findViewById( local 69 colors.setShowIndicator(false); 70 colors.setColors(mRedColor, mYellowColor, mGreenColor); 71 colors.setRatios(mRedRatio, mYellowRatio, mGreenRatio); 72 colors.setColoredRegions(mColoredRegions); 73 colors.setOnRegionTappedListener(mOnRegionTappedListener);
|
/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...] |
/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...] |
/external/chromium_org/third_party/skia/tests/ |
ShaderOpacityTest.cpp | 59 SkColor colors[2]; local 65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); 67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, 74 colors[0] = SkColorSetARGB(0, 0, 0, 0); 75 colors[1] = SkColorSetARGB(0, 0, 0, 0); 76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); 82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); 84 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode) [all...] |
/external/skia/tests/ |
ShaderOpacityTest.cpp | 59 SkColor colors[2]; local 65 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 66 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); 67 SkShader* grad = SkGradientShader::CreateLinear(pts, colors, pos, count, 74 colors[0] = SkColorSetARGB(0, 0, 0, 0); 75 colors[1] = SkColorSetARGB(0, 0, 0, 0); 76 grad = SkGradientShader::CreateLinear(pts, colors, pos, count, mode); 82 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); 83 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); 84 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/chromium_org/third_party/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/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/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...] |