Searched refs:color (Results 76 - 100 of 477) sorted by relevance

1234567891011>>

/packages/apps/Settings/src/com/android/settings/display/
H A DConversationMessageView.java213 final int bubbleColorResId = mIncoming ? R.color.message_bubble_incoming
214 : R.color.message_bubble_outgoing;
241 final int messageColorResId = (mIncoming ? R.color.message_text_incoming
242 : R.color.message_text_outgoing);
243 final int timestampColorResId = mIncoming ? R.color.timestamp_text_incoming
244 : R.color.timestamp_text_outgoing;
253 final int color) {
259 retDrawable.setColorFilter(color, PorterDuff.Mode.SRC_ATOP);
252 getTintedDrawable(final Context context, final Drawable drawable, final int color) argument
/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);
/packages/apps/Contacts/src/com/android/contacts/lettertiles/
H A DLetterTileDrawable.java81 sDefaultColor = res.getColor(R.color.letter_tile_default_color);
82 sTileFontColor = res.getColor(R.color.letter_tile_font_color);
139 // Draw background color.
183 * Returns a deterministic color based on the provided contact identifier string.
190 // this should guarantee the same email address always maps to the same color.
192 final int color = Math.abs(identifier.hashCode()) % sColors.length();
193 return sColors.getColor(color, sDefaultColor);
262 public LetterTileDrawable setColor(int color){ argument
263 mColor = color;
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetModel.java88 int color; field in class:CalendarAppWidgetModel.EventInfo
113 builder.append(", color=");
114 builder.append(String.format("0x%x", color));
135 result = prime * result + color;
180 if (color != other.color) {
292 final int color = cursor.getInt(CalendarAppWidgetService.INDEX_COLOR);
315 location, color, selfStatus));
355 int startDay, int endDay, String title, String location, int color, int selfStatus) {
386 eventInfo.color
354 populateEventInfo(long eventId, boolean allDay, long start, long end, int startDay, int endDay, String title, String location, int color, int selfStatus) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorColorBorderTabletUI.java82 ParameterColor color;
83 color = (ParameterColor) mRep.getParam(FilterColorBorderRepresentation.PARAM_COLOR);
84 mBasColors = color.getColorPalette();
85 color.setValue(mBasColors[mSelectedColorButton]);
165 mTransparent = res.getColor(R.color.color_chooser_unslected_border);
166 mSelected = res.getColor(R.color.color_chooser_slected_border);
224 int color = Color.HSVToColor((int) (hsvo[3] * 255), hsvo);
228 mBasColors[mSelectedColorButton] = color;
230 sd.setColor(color);
234 pram.setValue(color);
[all...]
/packages/apps/Messaging/jni/
H A DGifTranscoder.cpp32 #define ALPHA(color) (((color) >> 24) & 0xff)
33 #define RED(color) (((color) >> 16) & 0xff)
34 #define GREEN(color) (((color) >> 8) & 0xff)
35 #define BLUE(color) (((color) >> 0) & 0xff)
140 // Transparent color of the current image.
159 // Background color (applie
410 fillRect(ColorARGB* renderBuffer, int imageWidth, int imageHeight, int left, int top, int width, int height, ColorARGB color) argument
505 gifColorToColorARGB(const GifColorType& color) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectCalendarsSyncAdapter.java80 int color; field in class:SelectCalendarsSyncAdapter.CalendarRow
128 mData[p].color = c.getInt(mColorColumn);
153 int color = Utils.getDisplayColorFromColor(mData[position].color);
157 final View delegate = view.findViewById(R.id.color);
187 View colorView = view.findViewById(R.id.color);
189 colorView.setBackgroundColor(color);
/packages/apps/Dialer/java/com/android/contacts/common/lettertiles/
H A DLetterTileDrawable.java61 * A generic avatar that features the default icon, default color, and no letter. Useful for
120 mSpamColor = res.getColor(R.color.spam_contact_background);
121 mDefaultColor = res.getColor(R.color.letter_tile_default_color);
122 mTileFontColor = res.getColor(R.color.letter_tile_font_color);
199 // Draw background color.
250 public LetterTileDrawable setColor(int color) { argument
251 mColor = color;
255 /** Returns a deterministic color based on the provided contact identifier string. */
268 // this should guarantee the same email address always maps to the same color.
270 final int color
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DUtils.java823 * For devices with Jellybean or later, darkens the given color to ensure that white text is
825 * sync adapter handles the color change.
827 * @param color
829 public static int getDisplayColorFromColor(int color) { argument
831 return color;
835 Color.colorToHSV(color, hsv);
841 // This takes a color and computes what it would look like blended with
842 // white. The result is the color that should be used for declined events.
843 public static int getDeclinedColorFromColor(int color) { argument
846 int r = (((color
882 public int color; field in class:Utils.DNAStrand
891 int color; // Calendar color or black for conflicts field in class:Utils.DNASegment
1283 getOrCreateStrand(HashMap<Integer, DNAStrand> strands, int color) argument
[all...]
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/Calendar/src/com/android/calendar/month/
H A DMonthWeekEventsView.java319 mMonthWeekNumColor = res.getColor(R.color.month_week_num_color);
320 mMonthNumColor = res.getColor(R.color.month_day_number);
321 mMonthNumOtherColor = res.getColor(R.color.month_day_number_other);
322 mMonthNumTodayColor = res.getColor(R.color.month_today_number);
325 mMonthEventColor = res.getColor(R.color.month_event_color);
326 mMonthDeclinedEventColor = res.getColor(R.color.agenda_item_declined_color);
327 mMonthDeclinedExtrasColor = res.getColor(R.color.agenda_item_where_declined_text_color);
328 mMonthEventExtraColor = res.getColor(R.color.month_event_extra_color);
329 mMonthEventOtherColor = res.getColor(R.color.month_event_other_color);
330 mMonthEventExtraOtherColor = res.getColor(R.color
[all...]
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DAlertAdapter.java52 int color = Utils.getDisplayColorFromColor(cursor.getInt(AlertActivity.INDEX_COLOR));
53 square.setBackgroundColor(color);
90 mPastEventColor = res.getColor(R.color.alert_past_event);
91 mTitleColor = res.getColor(R.color.alert_event_title);
92 mOtherColor = res.getColor(R.color.alert_event_other);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
H A DColorHueView.java74 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color));
75 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color);
102 int color = Color.HSVToColor(mTmpHSV);
103 mTmpBuff[x] = color;
104 mTmpBuff[x + w] = color;
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DShadowGenerator.java133 public final int color; field in class:ShadowGenerator.Builder
143 public Builder(int color) { argument
144 this.color = color;
170 p.setColor(color);
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaAdapter.java88 mDeclinedColor = mResources.getColor(R.color.agenda_item_declined_color);
89 mStandardColor = mResources.getColor(R.color.agenda_item_standard_color);
90 mWhereDeclinedColor = mResources.getColor(R.color.agenda_item_where_declined_text_color);
91 mWhereColor = mResources.getColor(R.color.agenda_item_where_text_color);
131 // Fade text if event was declined and set the color chip mode (response
151 // Set the size of the color chip
181 int color = Utils.getDisplayColorFromColor(cursor.getInt(AgendaWindowAdapter.INDEX_COLOR));
182 holder.colorChip.setColor(color);
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventColorCache.java27 * A cache for event colors and event color keys stored based upon calendar account name and type.
44 * Inserts a color into the cache.
74 * Retrieve an event color's unique key based on account name, type, and color.
89 for (Integer color : sortedColors) {
90 palette.add(color);
/packages/apps/Camera2/src/com/android/camera/ui/
H A DAnimatedCircleDrawable.java47 public void setColor(int color) { argument
48 mColor = color;
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
H A DTemperatureBarOverlay.java126 mTempColor1 = res.getColor(R.color.temperature_1);
127 mTempColor2 = res.getColor(R.color.temperature_2);
128 mTempColor3 = res.getColor(R.color.temperature_3);
129 mTempColor4 = res.getColor(R.color.temperature_4);
130 mTempColor5 = res.getColor(R.color.temperature_5);
132 mOffColor = res.getColor(R.color.hvac_temperature_off_text_bg_color);
339 // Only animate the color if the button is currently enabled.
415 int color = (Integer) animation.getAnimatedValue();
416 ((GradientDrawable) mTemperatureBar.getBackground()).setColor(color);
/packages/apps/Dialer/java/com/android/dialer/app/list/
H A DRemoveView.java56 mUnhighlightedColor = r.getColor(R.color.remove_text_color);
57 mHighlightedColor = r.getColor(R.color.remove_highlighted_text_color);
/packages/apps/Dialer/java/com/android/dialer/app/settings/
H A DAppCompatPreferenceActivity.java87 protected void onTitleChanged(CharSequence title, int color) { argument
88 super.onTitleChanged(title, color);
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
H A DExtractionUtils.java103 * Given a color, returns true if that color is legible on
104 * the given wallpaper color swatches, else returns false.
106 private static boolean isLegibleOnWallpaper(int color, List<Palette.Swatch> wallpaperSwatches) { argument
110 if (isLegible(color, swatch.getRgb())) {
119 /** @return Whether the foreground color is legible on the background color. */
/packages/apps/Launcher3/tests/src/com/android/launcher3/testcomponent/
H A DRequestPinItemActivity.java56 public void setRemoteViewColor(int color) { argument
57 mRemoteViewColor = color;
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DAddContactsConfirmationDialog.java58 cancelButton.setTextColor(resources.getColor(R.color.contact_picker_button_text_color));
62 addButton.setTextColor(resources.getColor(R.color.contact_picker_button_text_color));
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DAudioMediaChooser.java62 public void setThemeColor(final int color) { argument
64 ((AudioRecordView) mView).setThemeColor(color);
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryMeterView.java52 final int frameColor = context.getColor(R.color.meter_background_color);
56 context.getColor(R.color.battery_icon_color_error), PorterDuff.Mode.SRC_IN);

Completed in 1071 milliseconds

1234567891011>>