/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | NotificationColorUtil.java | 48 @ColorInt int notificationColor, @ColorInt int backgroundColor) { in resolveContrastColor() argument 49 return getContrastedForegroundColor(notificationColor, backgroundColor, MIN_CONTRAST_RATIO); in resolveContrastColor() 55 public static boolean isColorLight(int backgroundColor) { in isColorLight() argument 56 return Color.luminance(backgroundColor) > LIGHT_COLOR_LUMINANCE_THRESHOLD; in isColorLight() 70 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstLightBackground() argument 71 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstLightBackground() 85 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) > minContrastRatio) { in findContrastColorAgainstLightBackground() 105 @ColorInt int foregroundColor, @ColorInt int backgroundColor, double minContrastRatio) { in findContrastColorAgainstDarkBackground() argument 106 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) >= minContrastRatio) { in findContrastColorAgainstDarkBackground() 119 if (ColorUtils.calculateContrast(foregroundColor, backgroundColor) in findContrastColorAgainstDarkBackground() [all …]
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | ColorChecker.java | 36 public static int getTintColor(Context context, int backgroundColor) { in getTintColor() argument 40 return getTintColor(backgroundColor, lightTintColor, darkTintColor); in getTintColor() 46 public static int getTintColor(int backgroundColor, int... tintColors) { in getTintColor() argument 47 return getTintColor(MIN_CONTRAST_RATIO, backgroundColor, tintColors); in getTintColor()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | Cea708Data.java | 215 public final CaptionColor backgroundColor; field in Cea708Data.CaptionPenColor 220 CaptionColor backgroundColor, in CaptionPenColor() argument 223 this.backgroundColor = backgroundColor; in CaptionPenColor()
|
D | Cea708Parser.java | 647 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/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | BaseContentFragment.java | 54 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()
|
D | DialogActivity.java | 208 int backgroundColor = bundle.getInt(EXTRA_DIALOG_IMAGE_BACKGROUND_COLOR); in onCreate() local 214 description, imageUri, backgroundColor)); in onCreate()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | ImageRequest.java | 226 final int backgroundColor = mDescriptor.circleBackgroundColor; in postProcessOnBitmapResourceLoaded() local 229 dest, null, backgroundColor == 0 ? false : true /* fillBackground */, in postProcessOnBitmapResourceLoaded() 230 backgroundColor, strokeColor); in postProcessOnBitmapResourceLoaded()
|
D | SimSelectorAvatarRequest.java | 74 final int backgroundColor = selected ? subColor : Color.WHITE; in renderSimAvatarInternal() local 77 final Bitmap bitmap = getBitmapPool().createOrReuseBitmap(width, height, backgroundColor); in renderSimAvatarInternal()
|
D | PoolableImageCache.java | 356 final int backgroundColor) { in createOrReuseBitmap() argument 362 retBitmap.eraseColor(backgroundColor); in createOrReuseBitmap()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiCategoryPageIndicatorView.java | 41 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/ |
D | ContactListPinnedHeaderView.java | 42 int backgroundColor = a.getColor( in ContactListPinnedHeaderView() local 53 setBackgroundColor(backgroundColor); in ContactListPinnedHeaderView()
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | ViewPagerTabStrip.java | 47 int backgroundColor = ThemeComponent.get(context).theme().getColorPrimary(); in ViewPagerTabStrip() local 52 setBackgroundColor(backgroundColor); in ViewPagerTabStrip()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ViewPagerTabStrip.java | 49 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/ |
D | CaptionPropertiesFragment.java | 306 final int backgroundColor = attrs.hasBackgroundColor() ? in updateAllPreferences() local 307 attrs.backgroundColor : CaptionStyle.COLOR_UNSPECIFIED; in updateAllPreferences() 308 parseColorOpacity(mBackgroundColor, mBackgroundOpacity, backgroundColor); in updateAllPreferences()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | CaptionPropertiesFragment.java | 355 final int backgroundColor = attrs.hasBackgroundColor() ? in updateAllPreferences() local 356 attrs.backgroundColor : CaptionStyle.COLOR_UNSPECIFIED; in updateAllPreferences() 357 parseColorOpacity(mBackgroundColor, mBackgroundOpacity, backgroundColor); in updateAllPreferences()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/ |
D | CaptionCustomFragment.java | 282 private void setCaptionsBackgroundColor(String backgroundColor) { in setCaptionsBackgroundColor() argument 283 final int color = (int) Long.parseLong(backgroundColor, 16) & 0x00ffffff; in setCaptionsBackgroundColor()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/ |
D | IndividualPickerActivityTest.java | 223 int backgroundColor = ((ColorDrawable) rotationTile.getBackground()).getColor(); in testRotationEnabled_StaticDailyRotationTile() local 225 backgroundColor); in testRotationEnabled_StaticDailyRotationTile() local
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.kt | 574 backgroundColor: Int in getAlertAnimator() 611 getWindow().setBackgroundDrawable(ColorDrawable(backgroundColor)) in getAlertAnimator()
|
D | AlarmActivity.java | 593 final int backgroundColor) { in getAlertAnimator() argument 632 getWindow().setBackgroundDrawable(new ColorDrawable(backgroundColor)); in getAlertAnimator()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Config.java | 74 labelSpec.backgroundColor = r.getColor( in AlbumSetPage()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 133 final boolean fillBackground, final int backgroundColor, int strokeColor) { in drawBitmapWithCircleOnCanvas() argument 149 bitmapPaint.setColor(backgroundColor); in drawBitmapWithCircleOnCanvas()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumSetSlotRenderer.java | 62 public int backgroundColor; field in AlbumSetSlotRenderer.LabelSpec
|
D | AlbumLabelMaker.java | 169 canvas.drawColor(mSpec.backgroundColor, PorterDuff.Mode.SRC); in run()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/ |
D | SubtitleView.java | 174 mBackgroundColor = style.backgroundColor; in setStyle()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 2297 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()
|