/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationUtils.java | 148 @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/ |
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/Launcher3/src/com/android/launcher3/popup/ |
D | ArrowPopup.java | 246 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/ |
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/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/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 | CaptionAppearanceFragment.java | 304 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/ |
D | AvatarUtil.java | 228 int backgroundColor, in drawBitmapWithCircleOnCanvas() argument 242 bitmapPaint.setColor(backgroundColor); in drawBitmapWithCircleOnCanvas()
|
/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/Settings/src/com/android/settings/notification/history/ |
D | NotificationHistoryActivity.java | 172 int backgroundColor = obtainThemeColor(android.R.attr.colorBackgroundFloating); 173 expand.setDefaultPillColor(backgroundColor);
|
/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/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmActivity.kt | 580 backgroundColor: Int in getAlertAnimator() 617 getWindow().setBackgroundDrawable(ColorDrawable(backgroundColor)) in getAlertAnimator()
|
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/ |
D | PermissionDetailsFragment.java | 174 ColorStateList backgroundColor = activity.getColorStateList( in onCreateView() local 176 extendedFab.setBackgroundTintList(backgroundColor); in onCreateView()
|
/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()
|