Home
last modified time | relevance | path

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

1234567

/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/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/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/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/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/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/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/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/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java87 char[] color = new char[8]; in getColor() local
88 color[0] = color[1] = 'F'; in getColor()
89 color[2] = color[3] = value.charAt(0); in getColor()
90 color[4] = color[5] = value.charAt(1); in getColor()
91 color[6] = color[7] = value.charAt(2); in getColor()
92 value = new String(color); in getColor()
94 char[] color = new char[8]; in getColor() local
95 color[0] = color[1] = value.charAt(0); in getColor()
96 color[2] = color[3] = value.charAt(1); in getColor()
97 color[4] = color[5] = value.charAt(2); in getColor()
[all …]
/frameworks/base/opengl/libagl/
Dvertex.cpp36 c->current.color.r = 0x10000; in ogles_init_vertex()
37 c->current.color.g = 0x10000; in ogles_init_vertex()
38 c->current.color.b = 0x10000; in ogles_init_vertex()
39 c->current.color.a = 0x10000; in ogles_init_vertex()
190 c->current.color.r = gglFloatToFixed(r); in glColor4f()
191 c->currentColorClamped.r = gglClampx(c->current.color.r); in glColor4f()
192 c->current.color.g = gglFloatToFixed(g); in glColor4f()
193 c->currentColorClamped.g = gglClampx(c->current.color.g); in glColor4f()
194 c->current.color.b = gglFloatToFixed(b); in glColor4f()
195 c->currentColorClamped.b = gglClampx(c->current.color.b); in glColor4f()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
DTextAttribute.java34 public TextColor color; field in TextAttribute
38 boolean strikeThrough, TextColor color) { in TextAttribute() argument
47 this.color = color; in TextAttribute()
/frameworks/base/core/java/android/content/res/
DColorStateList.java96 public static ColorStateList valueOf(int color) { in valueOf() argument
99 WeakReference<ColorStateList> ref = sCache.get(color); in valueOf()
106 csl = new ColorStateList(EMPTY, new int[] { color }); in valueOf()
107 sCache.put(color, new WeakReference<ColorStateList>(csl)); in valueOf()
198 int color = 0xffff0000; in inflate() local
208 if (stateResId == com.android.internal.R.attr.color) { in inflate()
212 color = attrs.getAttributeIntValue(i, color); in inflate()
224 color = r.getColor(colorRes); in inflate()
232 mDefaultColor = color; in inflate()
248 colorList[listSize] = color; in inflate()
/frameworks/base/graphics/java/android/graphics/drawable/
DColorDrawable.java53 public ColorDrawable(int color) { in ColorDrawable() argument
55 mState.mBaseColor = mState.mUseColor = color; in ColorDrawable()
118 int color = mState.mBaseColor; in inflate() local
119 color = a.getColor(com.android.internal.R.styleable.ColorDrawable_color, color); in inflate()
120 mState.mBaseColor = mState.mUseColor = color; in inflate()
/frameworks/base/docs/html/guide/topics/resources/
Dcolor-list-resource.jd17 that you can apply as a color, but will actually change colors, depending on the state of
20 or niether) and, using a color state list, you can provide a different color during each state.</p>
22 <p>You can describe the state list in an XML file. Each color is defined in an {@code
30 <p class="note"><strong>Note:</strong> If you want to provide a static color resource, use a
36 <dd><code>res/color/<em>filename</em>.xml</code><br/>
44 In Java: <code>R.color.<em>filename</em></code><br/>
45 In XML: <code>@[<em>package</em>:]color/<em>filename</em></code>
54 android:color="<em>hex_color</em>"
81 <dd>Defines a color to use during certain states, as described by its attributes. Must be a
85 <dt><code>android:color</code></dt>
[all …]
/frameworks/base/core/java/android/text/style/
DQuoteSpan.java37 public QuoteSpan(int color) { in QuoteSpan() argument
39 mColor = color; in QuoteSpan()
71 int color = p.getColor(); in drawLeadingMargin() local
79 p.setColor(color); in drawLeadingMargin()
DBackgroundColorSpan.java29 public BackgroundColorSpan(int color) { in BackgroundColorSpan() argument
30 mColor = color; in BackgroundColorSpan()
DForegroundColorSpan.java29 public ForegroundColorSpan(int color) { in ForegroundColorSpan() argument
30 mColor = color; in ForegroundColorSpan()
/frameworks/base/libs/rs/java/Fountain/res/raw/
Dfountain2.rs23 unsigned int color;
38 int color = ((int)(Control->r * 255.f)) |
48 np->color = color;
Dfountain.c17 int color = ((int)(Control->r * 255.f)) | in main() local
27 np->color = color; in main()
/frameworks/base/docs/html/resources/articles/
Dlistview-backgrounds.jd45 introduced an optimization called the "cache color hint." The cache color hint
46 is an RGB color set by default to the window's background color, that is #191919
51 the cache color hint value and this is exactly what you see on the image above,
63 framework reuses the cache color hint. When this hint is set, the framework
68 required. Also, since the default cache color hint is <code>#191919</code>, you
71 <p>To fix this issue, all you have to do is either disable the cache color hint
72 optimization, if you use a non-solid color background, or set the hint to the
73 appropriate solid color value. You can do this from code (see
76 optimization, simply use the transparent color <code>#00000000</code>. The
83 background. The cache color hint feature is interesting because it
/frameworks/base/test-runner/src/android/test/
DTestRunnerView.java28 void setItemColorAt(int position, int color); in setItemColorAt() argument
38 void setProgressBarColor(int color); in setProgressBarColor() argument
/frameworks/base/libs/rs/
DrsProgramVertex.cpp208 glVertexAttrib4f(1, state->color[0], state->color[1], state->color[2], state->color[3]); in setupGL2()
380 color[0] = 1.f; in init()
381 color[1] = 1.f; in init()
382 color[2] = 1.f; in init()
383 color[3] = 1.f; in init()

1234567