/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | MaterialProgressDrawable.java | 81 * the color transition should start 197 * Update the background color of the circle image view. 199 public void setBackgroundColor(int color) { argument 200 mRing.setBackgroundColor(color); 204 * Set the colors used in the progress animation from color resources. 205 * The first color will also be the color of the bar that grows in response 329 * Update the ring color if this is within the last 25% of the animation. 330 * The new ring color will be a translation from the starting ring color t 510 setBackgroundColor(int color) argument 601 setColor(int color) argument [all...] |
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 1081 const mkvparser::Colour *color = vtrack->GetColour(); local 1082 if (color == NULL) { 1094 if (isValidInt32ColourValue(color->primaries)) { 1095 primaries = color->primaries; 1097 if (isValidInt32ColourValue(color->transfer_characteristics)) { 1098 transfer = color->transfer_characteristics; 1100 if (isValidInt32ColourValue(color->matrix_coefficients)) { 1101 coeffs = color->matrix_coefficients; 1103 if (color->range != mkvparser::Colour::kValueNotPresent 1104 && color [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 379 public void setBackgroundColor(int color); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | CalendarViewLegacyDelegate.java | 354 public void setSelectedWeekBackgroundColor(int color) { argument 355 if (mSelectedWeekBackgroundColor != color) { 356 mSelectedWeekBackgroundColor = color; 373 public void setFocusedMonthDateColor(int color) { argument 374 if (mFocusedMonthDateColor != color) { 375 mFocusedMonthDateColor = color; 392 public void setUnfocusedMonthDateColor(int color) { argument 393 if (mUnfocusedMonthDateColor != color) { 394 mUnfocusedMonthDateColor = color; 411 public void setWeekNumberColor(int color) { argument 426 setWeekSeparatorLineColor(int color) argument [all...] |
H A D | ImageView.java | 178 // Prior to L, this attribute would always set a color filter with 1353 * @param color Color tint to apply. 1354 * @param mode How to apply the color. The standard mode is 1359 public final void setColorFilter(int color, PorterDuff.Mode mode) { argument 1360 setColorFilter(new PorterDuffColorFilter(color, mode)); 1367 * @param color Color tint to apply. 1371 public final void setColorFilter(int color) { argument 1372 setColorFilter(color, PorterDuff.Mode.SRC_ATOP); 1392 * Returns the active color filter for this ImageView. 1394 * @return the active color filte [all...] |
H A D | ListView.java | 3283 public void setCacheColorHint(int color) { argument 3284 final boolean opaque = (color >>> 24) == 0xFF; 3290 mDividerPaint.setColor(color); 3292 super.setCacheColorHint(color);
|
H A D | StackView.java | 1399 Bitmap createClickOutline(View v, int color) { argument 1400 return createOutline(v, CLICK_FEEDBACK, color); 1403 Bitmap createResOutline(View v, int color) { argument 1404 return createOutline(v, RES_OUT, color); 1407 Bitmap createOutline(View v, int type, int color) { argument 1408 mHolographicPaint.setColor(color);
|
H A D | Toolbar.java | 99 * <p>In modern Android UIs developers should lean more on a visually distinct color scheme for 814 * Sets the text color, size, style, hint color, and highlight color 825 * Sets the text color, size, style, hint color, and highlight color 836 * Sets the text color of the title, if present. 838 * @param color The new text color i 840 setTitleTextColor(@olorInt int color) argument 852 setSubtitleTextColor(@olorInt int color) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.cpp | 63 // Need to validate the alpha type to filter against the color type 876 static void Bitmap_erase(JNIEnv* env, jobject, jlong bitmapHandle, jint color) { argument 880 skBitmap.eraseColor(color); 1098 // The bitmap needs to be locked to access its color table. 1242 SkColor color = static_cast<SkColor>(colorHandle); local 1253 proc(bitmap.getAddr(x, y), &color, 1, x, y);
|
H A D | Paint.cpp | 203 int color; local 204 color = reinterpret_cast<Paint*>(paintHandle)->getColor(); 205 return static_cast<jint>(color); 214 static void setColor(JNIEnv* env, jobject, jlong paintHandle, jint color) { argument 215 reinterpret_cast<Paint*>(paintHandle)->setColor(color); 635 jfloat dx, jfloat dy, jint color) { 642 paint->setLooper(SkBlurDrawLooper::Create((SkColor)color, sigma, dx, dy))->unref(); 634 setShadowLayer(JNIEnv* env, jobject clazz, jlong paintHandle, jfloat radius, jfloat dx, jfloat dy, jint color) argument
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 209 static void drawColor(JNIEnv* env, jobject, jlong canvasHandle, jint color, jint modeHandle) { argument 211 get_canvas(canvasHandle)->drawColor(color, mode);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 419 * how pixels are stored. This affects the quality (color depth) as 428 * No color information is stored. 445 * that do not require high color fidelity. 450 * Each pixel is stored on 2 bytes. The three RGB color channels 899 * @param offset Number of values to skip before the first color in the 909 * the color array's length is less than the number of pixels. 924 * @param offset Number of values to skip before the first color in the 934 * the color array's length is less than the number of pixels. 973 * the color array's length is less than the number of pixels. 994 * the color arra 1509 setPixel(int x, int y, @ColorInt int color) argument 1704 nativeErase(long nativeBitmap, int color) argument 1713 nativeSetPixel(long nativeBitmap, int x, int y, int color) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | GradientDrawable.java | 60 * A Drawable with a color gradient for buttons, backgrounds, etc. 298 * <p>Set the stroke width and color for the drawable. If width is zero, 305 * @param color The color of the stroke 310 public void setStroke(int width, @ColorInt int color) { argument 311 setStroke(width, color, 0, 0); 315 * <p>Set the stroke width and color state list for the drawable. If width 322 * @param colorStateList The color state list of the stroke 332 * <p>Set the stroke width and color for the drawable. If width is zero, 339 * @param color Th 346 setStroke(int width, @ColorInt int color, float dashWidth, float dashGap) argument 380 setStrokeInternal(int width, int color, float dashWidth, float dashGap) argument 2059 isOpaque(int color) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 688 // Don't merge A8 bitmaps - the paint's color isn't compared by mergeId, or in 914 DrawColorOp(int color, SkXfermode::Mode mode) argument 915 : DrawOp(nullptr), mColor(color), mMode(mode) {}; 922 OP_LOG("Draw color %#x, mode %d", mColor, mMode);
|
H A D | SkiaCanvas.cpp | 114 virtual void drawColor(int color, SkXfermode::Mode mode) override; 533 void SkiaCanvas::drawColor(int color, SkXfermode::Mode mode) { argument 534 mCanvas->drawColor(color, mode);
|
/frameworks/base/media/java/android/media/ |
H A D | ClosedCaptionRenderer.java | 525 int color = (data2 >> 1) & 0x7; 531 if (color == COLOR_INVALID) { 533 color = COLOR_WHITE; 537 return new StyleCode(style, color); 540 StyleCode(int style, int color) { argument 542 mColor = color; 591 int color = (data2 >> 1) & 0x7; 593 if (color == COLOR_INVALID) { 595 color = COLOR_WHITE; 598 return new PAC(row, -1, style, color); 602 PAC(int row, int col, int style, int color) argument 636 MutableBackgroundColorSpan(int color) argument 640 setBackgroundColor(int color) argument 1403 setBackgroundSpans(int color) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/ |
H A D | MLand.java | 941 mTouchPaint.setColor(0x80FFFFFF & p.color); 942 mPlayerTracePaint.setColor(0x80FFFFFF & p.color); 1011 public int color; field in class:MLand.Player 1071 mScoreField.getBackground().setColorFilter(color, PorterDuff.Mode.SRC_ATOP); 1072 mScoreField.setTextColor(luma(color) > 0.7f ? 0xFF000000 : 0xFFFFFFFF); 1082 setScoreField(mScoreField); // refresh color 1092 color = sColors[(sNextColor++%sColors.length)]; 1093 getBackground().setTint(color);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 497 int color, float lineWidth) { 498 prepareDraw(offset, color, lineWidth); 502 private void prepareDraw(int offset, int color, float lineWidth) { argument 509 float[] colorArray = getColor(color); 522 private float[] getColor(int color) { argument 523 float alpha = ((color >>> 24) & 0xFF) / 255f * getAlpha(); 524 float red = ((color >>> 16) & 0xFF) / 255f * alpha; 525 float green = ((color >>> 8) & 0xFF) / 255f * alpha; 526 float blue = (color & 0xFF) / 255f * alpha; 575 public void fillRect(float x, float y, float width, float height, int color) { argument 496 draw(int type, int offset, int count, float x, float y, float width, float height, int color, float lineWidth) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 187 png_uint_32 color = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); local 193 if (color == COLOR_LAYOUT_BOUNDS_TICK) { 196 if (color == COLOR_TICK) { 212 *outError = "White frame must be a solid color (no alpha)"; 214 if (color == COLOR_WHITE) { 217 if (color == COLOR_TICK) { 220 if (color == COLOR_LAYOUT_BOUNDS_TICK) { 419 png_byte* color = rows[y] + x * 4; local 420 uint8_t opacity = color[3]; 514 png_bytep color local [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | Png.cpp | 191 printf("Unknown color type %d.\n", color_type); 315 printf("Found 257th color at %d, %d\n", i, j); 340 // Choose the best color type for the image. 355 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color 374 // color type chosen 608 png_uint_32 color = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); local 614 if (color == kColorLayoutBoundsTick) { 617 if (color == kColorTick) { 635 *outError = "White frame must be a solid color (no alpha)"; 637 if (color 822 png_byte* color = rows[y] + x * 4; local 913 png_bytep color = rows[top] + left*4; local [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 501 public static void native_drawColor(long nativeCanvas, final int color, final int mode) { argument 517 // set the color 518 graphics.setColor(new Color(color, true /*alpha*/)); 1195 // if the bitmap config is alpha_8, then we erase all color value from it
|
H A D | Paint_Delegate.java | 365 /*package*/ static void nSetColor(Paint thisPaint, long nativePaint, int color) { argument 372 delegate.mColor = color; 443 int color) { 442 nSetShadowLayer(long paint, float radius, float dx, float dy, int color) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/ |
H A D | VectorDrawable_Delegate.java | 85 private static int applyAlpha(int color, float alpha) { argument 86 int alphaBytes = Color.alpha(color); 87 color &= 0x00FFFFFF; 88 color |= ((int) (alphaBytes * alpha)) << 24; 89 return color;
|
/frameworks/compile/mclinker/include/mcld/ |
H A D | GeneralOptions.h | 114 bool color() const { return m_bColor; } function in class:mcld::GeneralOptions::HashStyle 366 bool m_bColor : 1; // --color[=true,false,auto]
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcCommit.cpp | 172 ColorFract color; member in class:Rectangle 1309 blend(defaultBlend), color(defaultColor), alpha(defaultAlpha),
|