Home
last modified time | relevance | path

Searched refs:color (Results 1 – 25 of 496) sorted by relevance

12345678910>>...20

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DDefaultSoftKeyboard.java644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off)); in updateIndicator()
645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on)); in updateIndicator()
651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
653 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
656 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_lock)); in updateIndicator()
657 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconPalette.java54 private IconPalette(int color, boolean desaturateBackground) { in IconPalette() argument
55 dominantColor = color; in IconPalette()
98 int badgeColor = resources.getColor(R.color.badge_color); in getBadgePalette()
114 int badgeColor = resources.getColor(R.color.folder_badge_color); in getFolderBadgePalette()
128 public static int resolveContrastColor(Context context, int color, int background) { in resolveContrastColor() argument
129 final int resolvedColor = resolveColor(context, color); in resolveContrastColor()
151 private static int resolveColor(Context context, int color) { in resolveColor() argument
152 if (color == Notification.COLOR_DEFAULT) { in resolveColor()
153 return context.getColor(R.color.notification_icon_default_color); in resolveColor()
155 return color; in resolveColor()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DBaseActivity.java56 final @ColorInt int color = ThemeUtils.resolveColor(this, android.R.attr.windowBackground); in onCreate() local
57 adjustAppColor(color, false /* animate */); in onCreate()
65 final @ColorInt int color = ThemeUtils.resolveColor(this, android.R.attr.windowBackground); in onStart() local
66 adjustAppColor(color, false /* animate */); in onStart()
75 protected void adjustAppColor(@ColorInt int color, boolean animate) { in adjustAppColor() argument
78 mBackground = new ColorDrawable(color); in adjustAppColor()
88 if (currentColor != color) { in adjustAppColor()
90 mAppColorAnimator = ValueAnimator.ofObject(ARGB_EVALUATOR, currentColor, color) in adjustAppColor()
96 setAppColor(color); in adjustAppColor()
101 private void setAppColor(@ColorInt int color) { in setAppColor() argument
[all …]
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/
DPagedScrollBarView.java155 int color = getResources().getColor(R.color.car_tint); in setAutoDayNightMode() local
156 mUpButton.setColorFilter(color, PorterDuff.Mode.SRC_IN); in setAutoDayNightMode()
158 mDownButton.setColorFilter(color, PorterDuff.Mode.SRC_IN); in setAutoDayNightMode()
161 mScrollThumb.setBackgroundColor(color); in setAutoDayNightMode()
166 int color = getResources().getColor(R.color.car_tint_light); in setLightMode() local
167 mUpButton.setColorFilter(color, PorterDuff.Mode.SRC_IN); in setLightMode()
169 mDownButton.setColorFilter(color, PorterDuff.Mode.SRC_IN); in setLightMode()
172 mScrollThumb.setBackgroundColor(color); in setLightMode()
177 int color = getResources().getColor(R.color.car_tint_dark); in setDarkMode() local
178 mUpButton.setColorFilter(color, PorterDuff.Mode.SRC_IN); in setDarkMode()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/misc/
Ddoxygenextra.css4 background-color: #f8f8f8;
10 color: #4183c4;
18 color: #333333;
28 background-color: #eee;
33 background-color: white;
45 background-color: #f8f8f8;
46 border-color: #ddd;
51 color: #333333;
59 color: #333333;
115 background-color: #f8f8f8;
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java454 R.color.timestamp_text_incoming) : subscriptionEntry.displayColor); in updateViewContent()
854 final int selectedImageTint = getResources().getColor(R.color.message_image_selected_tint); in updateMessageAttachmentsAppearance()
905 messageColorResId = R.color.message_text_color_incoming; in updateTextAppearance()
906 statusColorResId = R.color.message_action_status_text; in updateTextAppearance()
907 infoColorResId = R.color.message_action_info_text; in updateTextAppearance()
909 timestampColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
910 subjectLabelColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
914 timestampColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
915 subjectLabelColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
919 R.color.message_text_color_incoming : R.color.message_text_color_outgoing); in updateTextAppearance()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java41 public static void updateSwitchCompatColor(SwitchCompat switchCompat, final int color) { in updateSwitchCompatColor() argument
46 getSwitchThumbColorStateList(context, color, typedValue), in updateSwitchCompatColor()
50 getSwitchTrackColorStateList(context, color, typedValue), PorterDuff.Mode.SRC_IN)); in updateSwitchCompatColor()
67 final int color, final TypedValue typedValue) { in getSwitchThumbColorStateList() argument
76 colors[i] = color; in getSwitchThumbColorStateList()
87 final int color, final TypedValue typedValue) { in getSwitchTrackColorStateList() argument
96 colors[i] = getColor(color, 0.3f); in getSwitchTrackColorStateList()
120 final int color = getThemeAttrColor(context, typedValue, attr); in getThemeAttrColor() local
121 return getColor(color, alpha); in getThemeAttrColor()
124 private static int getColor(int color, float alpha) { in getColor() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DMaterialColorMapUtils.java112 public MaterialPalette calculatePrimaryAndSecondaryColor(int color) { in calculatePrimaryAndSecondaryColor() argument
115 final float colorHue = hue(color); in calculatePrimaryAndSecondaryColor()
138 R.color.quickcontact_default_photo_tint_color); in getDefaultPrimaryAndSecondaryColors()
140 R.color.quickcontact_default_photo_tint_color_dark); in getDefaultPrimaryAndSecondaryColors()
149 public static float hue(int color) { in hue() argument
150 int r = (color >> 16) & 0xFF; in hue()
151 int g = (color >> 8) & 0xFF; in hue()
152 int b = color & 0xFF; in hue()
191 ? ContextCompat.getColor(activity, R.color.group_primary_color_dark) in getStatusBarColor()
192 : ContextCompat.getColor(activity, R.color.primary_color_dark); in getStatusBarColor()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java829 public static int getDisplayColorFromColor(int color) { in getDisplayColorFromColor() argument
831 return color; in getDisplayColorFromColor()
835 Color.colorToHSV(color, hsv); in getDisplayColorFromColor()
843 public static int getDeclinedColorFromColor(int color) { in getDeclinedColorFromColor() argument
846 int r = (((color & 0x00ff0000) * a) + ((bg & 0x00ff0000) * (0xff - a))) & 0xff000000; in getDeclinedColorFromColor()
847 int g = (((color & 0x0000ff00) * a) + ((bg & 0x0000ff00) * (0xff - a))) & 0x00ff0000; in getDeclinedColorFromColor()
848 int b = (((color & 0x000000ff) * a) + ((bg & 0x000000ff) * (0xff - a))) & 0x0000ff00; in getDeclinedColorFromColor()
882 public int color; field in Utils.DNAStrand
891 int color; // Calendar color or black for conflicts field in Utils.DNASegment
933 CONFLICT_COLOR = res.getColor(R.color.month_dna_conflict_time_color); in createDNAStrands()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java319 mMonthWeekNumColor = res.getColor(R.color.month_week_num_color); in loadColors()
320 mMonthNumColor = res.getColor(R.color.month_day_number); in loadColors()
321 mMonthNumOtherColor = res.getColor(R.color.month_day_number_other); in loadColors()
322 mMonthNumTodayColor = res.getColor(R.color.month_today_number); in loadColors()
325 mMonthEventColor = res.getColor(R.color.month_event_color); in loadColors()
326 mMonthDeclinedEventColor = res.getColor(R.color.agenda_item_declined_color); in loadColors()
327 mMonthDeclinedExtrasColor = res.getColor(R.color.agenda_item_where_declined_text_color); in loadColors()
328 mMonthEventExtraColor = res.getColor(R.color.month_event_extra_color); in loadColors()
329 mMonthEventOtherColor = res.getColor(R.color.month_event_other_color); in loadColors()
330 mMonthEventExtraOtherColor = res.getColor(R.color.month_event_extra_other_color); in loadColors()
[all …]
/packages/apps/Dialer/java/com/android/incallui/
DThemeColorManager.java71 colorMap.calculatePrimaryAndSecondaryColor(R.color.incall_call_spam_background_color); in updateThemeColors()
72 backgroundColorTop = context.getColor(R.color.incall_background_gradient_spam_top); in updateThemeColors()
73 backgroundColorMiddle = context.getColor(R.color.incall_background_gradient_spam_middle); in updateThemeColors()
74 backgroundColorBottom = context.getColor(R.color.incall_background_gradient_spam_bottom); in updateThemeColors()
75 backgroundColorSolid = context.getColor(R.color.incall_background_multiwindow_spam); in updateThemeColors()
79 backgroundColorTop = context.getColor(R.color.incall_background_gradient_top); in updateThemeColors()
80 backgroundColorMiddle = context.getColor(R.color.incall_background_gradient_middle); in updateThemeColors()
81 backgroundColorBottom = context.getColor(R.color.incall_background_gradient_bottom); in updateThemeColors()
82 backgroundColorSolid = context.getColor(R.color.incall_background_multiwindow); in updateThemeColors()
139 private static int applyAlpha(@ColorInt int color, @ColorInt int sourceColorWithAlpha) { in applyAlpha() argument
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DHolographicOutlineHelper.java96 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyExpensiveOutlineWithBlur() argument
98 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, true, in applyExpensiveOutlineWithBlur()
101 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyExpensiveOutlineWithBlur() argument
181 mHolographicPaint.setColor(color); in applyExpensiveOutlineWithBlur()
200 void applyExtraThickExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyExtraThickExpensiveOutlineWithBlur() argument
202 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, EXTRA_THICK); in applyExtraThickExpensiveOutlineWithBlur()
205 void applyThickExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyThickExpensiveOutlineWithBlur() argument
207 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, THICK); in applyThickExpensiveOutlineWithBlur()
210 void applyMediumExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, in applyMediumExpensiveOutlineWithBlur() argument
212 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, clipAlpha, in applyMediumExpensiveOutlineWithBlur()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DConversationDrawables.java98 mOutgoingBubbleColor = resources.getColor(R.color.message_bubble_color_outgoing); in updateDrawables()
100 resources.getColor(R.color.message_error_bubble_color_incoming); in updateDrawables()
102 resources.getColor(R.color.message_audio_button_color_incoming); in updateDrawables()
103 mSelectedBubbleColor = resources.getColor(R.color.message_bubble_color_selected); in updateDrawables()
104 mThemeColor = resources.getColor(R.color.primary_color); in updateDrawables()
123 int color; in getBubbleDrawable() local
125 color = mSelectedBubbleColor; in getBubbleDrawable()
128 color = mIncomingErrorBubbleColor; in getBubbleDrawable()
130 color = mThemeColor; in getBubbleDrawable()
133 color = mOutgoingBubbleColor; in getBubbleDrawable()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java77 final int color = ta.getColor(i, 0); in onCreatePreferences() local
78 colorValues[i] = Integer.toHexString(color & 0x00ffffff); in onCreatePreferences()
82 colorNames[i] = String.format("#%06X", color & 0x00ffffff); in onCreatePreferences()
220 final int color = (int) Long.parseLong(textColor, 16) & 0x00ffffff; in setCaptionsTextColor() local
224 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextColor()
233 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextOpacity() local
237 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextOpacity()
282 final int color = (int) Long.parseLong(backgroundColor, 16) & 0x00ffffff; in setCaptionsBackgroundColor() local
286 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, color | alpha); in setCaptionsBackgroundColor()
295 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsBackgroundOpacity() local
[all …]
/packages/apps/Gallery2/jni/filters/
Dfilters.h28 #define GetA(color) (((color) >> 24) & 0xFF) argument
29 #define GetB(color) (((color) >> 16) & 0xFF) argument
30 #define GetG(color) (((color) >> 8) & 0xFF) argument
31 #define GetR(color) (((color) >> 0) & 0xFF) argument
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorDrawTabletUI.java81 ParameterColor color; in setDrawRepresentation() local
82 color = (ParameterColor) mRep.getParam(FilterDrawRepresentation.PARAM_COLOR); in setDrawRepresentation()
83 color.setValue(mBasColors[mSelectedColorButton]); in setDrawRepresentation()
138 button.setBackgroundResource(android.R.color.transparent); in EditorDrawTabletUI()
170 mTransparent = res.getColor(R.color.color_chooser_unslected_border); in EditorDrawTabletUI()
171 mSelected = res.getColor(R.color.color_chooser_slected_border); in EditorDrawTabletUI()
235 int color = Color.HSVToColor((int) (hsvo[3] * 255), hsvo); in EditorDrawTabletUI()
239 mBasColors[mSelectedColorButton] = color; in EditorDrawTabletUI()
241 sd.setColor(color); in EditorDrawTabletUI()
245 pram.setValue(color); in EditorDrawTabletUI()
[all …]
DEditorColorBorderTabletUI.java82 ParameterColor color; in setColorBorderRepresentation() local
83 color = (ParameterColor) mRep.getParam(FilterColorBorderRepresentation.PARAM_COLOR); in setColorBorderRepresentation()
84 mBasColors = color.getColorPalette(); in setColorBorderRepresentation()
85 color.setValue(mBasColors[mSelectedColorButton]); in setColorBorderRepresentation()
165 mTransparent = res.getColor(R.color.color_chooser_unslected_border); in setupColor()
166 mSelected = res.getColor(R.color.color_chooser_slected_border); in setupColor()
224 int color = Color.HSVToColor((int) (hsvo[3] * 255), hsvo); in setupColor()
228 mBasColors[mSelectedColorButton] = color; in setupColor()
230 sd.setColor(color); in setupColor()
234 pram.setValue(color); in setupColor()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DFabDrawable.java96 public void setFabColor(int color) { in setFabColor() argument
97 mFabPaint.setColor(color); in setFabColor()
104 public void setStrokeColor(int color) { in setStrokeColor() argument
105 mStrokePaint.setColor(color); in setStrokeColor()
112 public void setFabAndStrokeColor(int color) { in setFabAndStrokeColor() argument
113 setFabAndStrokeColor(color, 0.9f); in setFabAndStrokeColor()
120 public void setFabAndStrokeColor(int color, float valueMultiplier) { in setFabAndStrokeColor() argument
121 setFabColor(color); in setFabAndStrokeColor()
123 Color.colorToHSV(color, hsv); in setFabAndStrokeColor()
DColorChecker.java39 int lightTintColor = context.getResources().getColor(R.color.car_tint_light); in getTintColor()
40 int darkTintColor = context.getResources().getColor(R.color.car_tint_dark); in getTintColor()
51 int lightTintColor = context.getResources().getColor(R.color.car_tint_light); in getNonCriticalTintColor()
52 int darkTintColor = context.getResources().getColor(R.color.car_tint_dark); in getNonCriticalTintColor()
116 public static double getLuminance(int color) { in getLuminance() argument
118 double r = convert8BitToLuminanceComponent(Color.red(color)); in getLuminance()
119 double g = convert8BitToLuminanceComponent(Color.green(color)); in getLuminance()
120 double b = convert8BitToLuminanceComponent(Color.blue(color)); in getLuminance()
/packages/apps/Messaging/jni/
DGifTranscoder.cpp32 #define ALPHA(color) (((color) >> 24) & 0xff) argument
33 #define RED(color) (((color) >> 16) & 0xff) argument
34 #define GREEN(color) (((color) >> 8) & 0xff) argument
35 #define BLUE(color) (((color) >> 0) & 0xff) argument
417 ColorARGB color) { in fillRect() argument
424 *renderPixel = color; in fillRect()
505 ColorARGB GifTranscoder::gifColorToColorARGB(const GifColorType& color) { in gifColorToColorARGB() argument
506 return MAKE_COLOR_ARGB(0xff, color.Red, color.Green, color.Blue); in gifColorToColorARGB()
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetConversationListItemViewBuilder.java95 int color[] = new int[] in displayFolders() local
97 Bitmap bitmap = Bitmap.createBitmap(color, 1, 1, Bitmap.Config.RGB_565); in displayFolders()
118 SUBJECT_TEXT_COLOR_READ = res.getColor(R.color.subject_text_color_read); in WidgetConversationListItemViewBuilder()
119 SUBJECT_TEXT_COLOR_UNREAD = res.getColor(R.color.subject_text_color_unread); in WidgetConversationListItemViewBuilder()
120 SNIPPET_TEXT_COLOR = res.getColor(R.color.snippet_text_color); in WidgetConversationListItemViewBuilder()
121 DATE_TEXT_COLOR_READ = res.getColor(R.color.date_text_color_read); in WidgetConversationListItemViewBuilder()
122 DATE_TEXT_COLOR_UNREAD = res.getColor(R.color.date_text_color_unread); in WidgetConversationListItemViewBuilder()
131 private static SpannableStringBuilder addStyle(CharSequence text, int size, int color) { in addStyle() argument
135 if (color != 0) { in addStyle()
136 builder.setSpan(new ForegroundColorSpan(color), 0, text.length(), in addStyle()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java92 int color; field in SelectCalendarsSimpleAdapter.CalendarRow
103 mColorCalendarVisible = mRes.getColor(R.color.calendar_visible); in SelectCalendarsSimpleAdapter()
104 mColorCalendarHidden = mRes.getColor(R.color.calendar_hidden); in SelectCalendarsSimpleAdapter()
105 mColorCalendarSecondaryVisible = mRes.getColor(R.color.calendar_secondary_visible); in SelectCalendarsSimpleAdapter()
106 mColorCalendarSecondaryHidden = mRes.getColor(R.color.calendar_secondary_hidden); in SelectCalendarsSimpleAdapter()
202 mData[p].color = c.getInt(mColorColumn); in initData()
224 int color = Utils.getDisplayColorFromColor(mData[position].color); in getView() local
228 final View delegate = view.findViewById(R.id.color); in getView()
250 View colorView = view.findViewById(R.id.color); in getView()
251 colorView.setBackgroundColor(color); in getView()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java181 final int color) { in getMoreSuggestionsHint() argument
186 paint.setColor(color); in getMoreSuggestionsHint()
309 final int color; in getSuggestionTextColor() local
312 color = mColorAutoCorrect; in getSuggestionTextColor()
314 color = mColorValidTypedWord; in getSuggestionTextColor()
316 color = mColorTypedWord; in getSuggestionTextColor()
318 color = mColorSuggested; in getSuggestionTextColor()
321 return applyAlpha(color, mAlphaObsoleted); in getSuggestionTextColor()
323 return color; in getSuggestionTextColor()
326 private static int applyAlpha(final int color, final float alpha) { in applyAlpha() argument
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioChannelColorMapper.java53 mDefaultColor = context.getColor(R.color.car_radio_bg_color); in RadioChannelColorMapper()
54 mAmRange1Color = context.getColor(R.color.am_range_1_bg_color); in RadioChannelColorMapper()
55 mAmRange2Color = context.getColor(R.color.am_range_2_bg_color); in RadioChannelColorMapper()
56 mAmRange3Color = context.getColor(R.color.am_range_3_bg_color); in RadioChannelColorMapper()
57 mFmRange1Color = context.getColor(R.color.fm_range_1_bg_color); in RadioChannelColorMapper()
58 mFmRange2Color = context.getColor(R.color.fm_range_2_bg_color); in RadioChannelColorMapper()
59 mFmRange3Color = context.getColor(R.color.fm_range_3_bg_color); in RadioChannelColorMapper()
/packages/apps/Camera2/src/com/android/camera/ui/
DBottomBar.java112 private void setPaintColor(int alpha, int color) { in setPaintColor() argument
114 mAnimatedCircleDrawable.setColor(color); in setPaintColor()
117 mColorDrawable.setColor(color); in setPaintColor()
124 intentBackground.setColor(color); in setPaintColor()
133 private void setCancelBackgroundColor(int alpha, int color) { in setCancelBackgroundColor() argument
138 animatedCircleDrawable.setColor(color); in setCancelBackgroundColor()
143 colorDrawable.setColor(color); in setCancelBackgroundColor()
373 public void setBackgroundColor(int color) { in setBackgroundColor() argument
374 mBackgroundColor = color; in setBackgroundColor()
379 private void setBackgroundPressedColor(int color) { in setBackgroundPressedColor() argument
[all …]

12345678910>>...20