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

12345678910

/frameworks/base/libs/hwui/tests/common/scenes/
H A DPartialDamageAnimation.cpp44 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; variable
47 [color](RenderProperties& props, TestCanvas& canvas) {
48 canvas.drawColor(color, SkXfermode::kSrcOver_Mode);
62 SkColor color = TestUtils::interpolateColor(
64 canvas.drawColor(color, SkXfermode::kSrcOver_Mode);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DConverters.java24 public static ColorDrawable convertColorToDrawable(int color) { argument
25 return new ColorDrawable(color);
29 public static ColorStateList convertColorToColorStateList(int color) { argument
30 return ColorStateList.valueOf(color);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPaintDrawable.java35 public PaintDrawable(int color) { argument
36 getPaint().setColor(color);
/frameworks/base/libs/hwui/
H A DFloatColor.h28 void set(uint32_t color) { argument
29 a = ((color >> 24) & 0xff) / 255.0f;
30 r = a * ((color >> 16) & 0xff) / 255.0f;
31 g = a * ((color >> 8) & 0xff) / 255.0f;
32 b = a * ((color ) & 0xff) / 255.0f;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DSecurityMessageDisplay.java21 void setNextMessageColor(int color); argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLPaint.java25 public void setColor(int color) { argument
26 mColor = color;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiLayersActivity.java62 public LayerView(Context context, int color) { argument
65 mPaint.setColor(color);
H A DColoredRectsActivity.java65 public RectsView(Context c, float offset, int color) { argument
68 mColor = color;
H A DPointsActivity.java88 public RenderingView(Context c, int color) { argument
90 mColor = color;
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorStateDrawable.java25 * A drawable which sets its color filter to a color specified by the user, and changes to a
26 * slightly darker color when pressed or focused.
34 public ColorStateDrawable(Drawable[] layers, int color) { argument
36 mColor = color;
59 * Given a particular color, adjusts its value by a multiplier.
61 private static int getPressedColor(int color) { argument
63 Color.colorToHSV(color, hsv);
H A DColorPickerSwatch.java27 * Creates a circular swatch of a specified color. Adds a checkmark if marked as checked.
36 * Interface for a callback when a color square is selected.
41 * Called when a specific color square has been selected.
43 public void onColorSelected(int color); argument
46 public ColorPickerSwatch(Context context, int color, boolean checked, argument
49 mColor = color;
55 setColor(color);
60 protected void setColor(int color) { argument
63 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DTextAttribute.java34 public TextColor color; field in class:TextAttribute
38 boolean strikeThrough, TextColor color) {
47 this.color = color;
36 TextAttribute(int start, int length, TextAlignment align, FontSize size, boolean bold, boolean italic, boolean underlined, boolean strikeThrough, TextColor color) argument
/frameworks/rs/driver/
H A DrsdFrameBuffer.cpp49 // Now attach color targets
51 DrvAllocation *color = nullptr; local
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv;
55 if (color->uploadDeferred) {
60 fbo->setColorTarget(color, i);
H A DrsdFrameBufferObj.h30 void setColorTarget(DrvAllocation *color, uint32_t index) { argument
31 mColorTargets[index] = color;
/frameworks/rs/driver/runtime/
H A Drs_convert.c66 float4 color = (float)y * 0.003921569f; local
70 color += fU * yuv_U_values;
71 color += fV * yuv_V_values;
72 color = clamp(color, 0.f, 1.f);
73 return color;
/frameworks/support/design/tests/src/android/support/design/testutils/
H A DFloatingActionButtonActions.java33 public static ViewAction setBackgroundTintColor(@ColorInt final int color) { argument
50 fab.setBackgroundTintList(ColorStateList.valueOf(color));
H A DTestUtils.java33 * Checks whether all the pixels in the specified drawable are of the same specified color.
35 * In case there is a color mismatch, the behavior of this method depends on the
41 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color,
44 callSetBounds, color, null, allowedComponentVariance, throwExceptionIfFails);
48 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color,
71 final int expectedAlpha = Color.alpha(color);
72 final int expectedRed = Color.red(color);
73 final int expectedGreen = Color.green(color);
74 final int expectedBlue = Color.blue(color);
40 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
47 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, Rect checkArea, int allowedComponentVariance, boolean throwExceptionIfFails) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
H A DColorFilterCache.java23 * Cache of {@link ColorFilter}s for a given color at different alpha levels.
33 * Get a ColorDimmer for a given color. Only the RGB values are used; the
34 * alpha channel is ignored in color. Subsequent calls to this method
35 * with the same color value will return the same cache.
37 * @param color The color to use for the color filters.
38 * @return A cache of ColorFilters at different alpha levels for the color.
40 public static ColorFilterCache getColorFilterCache(int color) { argument
41 final int r = Color.red(color);
[all...]
/frameworks/wilhelm/src/itf/
H A DILEDArray.c63 SLHSL color = *pColor; local
64 if (!(0 <= color.hue && color.hue <= 360000))
66 if (!(0 <= color.saturation && color.saturation <= 1000))
68 if (!(0 <= color.lightness && color.lightness <= 1000))
73 thiz->mColors[index] = color;
92 SLHSL color = thiz->mColors[index]; local
94 *pColor = color;
114 SLHSL *color = thiz->mColors; local
[all...]
/frameworks/base/core/java/android/text/
H A DTextPaint.java78 * @param color underline solid color
82 public void setUnderlineText(int color, float thickness) { argument
83 underlineColor = color;
/frameworks/base/core/java/android/text/style/
H A DBackgroundColorSpan.java29 public BackgroundColorSpan(int color) { argument
30 mColor = color;
H A DForegroundColorSpan.java30 public ForegroundColorSpan(@ColorInt int color) { argument
31 mColor = color;
/frameworks/base/graphics/java/android/graphics/
H A DPorterDuffColorFilter.java23 * A color filter that can be used to tint the source pixels using a single
24 * color and a specific {@link PorterDuff Porter-Duff composite mode}.
31 * Create a color filter that uses the specified color and Porter-Duff mode.
33 * @param color The ARGB source color used with the specified Porter-Duff mode
40 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { argument
41 mColor = color;
47 * Returns the ARGB color used to tint the source pixels when this filter
60 * Specifies the color t
71 setColor(int color) argument
[all...]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DInvalidateActivity.java42 public void setColor(@ColorInt int color) { argument
43 mColor = color;
/frameworks/native/services/surfaceflinger/
H A DColorizer.h27 enum color { enum in class:android::Colorizer
41 void colorize(String8& out, color c) {

Completed in 560 milliseconds

12345678910