Home
last modified time | relevance | path

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

12

/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java148 @ColorInt int notificationColor, @ColorInt int backgroundColor) { in resolveContrastColor() argument
149 return getContrastedForegroundColor(notificationColor, backgroundColor, MIN_CONTRAST_RATIO); in resolveContrastColor()
155 public static boolean isColorLight(int backgroundColor) { in isColorLight() argument
156 return Color.luminance(backgroundColor) > LIGHT_COLOR_LUMINANCE_THRESHOLD; in isColorLight()
198 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstLightBackground() argument
199 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstLightBackground()
213 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) > minContrastRatio) { in findContrastColorAgainstLightBackground()
233 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstDarkBackground() argument
234 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstDarkBackground()
247 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) in findContrastColorAgainstDarkBackground()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DCea708Data.java215 public final CaptionColor backgroundColor; field in Cea708Data.CaptionPenColor
220 CaptionColor backgroundColor, in CaptionPenColor() argument
223 this.backgroundColor = backgroundColor; in CaptionPenColor()
DCea708Parser.java647 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() local
659 foregroundColor, backgroundColor, edgeColor))); in parseC1()
665 foregroundColor, backgroundColor, edgeColor)); in parseC1()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DArrowPopup.java246 private void assignMarginsAndBackgrounds(ViewGroup viewGroup, int backgroundColor) { in assignMarginsAndBackgrounds() argument
247 final boolean getColorFromColorArray = backgroundColor == Color.TRANSPARENT; in assignMarginsAndBackgrounds()
275 backgroundColor = mColors[numVisibleChild % mColors.length]; in assignMarginsAndBackgrounds()
279 assignMarginsAndBackgrounds((ViewGroup) view, backgroundColor); in assignMarginsAndBackgrounds() local
300 setChildColor(view, backgroundColor, colorAnimator); in assignMarginsAndBackgrounds()
303 mArrowColor = backgroundColor; in assignMarginsAndBackgrounds()
305 mArrowColor = backgroundColor; in assignMarginsAndBackgrounds()
/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/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.java208 int backgroundColor = bundle.getInt(EXTRA_DIALOG_IMAGE_BACKGROUND_COLOR); in onCreate() local
214 description, imageUri, backgroundColor)); in onCreate()
/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/
DViewPagerTabStrip.java47 int backgroundColor = ThemeComponent.get(context).theme().getColorPrimary(); in ViewPagerTabStrip() local
52 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/apps/Settings/src/com/android/settings/accessibility/
DCaptionAppearanceFragment.java304 final int backgroundColor = attrs.hasBackgroundColor() ? attrs.backgroundColor in updateAllPreferences() local
306 parseColorOpacity(mBackgroundColor, mBackgroundOpacity, backgroundColor); in updateAllPreferences()
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/util/
DAvatarUtil.java228 int backgroundColor, in drawBitmapWithCircleOnCanvas() argument
242 bitmapPaint.setColor(backgroundColor); in drawBitmapWithCircleOnCanvas()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DCaptionCustomFragment.java282 private void setCaptionsBackgroundColor(String backgroundColor) { in setCaptionsBackgroundColor() argument
283 final int color = (int) Long.parseLong(backgroundColor, 16) & 0x00ffffff; in setCaptionsBackgroundColor()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationHistoryActivity.java172 int backgroundColor = obtainThemeColor(android.R.attr.colorBackgroundFloating);
173 expand.setDefaultPillColor(backgroundColor);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DConfig.java74 labelSpec.backgroundColor = r.getColor( in AlbumSetPage()
/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()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmActivity.kt580 backgroundColor: Int in getAlertAnimator()
617 getWindow().setBackgroundDrawable(ColorDrawable(backgroundColor)) in getAlertAnimator()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlotRenderer.java62 public int backgroundColor; field in AlbumSetSlotRenderer.LabelSpec
DAlbumLabelMaker.java169 canvas.drawColor(mSpec.backgroundColor, PorterDuff.Mode.SRC); in run()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionDetailsFragment.java174 ColorStateList backgroundColor = activity.getColorStateList( in onCreateView() local
176 extendedFab.setBackgroundTintList(backgroundColor); in onCreateView()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java174 mBackgroundColor = style.backgroundColor; in setStyle()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java2297 final int newCursorPosition, final int backgroundColor, final int coloredTextLength) { in setComposingTextInternalWithBackgroundColor() argument
2299 if (backgroundColor == Color.TRANSPARENT) { in setComposingTextInternalWithBackgroundColor()
2304 new BackgroundColorSpan(backgroundColor); in setComposingTextInternalWithBackgroundColor()

12