Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/frameworks/base/graphics/java/android/graphics/
DColor.java54 public static int alpha(int color) { in alpha() argument
55 return color >>> 24; in alpha()
62 public static int red(int color) { in red() argument
63 return (color >> 16) & 0xFF; in red()
70 public static int green(int color) { in green() argument
71 return (color >> 8) & 0xFF; in green()
78 public static int blue(int color) { in blue() argument
79 return color & 0xFF; in blue()
117 public static float hue(int color) { in hue() argument
118 int r = (color >> 16) & 0xFF; in hue()
[all …]
/frameworks/base/docs/html/design/style/
Dcolor.jd5 .color-row {
24 .color-row-container {
28 .color-row-container + .color-row-container {
32 .color-row li {
44 .color-row li:before {
48 .color-row li.thin {
52 .color-row li span {
59 background-color: #fff;
72 .color-row li:hover span {
77 .color-row li span:after {
[all …]
/frameworks/base/tests/RenderScriptTests/LivePreview/src/com/android/rs/livepreview/
Dyuv.rs14 static float4 crossProcess(float4 color) {
18 if (color.r < 0.5f) {
19 v = color.r;
22 v = 1.0f - color.r;
26 if (color.g < 0.5f) {
27 v = color.g;
30 v = 1.0f - color.g;
34 ncolor.b = color.b * 0.5f + 0.25f;
35 ncolor.a = color.a;
39 static uchar4 crossProcess_i(uchar4 color) {
[all …]
/frameworks/wilhelm/src/itf/
DILEDArray.c63 SLHSL color = *pColor; in ILEDArray_SetColor() local
64 if (!(0 <= color.hue && color.hue <= 360000)) in ILEDArray_SetColor()
66 if (!(0 <= color.saturation && color.saturation <= 1000)) in ILEDArray_SetColor()
68 if (!(0 <= color.lightness && color.lightness <= 1000)) in ILEDArray_SetColor()
73 thiz->mColors[index] = color; in ILEDArray_SetColor()
92 SLHSL color = thiz->mColors[index]; in ILEDArray_GetColor() local
94 *pColor = color; in ILEDArray_GetColor()
114 SLHSL *color = thiz->mColors; in ILEDArray_init() local
116 for (index = 0; index < MAX_LED_COUNT; ++index, ++color) { in ILEDArray_init()
117 color->hue = 0; // red, but per specification 1.0.1 pg. 259: "Default color is undefined." in ILEDArray_init()
[all …]
/frameworks/base/services/java/com/android/server/
DLightsService.java72 int color = brightness & 0x000000ff; in setBrightness() local
73 color = 0xff000000 | (color << 16) | (color << 8) | color; in setBrightness()
74 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); in setBrightness()
78 public void setColor(int color) { in setColor() argument
80 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); in setColor()
84 public void setFlashing(int color, int mode, int onMS, int offMS) { in setFlashing() argument
86 setLightLocked(color, mode, onMS, offMS, BRIGHTNESS_MODE_USER); in setFlashing()
95 public void pulse(int color, int onMS) { in pulse() argument
98 setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER); in pulse()
116 private void setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) { in setLightLocked() argument
[all …]
/frameworks/base/docs/html/reference/renderscript/
Ddoxygen.css72 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: black;
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DColorStateListTest.java39 mFailureColor = mResources.getColor(R.color.failColor); in setUp()
44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testStateIsInList()
46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); in testStateIsInList()
47 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); in testStateIsInList()
52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testEmptyState()
55 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testEmptyState()
60 int defaultColor = mResources.getColor(R.color.color1); in testGetColor()
61 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); in testGetColor()
66 int defaultColor = mResources.getColor(R.color.color_no_default); in testGetColorWhenListHasNoDefault()
67 assertEquals(mResources.getColor(R.color.testcolor1), defaultColor); in testGetColorWhenListHasNoDefault()
/frameworks/base/docs/html/sdk/api_diff/7/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/6/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/11/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/13/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/14/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/5/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/16/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/12/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/17/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/4/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/3/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/10/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/15/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/9/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/docs/html/sdk/api_diff/8/
Dstylesheet-jdiff.css6 .diffspechead {background-color:#eee;}
8 … {background-color:eee;border:0px;font-size:90%;font-weight:normal;padding:0px;padding-left:1px;p…
9 td.diffvalueold {color:orange;background-color:white;border:0px;font-size:80%;font-style:normal;tex…
10 td.diffvaluenew {color:green;background-color:white;border:0px;font-size:80%;font-weight:normal;tex…
11 td.diffvalue {color:444;background-color:white;border:0px;font-size:80%;font-weight:normal;text-ali…
12 td.diffspec {background-color:white;border:0px;font-size:80%;font-weight:normal;padding:1px;color:4…
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java86 char[] color = new char[8]; in getColor() local
87 color[0] = color[1] = 'F'; in getColor()
88 color[2] = color[3] = value.charAt(0); in getColor()
89 color[4] = color[5] = value.charAt(1); in getColor()
90 color[6] = color[7] = value.charAt(2); in getColor()
91 value = new String(color); in getColor()
93 char[] color = new char[8]; in getColor() local
94 color[0] = color[1] = value.charAt(0); in getColor()
95 color[2] = color[3] = value.charAt(1); in getColor()
96 color[4] = color[5] = value.charAt(2); in getColor()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java55 public ColorDrawable(int color) { in ColorDrawable() argument
57 setColor(color); in ColorDrawable()
107 public void setColor(int color) { in setColor() argument
108 if (mState.mBaseColor != color || mState.mUseColor != color) { in setColor()
110 mState.mBaseColor = mState.mUseColor = color; in setColor()
164 int color = mState.mBaseColor; in inflate() local
165 color = a.getColor(com.android.internal.R.styleable.ColorDrawable_color, color); in inflate()
166 mState.mBaseColor = mState.mUseColor = color; in inflate()
/frameworks/native/opengl/tests/hwc/
DhwcTestLib.cpp305 ColorFract color; in hwcTestParseColor() local
315 if (!in || ((chStart != '<') && (chStart != '['))) { return color; } in hwcTestParseColor()
319 if (!in) { return color; } in hwcTestParseColor()
320 if ((c1 < 0.0) || (c1 > 1.0)) { return color; } in hwcTestParseColor()
322 if (!in || (ch != ',')) { return color; } in hwcTestParseColor()
326 if (!in) { return color; } in hwcTestParseColor()
327 if ((c2 < 0.0) || (c2 > 1.0)) { return color; } in hwcTestParseColor()
329 if (!in || (ch != ',')) { return color; } in hwcTestParseColor()
333 if (!in) { return color; } in hwcTestParseColor()
334 if ((c3 < 0.0) || (c3 > 1.0)) { return color; } in hwcTestParseColor()
[all …]

12345678910>>...13