Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
DColorCutQuantizer.java90 for (int color = 0; color < hist.length; color++) { in ColorCutQuantizer()
91 if (hist[color] > 0 && shouldIgnoreColor(color)) { in ColorCutQuantizer()
93 hist[color] = 0; in ColorCutQuantizer()
95 if (hist[color] > 0) { in ColorCutQuantizer()
108 for (int color = 0; color < hist.length; color++) { in ColorCutQuantizer()
109 if (hist[color] > 0) { in ColorCutQuantizer()
110 colors[distinctColorIndex++] = color; in ColorCutQuantizer()
121 for (int color : colors) { in ColorCutQuantizer()
122 mQuantizedColors.add(new Swatch(approximateToRgb888(color), hist[color])); in ColorCutQuantizer()
256 final int color = colors[i]; in fitBox() local
[all …]
/frameworks/base/graphics/java/android/graphics/
DColor.java57 public static int alpha(int color) { in alpha() argument
58 return color >>> 24; in alpha()
65 public static int red(int color) { in red() argument
66 return (color >> 16) & 0xFF; in red()
73 public static int green(int color) { in green() argument
74 return (color >> 8) & 0xFF; in green()
81 public static int blue(int color) { in blue() argument
82 return color & 0xFF; in blue()
123 public static float luminance(@ColorInt int color) { in luminance() argument
124 double red = Color.red(color) / 255.0; in luminance()
[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/support/v17/leanback/src/android/support/v17/leanback/widget/
DSearchOrbView.java69 public Colors(@ColorInt int color) { in Colors() argument
70 this(color, color); in Colors()
80 public Colors(@ColorInt int color, @ColorInt int brightColor) { in Colors() argument
81 this(color, brightColor, Color.TRANSPARENT); in Colors()
91 public Colors(@ColorInt int color, @ColorInt int brightColor, @ColorInt int iconColor) { in Colors() argument
92 this.color = color; in Colors()
93 this.brightColor = brightColor == color ? getBrightColor(color) : brightColor; in Colors()
101 public int color; field in SearchOrbView.Colors
118 public static int getBrightColor(int color) { in getBrightColor() argument
120 int red = (int)(Color.red(color) * (1 - sBrightnessAlpha) + brightnessValue); in getBrightColor()
[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/core/java/com/android/internal/util/
DNotificationColorUtil.java225 private int processColor(int color) { in processColor() argument
226 return Color.argb(Color.alpha(color), in processColor()
227 255 - Color.red(color), in processColor()
228 255 - Color.green(color), in processColor()
229 255 - Color.blue(color)); in processColor()
242 private static int findContrastColor(int color, int other, boolean findFg, double minRatio) { in findContrastColor() argument
243 int fg = findFg ? color : other; in findContrastColor()
244 int bg = findFg ? other : color; in findContrastColor()
246 return color; in findContrastColor()
274 private static int ensureLargeTextContrast(int color, int bg) { in ensureLargeTextContrast() argument
[all …]
DUserIcons.java34 R.color.user_icon_1,
35 R.color.user_icon_2,
36 R.color.user_icon_3,
37 R.color.user_icon_4,
38 R.color.user_icon_5,
39 R.color.user_icon_6,
40 R.color.user_icon_7,
41 R.color.user_icon_8
68 int colorResId = light ? R.color.user_icon_default_white : R.color.user_icon_default_gray; in getDefaultUserIcon()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java55 int color = brightness & 0x000000ff; in setBrightness() local
56 color = 0xff000000 | (color << 16) | (color << 8) | color; in setBrightness()
57 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); in setBrightness()
62 public void setColor(int color) { in setColor() argument
64 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); in setColor()
69 public void setFlashing(int color, int mode, int onMS, int offMS) { in setFlashing() argument
71 setLightLocked(color, mode, onMS, offMS, BRIGHTNESS_MODE_USER); in setFlashing()
81 public void pulse(int color, int onMS) { in pulse() argument
87 setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER); in pulse()
121 private void setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) { in setLightLocked() argument
[all …]
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Dindex.jd8 <tr class='alt-color api apilevel-1'>
16 <tr class='alt-color api apilevel-1'>
24 <tr class='alt-color api apilevel-1'>
32 <tr class='alt-color api apilevel-1'>
40 <tr class='alt-color api apilevel-1'>
48 <tr class='alt-color api apilevel-1'>
56 <tr class='alt-color api apilevel-1'>
64 <tr class='alt-color api apilevel-1'>
72 <tr class='alt-color api apilevel-1'>
80 <tr class='alt-color api apilevel-1'>
[all …]
Doverview.jd109 <tr class='alt-color api apilevel-1'>
117 <tr class='alt-color api apilevel-1'>
125 <tr class='alt-color api apilevel-1'>
133 <tr class='alt-color api apilevel-1'>
141 <tr class='alt-color api apilevel-1'>
149 <tr class='alt-color api apilevel-1'>
157 <tr class='alt-color api apilevel-1'>
165 <tr class='alt-color api apilevel-1'>
173 <tr class='alt-color api apilevel-1'>
181 <tr class='alt-color api apilevel-1'>
[all …]
/frameworks/base/docs/html/ndk/reference/
Ddoxygen.css22 color: #585858;
96 background-color: #F1F1F1;
113 color: #646464;
119 color: #747474;
132 background-color: #B8B8B8;
133 color: #ffffff;
138 color: #ffffff;
149 color: #4665A2;
153 color: #4665A2;
164 background-color: #FBFCFD;
[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/support/v17/leanback/src/android/support/v17/leanback/graphics/
DColorFilterCache.java40 public static ColorFilterCache getColorFilterCache(int color) { in getColorFilterCache() argument
41 final int r = Color.red(color); in getColorFilterCache()
42 final int g = Color.green(color); in getColorFilterCache()
43 final int b = Color.blue(color); in getColorFilterCache()
44 color = Color.rgb(r, g, b); in getColorFilterCache()
45 ColorFilterCache filters = sColorToFiltersMap.get(color); in getColorFilterCache()
48 sColorToFiltersMap.put(color, filters); in getColorFilterCache()
56 int color = Color.argb(i, r, g, b); in ColorFilterCache() local
57 mFilters[i] = new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_ATOP); in ColorFilterCache()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DAppCompatBaseViewTest.java75 @ColorInt int color, int allowedComponentVariance) { in verifyBackgroundIsColoredAs() argument
79 color, allowedComponentVariance, false); in verifyBackgroundIsColoredAs()
113 mResources, R.color.color_state_list_sand, null); in testBackgroundTintingWithNoBackground()
157 mResources, R.color.color_state_list_lilac, null); in testBackgroundTintingViewCompatWithNoBackground()
182 mResources, R.color.lilac_default, null); in testBackgroundTintingAcrossStateChange()
184 mResources, R.color.lilac_disabled, null); in testBackgroundTintingAcrossStateChange()
186 mResources, R.color.sand_default, null); in testBackgroundTintingAcrossStateChange()
188 mResources, R.color.sand_disabled, null); in testBackgroundTintingAcrossStateChange()
190 mResources, R.color.ocean_default, null); in testBackgroundTintingAcrossStateChange()
192 mResources, R.color.ocean_disabled, null); in testBackgroundTintingAcrossStateChange()
[all …]
/frameworks/base/core/java/android/widget/
DCalendarView.java162 public void setSelectedWeekBackgroundColor(@ColorInt int color) { in setSelectedWeekBackgroundColor() argument
163 mDelegate.setSelectedWeekBackgroundColor(color); in setSelectedWeekBackgroundColor()
189 public void setFocusedMonthDateColor(@ColorInt int color) { in setFocusedMonthDateColor() argument
190 mDelegate.setFocusedMonthDateColor(color); in setFocusedMonthDateColor()
216 public void setUnfocusedMonthDateColor(@ColorInt int color) { in setUnfocusedMonthDateColor() argument
217 mDelegate.setUnfocusedMonthDateColor(color); in setUnfocusedMonthDateColor()
243 public void setWeekNumberColor(@ColorInt int color) { in setWeekNumberColor() argument
244 mDelegate.setWeekNumberColor(color); in setWeekNumberColor()
270 public void setWeekSeparatorLineColor(@ColorInt int color) { in setWeekSeparatorLineColor() argument
271 mDelegate.setWeekSeparatorLineColor(color); in setWeekSeparatorLineColor()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScrimView.java82 int color = getScrimColorWithAlpha(); in onDraw() local
84 canvas.drawColor(color, mode); in onDraw()
86 mPaint.setColor(color); in onDraw()
109 int color = mScrimColor; in getScrimColorWithAlpha() local
110 color = Color.argb((int) (Color.alpha(color) * mViewAlpha), Color.red(color), in getScrimColorWithAlpha()
111 Color.green(color), Color.blue(color)); in getScrimColorWithAlpha()
112 return color; in getScrimColorWithAlpha()
122 public void setScrimColor(int color) { in setScrimColor() argument
123 if (color != mScrimColor) { in setScrimColor()
124 mIsEmpty = Color.alpha(color) == 0; in setScrimColor()
[all …]
/frameworks/base/docs/html/sdk/support_api_diff/22.2.1/
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/support_api_diff/23/
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/support_api_diff/23.1.0/
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/21/
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/24/
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/support_api_diff/23.2.0/
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/22/
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/support_api_diff/22.2.0/
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…

12345678910>>...31