Searched defs:colors (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DLinearGradient.java26 @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[], floa
32 LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
58 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
[all...]
H A DRadialGradient.java25 @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[], floa
31 RadialGradient(float x, float y, float radius, int colors[], float positions[], TileMode tile) argument
61 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
[all...]
H A DSweepGradient.java26 * @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, position
35 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
59 nativeCreate1(float x, float y, int colors[], float positions[]) argument
[all...]
H A DBitmap.java475 * pixel value set to the corresponding value in the colors array. Its
478 * @param colors Array of {@link Color} used to initialize the pixels.
480 * array of colors.
481 * @param stride Number of colors in the array between rows (must be >=
487 * bytes in the colors[] will be ignored (assumed to be FF)
491 public static Bitmap createBitmap(int colors[], int offset, int stride, argument
499 int length = colors.length;
504 return nativeCreate(colors, offset, stride, width, height,
510 * pixel value set to the corresponding value in the colors array. Its
513 * @param colors Arra
523 createBitmap(int colors[], int width, int height, Config config) argument
1013 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument
1038 nativeSetPixels(int nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
H A DCanvas.java31 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
1051 * Treat the specified array of colors as a bitmap, and draw it. This gives
1054 * which can be more efficient if the colors are changing often.
1056 * @param colors Array of colors representing the pixels of the bitmap
1057 * @param offset Offset into the array of colors for the first pixel
1058 * @param stride The number of of colors in the array between rows (must be
1064 * @param hasAlpha True if the alpha channel of the colors contains valid
1069 public void drawBitmap(int[] colors, int offset, int stride, float x, argument
1083 int length = colors
1099 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument
1151 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
1213 drawVertices(VertexMode mode, int vertexCount, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, Paint paint) argument
1540 native_drawBitmap(int nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, int nativePaintOrZero) argument
1547 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument
1551 nativeDrawVertices(int nCanvas, int mode, int n, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, int nPaint) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradientShader.java39 * @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[]) { argument
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
79 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument
[all...]
H A DBitmap.java195 * pixel value set to the corresponding value in the colors array.
197 * @param colors Array of {@link Color} used to initialize the pixels.
199 * array of colors.
200 * @param stride Number of colors in the array between rows (must be >=
206 * bytes in the colors[] will be ignored (assumed to be FF)
210 public static Bitmap createBitmap(int colors[], int offset, int stride, argument
217 int length = colors.length;
230 * pixel value set to the corresponding value in the colors array.
232 * @param colors Array of {@link Color} used to initialize the pixels.
238 * bytes in the colors[] wil
242 createBitmap(int colors[], int width, int height, Config config) argument
[all...]
H A DLinearGradient.java30 * @param colors The colors to be distributed along the gradient line
32 * corresponding color in the colors array. If this is null, the
33 * the colors are distributed evenly along the gradient line.
36 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument
38 super(colors, positions);
78 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], argument
80 super(colors, positions, tile);
H A DRadialGradient.java30 * @param colors The colors to be distributed between the center and edge of
33 * color in the colors array. If this is NULL, the the colors are
37 public RadialGradient(float x, float y, float radius, int colors[], float positions[], argument
39 super(colors, positions);
73 public RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) { argument
74 super(colors, positions, mode);
H A DSweepGradient.java28 * @param colors The colors to be distributed between around the center.
29 * There must be at least 2 colors in the array.
31 * each corresponding color in the colors array, beginning
34 * If positions is NULL, then the colors are automatically
38 int colors[], float positions[]) {
39 super(colors, positions);
66 public SweepGradientPaint(float cx, float cy, int[] colors, float[] positions) { argument
67 super(colors, positions, null /*tileMode*/);
37 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
H A DCanvas.java567 public void drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, argument
1059 int vertOffset, int[] colors, int colorOffset, Paint paint) {
1061 super.drawBitmapMesh(bitmap, meshWidth, meshHeight, verts, vertOffset, colors, colorOffset, paint);
1160 float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices,
1163 super.drawVertices(mode, vertexCount, verts, vertOffset, texs, texOffset, colors, colorOffset,
1058 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
1159 drawVertices(VertexMode mode, int vertexCount, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, Paint paint) argument
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java37 * Lets you map {@link android.view.View} state sets to colors.
74 * states to colors.
76 public ColorStateList(int[][] states, int[] colors) { argument
78 mColors = colors;
81 mDefaultColor = colors[0];
85 mDefaultColor = colors[i];
154 * colors as this one but where each color has the specified alpha value
158 int[] colors = new int[mColors.length];
160 int len = colors.length;
162 colors[
[all...]
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp120 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...]
H A DBitmap.cpp165 const SkPMColor* colors = ctable->lockColors(); local
167 *dst++ = SkUnPreMultiply::PMColorToColor(colors[*s++]);
176 const SkPMColor* colors = ctable->lockColors(); local
178 SkPMColor c = colors[*s++];
559 if (memcmp(alc0.colors(), alc1.colors(), size) != 0) {
H A DCanvas.cpp734 const SkColor* colors = NULL; local
737 colors = (const SkColor*)(colorA.ptr() + colorIndex);
743 canvas->drawVertices(mode, ptCount, verts, texs, colors, NULL,
/frameworks/base/awt/org/apache/harmony/awt/gl/image/
H A DGifDecoder.java105 gifDataStream.logicalScreen.globalColorTable.colors,
376 gifDataStream.logicalScreen.globalColorTable.colors,
666 int size = 0; // Actual number of colors in the color table
667 byte colors[] = new byte[256*3]; field in class:GifDecoder.GifColorTable
679 new IndexColorModel(8, size, colors, 0, false);
686 new IndexColorModel(8, size, colors, 0, false, transparentColor);
/frameworks/base/opengl/libagl/
H A Ddxt.cpp152 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...]
H A Dtexture.cpp261 GGLfixed colors[4] = { 0, 0, 0, 0x10000 }; local
268 ggl->color4xv(ggl, colors);
/frameworks/base/awt/java/awt/
H A DToolkit.java833 * Returns the maximum number of colors which the Toolkit supports for
836 * @return the maximum cursor colors.
1002 * @param colors
1008 protected void loadSystemColors(int[] colors) throws HeadlessException { argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java157 * of colors for the gradient.
159 public GradientDrawable(Orientation orientation, int[] colors) { argument
160 this(new GradientState(orientation, colors));
492 final int[] colors = st.mColors;
493 if (colors != null) {
535 colors, st.mPositions, Shader.TileMode.CLAMP));
543 level * st.mGradientRadius, colors, null,
549 int[] tempColors = colors;
554 final int length = colors.length;
558 System.arraycopy(colors,
882 GradientState(Orientation orientation, int[] colors) argument
[all...]
/frameworks/base/opengl/libs/ETC1/
H A Detc1.cpp379 int r1, g1, b1, r2, g2, b2; // 8 bit base colors for sub-blocks
486 etc1_byte colors[6]; local
488 etc_average_colors_subblock(pIn, inMask, colors, false, false);
489 etc_average_colors_subblock(pIn, inMask, colors + 3, false, true);
494 etc_encode_block_helper(pIn, inMask, colors, &a, false);
/frameworks/base/tools/aapt/
H A DImages.cpp49 free(info9Patch.colors);
121 NOISY(printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",
468 // colors we can use in the 9-patch format.
476 image->info9Patch.colors = (uint32_t*)malloc(numColors * sizeof(uint32_t));
519 image->info9Patch.colors[colorIndex++] = c;
531 printf(" #%08x", image->info9Patch.colors[i]);
583 assert(outPatch->colors[i] == inPatch->colors[i]);
599 if (patch1.colors[i] != patch2.colors[
676 uint32_t colors[256], col; local
[all...]
H A DResource.cpp796 sp<ResourceTypeSet> colors; local
823 !applyFileOverlay(bundle, assets, &colors, "color") ||
892 if (colors != NULL) {
893 err = makeFileResources(bundle, assets, &table, colors, "color");
985 if (colors != NULL) {
986 ResourceDirIterator it(colors, String8("color"));
/frameworks/base/include/utils/
H A DResourceTypes.h93 * The array pointed to by the colors field lists contains hints for
105 yDivs(NULL), colors(NULL) { }
131 uint32_t* colors; member in struct:android::Res_png_9patch
/frameworks/base/core/java/android/widget/
H A DTextView.java1578 ColorStateList colors;
1586 colors = appearance.getColorStateList(com.android.internal.R.styleable.
1588 if (colors != null) {
1589 setTextColor(colors);
1598 colors = appearance.getColorStateList(com.android.internal.R.styleable.
1600 if (colors != null) {
1601 setHintTextColor(colors);
1604 colors = appearance.getColorStateList(com.android.internal.R.styleable.
1606 if (colors != null) {
1607 setLinkTextColor(colors);
1750 setTextColor(ColorStateList colors) argument
1885 setHintTextColor(ColorStateList colors) argument
1924 setLinkTextColor(ColorStateList colors) argument
[all...]

Completed in 612 milliseconds