/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
H A D | CalendarColorSquare.java | 29 * The color square used as an entry point to launching the {@link CalendarColorPickerDialog}. 42 public void setBackgroundColor(int color) { argument 45 setImageDrawable(new ColorStateDrawable(colorDrawable, color));
|
/packages/apps/Car/Overview/src/com/android/car/overview/ |
H A D | OverviewFabButton.java | 26 * A FAB button with an affordance for setting the accent color. 56 * Sets the color that the FAB button will be. 58 public void setAccentColor(@ColorInt int color) { argument 59 mFabDrawable.setFabAndStrokeColor(color);
|
/packages/apps/Contacts/src/com/android/contacts/drawer/ |
H A D | ScrimDrawable.java | 29 * Default constructor. Uses default color. 36 * Set a color if necessary. 38 * @param color 40 public ScrimDrawable(int color) { argument 41 super(color);
|
/packages/apps/Dialer/java/com/android/incallui/ |
H A D | InCallUIMaterialColorMapUtils.java | 42 final int primaryColor = resources.getColor(R.color.dialer_theme_color); 43 final int secondaryColor = resources.getColor(R.color.dialer_theme_color_dark); 48 * Currently the InCallUI color will only vary by SIM color which is a list of colors defined in 49 * the background_colors array, so first search the list for the matching color and fall back to 50 * the closest matching color if an exact match does not exist. 53 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { argument 54 if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) { 59 if (mPrimaryColors.getColor(i, 0) == color) { 64 // The color is [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | FadeInTexture.java | 20 // FadeInTexture is a texture which begins with a color, then gradually animates 29 public FadeInTexture(int color, TiledTexture texture) { argument 31 mColor = color;
|
H A D | GLPaint.java | 25 public void setColor(int color) { argument 26 mColor = color;
|
H A D | MultiLineTexture.java | 29 // the String, the font size, and the color. 39 String text, int maxWidth, float textSize, int color, 41 TextPaint paint = StringTexture.getDefaultPaint(textSize, color); 38 newInstance( String text, int maxWidth, float textSize, int color, Layout.Alignment alignment) argument
|
H A D | ColorTexture.java | 21 // ColorTexture is a texture which fills the rectangle with the specified color. 28 public ColorTexture(int color) { argument 29 mColor = color;
|
H A D | StringTexture.java | 30 // the String, the font size, and the color. 44 public static TextPaint getDefaultPaint(float textSize, int color) { argument 48 paint.setColor(color); 54 String text, float textSize, int color) { 55 return newInstance(text, getDefaultPaint(textSize, color)); 59 String text, float textSize, int color, 61 TextPaint paint = getDefaultPaint(textSize, color); 53 newInstance( String text, float textSize, int color) argument 58 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | Themes.java | 56 * Scales a color matrix such that, when applied to color R G B A, it produces R' G' B' A' where 64 * @param color The color r g b a 67 public static void setColorScaleOnMatrix(int color, ColorMatrix target) { argument 68 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, 69 Color.blue(color) / 255f, Color.alpha(color) / 255f);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | TintablePreference.java | 39 public void setTint(int color) { argument 40 mTintColor = color;
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageVolumePreference.java | 51 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument 56 mColor = color;
|
/packages/apps/UnifiedEmail/src/com/android/mail/graphics/ |
H A D | PageMarginDrawable.java | 35 int insetRight, int insetBottom, int color) { 38 mPaint.setColor(color); 34 PageMarginDrawable(Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom, int color) argument
|
/packages/experimental/Bummer/src/com/android/dreams/bummer/ |
H A D | Bummer.java | 31 public int color = Color.WHITE; field in class:Bummer 47 mApology.setTextColor(color);
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EventColorPickerDialog.java | 27 * A dialog which displays event colors, with an additional button for the calendar color. 63 public void setCalendarColor(int color) { argument 64 mCalendarColor = color;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | MarginDrawable.java | 37 public MarginDrawable(int color) { argument 42 mPaint.setColor(color);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | QuickContactImageView.java | 41 public void setTint(int color) { argument 44 setBackgroundColor(color); 48 mTintColor = color;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | BaseActivity.java | 32 * Base activity class that changes the app window's color based on the current hour. 36 /** Sets the app window color on each frame of the {@link #mAppColorAnimator}. */ 40 /** The current animator that is changing the app window color or {@code null}. */ 43 /** Draws the app window's color. */ 56 final @ColorInt int color = ThemeUtils.resolveColor(this, android.R.attr.windowBackground); 57 adjustAppColor(color, false /* animate */); 64 // Ensure the app window color is up-to-date. 65 final @ColorInt int color = ThemeUtils.resolveColor(this, android.R.attr.windowBackground); 66 adjustAppColor(color, false /* animate */); 70 * Adjusts the current app window color o 75 adjustAppColor(@olorInt int color, boolean animate) argument 101 setAppColor(@olorInt int color) argument [all...] |
H A D | DeskClockFragment.java | 72 * @param color the newly installed app window color 74 protected void onAppColorChanged(@ColorInt int color) { argument
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | SwitchCompatUtils.java | 38 * Given a color and a SwitchCompat view, updates the SwitchCompat to appear with the appropiate 39 * color when enabled and checked 41 public static void updateSwitchCompatColor(SwitchCompat switchCompat, final int color) { argument 46 getSwitchThumbColorStateList(context, color, typedValue), 50 getSwitchTrackColorStateList(context, color, typedValue), PorterDuff.Mode.SRC_IN)); 67 final int color, final TypedValue typedValue) { 76 colors[i] = color; 87 final int color, final TypedValue typedValue) { 96 colors[i] = getColor(color, 0.3f); 120 final int color 66 getSwitchThumbColorStateList(final Context context, final int color, final TypedValue typedValue) argument 86 getSwitchTrackColorStateList(final Context context, final int color, final TypedValue typedValue) argument 124 getColor(int color, float alpha) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
H A D | DetailsViewBackgroundHelper.java | 76 * Sets the background color. 78 public void setBackgroundColor(int color) { argument 80 mBackgroundManager.setColor(color); 87 public void setScrim(int color) { argument 89 mBackgroundManager.setDimLayer(new ColorDrawable(color));
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | ColorChipView.java | 30 * A custom view for a color chip for an event that can be drawn differently 88 public void setColor(int color) { argument 89 mColor = color;
|
/packages/apps/Car/Media/src/com/android/car/media/ |
H A D | CrossfadeImageView.java | 40 // color filters would normally require creating a ton of small objects. We get around this by 41 // caching color filters and limit the saturation to increments of 0.1. 110 public void setBackgroundColor(int color) { argument 111 if (mCurrentColor != null && mCurrentColor == color) { 116 mCurrentColor = color; 117 mInactiveImageView.setBackgroundColor(color);
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
H A D | MaterialColorMapUtils.java | 39 final int primaryColor = resources.getColor(R.color.quickcontact_default_photo_tint_color); 41 resources.getColor(R.color.quickcontact_default_photo_tint_color_dark); 46 * Returns the hue component of a color int. 50 public static float hue(int color) { argument 51 int r = (color >> 16) & 0xFF; 52 int g = (color >> 8) & 0xFF; 53 int b = color & 0xFF; 86 * Return primary and secondary colors from the Material color palette that are similar to {@param 87 * color}. 89 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/ |
H A D | HistogramView.java | 81 private void drawHistogram(Canvas canvas, int[] histogram, int color, PorterDuff.Mode mode) { argument 106 mPaint.setColor(color);
|