/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/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 (primaryColors.getColor(i, 0) == color) { 64 // The color is [all...] |
/packages/apps/Settings/src/com/android/settings/dashboard/ |
H A D | RoundedHomepageIcon.java | 44 public void setBackgroundColor(int color) { argument 45 mBackgroundColor = color; 46 getDrawable(0).setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
|
/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/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
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | BitmapInfo.java | 25 public int color; field in class:BitmapInfo 29 info.iconColor = color; 34 info.color = color; 40 info.color = ColorExtractor.findDominantColorByHue(bitmap);
|
H A D | ColorScrim.java | 29 * Simple scrim which draws a color 37 public ColorScrim(View view, int color, Interpolator interpolator) { argument 39 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/Launcher3/src/com/android/launcher3/util/ |
H A D | Themes.java | 73 * Scales a color matrix such that, when applied to color R G B A, it produces R' G' B' A' where 81 * @param color The color r g b a 84 public static void setColorScaleOnMatrix(int color, ColorMatrix target) { argument 85 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, 86 Color.blue(color) / 255f, Color.alpha(color) / 255f); 90 * Changes a color matri [all...] |
/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/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageVolumePreference.java | 56 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument 61 mColor = color;
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
H A D | DetailsViewBackgroundHelper.java | 72 /** Sets the background color. */ 73 public void setBackgroundColor(int color) { argument 75 mBackgroundManager.setColor(color); 80 public void setScrim(int color) { argument 82 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/libs/car-media-common/src/com/android/car/media/common/ |
H A D | ColorChecker.java | 33 * {@code R.color.car_tint_light} and 34 * {@code R.color.car_tint_dark} 37 int lightTintColor = context.getResources().getColor(R.color.car_tint_light); 38 int darkTintColor = context.getResources().getColor(R.color.car_tint_dark); 52 * Determines what color to tint icons given the background color that they sit on. 55 * @param bgColor The background color that the icons sit on. 57 * @return The color that the icons should be tinted. Will be the first tinted color that 71 Log.w(TAG, "Tint color doe 102 getLuminance(int color) argument [all...] |
H A D | CrossfadeImageView.java | 106 * Sets a plain color as background, with an animated transition 109 public void setBackgroundColor(int color) { argument 110 if (mCurrentColor != null && mCurrentColor == color) { 115 mCurrentColor = color; 116 mInactiveImageView.setBackgroundColor(color);
|
H A D | PlayPauseStopImageView.java | 119 * Updates the primary color of this view. 120 * @param color fill or main color 121 * @param tintColor contrast color 123 public void setPrimaryActionColor(int color, int tintColor) { argument 124 ((FabDrawable) getBackground()).setFabAndStrokeColor(color);
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
H A D | MaterialColorMapUtils.java | 38 * Returns the hue component of a color int. 42 public static float hue(int color) { argument 43 int r = (color >> 16) & 0xFF; 44 int g = (color >> 8) & 0xFF; 45 int b = color & 0xFF; 78 * Return primary and secondary colors from the Material color palette that are similar to {@param 79 * color}. 81 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { argument 84 final float colorHue = hue(color); 90 // No need to be perceptually accurate when calculating color distance [all...] |