Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/graphics/java/android/graphics/
DColor.java55 public static int alpha(int color) { in alpha() argument
56 return color >>> 24; in alpha()
63 public static int red(int color) { in red() argument
64 return (color >> 16) & 0xFF; in red()
71 public static int green(int color) { in green() argument
72 return (color >> 8) & 0xFF; in green()
79 public static int blue(int color) { in blue() argument
80 return color & 0xFF; in blue()
118 public static float hue(int color) { in hue() argument
119 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/rs/java/tests/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/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/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/libs/hwui/
DVertex.h79 float color[4]; member
82 float u, float v, int color) { in set()
85 const float a = ((color >> 24) & 0xff) / 255.0f; in set()
86 vertex[0].color[0] = a * ((color >> 16) & 0xff) / 255.0f; in set()
87 vertex[0].color[1] = a * ((color >> 8) & 0xff) / 255.0f; in set()
88 vertex[0].color[2] = a * ((color ) & 0xff) / 255.0f; in set()
89 vertex[0].color[3] = a; in set()
/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/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/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/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/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/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/19/
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/18/
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/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/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/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/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/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/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/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…

12345678910>>...14