/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 | 25 * The Color class defines methods for creating and converting color ints. 28 * stored solely in the alpha component, and not in the color components. The 51 * Return the alpha component of a color int. This is the same as saying 52 * color >>> 24 54 public static int alpha(int color) { argument 55 return color >>> 24; 59 * Return the red component of a color int. This is the same as saying 60 * (color >> 16) & 0xFF 62 public static int red(int color) { argument 63 return (color >> 1 70 green(int color) argument 78 blue(int color) argument 117 hue(int color) argument 159 saturation(int color) argument 186 brightness(int color) argument 331 colorToHSV(int color, float hsv[]) argument [all...] |
/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/compile/libbcc/runtime/www/ |
H A D | menu.css | 29 background-color: rgb(192,192,192); 35 background-color: rgb(235,235,235); 38 color:rgb(100,50,100);
|
/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/rs/driver/ |
H A D | rsdFrameBufferObj.h | 30 void setColorTarget(DrvAllocation *color, uint32_t index) { argument 31 mColorTargets[index] = color;
|
H A D | rsdFrameBuffer.cpp | 49 // Now attach color targets 51 DrvAllocation *color = NULL; local 53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv; 55 if (color->uploadDeferred) { 60 fbo->setColorTarget(color, i);
|
/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/libs/hwui/ |
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/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...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 299 // Parse fractional color of form [0.##, 0.##, 0.##] 305 ColorFract color; local 315 if (!in || ((chStart != '<') && (chStart != '['))) { return color; } 319 if (!in) { return color; } 320 if ((c1 < 0.0) || (c1 > 1.0)) { return color; } 322 if (!in || (ch != ',')) { return color; } 326 if (!in) { return color; } 327 if ((c2 < 0.0) || (c2 > 1.0)) { return color; } 329 if (!in || (ch != ',')) { return color; } 333 if (!in) { return color; } 543 hwcTestColor2Pixel(uint32_t format, ColorFract color, float alpha) argument 655 hwcTestFillColor(GraphicBuffer *gBuf, ColorFract color, float alpha) argument 795 hwcTestColorConvert(uint32_t fromFormat, uint32_t toFormat, ColorFract& color) argument [all...] |
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
H A D | PlaybackView.java | 57 if (colorId == R.color.ready_tile 58 || colorId == R.color.unready_tile) { 74 public void setColor(int color) { argument 75 getPaint().setColor(color); 167 colorId = R.color.ready_tile; 170 colorId = R.color.unready_tile; 188 R.color.inval_region_start); 190 "color", 191 getResources().getColor(R.color.inval_region_start), 192 getResources().getColor(R.color [all...] |
/frameworks/base/core/java/android/os/ |
H A D | IPowerManager.aidl | 53 void setAttentionLight(boolean on, int color);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | BitmapMutateActivity.java | 93 int color = 0xff000000; 95 color |= (int) ((0xff * ((i + mOffset) % mSlice) / (float) mSlice)) << 98 mPixels[y * width + x] = color;
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | DimSurface.java | 61 void show(int dw, int dh, int layer, int color) { argument 81 } else if (mLastDimWidth != dw || mLastDimHeight != dh || mDimColor != color 88 mDimColor = color; 91 mDimSurface.setAlpha(((color>>24)&0xff)/255.0f);
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | LabelView.java | 107 * 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);
|