/frameworks/base/libs/hwui/ |
H A D | Canvas.h | 130 const float* verts, const float* tex, const int* colors, 142 const float* vertices, const int* colors, const SkPaint* paint) = 0;
|
H A D | SkiaCanvasProxy.h | 72 const SkPoint texs[], const SkColor colors[], SkXfermode*, 89 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkiaCanvasProxy.cpp | 124 const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[], 134 const int* cArray = (colors) ? (int*)colors : NULL; 324 void SkiaCanvasProxy::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], argument 337 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) { 123 onDrawVertices(VertexMode mode, int vertexCount, const SkPoint vertices[], const SkPoint texs[], const SkColor colors[], SkXfermode*, const uint16_t indices[], int indexCount, const SkPaint& paint) argument
|
H A D | SkiaCanvas.cpp | 107 const float* verts, const float* tex, const int* colors, 118 const float* vertices, const int* colors, const SkPaint* paint) override; 536 const float* verts, const float* texs, const int* colors, 543 (SkColor*)colors, NULL, indices, indexCount, paint); 569 const float* vertices, const int* colors, const SkPaint* paint) { 661 texs, (const SkColor*)colors, NULL, indices, 535 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 568 drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight, const float* vertices, const int* colors, const SkPaint* paint) argument
|
H A D | DisplayListCanvas.h | 216 const float* verts, const float* tex, const int* colors, 228 const float* vertices, const int* colors, const SkPaint* paint) override;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrandedFragment.java | 180 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 181 mSearchAffordanceColors = colors;
|
H A D | BrandedSupportFragment.java | 182 public void setSearchAffordanceColors(SearchOrbView.Colors colors) { argument 183 mSearchAffordanceColors = colors;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 38 * Path, text, Bitmap), and a paint (to describe the colors and styles for the 1425 * Treat the specified array of colors as a bitmap, and draw it. This gives 1428 * which can be more efficient if the colors are changing often. 1430 * @param colors Array of colors representing the pixels of the bitmap 1431 * @param offset Offset into the array of colors for the first pixel 1432 * @param stride The number of colors in the array between rows (must be 1438 * @param hasAlpha True if the alpha channel of the colors contains valid 1449 public void drawBitmap(@NonNull int[] colors, int offset, int stride, float x, float y, argument 1462 int length = colors 1485 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument 1539 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument 1605 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 2077 native_drawBitmap(long nativeCanvas, int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, long nativePaintOrZero) argument 2086 nativeDrawBitmapMesh(long nativeCanvas, Bitmap bitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset, long nativePaint) argument 2092 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 D | Bitmap.java | 388 * well as the ability to display transparent/translucent colors. 847 * pixel value set to the corresponding value in the colors array. Its 850 * @param colors Array of {@link Color} used to initialize the pixels. 852 * array of colors. 853 * @param stride Number of colors in the array between rows (must be >= 859 * bytes in the colors[] will be ignored (assumed to be FF) 863 public static Bitmap createBitmap(int colors[], int offset, int stride, argument 865 return createBitmap(null, colors, offset, stride, width, height, config); 870 * pixel value set to the corresponding value in the colors array. Its 875 * @param colors Arra 888 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument 927 createBitmap(int colors[], int width, int height, Config config) argument 948 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument 1675 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument 1700 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 60 int[] colors = {START_COLOR, START_COLOR, END_COLOR}; 61 cornerPaint.setShader(new RadialGradient(0, 0, outerArcRadius, colors, 90 colors, new float[]{0f, 1 / 3f, 1f}, TileMode.CLAMP));
|
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 40 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { } 54 free(colors); 58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); 72 uint32_t* colors; member in struct:image_info 161 printf("Image %s: w=%d, h=%d, d=%d, colors=%d, inter=%d, comp=%d\n", 707 // colors we can use in the 9-patch format. 715 image->colors = (uint32_t*)malloc(numColors * sizeof(uint32_t)); 758 image->colors[colorIndex++] = c; 773 printf(" #%08x", image->colors[i]); 817 assert(outPatch->colors[ 882 uint32_t colors[256], col; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Bitmap_Delegate.java | 229 /*package*/ static Bitmap nativeCreate(int[] colors, int offset, int stride, int width, argument 236 if (colors != null) { 237 image.setRGB(0, 0, width, height, colors, offset, stride); 401 /*package*/ static void nativeSetPixels(long nativeBitmap, int[] colors, int offset, argument 408 delegate.getImage().setRGB(x, y, width, height, colors, offset, stride);
|
/frameworks/base/tools/aapt2/ |
H A D | Png.cpp | 50 colors.data()); 63 std::vector<uint32_t> colors; member in struct:aapt::PngInfo 239 uint32_t colors[256], col; local 250 // 3. There are no more than 256 distinct RGBA colors 299 // Check if image is really <= 256 colors 304 if (colors[idx] == col) { 321 colors[num_colors++] = col; 346 // 3. RGB(A) - use COLOR_TYPE_PALETTE if the number of distinct colors is sufficiently 379 // Create separate RGB and Alpha palettes and set the number of colors 384 col = colors[id [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | StringBlock.java | 331 ColorStateList colors = res.getColorStateList(colorRes, null); 333 return new TextAppearanceSpan(null, 0, 0, colors, null); 335 c = colors.getDefaultColor();
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 379 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/support/v4/java/android/support/v4/widget/ |
H A D | MaterialProgressDrawable.java | 204 * Set the colors used in the progress animation from color resources. 208 * @param colors 210 public void setColorSchemeColors(int... colors) { argument 211 mRing.setColors(colors); 584 * Set the colors the progress spinner alternates between. 586 * @param colors Array of integers describing the colors. Must be non-<code>null</code>. 588 public void setColors(@NonNull int[] colors) { argument 589 mColors = colors; 590 // if colors ar [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatchImpl.cpp | 252 const uint32_t* colors = chunk.getColors(); local 256 color = colors[colorIndex++];
|
H A D | Bitmap.cpp | 614 const SkPMColor* colors = ctable->readColors(); local 616 *dst++ = SkUnPreMultiply::PMColorToColor(colors[*s++]); 624 const SkPMColor* colors = ctable->readColors(); local 626 SkPMColor c = colors[*s++]; 636 const SkPMColor* colors = ctable->readColors(); local 638 SkPMColor c = colors[*s++];
|
H A D | GraphicsJNI.h | 112 /** Copy the colors in colors[] to the bitmap, convert to the correct 116 static bool SetPixels(JNIEnv* env, jintArray colors, int srcOffset,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SearchOrbView.java | 56 * A set of colors used to display the search orb. 63 * Other colors are provided by the framework. 72 * Constructs a color set using the given colors for the search orb. 73 * Other colors are provided by the framework. 83 * Constructs a color set using the given colors. 287 * Other colors will be provided by the framework. 296 * Sets the search orb colors. 297 * Other colors are provided by the framework. 317 public void setOrbColors(Colors colors) { argument 318 mColors = colors; [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | GradientDrawable.java | 184 * of colors for the gradient. 186 public GradientDrawable(Orientation orientation, @ColorInt int[] colors) { argument 187 this(new GradientState(orientation, colors), null); 495 * Sets the colors used to draw the gradient. 498 * least 2 colors. 500 * <strong>Note</strong>: changing colors will affect all instances of a 502 * {@link #mutate()} before changing the colors. 504 * @param colors an array containing 2 or more ARGB colors 508 public void setColors(@ColorInt int[] colors) { argument 1711 setGradientColors(int[] colors) argument 1717 setSolidColors(ColorStateList colors) argument 1748 setStroke(int width, ColorStateList colors, float dashWidth, float dashGap) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 110 TypedArray colors = res.obtainTypedArray(R.array.batterymeter_color_values); 116 mColors[2*i+1] = colors.getColor(i, 0); 119 colors.recycle();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskViewHeader.java | 357 int[] colors = new int[] { 362 mBackground.setColor(new ColorStateList(states, colors));
|
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | Palette.java | 34 * A helper class to extract prominent colors from an image. 36 * A number of colors with different profiles are extracted from the image: 370 // First check white, as most colors will be dark 489 * Set the maximum number of colors to use in the quantization step when using a 496 public Builder maximumColorCount(int colors) { argument 497 mMaxColors = colors; 526 * Add a filter to be able to have fine grained controlled over the colors which are 549 // We have a Bitmap so we need to quantization to reduce the number of colors 689 * A Filter provides a mechanism for exercising fine-grained control over which colors 694 * Hook to allow clients to be able filter colors fro [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | Switch.java | 304 ColorStateList colors; 307 colors = appearance.getColorStateList(com.android.internal.R.styleable. 309 if (colors != null) { 310 mTextColors = colors;
|