/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | Converters.java | 24 public static ColorDrawable convertColorToDrawable(int color) { argument 25 return new ColorDrawable(color); 29 public static ColorStateList convertColorToColorStateList(int color) { argument 30 return ColorStateList.valueOf(color);
|
/frameworks/base/services/core/java/com/android/server/lights/ |
H A D | Light.java | 36 public abstract void setColor(int color); argument 37 public abstract void setFlashing(int color, int mode, int onMS, int offMS); argument 39 public abstract void pulse(int color, int onMS); argument
|
H A D | LightsService.java | 47 int color = brightness & 0x000000ff; 48 color = 0xff000000 | (color << 16) | (color << 8) | color; 49 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, brightnessMode); 54 public void setColor(int color) { argument 56 setLightLocked(color, LIGHT_FLASH_NONE, 0, 0, 0); 61 public void setFlashing(int color, int mode, int onMS, int offMS) { argument 63 setLightLocked(color, mod 73 pulse(int color, int onMS) argument 96 setLightLocked(int color, int mode, int onMS, int offMS, int brightnessMode) argument 165 setLight_native(long ptr, int light, int color, int mode, int onMS, int offMS, int brightnessMode) argument [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | ILEDArray.c | 63 SLHSL color = *pColor; local 64 if (!(0 <= color.hue && color.hue <= 360000)) 66 if (!(0 <= color.saturation && color.saturation <= 1000)) 68 if (!(0 <= color.lightness && color.lightness <= 1000)) 73 thiz->mColors[index] = color; 92 SLHSL color = thiz->mColors[index]; local 94 *pColor = color; 114 SLHSL *color = thiz->mColors; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | FloatColor.h | 27 void set(uint32_t color) { argument 28 a = ((color >> 24) & 0xff) / 255.0f; 29 r = a * ((color >> 16) & 0xff) / 255.0f; 30 g = a * ((color >> 8) & 0xff) / 255.0f; 31 b = a * ((color ) & 0xff) / 255.0f;
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | ColorStateListTest.java | 39 mFailureColor = mResources.getColor(R.color.failColor); 44 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 46 int focusColor = colorStateList.getColorForState(focusedState, R.color.failColor); 47 assertEquals(mResources.getColor(R.color.testcolor1), focusColor); 52 ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); 55 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); 60 int defaultColor = mResources.getColor(R.color.color1); 61 assertEquals(mResources.getColor(R.color.testcolor2), defaultColor); 66 int defaultColor = mResources.getColor(R.color.color_no_default); 67 assertEquals(mResources.getColor(R.color [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
H A D | ColorCutQuantizer.java | 32 * An color quantizer based on the Median-cut algorithm, but optimized for picking out distinct 35 * The color space is represented as a 3-dimensional cube with each dimension being an RGB 36 * component. The cube is then repeatedly divided until we have reduced the color space to the 37 * requested number of colors. An average color is then generated from each cube. 40 * have roughly the same population, where this quantizer divides boxes based on their color volume. 41 * This means that the color space is divided into distinct colors, rather than representative 90 for (int color = 0; color < hist.length; color++) { 91 if (hist[color] > 434 shouldIgnoreColor(Swatch color) argument 462 quantizeFromRgb888(int color) argument 478 approximateToRgb888(int color) argument 485 quantizedRed(int color) argument 492 quantizedGreen(int color) argument 499 quantizedBlue(int color) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | TextAttribute.java | 34 public TextColor color; field in class:TextAttribute 38 boolean strikeThrough, TextColor color) { 47 this.color = color; 36 TextAttribute(int start, int length, TextAlignment align, FontSize size, boolean bold, boolean italic, boolean underlined, boolean strikeThrough, TextColor color) argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorFilterCache.java | 23 * Cache of {@link ColorFilter}s for a given color at different alpha levels. 33 * Get a ColorDimmer for a given color. Only the RGB values are used; the 34 * alpha channel is ignored in color. Subsequent calls to this method 35 * with the same color value will return the same cache. 37 * @param color The color to use for the color filters. 38 * @return A cache of ColorFilters at different alpha levels for the color. 40 public static ColorFilterCache getColorFilterCache(int color) { argument 41 final int r = Color.red(color); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Color.java | 28 * The Color class defines methods for creating and converting color ints. 31 * stored solely in the alpha component, and not in the color components. The 54 * Return the alpha component of a color int. This is the same as saying 55 * color >>> 24 58 public static int alpha(int color) { argument 59 return color >>> 24; 63 * Return the red component of a color int. This is the same as saying 64 * (color >> 16) & 0xFF 67 public static int red(int color) { argument 68 return (color >> 1 76 green(int color) argument 85 blue(int color) argument 126 hue(@olorInt int color) argument 168 saturation(@olorInt int color) argument 195 brightness(@olorInt int color) argument 346 colorToHSV(@olorInt int color, @Size(3) float hsv[]) argument 394 getHtmlColor(String color) argument [all...] |
H A D | PorterDuffColorFilter.java | 23 * A color filter that can be used to tint the source pixels using a single 24 * color and a specific {@link PorterDuff Porter-Duff composite mode}. 31 * Create a color filter that uses the specified color and Porter-Duff mode. 33 * @param color The ARGB source color used with the specified Porter-Duff mode 40 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { argument 41 mColor = color; 47 * Returns the ARGB color used to tint the source pixels when this filter 60 * Specifies the color t 71 setColor(int color) argument [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLPaint.java | 25 public void setColor(int color) { argument 26 mColor = color;
|
/frameworks/support/customtabs/tests/src/android/support/customtabs/ |
H A D | CustomTabsIntentTest.java | 41 int color = Color.RED; 42 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; 44 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); 48 int colorId = android.R.color.background_dark; 49 int color = getContext().getResources().getColor(colorId); 51 assertFalse("The color should not be a resource ID", 52 color == intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0)); 53 intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent; 54 assertEquals(color, intent.getIntExtra(CustomTabsIntent.EXTRA_TOOLBAR_COLOR, 0));
|
/frameworks/base/core/java/com/android/internal/util/ |
H A 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 68 int colorResId = light ? R.color.user_icon_default_white : R.color [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SearchOrbView.java | 39 * The background color and icon can be customized. 62 * Constructs a color set using the given color for the search orb. 65 * @param color The main search orb color. 67 public Colors(@ColorInt int color) { argument 68 this(color, color); 72 * Constructs a color set using the given colors for the search orb. 75 * @param color Th 78 Colors(@olorInt int color, @ColorInt int brightColor) argument 89 Colors(@olorInt int color, @ColorInt int brightColor, @ColorInt int iconColor) argument 99 public int color; field in class:SearchOrbView.Colors 116 getBrightColor(int color) argument 291 setOrbColor(int color) argument 301 setOrbColor(@olorInt int color, @ColorInt int brightColor) argument 360 setOrbViewColor(int color) argument [all...] |
H A D | SpeechOrbView.java | 35 mNotListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_not_recording), 36 resources.getColor(R.color.lb_speech_orb_not_recording_pulsed), 37 resources.getColor(R.color.lb_speech_orb_not_recording_icon)); 38 mListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_recording), 39 resources.getColor(R.color.lb_speech_orb_recording),
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorStateDrawable.java | 25 * A drawable which sets its color filter to a color specified by the user, and changes to a 26 * slightly darker color when pressed or focused. 34 public ColorStateDrawable(Drawable[] layers, int color) { argument 36 mColor = color; 59 * Given a particular color, adjusts its value by a multiplier. 61 private static int getPressedColor(int color) { argument 63 Color.colorToHSV(color, hsv);
|
H A D | ColorPickerSwatch.java | 27 * Creates a circular swatch of a specified color. Adds a checkmark if marked as checked. 36 * Interface for a callback when a color square is selected. 41 * Called when a specific color square has been selected. 43 public void onColorSelected(int color); argument 46 public ColorPickerSwatch(Context context, int color, boolean checked, argument 49 mColor = color; 55 setColor(color); 60 protected void setColor(int color) { argument 63 mSwatchImage.setImageDrawable(new ColorStateDrawable(colorDrawable, color));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ScrimView.java | 75 int color = mScrimColor; 76 color = Color.argb((int) (Color.alpha(color) * mViewAlpha), Color.red(color), 77 Color.green(color), Color.blue(color)); 78 canvas.drawColor(color, mode); 87 public void setScrimColor(int color) { argument 88 if (color != mScrimColor) { 89 mIsEmpty = Color.alpha(color) [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | Colorizer.h | 27 enum color { enum in class:android::Colorizer 41 void colorize(String8& out, color c) {
|
/frameworks/rs/driver/runtime/ |
H A D | rs_convert.c | 64 float4 color = (float)y * 0.003921569f; local 68 color += fU * yuv_U_values; 69 color += fV * yuv_V_values; 70 color = clamp(color, 0.f, 1.f); 71 return color;
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
H A D | posterize.rs | 24 uchar4 color; 31 color = hats; 38 return color;
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | posterize.rs | 24 uchar4 color; 31 color = hats; 38 return color;
|
/frameworks/base/core/java/android/text/style/ |
H A D | QuoteSpan.java | 38 public QuoteSpan(@ColorInt int color) { argument 40 mColor = color; 83 int color = p.getColor(); 91 p.setColor(color);
|
/frameworks/base/core/java/android/widget/ |
H A D | CalendarView.java | 144 * Sets the background color for the selected week. 146 * @param color The week background color. 152 public void setSelectedWeekBackgroundColor(@ColorInt int color) { argument 153 mDelegate.setSelectedWeekBackgroundColor(color); 157 * Gets the background color for the selected week. 159 * @return The week background color. 171 * Sets the color for the dates of the focused month. 173 * @param color The focused month date color 179 setFocusedMonthDateColor(@olorInt int color) argument 206 setUnfocusedMonthDateColor(@olorInt int color) argument 233 setWeekNumberColor(@olorInt int color) argument 260 setWeekSeparatorLineColor(@olorInt int color) argument 554 setSelectedWeekBackgroundColor(@olorInt int color) argument 558 setFocusedMonthDateColor(@olorInt int color) argument 562 setUnfocusedMonthDateColor(@olorInt int color) argument 566 setWeekNumberColor(@olorInt int color) argument 570 setWeekSeparatorLineColor(@olorInt int color) argument 648 setSelectedWeekBackgroundColor(@olorInt int color) argument 659 setFocusedMonthDateColor(@olorInt int color) argument 670 setUnfocusedMonthDateColor(@olorInt int color) argument 681 setWeekNumberColor(@olorInt int color) argument 693 setWeekSeparatorLineColor(@olorInt int color) argument [all...] |