Home
last modified time | relevance | path

Searched refs:backgroundColor (Results 1 – 25 of 33) sorted by relevance

12

/packages/services/Car/car-support-lib/src/android/support/car/ui/
DColorChecker.java38 public static int getTintColor(Context context, int backgroundColor) { in getTintColor() argument
42 return getTintColor(backgroundColor, lightTintColor, darkTintColor); in getTintColor()
50 public static int getNonCriticalTintColor(Context context, int backgroundColor) { in getNonCriticalTintColor() argument
54 return getNonCriticalTintColor(backgroundColor, lightTintColor, darkTintColor); in getNonCriticalTintColor()
60 public static int getTintColor(int backgroundColor, int... tintColors) { in getTintColor() argument
61 return getTintColor(MIN_CONTRAST_RATIO, backgroundColor, tintColors); in getTintColor()
67 public static int getNonCriticalTintColor(int backgroundColor, int... tintColors) { in getNonCriticalTintColor() argument
68 return getTintColor(MIN_NON_CRITICAL_CONTRAST_RATIO, backgroundColor, tintColors); in getNonCriticalTintColor()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconPalette.java48 public final int backgroundColor; field in IconPalette
56backgroundColor = desaturateBackground ? getMutedColor(dominantColor, 0.87f) : dominantColor; in IconPalette()
58 Themes.setColorScaleOnMatrix(backgroundColor, backgroundColorMatrix); in IconPalette()
67 textColor = getTextColorForBackground(backgroundColor); in IconPalette()
68 secondaryColor = getLowContrastColor(backgroundColor); in IconPalette()
219 private static int getTextColorForBackground(int backgroundColor) { in getTextColorForBackground() argument
220 return getLighterOrDarkerVersionOfColor(backgroundColor, 4.5f); in getTextColorForBackground()
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioController.java493 private void setBackgroundColor(int backgroundColor) { in setBackgroundColor() argument
494 mRadioBackground.setBackgroundColor(backgroundColor); in setBackgroundColor()
497 mRadioPresetBackground.setBackgroundColor(backgroundColor); in setBackgroundColor()
501 int red = darkenColor(Color.red(backgroundColor)); in setBackgroundColor()
502 int green = darkenColor(Color.green(backgroundColor)); in setBackgroundColor()
503 int blue = darkenColor(Color.blue(backgroundColor)); in setBackgroundColor()
504 int alpha = Color.alpha(backgroundColor); in setBackgroundColor()
987 int backgroundColor = (int) animator.getAnimatedValue();
988 setBackgroundColor(backgroundColor);
/packages/apps/TV/src/com/android/tv/tuner/data/
DCea708Data.java220 public final CaptionColor backgroundColor; field in Cea708Data.CaptionPenColor
223 public CaptionPenColor(CaptionColor foregroundColor, CaptionColor backgroundColor, in CaptionPenColor() argument
226 this.backgroundColor = backgroundColor; in CaptionPenColor()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DBaseContentFragment.java54 int backgroundColor) { in buildArgs() argument
56 backgroundColor); in buildArgs()
60 int backgroundColor) { in buildArgs() argument
61 return buildArgs(title, breadcrumb, description, 0, iconUri, null, backgroundColor); in buildArgs()
DDialogActivity.java207 int backgroundColor = bundle.getInt(EXTRA_DIALOG_IMAGE_BACKGROUND_COLOR); in onCreate() local
213 description, imageUri, backgroundColor)); in onCreate()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DImageRequest.java226 final int backgroundColor = mDescriptor.circleBackgroundColor; in postProcessOnBitmapResourceLoaded() local
229 dest, null, backgroundColor == 0 ? false : true /* fillBackground */, in postProcessOnBitmapResourceLoaded()
230 backgroundColor, strokeColor); in postProcessOnBitmapResourceLoaded()
DSimSelectorAvatarRequest.java74 final int backgroundColor = selected ? subColor : Color.WHITE; in renderSimAvatarInternal() local
77 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, backgroundColor); in renderSimAvatarInternal()
DPoolableImageCache.java356 final int backgroundColor) { in createOrReuseBitmap() argument
362 retBitmap.eraseColor(backgroundColor); in createOrReuseBitmap()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategoryPageIndicatorView.java41 public void setColors(final int foregroundColor, final int backgroundColor) { in setColors() argument
43 setBackgroundColor(backgroundColor); in setColors()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListPinnedHeaderView.java42 int backgroundColor = a.getColor( in ContactListPinnedHeaderView() local
53 setBackgroundColor(backgroundColor); in ContactListPinnedHeaderView()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListPinnedHeaderView.java40 int backgroundColor = in ContactListPinnedHeaderView() local
50 setBackgroundColor(backgroundColor); in ContactListPinnedHeaderView()
DViewPagerTabStrip.java46 int backgroundColor = res.getColor(R.color.contactscommon_actionbar_background_color); in ViewPagerTabStrip() local
51 setBackgroundColor(backgroundColor); in ViewPagerTabStrip()
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabStrip.java49 int backgroundColor = res.getColor(R.color.action_bar_background_color); in ViewPagerTabStrip() local
54 setBackgroundColor(backgroundColor); in ViewPagerTabStrip()
/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DCarUiEntry.java322 public void setSearchBoxColors(int backgroundColor, int searchLogoColor, int textColor, in setSearchBoxColors() argument
325 mSearchBox.setBackgroundColor(backgroundColor); in setSearchBoxColors()
326 mSearchBoxContents.setBackgroundColor(backgroundColor); in setSearchBoxColors()
/packages/apps/Settings/src/com/android/settings/accessibility/
DCaptionPropertiesFragment.java352 final int backgroundColor = attrs.hasBackgroundColor() ? in updateAllPreferences() local
353 attrs.backgroundColor : CaptionStyle.COLOR_UNSPECIFIED; in updateAllPreferences()
354 parseColorOpacity(mBackgroundColor, mBackgroundOpacity, backgroundColor); in updateAllPreferences()
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/
DEmbeddedCarUiController.java195 …public void setSearchBoxColors(int backgroundColor, int searchLogocolor, int textColor, int hintTe… in setSearchBoxColors() argument
196 mCarUiEntry.setSearchBoxColors(backgroundColor, searchLogocolor, textColor, hintTextColor); in setSearchBoxColors()
DCarDrawerActivity.java414 public void setSearchBoxColors(int backgroundColor, int searchLogoColor, int textColor, in setSearchBoxColors() argument
416 mUiController.setSearchBoxColors(backgroundColor, searchLogoColor, in setSearchBoxColors()
/packages/apps/TV/src/com/android/tv/tuner/cc/
DCea708Parser.java585 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() local
594 new CaptionPenColor(foregroundColor, backgroundColor, edgeColor))); in parseC1()
598 foregroundColor, backgroundColor, edgeColor)); in parseC1()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DCardView.java257 public void setBackground(Bitmap bmpPicture, int backgroundColor) { in setBackground() argument
267 p.setColor(backgroundColor); in setBackground()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolder.java627 final int backgroundColor = showBg ? Integer.parseInt(folder.bgColor) : 0; in setFolderBlockColor() local
628 if (backgroundColor == Utils.getDefaultFolderBackgroundColor(colorBlock.getContext())) { in setFolderBlockColor()
636 paintDrawable.getPaint().setColor(backgroundColor); in setFolderBlockColor()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java281 private void setCaptionsBackgroundColor(String backgroundColor) { in setCaptionsBackgroundColor() argument
282 final int color = (int) Long.parseLong(backgroundColor, 16) & 0x00ffffff; in setCaptionsBackgroundColor()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.java593 final int backgroundColor) { in getAlertAnimator() argument
632 getWindow().setBackgroundDrawable(new ColorDrawable(backgroundColor)); in getAlertAnimator()
/packages/services/Car/car-lib/src/android/car/app/menu/
DCarUiEntry.java154 abstract public void setSearchBoxColors(int backgroundColor, int searchLogoColor, in setSearchBoxColors() argument
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java133 final boolean fillBackground, final int backgroundColor, int strokeColor) { in drawBitmapWithCircleOnCanvas() argument
149 bitmapPaint.setColor(backgroundColor); in drawBitmapWithCircleOnCanvas()

12