Home
last modified time | relevance | path

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

12345678910>>...25

/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.java102 public void writeNavigationBarColor(int color) { in writeNavigationBarColor() argument
104 .putInt(KEY_NAVIGATION_BAR_BACKGROUND_COLOR, color) in writeNavigationBarColor()
118 public void writeNavigationBarDividerColor(int color) { in writeNavigationBarDividerColor() argument
120 .putInt(KEY_NAVIGATION_BAR_DIVIDER_COLOR, color) in writeNavigationBarDividerColor()
134 public void writeTextPrimaryColor(int color) { in writeTextPrimaryColor() argument
136 .putInt(KEY_TEXT_PRIMARY_COLOR, color) in writeTextPrimaryColor()
150 public void writeTextSecondaryColor(int color) { in writeTextSecondaryColor() argument
152 .putInt(KEY_TEXT_SECONDARY_COLOR, color) in writeTextSecondaryColor()
166 public void writeBackgroundColor(int color) { in writeBackgroundColor() argument
168 .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/Settings/src/com/android/settings/network/telephony/
DRenameMobileNetworkDialogFragment.java110 .put(res.getInteger(R.color.SIM_color_cyan), in onAttach()
111 res.getInteger(R.color.SIM_dark_mode_color_cyan)) in onAttach()
112 .put(res.getInteger(R.color.SIM_color_blue800), in onAttach()
113 res.getInteger(R.color.SIM_dark_mode_color_blue)) in onAttach()
114 .put(res.getInteger(R.color.SIM_color_green800), in onAttach()
115 res.getInteger(R.color.SIM_dark_mode_color_green)) in onAttach()
116 .put(res.getInteger(R.color.SIM_color_purple800), in onAttach()
117 res.getInteger(R.color.SIM_dark_mode_color_purple)) in onAttach()
118 .put(res.getInteger(R.color.SIM_color_pink800), in onAttach()
119 res.getInteger(R.color.SIM_dark_mode_color_pink)) in onAttach()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModel.kt23 import com.android.customization.model.color.ColorBundle in <lambda>()
24 import com.android.customization.model.color.ColorSeedOption in <lambda>()
28 import com.android.customization.picker.color.domain.interactor.ColorPickerInteractor in <lambda>()
29 import com.android.customization.picker.color.shared.model.ColorType in <lambda>()
30 import com.android.customization.picker.color.ui.viewmodel.ColorOptionViewModel in <lambda>()
91 color = clockColorViewModel.color, in <lambda>()
104 color = clockColorViewModel.color, in <lambda>()
144 color0 = colorModel.color, in <lambda>()
145 color1 = colorModel.color, in <lambda>()
146 color2 = colorModel.color, in <lambda>()
[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/ThemePicker/src/com/android/customization/model/color/
DColorBundlePreviewExtractor.java16 package com.android.customization.model.color;
20 import static com.android.customization.model.color.ColorUtils.toColorString;
46 void addSecondaryColor(ColorBundle.Builder builder, @ColorInt int color) { in addSecondaryColor() argument
47 ColorScheme darkColorScheme = new ColorScheme(color, true); in addSecondaryColor()
48 ColorScheme lightColorScheme = new ColorScheme(color, false); in addSecondaryColor()
51 builder.addOverlayPackage(OVERLAY_CATEGORY_COLOR, toColorString(color)) in addSecondaryColor()
56 void addPrimaryColor(ColorBundle.Builder builder, @ColorInt int color) { in addPrimaryColor() argument
57 ColorScheme darkColorScheme = new ColorScheme(color, true); in addPrimaryColor()
58 ColorScheme lightColorScheme = new ColorScheme(color, false); in addPrimaryColor()
61 builder.addOverlayPackage(OVERLAY_CATEGORY_SYSTEM_PALETTE, toColorString(color)) in addPrimaryColor()
DWallpaperColorResources.java16 package com.android.customization.model.color;
33 addOverlayColor(wallpaperColorScheme.getNeutral1(), android.R.color.system_neutral1_10); in WallpaperColorResources()
34 addOverlayColor(wallpaperColorScheme.getNeutral2(), android.R.color.system_neutral2_10); in WallpaperColorResources()
35 addOverlayColor(wallpaperColorScheme.getAccent1(), android.R.color.system_accent1_10); in WallpaperColorResources()
36 addOverlayColor(wallpaperColorScheme.getAccent2(), android.R.color.system_accent2_10); in WallpaperColorResources()
37 addOverlayColor(wallpaperColorScheme.getAccent3(), android.R.color.system_accent3_10); in WallpaperColorResources()
47 for (int color : colorSchemehue.getAllShades()) { in addOverlayColor()
48 mColorOverlay.put(resourceColorId, color); in addOverlayColor()
/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/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/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/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/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/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/Calendar/src/com/android/calendar/
DUtils.kt730 @JvmStatic fun getDisplayColorFromColor(color: Int): Int { in getDisplayColorFromColor()
732 return color in getDisplayColorFromColor()
735 Color.colorToHSV(color, hsv) in getDisplayColorFromColor()
743 @JvmStatic fun getDeclinedColorFromColor(color: Int): Int { in getDeclinedColorFromColor()
746 val r = (color and 0x00ff0000) * a + (bg and 0x00ff0000) * (0xff - a) and -0x1000000 in getDeclinedColorFromColor()
747 val g = (color and 0x0000ff00) * a + (bg and 0x0000ff00) * (0xff - a) and 0x00ff0000 in getDeclinedColorFromColor()
748 val b = (color and 0x000000ff) * a + (bg and 0x000000ff) * (0xff - a) and 0x0000ff00 in getDeclinedColorFromColor()
820 CONFLICT_COLOR = res?.getColor(R.color.month_dna_conflict_time_color) as Int in createDNAStrands()
842 blackStrand.color = CONFLICT_COLOR in createDNAStrands()
947 if (currSegment.color == CONFLICT_COLOR) { in createDNAStrands()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarEduTooltipController.kt226 ".blue100" to R.color.lottie_blue400,
227 ".blue400" to R.color.lottie_blue600,
228 ".green100" to R.color.lottie_green400,
229 ".green400" to R.color.lottie_green600,
230 ".grey300" to R.color.lottie_grey600,
231 ".grey400" to R.color.lottie_grey700,
232 ".grey800" to R.color.lottie_grey200,
233 ".red400" to R.color.lottie_red600,
234 ".yellow100" to R.color.lottie_yellow400,
235 ".yellow400" to R.color.lottie_yellow600,
[all …]
/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/ThemePicker/tests/src/com/android/customization/model/picker/color/ui/viewmodel/
DColorPickerViewModelTest.kt17 package com.android.customization.model.picker.color.ui.viewmodel in <lambda>()
22 import com.android.customization.picker.color.data.repository.FakeColorPickerRepository in <lambda>()
23 import com.android.customization.picker.color.domain.interactor.ColorPickerInteractor in <lambda>()
24 import com.android.customization.picker.color.domain.interactor.ColorPickerSnapshotRestorer in <lambda>()
25 import com.android.customization.picker.color.shared.model.ColorType in <lambda>()
26 import com.android.customization.picker.color.ui.viewmodel.ColorOptionIconViewModel in <lambda>()
27 import com.android.customization.picker.color.ui.viewmodel.ColorPickerViewModel in <lambda>()
28 import com.android.customization.picker.color.ui.viewmodel.ColorTypeTabViewModel in <lambda>()
92 fun `Select a color section color`() = in <lambda>()
115 fun `Select a preset color`() = in <lambda>()
/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/Launcher3/src/com/android/launcher3/graphics/
DIconPalette.java66 public static int resolveContrastColor(Context context, int color, int background) { in resolveContrastColor() argument
67 final int resolvedColor = resolveColor(context, color); in resolveContrastColor()
89 private static int resolveColor(Context context, int color) { in resolveColor() argument
90 if (color == Notification.COLOR_DEFAULT) { in resolveColor()
91 return context.getColor(R.color.notification_icon_default_color); in resolveColor()
93 return color; in resolveColor()
109 private static int ensureTextContrast(int color, int bg) { in ensureTextContrast() argument
110 return findContrastColor(color, bg, 4.5); in ensureTextContrast()
/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/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageView.java455 R.color.timestamp_text_incoming) : subscriptionEntry.displayColor); in updateViewContent()
857 final int selectedImageTint = getResources().getColor(R.color.message_image_selected_tint); in updateMessageAttachmentsAppearance()
908 messageColorResId = R.color.message_text_color_incoming; in updateTextAppearance()
909 statusColorResId = R.color.message_action_status_text; in updateTextAppearance()
910 infoColorResId = R.color.message_action_info_text; in updateTextAppearance()
912 timestampColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
913 subjectLabelColorResId = R.color.message_action_timestamp_text; in updateTextAppearance()
917 timestampColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
918 subjectLabelColorResId = R.color.timestamp_text_outgoing; in updateTextAppearance()
922 R.color.message_text_color_incoming : R.color.message_text_color_outgoing); in updateTextAppearance()
[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/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.kt247 mMonthWeekNumColor = res.getColor(R.color.month_week_num_color) in loadColors()
248 mMonthNumColor = res.getColor(R.color.month_day_number) in loadColors()
249 mMonthNumOtherColor = res.getColor(R.color.month_day_number_other) in loadColors()
250 mMonthNumTodayColor = res.getColor(R.color.month_today_number) in loadColors()
253 mMonthEventColor = res.getColor(R.color.month_event_color) in loadColors()
254 mMonthDeclinedEventColor = res.getColor(R.color.agenda_item_declined_color) in loadColors()
255 mMonthDeclinedExtrasColor = res.getColor(R.color.agenda_item_where_declined_text_color) in loadColors()
256 mMonthEventExtraColor = res.getColor(R.color.month_event_extra_color) in loadColors()
257 mMonthEventOtherColor = res.getColor(R.color.month_event_other_color) in loadColors()
258 mMonthEventExtraOtherColor = res.getColor(R.color.month_event_extra_other_color) in loadColors()
[all …]

12345678910>>...25