/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/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/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...] |
/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/base/libs/hwui/ |
H A D | Vertex.h | 76 * Simple structure to describe a vertex with a position, texture UV and ARGB color. 79 float color[4]; member in struct:android::uirenderer::ColorTextureVertex 82 float u, float v, int color) { 85 const float a = ((color >> 24) & 0xff) / 255.0f; 86 vertex[0].color[0] = a * ((color >> 16) & 0xff) / 255.0f; 87 vertex[0].color[1] = a * ((color >> 8) & 0xff) / 255.0f; 88 vertex[0].color[2] = a * ((color ) 81 set(ColorTextureVertex* vertex, float x, float y, float u, float v, int color) argument [all...] |
H A D | SkiaColorFilter.cpp | 23 // Base color filter 65 // Lighting color filter 92 // Blend color filter 95 SkiaBlendFilter::SkiaBlendFilter(SkColorFilter* skFilter, int color, SkXfermode::Mode mode): argument 97 const int alpha = (color >> 24) & 0xFF; 99 mR = mA * ((color >> 16) & 0xFF) / 255.0f; 100 mG = mA * ((color >> 8) & 0xFF) / 255.0f; 101 mB = mA * ((color ) & 0xFF) / 255.0f;
|
/frameworks/base/services/java/com/android/server/ |
H A D | LightsService.java | 72 int color = brightness & 0x000000ff; 73 color = 0xff000000 | (color << 16) | (color << 8) | color; 74 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); 78 public void setColor(int color) { argument 80 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); 84 public void setFlashing(int color, int mode, int onMS, int offMS) { argument 86 setLightLocked(color, mod 95 pulse(int color, int onMS) argument 116 setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) argument 207 setLight_native(int ptr, int light, int color, int mode, int onMS, int offMS, int brightnessMode) argument [all...] |
/frameworks/base/media/java/android/media/videoeditor/ |
H A D | EffectColor.java | 21 * This class allows to apply color effect on a media item. 27 * Change the video frame color to the RGB color value provided 31 * Change the video frame color to a gradation from RGB color (at the top of 36 * Change the video frame color to sepia 40 * Invert the video frame color 48 * Change the video frame color to the RGB color value GREEN 52 * Change the video frame color t 93 EffectColor(MediaItem mediaItem, String effectId, long startTimeMs, long durationMs, int type, int 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 int getPressedColor(int color) { argument 63 Color.colorToHSV(color, hsv);
|
H A D | ColorPickerSwatch.java | 30 * Creates a circular swatch of a specified color. Adds a checkmark if marked as checked. 39 * Interface for a callback when a color square is selected. 44 * Called when a specific color square has been selected. 46 public void onColorSelected(int color); argument 49 public ColorPickerSwatch(Context context, int color, boolean checked, argument 52 mColor = color; 58 setColor(color); 63 protected void setColor(int color) { argument 66 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color));
|
H A D | ColorPickerDialog.java | 32 * select a specific color swatch, which invokes a listener. 124 public void onColorSelected(int color) { argument 126 mListener.onColorSelected(color); 132 listener.onColorSelected(color); 135 if (color != mSelectedColor) { 136 mSelectedColor = color; 137 // Redraw palette to show checkmark on newly selected color before dismissing. 174 public void setSelectedColor(int color) { argument 175 if (mSelectedColor != color) { 176 mSelectedColor = 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/base/graphics/java/android/graphics/drawable/ |
H A D | ColorDrawable.java | 30 * A specialized Drawable that fills the Canvas with a specified color. 33 * <p>It can be defined in an XML file with the <code><color></code> element.</p> 51 * Creates a new ColorDrawable with the specified color. 53 * @param color The color to draw. 55 public ColorDrawable(int color) { argument 57 setColor(color); 93 * Gets the drawable's color value. 95 * @return int The color to draw. 102 * Sets the drawable's color valu 107 setColor(int color) argument [all...] |
/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...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 63 * Returns the color value represented by the given string value 64 * @param value the color value 65 * @return the color as an int 86 char[] color = new char[8]; 87 color[0] = color[1] = 'F'; 88 color[2] = color[3] = value.charAt(0); 89 color[4] = color[ [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | CircleView.java | 51 mCircleColor = res.getColor(R.color.white); 52 mDotColor = res.getColor(R.color.numbers_text_color); 82 mCircleColor = res.getColor(R.color.dark_gray); 83 mDotColor = res.getColor(R.color.light_gray); 85 mCircleColor = res.getColor(R.color.white); 86 mDotColor = res.getColor(R.color.numbers_text_color);
|
/frameworks/rs/driver/ |
H A D | rsdFrameBufferObj.h | 30 void setColorTarget(DrvAllocation *color, uint32_t index) { argument 31 mColorTargets[index] = color;
|
/frameworks/native/opengl/libagl/ |
H A D | vertex.cpp | 36 c->current.color.r = 0x10000; 37 c->current.color.g = 0x10000; 38 c->current.color.b = 0x10000; 39 c->current.color.a = 0x10000; 190 c->current.color.r = gglFloatToFixed(r); 191 c->currentColorClamped.r = gglClampx(c->current.color.r); 192 c->current.color.g = gglFloatToFixed(g); 193 c->currentColorClamped.g = gglClampx(c->current.color.g); 194 c->current.color.b = gglFloatToFixed(b); 195 c->currentColorClamped.b = gglClampx(c->current.color [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | ColorStateList.java | 40 * "color" subdirectory directory of an application's resource directory. The XML file contains 45 * <item android:state_focused="true" android:color="@color/testcolor1"/> 46 * <item android:state_pressed="true" android:state_enabled="false" android:color="@color/testcolor2" /> 47 * <item android:state_enabled="false" android:color="@color/testcolor3" /> 48 * <item android:color="@color/testcolor5"/> 52 * This defines a set of state spec / color pair 96 valueOf(int color) argument [all...] |