/external/syslinux/utils/ |
ppmtolss16 | 17 ## Convert a PNM file with max 16 colors to a simple RLE-based format: 240 # Sort list of colors according to freqency 241 @colors = sort { $color_count{$b} <=> $color_count{$a} } keys(%color_count); 243 # Now we have our pick of colors. Sort according to intensity; 265 @icolors = sort by_intensity @colors; 267 # Insert forced colors into "final" array 268 @colors = (undef) x 16; 271 $colors[$i] = $rgb; 277 # Insert remaining colors in the remaining slots, 282 $nix++ while ( defined($colors[$nix]) && $nix < 16 ) [all...] |
/external/trappy/trappy/plotter/ |
ColorMap.py | 17 import matplotlib.colors as clrs 19 from matplotlib.colors import ListedColormap, Normalize 38 :param num_colors: Number or colors for which a gradient 62 :return: The color at :math:`N_{colors} - i`
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
ListOfFadedTextAnimation.cpp | 46 SkColor colors[2] = {Color::Black, Color::Transparent}; variable 47 sk_sp<SkShader> s(SkGradientShader::MakeLinear(pts, colors, NULL, 2,
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventColorPickerDialog.java | 27 * A dialog which displays event colors, with an additional button for the calendar color. 40 public static EventColorPickerDialog newInstance(int[] colors, int selectedColor, 43 ret.initialize(R.string.event_color_picker_dialog_title, colors, selectedColor, NUM_COLUMNS,
|
/prebuilts/go/darwin-x86/src/expvar/ |
expvar_test.go | 171 colors := NewMap("bike-shed-colors") 173 colors.Add("red", 1) 174 colors.Add("red", 2) 175 colors.Add("blue", 4) 176 colors.AddFloat(`green "midori"`, 4.125) 177 if x := colors.m["red"].(*Int).i; x != 3 { 178 t.Errorf("colors.m[\"red\"] = %v, want 3", x) 180 if x := colors.m["blue"].(*Int).i; x != 4 { 181 t.Errorf("colors.m[\"blue\"] = %v, want 4", x [all...] |
/prebuilts/go/linux-x86/src/expvar/ |
expvar_test.go | 171 colors := NewMap("bike-shed-colors") 173 colors.Add("red", 1) 174 colors.Add("red", 2) 175 colors.Add("blue", 4) 176 colors.AddFloat(`green "midori"`, 4.125) 177 if x := colors.m["red"].(*Int).i; x != 3 { 178 t.Errorf("colors.m[\"red\"] = %v, want 3", x) 180 if x := colors.m["blue"].(*Int).i; x != 4 { 181 t.Errorf("colors.m[\"blue\"] = %v, want 4", x [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/X11/extensions/ |
XKBgeom.h | 128 #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 130 #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) 146 #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 147 #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) 161 #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx]) 162 #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx]) 164 ((d)->on_color_ndx= (c)-&(g)->colors[0]) 166 ((d)->off_color_ndx= (c)-&(g)->colors[0]) 181 #define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 183 #define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0] 292 XkbColorPtr colors; member in struct:_XkbGeometry [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/extensions/ |
XKBgeom.h | 128 #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 130 #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) 146 #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 147 #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) 161 #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx]) 162 #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx]) 164 ((d)->on_color_ndx= (c)-&(g)->colors[0]) 166 ((d)->off_color_ndx= (c)-&(g)->colors[0]) 181 #define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 183 #define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0] 292 XkbColorPtr colors; member in struct:_XkbGeometry [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/ |
SysuiColorExtractor.java | 49 // Colors to return when the wallpaper isn't visible 91 private void updateDefaultGradients(WallpaperColors colors) { 92 Tonal.applyFallback(colors, mWpHiddenColors); 96 public void onColorsChanged(WallpaperColors colors, int which, int userId) { 98 // Colors do not belong to current user, ignoring. 102 super.onColorsChanged(colors, which); 105 updateDefaultGradients(colors); 115 * Get TYPE_NORMAL colors when wallpaper is visible, or fallback otherwise. 118 * @return colors 126 * Wallpaper colors when the wallpaper is visible, fallback otherwise [all...] |
/frameworks/native/opengl/libagl/ |
dxt.cpp | 152 uint32_t colors = *d32++; local 155 colors = swap(colors); 158 uint16_t color0 = colors & 0xffff; 159 uint16_t color1 = colors >> 16; 207 // Specified colors from the previous block 215 uint32_t colors = *d32++; local 219 colors = swap(colors); 223 // Raw colors 338 uint32_t colors = *d32++; local 462 uint32_t colors = *d32++; local [all...] |
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorPickerPalette.java | 84 public void drawPalette(int[] colors, int selectedColor) { 85 drawPalette(colors, selectedColor, null); 91 public void drawPalette(int[] colors, int selectedColor, String[] colorContentDescriptions) { 92 if (colors == null) { 101 // Fills the table with swatches based on the array of colors. 103 for (int color : colors) { 142 * Add a content description to the specified swatch view. Because the colors get added in a 143 * snaking form, every other row will need to compensate for the fact that the colors are added
|
/external/skia/gm/ |
tilemodes.cpp | 27 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; local 32 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, SK_ARRAY_COUNT(colors), 171 SkColor colors[] = { 0xFFFF0000, sk_tool_utils::color_to_565(0xFF0044FF) }; local 176 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); 178 return SkGradientShader::MakeRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx); 180 return SkGradientShader::MakeSweep(center.fX, center.fY, colors, nullptr, SK_ARRAY_COUNT(colors)); [all...] |
tilemodes_scaled.cpp | 26 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; local 31 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 32 SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); 174 SkColor colors[] = { 0xFFFF0000, sk_tool_utils::color_to_565(0xFF0044FF) }; local 179 return SkGradientShader::MakeLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), tx); 181 return SkGradientShader::MakeRadial(center, rad, colors, nullptr, SK_ARRAY_COUNT(colors), tx); 183 return SkGradientShader::MakeSweep(center.fX, center.fY, colors, nullptr, SK_ARRAY_COUNT(colors)); [all...] |
gradients_no_texture.cpp | 140 void construct(const SkColor colors[], const SkScalar pos[], int count) { 142 memcpy(fColors, colors, count * sizeof(SkColor)); 161 const SkColor colors[] = { local 179 rec->construct(colors, pos, N); 183 const SkColor colors[] = { local 188 rec->construct(colors, nullptr, SK_ARRAY_COUNT(colors)); 192 const SkColor colors[] = { local 197 const int N = SK_ARRAY_COUNT(colors); 202 rec->construct(colors, pos, N) 206 const SkColor colors[] = { local [all...] |
/external/skia/src/gpu/ops/ |
GrDrawAtlasOp.cpp | 30 const SkRSXform* xforms, const SkRect* rects, const SkColor* colors) 43 fHasColors = SkToBool(colors); 44 if (colors) { 64 // Copy colors if necessary 65 if (colors) { 67 SkColor color = colors[spriteIndex]; 227 SkTArray<SkRect>* texRects, SkTArray<GrColor>* colors, 233 colors->push_back(GrRandomColor(random)); 243 SkTArray<GrColor> colors; local 247 randomize_params(spriteCount, random, &xforms, &texRects, &colors, hasColors) [all...] |
/external/trappy/trappy/plotter/js/ |
ILinePlot.js | 101 var generate = function(data, colors) { 102 create_graph(data, colors); 108 var create_graph = function(t_info, colors) { 139 if (typeof colors !== 'undefined') 140 options["colors"] = colors;
|
/external/skia/src/core/ |
SkDraw_vertices.cpp | 120 const SkPoint pts[], const SkPM4f colors[], 137 Sk4f c0 = colors[index0].to4f(), 138 c1 = colors[index1].to4f(), 139 c2 = colors[index2].to4f(); 149 // Convert the SkColors into float colors. The conversion depends on some conditions: 155 // - convert colors into dst colorspace before interpolation (matches gradients) 175 static bool compute_is_opaque(const SkColor colors[], int count) { 178 c &= colors[i]; 185 const SkColor colors[], SkBlendMode bmode, 209 if (colors && textures) [all...] |
SkVertices.cpp | 113 SkColor* SkVertices::Builder::colors() { function in class:SkVertices::Builder 114 return fVertices ? const_cast<SkColor*>(fVertices->colors()) : nullptr; 125 const SkColor colors[], int indexCount, 127 Sizes sizes(vertexCount, indexCount, texs != nullptr, colors != nullptr); 137 sk_careful_memcpy(builder.colors(), colors, sizes.fCSize); 151 // storage = packed | vertex_count | index_count | pos[] | texs[] | colors[] | indices[] 217 reader.read(builder.colors(), sizes.fCSize);
|
/external/skia/tests/ |
GradientTest.cpp | 22 const SkColor colors[] = { SK_ColorRED, SK_ColorBLUE }; local 25 paint.setShader(SkGradientShader::MakeLinear(pts, colors, nullptr, 2, 143 SkColor colors[] = { SK_ColorBLUE, SK_ColorBLUE }; local 146 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); 274 const SkColor colors[] = { SK_ColorBLACK, SK_ColorWHITE }; local 277 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); 286 const SkColor colors[] = { SK_ColorBLACK, SK_ColorWHITE }; local 289 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 2, SkShader::kClamp_TileMode)); 302 const SkColor colors[] = { SK_ColorBLACK, SK_ColorWHITE, SK_ColorBLACK, SK_ColorWHITE }; local 306 paint.setShader(SkGradientShader::MakeLinear(pts, colors, pos, 4, SkShader::kClamp_TileMode)) 318 const SkColor colors[] = { SK_ColorGREEN, SK_ColorBLUE }; local 336 const SkColor colors[] = { SK_ColorRED, SK_ColorGREEN }; local 355 const SkColor colors[] = { SK_ColorRED, SK_ColorGREEN }; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ColorPickerDialog.java | 116 private int interpColor(int colors[], float unit) { 118 return colors[0]; 121 return colors[colors.length - 1]; 124 float p = unit * (colors.length - 1); 129 int c0 = colors[i]; 130 int c1 = colors[i+1];
|
MeasureText.java | 37 int[] colors = new int[STRIDE * HEIGHT]; local 44 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; 47 return colors;
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
ColorWheel.java | 133 private int interpColor(int colors[], float unit) { 135 return colors[0]; 138 return colors[colors.length - 1]; 141 float p = unit * (colors.length - 1); 146 int c0 = colors[i]; 147 int c1 = colors[i+1];
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 208 int[] colors = createColors(100); local 209 Bitmap bitmap = Bitmap.createBitmap(colors, 10, 10, Config.RGB_565); 337 int[] colors = createColors(100); local 340 Bitmap.createBitmap(colors, 0, 100, -1, 100, Config.RGB_565); 345 int[] colors = createColors(100); local 348 Bitmap.createBitmap(colors, 10, 10, 100, 100, Config.RGB_565); 353 int[] colors = createColors(100); local 356 Bitmap.createBitmap(colors, -10, 100, 100, 100, Config.RGB_565); 361 int[] colors = createColors(100); local 363 // abnormal case: (offset + width) bigger than colors' lengt 369 int[] colors = createColors(100); local 377 int[] colors = createColors(100); local 411 int[] colors = createColors(100); local 420 int[] colors = createColors(100); local 880 int[] colors = createColors(100); local 888 int[] colors = createColors(100); local 896 int[] colors = createColors(100); local 905 int[] colors = createColors(100); local 914 int[] colors = createColors(100); local 923 int[] colors = createColors(100); local 932 int[] colors = createColors(100); local 941 int[] colors = createColors(100); local 950 int[] colors = createColors(100); local 959 int[] colors = createColors(100); local 968 int[] colors = createColors(100); local 977 int[] colors = createColors(100 * 100); local 1591 int[] colors = new int[size]; local [all...] |
/external/skia/bench/ |
GLInstancedArraysBench.cpp | 35 * kUseOne_VboSetup - one vertex buffer with colors and positions interleaved 36 * kUseTwo_VboSetup - two vertex buffers, one for colors, one for positions 38 * instance colors 189 // setup colors so we can detect we are actually drawing instances(the last triangle will be 191 GrGLfloat colors[kVerticesPerTri * kNumTri]; local 193 // set colors 196 colors[offset++] = color; colors[offset++] = 0.0f; colors[offset++] = 0.0f; 212 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW)) 225 GrGLfloat colors[kVerticesPerTri * kNumTri * 3]; local [all...] |
HardStopGradientBench_ScaleNumColors.cpp | 50 * fColorCount colors alternating between four 51 * different colors. The positions are evenly spaced, 71 SkColor colors[100]; variable 73 colors[i] = color_choices[i % kNumColorChoices]; 86 colors,
|