/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 30 * Path, text, Bitmap), and a paint (to describe the colors and styles for the 1207 * Treat the specified array of colors as a bitmap, and draw it. This gives 1210 * which can be more efficient if the colors are changing often. 1212 * @param colors Array of colors representing the pixels of the bitmap 1213 * @param offset Offset into the array of colors for the first pixel 1214 * @param stride The number of colors in the array between rows (must be 1220 * @param hasAlpha True if the alpha channel of the colors contains valid 1225 public void drawBitmap(int[] colors, int offset, int stride, float x, float y, argument 1238 int length = colors 1254 drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) argument 1308 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 1373 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 1799 native_drawBitmap(int nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, int nativePaintOrZero) argument 1806 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument 1810 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/libs/hwui/ |
H A D | DisplayListOp.h | 922 float* vertices, int* colors, SkPaint* paint) 925 mVertices(vertices), mColors(colors) {} 921 DrawBitmapMeshOp(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument
|
H A D | OpenGLRenderer.cpp | 900 * quad is used to multiply the colors in the frame buffer. This is achieved by 1283 uint32_t colors[] = { local 1298 drawColorRect(r.left, r.top, r.right, r.bottom, colors[offset + (i & 0x1)], 1985 void OpenGLRenderer::setupDrawMesh(GLvoid* vertices, GLvoid* texCoords, GLvoid* colors) { argument 1993 int slot = mCaches.currentProgram->getAttrib("colors"); 1996 glVertexAttribPointer(slot, 4, GL_FLOAT, GL_FALSE, stride, colors); 2203 float* vertices, int* colors, SkPaint* paint) { 2222 if (!colors) { 2224 colors = new int[colorsCount]; 2225 memset(colors, 2202 drawBitmapMesh(SkBitmap* bitmap, int meshWidth, int meshHeight, float* vertices, int* colors, SkPaint* paint) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 49 free(info9Patch.colors); 128 NOISY(printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n", 603 // colors we can use in the 9-patch format. 611 image->info9Patch.colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); 654 image->info9Patch.colors[colorIndex++] = c; 666 printf(" #%08x", image->info9Patch.colors[i]); 718 assert(outPatch->colors[i] == inPatch->colors[i]); 734 if (patch1.colors[i] != patch2.colors[ 811 uint32_t colors[256], col; local [all...] |
H A D | Resource.cpp | 939 sp<ResourceTypeSet> colors; local 974 !applyFileOverlay(bundle, assets, &colors, "color") || 1081 if (colors != NULL) { 1082 err = makeFileResources(bundle, assets, &table, colors, "color"); 1219 if (colors != NULL) { 1220 ResourceDirIterator it(colors, String8("color"));
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 889 /*package*/ static void native_drawBitmap(int nativeCanvas, int[] colors, argument 898 image.setRGB(0, 0, width, height, colors, offset, stride); 957 int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, 968 int[] colors, int colorOffset, 956 nativeDrawBitmapMesh(int nCanvas, int nBitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int nPaint) argument 965 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
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 901 public void drawBitmap(int[] colors, int offset, int stride, float x, float y, argument 916 int length = colors.length; 927 nDrawBitmap(mRenderer, colors, offset, stride, x, y, 934 private static native void nDrawBitmap(int renderer, int[] colors, int offset, int stride, argument 938 public void drawBitmap(int[] colors, int offset, int stride, int x, int y, argument 941 drawBitmap(colors, offset, stride, (float) x, (float) y, width, height, hasAlpha, paint); 946 int vertOffset, int[] colors, int colorOffset, Paint paint) { 959 if (colors != null) { 960 checkRange(colors.length, colorOffset, count); 967 verts, vertOffset, colors, colorOffse 945 drawBitmapMesh(Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, Paint paint) argument 973 nDrawBitmapMesh(int renderer, int bitmap, byte[] buffer, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, int paint) argument 1392 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/include/androidfw/ |
H A D | ResourceTypes.h | 95 * The array pointed to by the colors field lists contains hints for 107 yDivs(NULL), colors(NULL) { } 133 uint32_t* colors; member in struct:android::Res_png_9patch
|
/frameworks/ex/common/java/com/android/ex/editstyledtext/ |
H A D | EditStyledText.java | 2156 private void buildAndShowColorDialogue(int type, CharSequence title, int[] colors) { argument 2176 for (int i = 0; i < colors.length; i++) { 2185 new ColorPaletteDrawable(colors[i], BUTTON_SIZE, BUTTON_SIZE, 2188 button.setDrawingCacheBackgroundColor(colors[i]);
|
/frameworks/base/core/java/android/widget/ |
H A D | TextView.java | 2405 ColorStateList colors; 2414 colors = appearance.getColorStateList(com.android.internal.R.styleable. 2416 if (colors != null) { 2417 setTextColor(colors); 2426 colors = appearance.getColorStateList(com.android.internal.R.styleable. 2428 if (colors != null) { 2429 setHintTextColor(colors); 2432 colors = appearance.getColorStateList(com.android.internal.R.styleable. 2434 if (colors != null) { 2435 setLinkTextColor(colors); 2639 setTextColor(ColorStateList colors) argument 2867 setHintTextColor(ColorStateList colors) argument 2919 setLinkTextColor(ColorStateList colors) argument [all...] |