Searched defs:color (Results 1 - 25 of 95) sorted by relevance

1234

/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DCalendarColorSquare.java29 * 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/Gallery2/src/com/android/gallery3d/glrenderer/
H A DFadeInTexture.java20 // 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 DGLPaint.java25 public void setColor(int color) { argument
26 mColor = color;
H A DMultiLineTexture.java29 // 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 DColorTexture.java21 // ColorTexture is a texture which fills the rectangle with the specified color.
28 public ColorTexture(int color) { argument
29 mColor = color;
H A DStringTexture.java30 // 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/InCallUI/src/com/android/incallui/
H A DInCallUIMaterialColorMapUtils.java25 * Currently the InCallUI color will only vary by SIM color which is a list of colors
26 * defined in the background_colors array, so first search the list for the matching color and
27 * fall back to the closest matching color if an exact match does not exist.
30 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { argument
31 if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) {
36 if (sPrimaryColors.getColor(i, 0) == color) {
43 // The color isn't in the list, so use the superclass to find an approximate color.
44 return super.calculatePrimaryAndSecondaryColor(color);
[all...]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLPaint.java25 public void setColor(int color) { argument
26 mColor = color;
/packages/apps/Settings/src/com/android/settings/
H A DTintablePreference.java33 public void setTint(int color) { argument
34 mTintColor = color;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageVolumePreference.java48 public StorageVolumePreference(Context context, VolumeInfo volume, int color) { argument
53 mColor = color;
H A DPercentageBarChart.java139 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 DPageMarginDrawable.java35 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 DBummer.java31 public int color = Color.WHITE; field in class:Bummer
47 mApology.setTextColor(color);
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventColorPickerDialog.java27 * 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 DMarginDrawable.java37 public MarginDrawable(int color) { argument
42 mPaint.setColor(color);
H A DAnimatedCircleDrawable.java47 public void setColor(int color) { argument
48 mColor = color;
/packages/apps/DeskClock/src/com/android/deskclock/
H A DBaseActivity.java29 * 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 DSwitchCompatUtils.java38 * 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 DColorChipView.java30 * 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/Contacts/src/com/android/contacts/widget/
H A DQuickContactImageView.java47 public void setTint(int color) { argument
50 setBackgroundColor(color);
54 mTintColor = color;
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DMaterialColorMapUtils.java106 * 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 DHistogramView.java81 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 DHolographicOutlineHelper.java87 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
89 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, true);
91 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
139 mDrawPaint.setColor(color);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DFolderItemView.java153 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 DNotificationCompatUtils.java57 // 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);

Completed in 676 milliseconds

1234