/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 55 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/support/v7/palette/src/android/support/v7/graphics/ |
D | ColorCutQuantizer.java | 99 for (int color : rawColors) { in ColorCutQuantizer() 100 if (!shouldIgnoreColor(color)) { in ColorCutQuantizer() 101 mColors[validColorCount++] = color; in ColorCutQuantizer() 108 for (final int color : mColors) { in ColorCutQuantizer() 109 mQuantizedColors.add(new Swatch(color, mColorPopulations.get(color))); in ColorCutQuantizer() 168 Swatch color = vbox.getAverageColor(); in generateAverageColors() local 169 if (!shouldIgnoreColor(color)) { in generateAverageColors() 172 colors.add(color); in generateAverageColors() 218 final int color = mColors[i]; in fitBox() local 219 final int r = Color.red(color); in fitBox() [all …]
|
/frameworks/base/docs/html/design/style/ |
D | color.jd | 5 .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/ |
D | yuv.rs | 14 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/ |
D | SearchOrbView.java | 66 public Colors(int color) { in Colors() argument 67 this(color, color); in Colors() 77 public Colors(int color, int brightColor) { in Colors() argument 78 this(color, brightColor, Color.TRANSPARENT); in Colors() 88 public Colors(int color, int brightColor, int iconColor) { in Colors() argument 89 this.color = color; in Colors() 90 this.brightColor = brightColor == color ? getBrightColor(color) : brightColor; in Colors() 97 public int color; field in SearchOrbView.Colors 112 public static int getBrightColor(int color) { in getBrightColor() argument 114 int red = (int)(Color.red(color) * (1 - sBrightnessAlpha) + brightnessValue); in getBrightColor() [all …]
|
/frameworks/wilhelm/src/itf/ |
D | ILEDArray.c | 63 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/core/java/com/android/server/lights/ |
D | LightsService.java | 52 int color = brightness & 0x000000ff; in setBrightness() local 53 color = 0xff000000 | (color << 16) | (color << 8) | color; in setBrightness() 54 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); in setBrightness() 59 public void setColor(int color) { in setColor() argument 61 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); in setColor() 66 public void setFlashing(int color, int mode, int onMS, int offMS) { in setFlashing() argument 68 setLightLocked(color, mode, onMS, offMS, BRIGHTNESS_MODE_USER); in setFlashing() 78 public void pulse(int color, int onMS) { in pulse() argument 81 setLightLocked(color, LIGHT_FLASH_HARDWARE, onMS, 1000, BRIGHTNESS_MODE_USER); in pulse() 101 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/ |
D | ColorStateListTest.java | 39 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/core/java/com/android/internal/util/ |
D | UserIcons.java | 34 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 65 int colorResId = light ? R.color.user_icon_default_white : R.color.user_icon_default_gray; in getDefaultUserIcon()
|
/frameworks/base/docs/html/reference/renderscript/ |
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: black; [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
D | ColorFilterCache.java | 40 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/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | ScrimView.java | 75 int color = mScrimColor; in onDraw() local 76 color = Color.argb((int) (Color.alpha(color) * mViewAlpha), Color.red(color), in onDraw() 77 Color.green(color), Color.blue(color)); in onDraw() 78 canvas.drawColor(color, mode); in onDraw() 87 public void setScrimColor(int color) { in setScrimColor() argument 88 if (color != mScrimColor) { in setScrimColor() 89 mIsEmpty = Color.alpha(color) == 0; in setScrimColor() 90 mScrimColor = color; in setScrimColor()
|
/frameworks/base/docs/html/sdk/api_diff/10/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/20/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/ |
D | stylesheet-jdiff.css | 6 .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/preview-21/ |
D | stylesheet-jdiff.css | 6 .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…
|