/packages/apps/DeskClock/src/com/android/deskclock/ |
D | BaseActivity.java | 56 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/Test/connectivity/sl4n/rapidjson/doc/misc/ |
D | doxygenextra.css | 4 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/util/ |
D | SwitchCompatUtils.java | 41 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/Dialer/java/com/android/dialer/voicemail/settings/ |
D | RecordButton.java | 101 mainTrackPaint = getBasePaint(R.color.dialer_call_green); in init() 102 secondaryTrackPaint = getBasePaint(R.color.dialer_call_green); in init() 108 private void fixQuantumIconTint(int color) { in fixQuantumIconTint() argument 110 playArrow.mutate().setTint(color); in fixQuantumIconTint() 114 micIcon.mutate().setTint(color); in fixQuantumIconTint() 143 mainTrackPaint = getBasePaint(R.color.dialer_call_green); in setState() 144 secondaryTrackPaint = getBasePaint(R.color.dialer_call_green); in setState() 149 mainTrackPaint = getBasePaint(R.color.google_blue_500); in setState() 150 secondaryTrackPaint = getBasePaint(R.color.google_blue_50); in setState() 154 mainTrackPaint = getBasePaint(R.color.google_blue_500); in setState() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Utils.java | 752 public static int getDisplayColorFromColor(int color) { in getDisplayColorFromColor() argument 754 return color; in getDisplayColorFromColor() 758 Color.colorToHSV(color, hsv); in getDisplayColorFromColor() 766 public static int getDeclinedColorFromColor(int color) { in getDeclinedColorFromColor() argument 769 int r = (((color & 0x00ff0000) * a) + ((bg & 0x00ff0000) * (0xff - a))) & 0xff000000; in getDeclinedColorFromColor() 770 int g = (((color & 0x0000ff00) * a) + ((bg & 0x0000ff00) * (0xff - a))) & 0x00ff0000; in getDeclinedColorFromColor() 771 int b = (((color & 0x000000ff) * a) + ((bg & 0x000000ff) * (0xff - a))) & 0x0000ff00; in getDeclinedColorFromColor() 805 public int color; field in Utils.DNAStrand 814 int color; // Calendar color or black for conflicts field in Utils.DNASegment 856 CONFLICT_COLOR = res.getColor(R.color.month_dna_conflict_time_color); in createDNAStrands() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | MaterialColorMapUtils.java | 112 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/Dialer/java/com/android/incallui/ |
D | ThemeColorManager.java | 73 colorMap.calculatePrimaryAndSecondaryColor(R.color.incall_call_spam_background_color); in updateThemeColors() 74 backgroundColorTop = context.getColor(R.color.incall_background_gradient_spam_top); in updateThemeColors() 75 backgroundColorMiddle = context.getColor(R.color.incall_background_gradient_spam_middle); in updateThemeColors() 76 backgroundColorBottom = context.getColor(R.color.incall_background_gradient_spam_bottom); in updateThemeColors() 77 backgroundColorSolid = context.getColor(R.color.incall_background_multiwindow_spam); in updateThemeColors() 80 backgroundColorTop = context.getColor(R.color.incall_background_gradient_top); in updateThemeColors() 81 backgroundColorMiddle = context.getColor(R.color.incall_background_gradient_middle); in updateThemeColors() 82 backgroundColorBottom = context.getColor(R.color.incall_background_gradient_bottom); in updateThemeColors() 83 backgroundColorSolid = context.getColor(R.color.incall_background_multiwindow); in updateThemeColors() 140 private static int applyAlpha(@ColorInt int color, @ColorInt int sourceColorWithAlpha) { in applyAlpha() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ConversationDrawables.java | 98 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/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 454 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/Launcher3/src/com/android/launcher3/graphics/ |
D | IconPalette.java | 68 public static int resolveContrastColor(Context context, int color, int background) { in resolveContrastColor() argument 69 final int resolvedColor = resolveColor(context, color); in resolveContrastColor() 91 private static int resolveColor(Context context, int color) { in resolveColor() argument 92 if (color == Notification.COLOR_DEFAULT) { in resolveColor() 93 return context.getColor(R.color.notification_icon_default_color); in resolveColor() 95 return color; in resolveColor() 111 private static int ensureTextContrast(int color, int bg) { in ensureTextContrast() argument 112 return findContrastColor(color, bg, 4.5); in ensureTextContrast() 151 public static int getMutedColor(int color, float whiteScrimAlpha) { in getMutedColor() argument 153 return ColorUtils.compositeColors(whiteScrim, color); in getMutedColor()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 78 final int color = ta.getColor(i, 0); in onCreatePreferences() local 79 colorValues[i] = Integer.toHexString(color & 0x00ffffff); in onCreatePreferences() 83 colorNames[i] = String.format("#%06X", color & 0x00ffffff); in onCreatePreferences() 221 final int color = (int) Long.parseLong(textColor, 16) & 0x00ffffff; in setCaptionsTextColor() local 225 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextColor() 234 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsTextOpacity() local 238 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, color | alpha); in setCaptionsTextOpacity() 283 final int color = (int) Long.parseLong(backgroundColor, 16) & 0x00ffffff; in setCaptionsBackgroundColor() local 287 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, color | alpha); in setCaptionsBackgroundColor() 296 final int color = Settings.Secure.getInt(getContext().getContentResolver(), in setCaptionsBackgroundOpacity() local [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | filters.h | 28 #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/UniversalMediaPlayer/java/com/android/pump/util/ |
D | Clog.java | 127 int color; in println() local 130 color = COLOR_CYAN; in println() 133 color = COLOR_BLUE; in println() 136 color = COLOR_GREEN; in println() 139 color = COLOR_YELLOW; in println() 142 color = COLOR_RED; in println() 145 color = COLOR_MAGENTA; in println() 148 color = COLOR_BLACK; in println() 157 result += android.util.Log.println(priority, tag, colorize(part, color)); in println() 163 private static String colorize(String msg, int color) { in colorize() argument [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthWeekEventsView.java | 319 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/dialer/lettertile/ |
D | LetterTileDrawable.java | 114 private int color; field in LetterTileDrawable 121 spamColor = res.getColor(R.color.spam_contact_background); in LetterTileDrawable() 122 defaultColor = res.getColor(R.color.letter_tile_default_color); in LetterTileDrawable() 123 tileFontColor = res.getColor(R.color.letter_tile_font_color); in LetterTileDrawable() 137 color = defaultColor; in LetterTileDrawable() 200 paint.setColor(color); in drawLetterTile() 247 return color; in getColor() 250 public LetterTileDrawable setColor(int color) { in setColor() argument 251 this.color = color; in setColor() 270 final int color = Math.abs(identifier.hashCode()) % colors.length(); in pickColor() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
D | WidgetConversationListItemViewBuilder.java | 95 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/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | EditorDrawTabletUI.java | 81 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 …]
|
D | EditorColorBorderTabletUI.java | 82 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/Messaging/jni/ |
D | GifTranscoder.cpp | 32 #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/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 73 final int color = colorItem.getInt(); in testSettingsIntentSlice() local 74 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsIntentSlice() 102 final int color = colorItem.getInt(); in testSettingsToggleSlice() local 103 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsToggleSlice() 142 final int color = colorItem.getInt(); in testSettingsSliderSlice() local 143 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsSliderSlice() 181 final int color = colorItem.getInt(); in testSettingsCopyableSlice() local 182 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsCopyableSlice() 220 final int color = colorItem.getInt(); in testSettingsUnavailableSlice() local 221 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsUnavailableSlice()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | SuggestionStripLayoutHelper.java | 181 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/libs/car-media-common/src/com/android/car/media/common/ |
D | ColorChecker.java | 37 int lightTintColor = context.getResources().getColor(R.color.media_tint_light); in getTintColor() 38 int darkTintColor = context.getResources().getColor(R.color.media_tint_dark); in getTintColor() 102 public static double getLuminance(int color) { in getLuminance() argument 104 double r = convert8BitToLuminanceComponent(Color.red(color)); in getLuminance() 105 double g = convert8BitToLuminanceComponent(Color.green(color)); in getLuminance() 106 double b = convert8BitToLuminanceComponent(Color.blue(color)); in getLuminance()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | BottomBar.java | 112 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 …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | CarNotificationBaseViewHolder.java | 96 mDefaultPrimaryForegroundColor = mContext.getColor(R.color.primary_text_color); in CarNotificationBaseViewHolder() 97 mDefaultSecondaryForegroundColor = mContext.getColor(R.color.secondary_text_color); in CarNotificationBaseViewHolder() 183 mHasColor = notification.color != Notification.COLOR_DEFAULT; in initializeColors() 189 mBackgroundColor = notification.color; in initializeColors() 218 int color = getStatusBarNotification().getNotification().color; in getAccentColor() local 219 if (mEnableSmallIconAccentColor && color != Notification.COLOR_DEFAULT) { in getAccentColor() 220 return color; in getAccentColor()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | StringTexture.java | 44 public static TextPaint getDefaultPaint(float textSize, int color) { in getDefaultPaint() argument 48 paint.setColor(color); in getDefaultPaint() 54 String text, float textSize, int color) { in newInstance() argument 55 return newInstance(text, getDefaultPaint(textSize, color)); in newInstance() 59 String text, float textSize, int color, in newInstance() argument 61 TextPaint paint = getDefaultPaint(textSize, color); in newInstance()
|