Home
last modified time | relevance | path

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

12345678910>>...22

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DAnimationDynamicColorsHelper.java153 new ColorItem(R.color.blue600, ".blue600"), in buildLightToDarkColorsBiMap()
154 new ColorItem(R.color.blue400, ".blue400")); in buildLightToDarkColorsBiMap()
156 new ColorItem(R.color.green600, ".green600"), in buildLightToDarkColorsBiMap()
157 new ColorItem(R.color.green400, ".green400")); in buildLightToDarkColorsBiMap()
159 new ColorItem(R.color.red600, ".red600"), in buildLightToDarkColorsBiMap()
160 new ColorItem(R.color.red400, ".red400")); in buildLightToDarkColorsBiMap()
162 new ColorItem(R.color.yellow600, ".yellow600"), in buildLightToDarkColorsBiMap()
163 new ColorItem(R.color.yellow400, ".yellow400")); in buildLightToDarkColorsBiMap()
165 new ColorItem(R.color.blue400, ".blue400"), in buildLightToDarkColorsBiMap()
166 new ColorItem(R.color.blue100, ".blue100")); in buildLightToDarkColorsBiMap()
[all …]
DManagedProvisioningSharedPreferences.java98 public void writeNavigationBarColor(int color) { in writeNavigationBarColor() argument
100 .putInt(KEY_NAVIGATION_BAR_BACKGROUND_COLOR, color) in writeNavigationBarColor()
114 public void writeNavigationBarDividerColor(int color) { in writeNavigationBarDividerColor() argument
116 .putInt(KEY_NAVIGATION_BAR_DIVIDER_COLOR, color) in writeNavigationBarDividerColor()
130 public void writeTextPrimaryColor(int color) { in writeTextPrimaryColor() argument
132 .putInt(KEY_TEXT_PRIMARY_COLOR, color) in writeTextPrimaryColor()
146 public void writeTextSecondaryColor(int color) { in writeTextSecondaryColor() argument
148 .putInt(KEY_TEXT_SECONDARY_COLOR, color) in writeTextSecondaryColor()
162 public void writeBackgroundColor(int color) { in writeBackgroundColor() argument
164 .putInt(KEY_BACKGROUND_COLOR, color) in writeBackgroundColor()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DBaseActivity.kt52 @ColorInt val color = ThemeUtils.resolveColor(this, R.attr.windowBackground) in onCreate() constant
53 adjustAppColor(color, animate = false) in onCreate()
60 @ColorInt val color = ThemeUtils.resolveColor(this, R.attr.windowBackground) in onStart() constant
61 adjustAppColor(color, animate = false) in onStart()
70 protected fun adjustAppColor(@ColorInt color: Int, animate: Boolean) { in adjustAppColor()
73 mBackground = ColorDrawable(color) in adjustAppColor()
80 @ColorInt val currentColor = mBackground!!.color in adjustAppColor()
81 if (currentColor != color) { in adjustAppColor()
84 currentColor, color) in adjustAppColor()
90 setAppColor(color) in adjustAppColor()
[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/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/Dialer/java/com/android/dialer/voicemail/settings/
DRecordButton.java101 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/Dialer/java/com/android/incallui/
DThemeColorManager.java73 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/Settings/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragment.java111 .put(res.getInteger(R.color.SIM_color_teal), in onAttach()
112 res.getInteger(R.color.SIM_dark_mode_color_teal)) in onAttach()
113 .put(res.getInteger(R.color.SIM_color_blue), in onAttach()
114 res.getInteger(R.color.SIM_dark_mode_color_blue)) in onAttach()
115 .put(res.getInteger(R.color.SIM_color_indigo), in onAttach()
116 res.getInteger(R.color.SIM_dark_mode_color_indigo)) in onAttach()
117 .put(res.getInteger(R.color.SIM_color_purple), in onAttach()
118 res.getInteger(R.color.SIM_dark_mode_color_purple)) in onAttach()
119 .put(res.getInteger(R.color.SIM_color_pink), in onAttach()
120 res.getInteger(R.color.SIM_dark_mode_color_pink)) in onAttach()
[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/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/Calendar/src/com/android/calendar/
DUtils.java752 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/Launcher3/src/com/android/launcher3/graphics/
DIconPalette.java68 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/Car/Settings/src/com/android/car/settings/common/
DTopLevelIcon.java98 setBackgroundColor(context.getColor(R.color.top_level_injected_default_background)); in setBackgroundColor()
104 public void setBackgroundColor(@ColorInt int color) { in setBackgroundColor() argument
105 mBackgroundColorStateList = createBackgroundColorStateList(color); in setBackgroundColor()
107 mAdaptiveConstantState.mColor = color; in setBackgroundColor()
115 private ColorStateList createBackgroundColorStateList(@ColorInt int color) { in createBackgroundColorStateList() argument
123 getDisabledAlphaColor(color), in createBackgroundColorStateList()
124 getDisabledAlphaColor(color), in createBackgroundColorStateList()
125 color in createBackgroundColorStateList()
131 private int getDisabledAlphaColor(@ColorInt int color) { in getDisabledAlphaColor() argument
132 return ColorUtils.setAlphaComponent(color, in getDisabledAlphaColor()
/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/UniversalMediaPlayer/java/com/android/pump/util/
DClog.java127 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/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java455 R.color.timestamp_text_incoming) : subscriptionEntry.displayColor); in updateViewContent()
855 final int selectedImageTint = getResources().getColor(R.color.message_image_selected_tint); in updateMessageAttachmentsAppearance()
906 messageColorResId = R.color.message_text_color_incoming; in updateTextAppearance()
907 statusColorResId = R.color.message_action_status_text; in updateTextAppearance()
908 infoColorResId = R.color.message_action_info_text; in updateTextAppearance()
910 timestampColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
911 subjectLabelColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
915 timestampColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
916 subjectLabelColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
920 R.color.message_text_color_incoming : R.color.message_text_color_outgoing); in updateTextAppearance()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java78 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/Dialer/java/com/android/dialer/lettertile/
DLetterTileDrawable.java114 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/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/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 …]
/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/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java73 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()
145 final int color = colorItem.getInt(); in testSettingsSliderSlice() local
146 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsSliderSlice()
184 final int color = colorItem.getInt(); in testSettingsCopyableSlice() local
185 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsCopyableSlice()
223 final int color = colorItem.getInt(); in testSettingsUnavailableSlice() local
224 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsUnavailableSlice()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DSliceTester.java72 final int color = colorItem.getInt(); in testSettingsIntentSlice() local
73 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsIntentSlice()
101 final int color = colorItem.getInt(); in testSettingsToggleSlice() local
102 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsToggleSlice()
144 final int color = colorItem.getInt(); in testSettingsSliderSlice() local
145 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsSliderSlice()
183 final int color = colorItem.getInt(); in testSettingsCopyableSlice() local
184 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsCopyableSlice()
222 final int color = colorItem.getInt(); in testSettingsUnavailableSlice() local
223 assertThat(color).isEqualTo(Utils.getColorAccentDefaultColor(context)); in testSettingsUnavailableSlice()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java44 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()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsageGraphicPreference.java120 int colorCameraRes = mIsNightMode ? android.R.color.system_accent1_100 : in onBindViewHolder()
121 R.color.privacy_dash_graphic_pref_light_camera; in onBindViewHolder()
122 int colorMicrophoneRes = mIsNightMode ? R.color.privacy_dash_graphic_pref_dark_mic : in onBindViewHolder()
123 R.color.privacy_dash_graphic_pref_light_mic; in onBindViewHolder()
124 int colorLocationRes = mIsNightMode ? android.R.color.system_accent3_300 : in onBindViewHolder()
125 R.color.privacy_dash_graphic_pref_light_location; in onBindViewHolder()
126 int colorOtherRes = mIsNightMode ? R.color.privacy_dash_graphic_pref_dark_others : in onBindViewHolder()
127 R.color.privacy_dash_graphic_pref_light_others; in onBindViewHolder()

12345678910>>...22