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

12

/frameworks/base/core/java/android/content/res/
H A DColorStateList.java41 * Lets you map {@link android.view.View} state sets to colors.
79 * states to colors.
81 public ColorStateList(int[][] states, int[] colors) { argument
83 mColors = colors;
86 mDefaultColor = colors[0];
90 mDefaultColor = colors[i];
158 * colors as this one but where each color has the specified alpha value
162 final int[] colors = new int[mColors.length];
163 final int len = colors.length;
165 colors[
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java645 public void drawBitmap(int[] colors, int offset, int stride, float x, float y, argument
660 int length = colors.length;
668 nDrawBitmap(mRenderer, colors, offset, stride, x, y,
672 private static native void nDrawBitmap(long renderer, int[] colors, int offset, int stride, argument
676 public void drawBitmap(int[] colors, int offset, int stride, int x, int y, argument
678 drawBitmap(colors, offset, stride, (float) x, (float) y, width, height, hasAlpha, paint);
683 int vertOffset, int[] colors, int colorOffset, Paint paint) {
696 if (colors != null) {
697 checkRange(colors.length, colorOffset, count);
702 verts, vertOffset, colors, colorOffse
682 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument
705 nDrawBitmapMesh(long renderer, long bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long paint) argument
992 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
[all...]
/frameworks/base/core/java/android/widget/
H A DDayPickerView.java272 void setCalendarTextColor(ColorStateList colors) { argument
273 mAdapter.setCalendarTextColor(colors);
H A DSimpleMonthAdapter.java58 void setCalendarTextColor(ColorStateList colors) { argument
59 mCalendarTextColors = colors;
H A DSimpleMonthView.java197 void setTextColor(ColorStateList colors) { argument
200 mNormalTextColor = colors.getColorForState(ENABLED_STATE_SET,
205 mDisabledTextColor = colors.getColorForState(EMPTY_STATE_SET,
209 mSelectedDayColor = colors.getColorForState(ENABLED_SELECTED_STATE_SET,
H A DTextView.java2489 ColorStateList colors;
2498 colors = appearance.getColorStateList(com.android.internal.R.styleable.
2500 if (colors != null) {
2501 setTextColor(colors);
2510 colors = appearance.getColorStateList(com.android.internal.R.styleable.
2512 if (colors != null) {
2513 setHintTextColor(colors);
2516 colors = appearance.getColorStateList(com.android.internal.R.styleable.
2518 if (colors != null) {
2519 setLinkTextColor(colors);
2840 setTextColor(ColorStateList colors) argument
3074 setHintTextColor(ColorStateList colors) argument
3126 setLinkTextColor(ColorStateList colors) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp228 const SkPMColor* colors = ctable->lockColors(); local
230 *dst++ = SkUnPreMultiply::PMColorToColor(colors[*s++]);
239 const SkPMColor* colors = ctable->lockColors(); local
241 SkPMColor c = colors[*s++];
252 const SkPMColor* colors = ctable->lockColors(); local
254 SkPMColor c = colors[*s++];
838 if (memcmp(alc0.colors(), alc1.colors(), size) != 0) {
H A DNinePatchImpl.cpp257 const uint32_t* colors = chunk.getColors(); local
261 color = colors[colorIndex++];
H A DShader.cpp124 SkColor colors[2]; local
125 colors[0] = color0;
126 colors[1] = color1;
128 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode);
166 SkColor colors[2]; local
167 colors[0] = color0;
168 colors[1] = color1;
170 SkShader* s = SkGradientShader::CreateRadial(center, radius, colors, NULL, 2,
181 const jint* colors = env->GetIntArrayElements(jcolors, NULL); local
191 reinterpret_cast<const SkColor*>(colors), po
200 SkColor colors[2]; local
[all...]
H A DSkiaCanvas.cpp108 const float* verts, const float* tex, const int* colors,
117 const float* vertices, const int* colors, const SkPaint* paint);
546 const float* verts, const float* texs, const int* colors,
553 (SkColor*)colors, NULL, indices, indexCount, paint);
577 const float* vertices, const int* colors, const SkPaint* paint) {
669 texs, (const SkColor*)colors, NULL, indices,
545 drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount, const float* verts, const float* texs, const int* colors, const uint16_t* indices, int indexCount, const SkPaint& paint) argument
576 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp295 const int* colors = NULL; local
299 colors = colorA.ptr() + colorIndex;
307 get_canvas(canvasHandle)->drawVertices(mode, vertexCount, verts, texs, colors,
H A Dandroid_view_GLES20Canvas.cpp398 jlong rendererPtr, jintArray colors, jint offset, jint stride,
411 if (!GraphicsJNI::SetPixels(env, colors, offset, stride, 0, 0, width, height, *bitmap)) {
430 jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors,
437 jint* colorsArray = colors ? env->GetIntArrayElements(colors, NULL) + colorOffset : NULL;
444 if (colors) env->ReleaseIntArrayElements(colors, colorsArray, 0);
397 android_view_GLES20Canvas_drawBitmapData(JNIEnv* env, jobject clazz, jlong rendererPtr, jintArray colors, jint offset, jint stride, jfloat left, jfloat top, jint width, jint height, jboolean hasAlpha, jlong paintPtr) argument
428 android_view_GLES20Canvas_drawBitmapMesh(JNIEnv* env, jobject clazz, jlong rendererPtr, jlong bitmapPtr, jbyteArray buffer, jint meshWidth, jint meshHeight, jfloatArray vertices, jint offset, jintArray colors, jint colorOffset, jlong paintPtr) argument
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java389 * well as the ability to display transparent/translucent colors.
833 * pixel value set to the corresponding value in the colors array. Its
836 * @param colors Array of {@link Color} used to initialize the pixels.
838 * array of colors.
839 * @param stride Number of colors in the array between rows (must be >=
845 * bytes in the colors[] will be ignored (assumed to be FF)
849 public static Bitmap createBitmap(int colors[], int offset, int stride, argument
851 return createBitmap(null, colors, offset, stride, width, height, config);
856 * pixel value set to the corresponding value in the colors array. Its
861 * @param colors Arra
874 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument
913 createBitmap(int colors[], int width, int height, Config config) argument
934 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument
1611 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument
1635 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
H A DCanvas.java36 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
1380 * Treat the specified array of colors as a bitmap, and draw it. This gives
1383 * which can be more efficient if the colors are changing often.
1385 * @param colors Array of colors representing the pixels of the bitmap
1386 * @param offset Offset into the array of colors for the first pixel
1387 * @param stride The number of colors in the array between rows (must be
1393 * @param hasAlpha True if the alpha channel of the colors contains valid
1404 public void drawBitmap(@NonNull int[] colors, int offset, int stride, float x, float y, argument
1417 int length = colors
1440 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
1494 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument
1560 drawVertices(@onNull VertexMode mode, int vertexCount, @NonNull float[] verts, int vertOffset, @Nullable float[] texs, int texOffset, @Nullable int[] colors, int colorOffset, @Nullable short[] indices, int indexOffset, int indexCount, @NonNull Paint paint) argument
2000 native_drawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument
2009 nativeDrawBitmapMesh(long nativeCanvas, long nativeBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument
2015 nativeDrawVertices(long nativeCanvas, int mode, int n, float[] verts, int vertOffset, float[] texs, int texOffset, int[] colors, int colorOffset, short[] indices, int indexOffset, int indexCount, long nativePaint) argument
[all...]
H A DLinearGradient.java46 @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[], argument
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, position
115 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
[all...]
H A DRadialGradient.java47 @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, stop
54 RadialGradient(float centerX, float centerY, float radius, @NonNull int colors[], @Nullable float stops[], @NonNull TileMode tileMode) argument
120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
[all...]
H A DSweepGradient.java42 * @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;
51 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
107 nativeCreate1(float x, float y, int colors[], float positions[]) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java179 * of colors for the gradient.
181 public GradientDrawable(Orientation orientation, int[] colors) { argument
182 this(new GradientState(orientation, colors), null);
490 * <p>Sets the colors used to draw the gradient. Each color is specified as an
491 * ARGB integer and the array must contain at least 2 colors.</p>
496 * @param colors 2 or more ARGB colors
501 public void setColors(int[] colors) { argument
502 mGradientState.setColors(colors);
871 final int[] colors
1525 GradientState(Orientation orientation, int[] colors) argument
1617 setColors(int[] colors) argument
[all...]
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp160 uint32_t* colors = getColors(); local
162 colors[i] = htonl(colors[i]);
180 uint32_t* colors = getColors(); local
182 colors[i] = ntohl(colors[i]);
199 const int32_t* yDivs, const uint32_t* colors)
204 serialize(patch, xDivs, yDivs, colors, newData);
209 const int32_t* yDivs, const uint32_t* colors, void* outData)
220 memcpy(data, colors, patc
198 serialize(const Res_png_9patch& patch, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors) argument
208 serialize(const Res_png_9patch& patch, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, void* outData) argument
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListOp.h805 const float* vertices, const int* colors, const SkPaint* paint)
808 mVertices(vertices), mColors(colors) {}
804 DrawBitmapMeshOp(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
H A DDisplayListRenderer.cpp237 const float* vertices, const int* colors, const SkPaint* paint) {
242 colors = refBuffer<int>(colors, vertexCount); // 1 color per vertex
245 vertices, colors, paint));
236 drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
H A DGradientCache.cpp45 hash = JenkinsHashMix(hash, android::hash_type(colors[i]));
55 deltaInt = memcmp(lhs.colors, rhs.colors, lhs.count * sizeof(uint32_t));
132 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
133 GradientCacheEntry gradient(colors, positions, count);
137 texture = addLinearGradient(gradient, colors, positions, count);
147 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument
160 if (((colors[i] >> 24) & 0xff) < 255) {
171 uint32_t* colors, float* positions, int count) {
174 getGradientInfo(colors, coun
170 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
241 generateTexture(uint32_t* colors, float* positions, Texture* texture) argument
[all...]
H A DGradientCache.h36 colors = NULL;
40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
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) { argument
83 this->colors
[all...]
H A DOpenGLRenderer.cpp767 * quad is used to multiply the colors in the frame buffer. This is achieved by
1235 uint32_t colors[] = { local
1250 paint.setColor(colors[offset + (i & 0x1)]);
1910 const GLvoid* texCoords, const GLvoid* colors) {
1918 int slot = mCaches.currentProgram->getAttrib("colors");
1921 glVertexAttribPointer(slot, 4, GL_FLOAT, GL_FALSE, stride, colors);
2084 const float* vertices, const int* colors, const SkPaint* paint) {
2104 if (!colors) {
2108 colors = newColors;
2136 ColorTextureVertex::set(vertex++, vertices[dx], vertices[dy], u2, v2, colors[d
1909 setupDrawMesh(const GLvoid* vertices, const GLvoid* texCoords, const GLvoid* colors) argument
2083 drawBitmapMesh(const SkBitmap* bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
[all...]
/frameworks/base/tools/aapt/
H A DImages.cpp39 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { }
53 free(colors);
57 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors);
71 uint32_t* colors; member in struct:image_info
159 NOISY(printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n",
733 // colors we can use in the 9-patch format.
741 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t));
784 image->colors[colorIndex++] = c;
796 printf(" #%08x", image->colors[i]);
840 assert(outPatch->colors[
905 uint32_t colors[256], col; local
[all...]

Completed in 333 milliseconds

12