/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/InCallUI/src/com/android/incallui/ |
H A D | InCallUIMaterialColorMapUtils.java | 24 * Currently the InCallUI color will only vary by SIM color which is a list of colors 25 * defined in the background_colors array, so first search the list for the matching color and 26 * fall back to the closest matching color if an exact match does not exist. 29 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { argument 30 if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) { 35 if (sPrimaryColors.getColor(i, 0) == color) { 42 // The color isn't in the list, so use the superclass to find an approximate color. 43 return super.calculatePrimaryAndSecondaryColor(color); [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/Settings/src/com/android/settings/ |
H A D | TintablePreference.java | 33 public void setTint(int color) { argument 34 mTintColor = color;
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageVolumePreference.java | 50 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument 55 mColor = color;
|
H A D | PercentageBarChart.java | 139 public void setBackgroundColor(int color) { argument 140 mEmptyPaint.setColor(color); 148 * @param color the color to draw the entry 150 public static Entry createEntry(int order, float percentage, int color) { argument 152 p.setColor(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 | 42 public void setTint(int color) { argument 45 setBackgroundColor(color); 49 mTintColor = color;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | BaseActivity.java | 29 * Base activity class that changes with window's background color dynamically based on the 35 * Key used to save/restore the current background color from the saved instance state. 40 * Duration in millis to animate changes to the background color. 45 * {@link BroadcastReceiver} to update the background color whenever the system time changes. 68 // Register mOnTimeChangedReceiver to update current background color periodically. 82 // Ensure the background color is up-to-date. 90 // Stop updating the background color when not active. 101 // Save the background color so we can animate the change when the activity is restored. 108 * Sets the current background color to the provided value and animates the change if desired. 110 * @param color th 113 setBackgroundColor(int color, boolean animate) argument [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/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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | MaterialColorMapUtils.java | 106 * Return primary and secondary colors from the Material color palette that are similar to 107 * {@param color}. 109 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { argument 112 final float colorHue = hue(color); 118 // No need to be perceptually accurate when calculating color distances since 135 R.color.quickcontact_default_photo_tint_color); 137 R.color.quickcontact_default_photo_tint_color_dark); 142 * Returns the hue component of a color int. 146 public static float hue(int color) { argument 147 int r = (color >> 1 [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);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | BaseContainerView.java | 100 public void setRevealDrawableColor(int color) { argument 101 ((ColorDrawable) mBaseDrawable).setColor(color);
|
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/ |
H A D | ExtractionUtils.java | 95 * Given a color, returns true if that color is legible on 96 * the given wallpaper color swatches, else returns false. 98 private static boolean isLegibleOnWallpaper(int color, List<Palette.Swatch> wallpaperSwatches) { argument 102 if (isLegible(color, swatch.getRgb())) { 111 /** @return Whether the foreground color is legible on the background color. */
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryActiveView.java | 61 private void drawColor(Canvas canvas, int start, int end, int color, float period) { argument 62 if (color == 0) { 65 mPaint.setColor(color);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | FolderItemView.java | 153 private void setUnseenCount(final int color, final int count) { argument 158 drawable.getPaint().setColor(color);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | NotificationCompatUtils.java | 57 // Sets the accent color 58 public static void setColor(final Notification.Builder builder, final int color) { argument 59 CompatUtils.invoke(builder, null, METHOD_setColor, color);
|