/frameworks/base/services/core/java/com/android/server/lights/ |
H A D | Light.java | 36 public abstract void setColor(int color); argument 37 public abstract void setFlashing(int color, int mode, int onMS, int offMS); argument 39 public abstract void pulse(int color, int onMS); argument
|
H A D | LightsService.java | 52 int color = brightness & 0x000000ff; 53 color = 0xff000000 | (color << 16) | (color << 8) | color; 54 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); 59 public void setColor(int color) { argument 61 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); 66 public void setFlashing(int color, int mode, int onMS, int offMS) { argument 68 setLightLocked(color, mod 78 pulse(int color, int onMS) argument 101 setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) argument 210 setLight_native(long ptr, int light, int color, int mode, int onMS, int offMS, int brightnessMode) argument [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | ILEDArray.c | 63 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/com/android/internal/util/ |
H A D | UserIcons.java | 34 R.color.user_icon_1, 35 R.color.user_icon_2, 36 R.color.user_icon_3, 37 R.color.user_icon_4, 38 R.color.user_icon_5, 39 R.color.user_icon_6, 40 R.color.user_icon_7, 41 R.color.user_icon_8 65 int colorResId = light ? R.color.user_icon_default_white : R.color [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | ColorStateListTest.java | 39 mFailureColor = mResources.getColor(R.color.failColor); 44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); 47 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); 52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 55 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); 60 int defaultColor = mResources.getColor(R.color.color1); 61 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); 66 int defaultColor = mResources.getColor(R.color.color_no_default); 67 assertEquals(mResources.getColor(R.color [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | TextAttribute.java | 34 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/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorFilterCache.java | 23 * 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/base/graphics/java/android/graphics/ |
H A D | Color.java | 26 * The Color class defines methods for creating and converting color ints. 29 * stored solely in the alpha component, and not in the color components. The 52 * Return the alpha component of a color int. This is the same as saying 53 * color >>> 24 55 public static int alpha(int color) { argument 56 return color >>> 24; 60 * Return the red component of a color int. This is the same as saying 61 * (color >> 16) & 0xFF 63 public static int red(int color) { argument 64 return (color >> 1 71 green(int color) argument 79 blue(int color) argument 118 hue(int color) argument 160 saturation(int color) argument 187 brightness(int color) argument 334 colorToHSV(int color, float hsv[]) argument 381 getHtmlColor(String color) argument [all...] |
H A D | PorterDuffColorFilter.java | 20 * A color filter that can be used to tint the source pixels using a single 21 * color and a specific {@link PorterDuff Porter-Duff composite mode}. 28 * Create a color filter that uses the specified color and Porter-Duff mode. 30 * @param color The ARGB source color used with the specified Porter-Duff mode 37 public PorterDuffColorFilter(int color, PorterDuff.Mode mode) { argument 38 mColor = color; 44 * Returns the ARGB color used to tint the source pixels when this filter 57 * Specifies the color t 68 setColor(int color) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | ColorDrawableWithDimensions.java | 25 public ColorDrawableWithDimensions(int color, int width, int height) { argument 26 super(color);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLPaint.java | 25 public void setColor(int color) { argument 26 mColor = color;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | RoundedRectHelper.java | 42 * @param color The color of the background 44 public void setRoundedRectBackground(View view, int color) { argument 45 mImpl.setRoundedRectBackground(view, color); 58 public void setRoundedRectBackground(View view, int color); argument 67 public void setRoundedRectBackground(View view, int color) { argument 71 view.setBackgroundColor(color); 85 public void setRoundedRectBackground(View view, int color) { argument 86 RoundedRectHelperApi21.setRoundedRectBackground(view, color);
|
H A D | SearchOrbView.java | 38 * Background color and icon can be customized 61 * Constructs a color set using the given color for the search orb. 64 * @param color The main search orb color. 66 public Colors(int color) { argument 67 this(color, color); 71 * Constructs a color set using the given colors for the search orb. 74 * @param color Th 77 Colors(int color, int brightColor) argument 88 Colors(int color, int brightColor, int iconColor) argument 97 public int color; field in class:SearchOrbView.Colors 112 getBrightColor(int color) argument 287 setOrbColor(int color) argument 297 setOrbColor(int color, int brightColor) argument 355 setOrbViewColor(int color) argument [all...] |
/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
H A D | ColorCutQuantizer.java | 32 * An color quantizer based on the Median-cut algorithm, but optimized for picking out distinct 35 * The color space is represented as a 3-dimensional cube with each dimension being an RGB 36 * component. The cube is then repeatedly divided until we have reduced the color space to the 37 * requested number of colors. An average color is then generated from each cube. 40 * have roughly the same population, where this quantizer divides boxes based on their color volume. 41 * This means that the color space is divided into distinct colors, rather than representative 90 // retrieved without knowing a color's index 99 for (int color : rawColors) { 100 if (!shouldIgnoreColor(color)) { 101 mColors[validColorCount++] = color; 402 shouldIgnoreColor(int color) argument 407 shouldIgnoreColor(Swatch color) argument [all...] |
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorStateDrawable.java | 25 * 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 D | ColorPickerSwatch.java | 27 * 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/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ScrimView.java | 75 int color = mScrimColor; 76 color = Color.argb((int) (Color.alpha(color) * mViewAlpha), Color.red(color), 77 Color.green(color), Color.blue(color)); 78 canvas.drawColor(color, mode); 87 public void setScrimColor(int color) { argument 88 if (color != mScrimColor) { 89 mIsEmpty = Color.alpha(color) [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Colorizer.h | 27 enum color { enum in class:android::Colorizer 41 void colorize(String8& out, color c) {
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | posterize.rs | 24 uchar4 color; 31 color = hats; 38 return color;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | TintDrawableWrapper.java | 26 * A {@link DrawableWrapper} which updates it's color filter using a {@link ColorStateList}. 60 final int color = mTintStateList.getColorForState(state, mCurrentColor); 61 if (color != mCurrentColor) { 62 if (color != Color.TRANSPARENT) { 63 setColorFilter(color, mTintMode); 67 mCurrentColor = color;
|
/frameworks/base/core/java/android/text/ |
H A D | TextPaint.java | 74 * @param color underline solid color 78 public void setUnderlineText(int color, float thickness) { argument 79 underlineColor = color;
|
/frameworks/base/core/java/android/text/style/ |
H A D | BackgroundColorSpan.java | 29 public BackgroundColorSpan(int color) { argument 30 mColor = color;
|
H A D | ForegroundColorSpan.java | 29 public ForegroundColorSpan(int color) { argument 30 mColor = color;
|
H A D | QuoteSpan.java | 37 public QuoteSpan(int color) { argument 39 mColor = color; 71 int color = p.getColor(); 79 p.setColor(color);
|
/frameworks/base/docs/html/reference/renderscript/ |
H A D | doxygen.css | 72 background-color: #EBEFF6; 89 color: #3D578C; 95 color: #4665A2; 108 background-color: #9CAFD4; 109 color: #ffffff; 114 color: #ffffff; 125 color: #4665A2; 129 color: #4665A2; 145 background-color: #FBFCFD; 155 background-color [all...] |