/frameworks/base/graphics/java/android/graphics/ |
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...] |
ColorMatrixColorFilter.java | 20 * A color filter that transforms colors through a 4x5 color matrix. This filter 29 * Create a color filter that transforms colors through a 4x5 color matrix. 31 * @param matrix 4x5 matrix used to transform colors. It is copied into 41 * Create a color filter that transforms colors through a 4x5 color matrix. 43 * @param array Array of floats used to transform colors, treated as a 4x5 95 * @param array Array of floats used to transform colors, treated as a 4x5
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorPickerDialog.java | 31 * A dialog which takes in as input an array of colors and creates a palette allowing the user to 42 protected static final String KEY_COLORS = "colors"; 64 public static ColorPickerDialog newInstance(int titleResId, int[] colors, int selectedColor, 67 ret.initialize(titleResId, colors, selectedColor, columns, size); 71 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { 73 setColors(colors, selectedColor); 163 public void setColors(int[] colors, int selectedColor) { 164 if (mColors != colors || mSelectedColor != selectedColor) { 165 mColors = colors; 171 public void setColors(int[] colors) { [all...] |
/frameworks/opt/setupwizard/library/main/res/values/ |
colors.xml | 20 <!-- General colors --> 31 <!-- Navigation bar colors --> 36 <!-- GLIF colors -->
|
/frameworks/base/core/jni/android/graphics/ |
Shader.cpp | 142 SkColor colors[2]; local 143 colors[0] = color0; 144 colors[1] = color1; 146 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode); 184 SkColor colors[2]; local 185 colors[0] = color0; 186 colors[1] = color1; 188 SkShader* s = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2, 199 const jint* colors = env->GetIntArrayElements(jcolors, NULL); local 209 reinterpret_cast<const SkColor*>(colors), pos, count) 218 SkColor colors[2]; local [all...] |
/frameworks/base/libs/hwui/ |
GradientCache.cpp | 45 hash = JenkinsHashMix(hash, android::hash_type(colors[i])); 55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t)); 108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { 109 GradientCacheEntry gradient(colors, positions, count); 113 texture = addLinearGradient(gradient, colors, positions, count); 123 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, 136 if (((colors[i] >> 24) & 0xff) < 255) { 147 uint32_t* colors, float* positions, int count) { 150 getGradientInfo(colors, count, info) [all...] |
/external/skia/src/core/ |
SkBitmapProcState_shaderproc.h | 14 void SCALE_FILTER_NAME(const void* sIn, int x, int y, SkPMColor* SK_RESTRICT colors, int count); 16 void SCALE_FILTER_NAME(const void* sIn, int x, int y, SkPMColor* SK_RESTRICT colors, int count) { 21 SkASSERT(count > 0 && colors != nullptr); 64 colors); 65 colors += 1;
|
/external/skia/gm/ |
composeshader.cpp | 20 SkColor colors[2]; local 24 colors[0] = SK_ColorRED; 25 colors[1] = SK_ColorBLUE; 26 SkAutoTUnref<SkShader> shaderA(SkGradientShader::CreateLinear(pts, colors, nullptr, 2, 31 colors[0] = SK_ColorBLACK; 32 colors[1] = SkColorSetARGB(0x80, 0, 0, 0); 33 SkAutoTUnref<SkShader> shaderB(SkGradientShader::CreateLinear(pts, colors, nullptr, 2, 153 SkColor colors[2]; local 156 colors[0] = SK_ColorBLUE; 157 colors[1] = SkColorSetARGB(0, 0, 0, 0xFF) [all...] |
patch.cpp | 14 const SkColor colors[] = { local 20 return SkGradientShader::CreateLinear(pts, colors, nullptr, SK_ARRAY_COUNT(colors), 70 // The order of the colors and points is clockwise starting at upper-left corner. 82 const SkColor colors[SkPatchUtils::kNumCorners] = { local 109 canvas->drawPatch(cubics, colors, nullptr, xfer, paint); 118 canvas->drawPatch(cubics, colors, texCoords, xfer, paint);
|
gradients_no_texture.cpp | 141 void construct(const SkColor colors[], const SkScalar pos[], int count) { 143 memcpy(fColors, colors, count * sizeof(SkColor)); 162 const SkColor colors[] = { local 180 rec->construct(colors, pos, N); 184 const SkColor colors[] = { local 189 rec->construct(colors, nullptr, SK_ARRAY_COUNT(colors)); 193 const SkColor colors[] = { local 198 const int N = SK_ARRAY_COUNT(colors); 203 rec->construct(colors, pos, N) 207 const SkColor colors[] = { local [all...] |
filltypespersp.cpp | 56 SkColor colors[] = {SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN}; local 60 colors, 62 SK_ARRAY_COUNT(colors), 84 SkColor colors[] = {SK_ColorBLACK, SK_ColorCYAN, variable 90 colors, 92 SK_ARRAY_COUNT(colors),
|
gammatext.cpp | 106 SkColor colors[2]; local 107 colors[0] = c; 108 colors[1] = SkColorSetA(c, 0); 109 return SkGradientShader::CreateLinear(pts, colors, nullptr, 2, SkShader::kClamp_TileMode); 135 const SkColor colors[] = { SK_ColorBLACK, SK_ColorRED, SK_ColorBLUE }; local 138 fColors[i] = colors[i];
|
textblobshader.cpp | 61 SkColor colors[2]; variable 62 colors[0] = SK_ColorRED; 63 colors[1] = SK_ColorGREEN; 65 SkScalar pos[SK_ARRAY_COUNT(colors)]; 73 sz.width() * .66f, colors, pos, 74 SK_ARRAY_COUNT(colors), variable
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventColorCache.java | 27 * A cache for event colors and event color keys stored based upon calendar account name and type. 59 * Retrieve an array of colors for a specific account name and type. 62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType)); local 63 if (colors == null) { 66 int[] ret = new int[colors.size()]; 68 ret[i] = colors.get(i); 81 * Sorts the arrays of colors based on a comparator.
|
/external/chromium-trace/catapult/tracing/tracing/base/ |
color_scheme.html | 104 * This array is made up of a set of base colors, repeated N times to form 107 * Within the base colors, there are "general purpose" colors, 109 * reserved colors, which are used when specific colors 112 * The variants are automatically generated from the base colors. The 0th 128 ColorScheme.colors = []; 136 ColorScheme.colors.push.apply(ColorScheme.colors, variantColors); 139 // Basic colors [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 191 // setup colors so we can detect we are actually drawing instances(the last triangle will be 193 GrGLfloat colors[kVerticesPerTri * kNumTri]; local 195 // set colors 198 colors[offset++] = color; colors[offset++] = 0.0f; colors[offset++] = 0.0f; 214 GR_GL_CALL(gl, BufferData(GR_GL_ARRAY_BUFFER, sizeof(colors), colors, GR_GL_STATIC_DRAW)) 227 GrGLfloat colors[kVerticesPerTri * kNumTri * 3]; local [all...] |
PatchGridBench.cpp | 18 * (passing texture coordinates and colors, only textures coordinates, only colors or none). 120 SkColor colors[4]; local 121 colors[0] = cornerColors[i][j]; 122 colors[1] = cornerColors[i][j + 1]; 123 colors[3] = cornerColors[i + 1][j]; 124 colors[2] = cornerColors[i + 1][j + 1]; 137 fGrid.setPatch(j, i, points, colors, nullptr); 143 fGrid.setPatch(j, i, points, colors, texs); 154 const SkColor colors[] = local [all...] |
/frameworks/base/docs/html/topic/performance/ |
network-xfer.jd | 54 colors used in each row of pixels that comprises the image. By using fewer 55 colors, you improve the compression potential at all of the other stages of 60 Reducing the number of unique colors makes a significant difference because PNG 62 horizontally adjacent pixel colors vary. Thus, reducing the number of unique 63 colors in each row of your PNG images can help in reducing their file sizes. 68 reducing the number of unique colors effectively amounts to applying a lossy 84 Any attempt at color reduction should start with trying to optimize your colors 86 INDEXED color mode works by choosing the best 256 colors to use, and replacing 88 reduction from 16 million (potential) colors to only 256 colors: from 3 (withou [all...] |
/external/libjpeg-turbo/ |
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 77 .B \-colors 84 Select GIF output format. Since GIF does not support more than 256 colors, 85 .B \-colors 256 86 is assumed (unless you specify a smaller number of colors) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
TitleView.java | 63 public SearchOrbView.Colors getSearchAffordanceColors() { 78 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { 79 TitleView.this.setSearchAffordanceColors(colors); 163 * Sets the {@link SearchOrbView.Colors} used to draw the search affordance. 165 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { 166 mSearchOrbView.setOrbColors(colors); 170 * Returns the {@link SearchOrbView.Colors} used to draw the search affordance. 172 public SearchOrbView.Colors getSearchAffordanceColors() [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
SwitchCompatUtils.java | 69 final int[] colors = new int[3]; local 73 colors[i] = getColor(Color.parseColor("#ffbdbdbd"), 1f); 76 colors[i] = color; 80 colors[i] = getThemeAttrColor(context, typedValue, 83 return new ColorStateList(states, colors); 89 final int[] colors = new int[3]; local 93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f); 96 colors[i] = getColor(color, 0.3f); 100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f); 102 return new ColorStateList(states, colors); [all...] |
/external/ImageMagick/coders/ |
xwd.c | 200 *colors; 322 colors=(XColor *) NULL; 329 colors=(XColor *) AcquireQuantumMemory(length,sizeof(*colors)); 330 if (colors == (XColor *) NULL) 343 colors[i].pixel=color.pixel; 344 colors[i].red=color.red; 345 colors[i].green=color.green; 346 colors[i].blue=color.blue; 347 colors[i].flags=(char) color.flags 196 *colors; local 776 *colors; local [all...] |
/external/opencv3/modules/cudalegacy/src/ |
needle_map.cpp | 63 void cv::cuda::createOpticalFlowNeedleMap(const GpuMat& u, const GpuMat& v, GpuMat& vertex, GpuMat& colors) 85 colors.create(1, num_arrows, CV_32FC3); 87 colors.setTo(Scalar::all(1.0)); 95 CreateOpticalFlowNeedleMap_gpu(u_avg, v_avg, vertex.ptr<float>(), colors.ptr<float>(), max_flow, 1.0f / u.cols, 1.0f / u.rows); 97 cuda::cvtColor(colors, colors, COLOR_HSV2RGB);
|
/external/skia/src/views/ |
SkParsePaint.cpp | 23 SkColor colors[2]; local 26 colors[0] = colors[1] = SK_ColorBLACK; // need to initialized the alpha to opaque, since FindColor doesn't set it 28 SkParse::FindColor(str, &colors[0]) && 30 SkParse::FindColor(str, &colors[1]) && 39 return SkGradientShader::CreateLinear(pts, colors, nullptr, 2, mode);
|
/external/skia/tests/ |
PaintImageFilterTest.cpp | 29 SkColor colors[] = {SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN}; local 34 center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode)); 76 SkColor colors[] = {SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN}; local 81 center, radius, colors, pos, SK_ARRAY_COUNT(colors), SkShader::kClamp_TileMode));
|