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

12345678

/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.h27 void set(uint32_t color) { argument
28 a = ((color >> 24) & 0xff) / 255.0f;
29 r = a * ((color >> 16) & 0xff) / 255.0f;
30 g = a * ((color >> 8) & 0xff) / 255.0f;
31 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.c64 float4 color = (float)y * 0.003921569f; local
68 color += fU * yuv_U_values;
69 color += fV * yuv_V_values;
70 color = clamp(color, 0.f, 1.f);
71 return color;
/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/native/services/surfaceflinger/
H A DColorizer.h27 enum color { enum in class:android::Colorizer
41 void colorize(String8& out, color c) {
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp96 // The pixel data is stored as combined color+alpha, 8 bits per pixel.
112 uint8_t alpha, color; local
115 color = 0x00;
119 color = FontBitmap::pixels[i] & ~1;
122 *pix++ = color;
123 *pix++ = color;
124 *pix++ = color;
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java35 // Amount (max is 255) that two channels can differ before the color is no longer "gray".
55 * COMPACT_BITMAP_SIZE^2 pixels using filtering. The hope is that any non-gray color elements
56 * will survive the squeezing process, contaminating the result with color.
104 * Classifies a color as grayscale or not. Grayscale here means "very close to a perfect
109 public static boolean isGrayscale(int color) { argument
110 int alpha = 0xFF & (color >> 24);
115 int r = 0xFF & (color >> 16);
116 int g = 0xFF & (color >> 8);
117 int b = 0xFF & color;
H A DNotificationColorUtil.java75 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
113 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
152 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
172 * @return The color inverted text.
200 // Allocate a new array so we don't change the colors in the old color state
219 private int processColor(int color) { argument
220 return Color.argb(Color.alpha(color),
221 255 - Color.red(color),
222 255 - Color.green(color),
223 255 - Color.blue(color));
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/
H A DLabelView.java107 * Sets the text color for this label
108 * @param color ARGB value for the text
110 public void setTextColor(int color) { argument
111 mTextPaint.setColor(color);

Completed in 551 milliseconds

12345678