/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 95 int backgroundColor = getBackgroundColor(mView); in onReinflated() local 96 if (backgroundColor != Color.TRANSPARENT) { in onReinflated() 97 mBackgroundColor = backgroundColor; in onReinflated() 155 int backgroundColor = getBackgroundColor(viewGroup); in childrenNeedInversion() local 156 if (Color.alpha(backgroundColor) != 255) { in childrenNeedInversion() 157 backgroundColor = ContrastColorUtil.compositeColors(backgroundColor, parentBackground); in childrenNeedInversion() 158 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255); in childrenNeedInversion() 164 if (ColorUtils.calculateContrast(foreground, backgroundColor) < 3) { in childrenNeedInversion() 168 if (childrenNeedInversion(backgroundColor, (ViewGroup) child)) { in childrenNeedInversion()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleView.java | 285 private AdaptiveIconDrawable buildIconWithTint(Drawable iconDrawable, int backgroundColor) { in buildIconWithTint() argument 286 iconDrawable = checkTint(iconDrawable, backgroundColor); in buildIconWithTint() 288 ColorDrawable background = new ColorDrawable(backgroundColor); in buildIconWithTint() 292 private Drawable checkTint(Drawable iconDrawable, int backgroundColor) { in checkTint() argument 293 backgroundColor = ColorUtils.setAlphaComponent(backgroundColor, 255 /* alpha */); in checkTint() 294 if (backgroundColor == Color.TRANSPARENT) { in checkTint() 296 backgroundColor = DEFAULT_BACKGROUND_COLOR; in checkTint() 299 double contrastRatio = ColorUtils.calculateContrast(Color.WHITE, backgroundColor); in checkTint()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ContrastColorUtil.java | 336 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { in findAlphaToMeetContrast() argument 338 int bg = backgroundColor; in findAlphaToMeetContrast() 475 int backgroundColor) { in resolveContrastColor() argument 477 backgroundColor, false /* isDark */); in resolveContrastColor() 491 int backgroundColor, boolean isDark) { in resolveContrastColor() argument 495 color = ContrastColorUtil.ensureTextContrast(color, backgroundColor, isDark); in resolveContrastColor() 503 ContrastColorUtil.contrastChange(resolvedColor, color, backgroundColor), in resolveContrastColor() 525 public static int resolvePrimaryColor(Context context, int backgroundColor, in resolvePrimaryColor() argument 527 boolean useDark = shouldUseDark(backgroundColor, defaultBackgroundIsDark); in resolvePrimaryColor() 537 public static int resolveSecondaryColor(Context context, int backgroundColor, in resolveSecondaryColor() argument [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 318 public final int backgroundColor; field in CaptioningManager.CaptionStyle 356 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, in CaptionStyle() argument 359 mHasBackgroundColor = hasColor(backgroundColor); in CaptionStyle() 367 this.backgroundColor = mHasBackgroundColor ? backgroundColor : Color.BLACK; in CaptionStyle() 402 overlay.backgroundColor : backgroundColor; in applyStyle() 480 final int backgroundColor = Secure.getInt( in getCustomStyle() local 481 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); in getCustomStyle() 494 return new CaptionStyle(foregroundColor, backgroundColor, edgeType, edgeColor, in getCustomStyle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 108 int backgroundColor = 0; in processNotification() local 126 backgroundColor = backgroundSwatch.getRgb(); in processNotification() 143 int foregroundColor = selectForegroundColor(backgroundColor, palette); in processNotification() 144 builder.setColorPalette(backgroundColor, foregroundColor); in processNotification() 146 backgroundColor = mContext.getColor(R.color.notification_material_background_color); in processNotification() 148 Bitmap colorized = mColorizer.colorize(drawable, backgroundColor, in processNotification() 155 private int selectForegroundColor(int backgroundColor, Palette palette) { in selectForegroundColor() argument 156 if (ContrastColorUtil.isColorLight(backgroundColor)) { in selectForegroundColor()
|
D | ImageGradientColorizer.java | 35 public Bitmap colorize(Drawable drawable, int backgroundColor, boolean isRtl) { in colorize() argument 53 int tri = Color.red(backgroundColor); in colorize() 54 int tgi = Color.green(backgroundColor); in colorize() 55 int tbi = Color.blue(backgroundColor); in colorize()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
D | GlifLayout.java | 127 ColorStateList backgroundColor = in init() local 129 setBackgroundBaseColor(backgroundColor); in init() 289 int backgroundColor = 0; in updateBackground() local 291 backgroundColor = backgroundBaseColor.getDefaultColor(); in updateBackground() 293 backgroundColor = primaryColor.getDefaultColor(); in updateBackground() 297 ? new GlifPatternDrawable(backgroundColor) in updateBackground() 298 : new ColorDrawable(backgroundColor); in updateBackground()
|
/frameworks/base/core/java/android/util/ |
D | LauncherIcons.java | 101 public Drawable getBadgeDrawable(int foregroundRes, int backgroundColor) { in getBadgeDrawable() argument 102 return getBadgedDrawable(null, foregroundRes, backgroundColor); in getBadgeDrawable() 105 public Drawable getBadgedDrawable(Drawable base, int foregroundRes, int backgroundColor) { in getBadgedDrawable() argument 117 badgeForeground.setTint(backgroundColor); in getBadgedDrawable()
|
/frameworks/base/core/java/android/text/style/ |
D | SuggestionRangeSpan.java | 71 public void setBackgroundColor(int backgroundColor) { in setBackgroundColor() argument 72 mBackgroundColor = backgroundColor; in setBackgroundColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DualToneHandler.kt | 57 Utils.getColorAttrDefaultColor(dualToneDarkTheme, R.attr.backgroundColor), in setColorsFromContext() 61 Utils.getColorAttrDefaultColor(dualToneLightTheme, R.attr.backgroundColor), in setColorsFromContext()
|
D | BatteryMeterView.java | 450 private void updateColors(int foregroundColor, int backgroundColor, int singleToneColor) { in updateColors() argument 451 mDrawable.setColors(foregroundColor, backgroundColor, singleToneColor); in updateColors()
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | VectorDrawablePerfTest.java | 78 int backgroundColor = bmp.getPixel(w / 4, h / 2); in testBitmapDrawPerf() local 81 assertTrue("The background should be white", backgroundColor == Color.WHITE); in testBitmapDrawPerf()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyView.java | 827 public void setBackgroundTintColor(int backgroundColor) { in setBackgroundTintColor() argument 828 if (backgroundColor == mCurrentBackgroundColor) { in setBackgroundTintColor() 832 mCurrentBackgroundColor = backgroundColor; in setBackgroundTintColor() 834 final boolean dark = !ContrastColorUtil.isColorLight(backgroundColor); in setBackgroundTintColor() 838 backgroundColor | 0xff000000, dark); in setBackgroundTintColor() 840 mDefaultStrokeColor, backgroundColor | 0xff000000, dark, mMinStrokeContrast); in setBackgroundTintColor() 846 setButtonColors(child, backgroundColor, strokeColor, textColor, rippleColor, in setBackgroundTintColor() 851 private static void setButtonColors(Button button, int backgroundColor, int strokeColor, in setButtonColors() argument 864 gradientDrawable.setColor(backgroundColor); in setButtonColors()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationTest.java | 109 int backgroundColor = 0xff585868; in testColorSatisfiedWhenBgDarkTextDarker() local 111 builder.setColorPalette(backgroundColor, initialForegroundColor); in testColorSatisfiedWhenBgDarkTextDarker() 113 assertTrue(satisfiesTextContrast(primaryTextColor, backgroundColor)); in testColorSatisfiedWhenBgDarkTextDarker() 115 assertTrue(satisfiesTextContrast(secondaryTextColor, backgroundColor)); in testColorSatisfiedWhenBgDarkTextDarker()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | ExtendedBitmapDrawable.java | 739 public int backgroundColor = 0; field in ExtendedBitmapDrawable.ExtendedOptions 813 if (backgroundColor == 0 in validate() 824 if (backgroundColor != 0 && Color.alpha(backgroundColor) != 255) { in validate()
|
D | TileDrawable.java | 98 mPaint.setColor(mOpts.backgroundColor); in draw()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/ |
D | RecentsTaskLoadPlan.java | 140 int backgroundColor = loader.getActivityBackgroundColor(t.taskDescription); in preloadPlan() local 152 thumbnail, title, titleDescription, activityColor, backgroundColor, in preloadPlan()
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.cpp | 733 if (!parseColor(color, part.backgroundColor)) { in parseAnimationDesc() 735 part.backgroundColor[0] = 0.0f; in parseAnimationDesc() 736 part.backgroundColor[1] = 0.0f; in parseAnimationDesc() 737 part.backgroundColor[2] = 0.0f; in parseAnimationDesc() 974 part.backgroundColor[0], in playAnimation() 975 part.backgroundColor[1], in playAnimation() 976 part.backgroundColor[2], in playAnimation()
|
D | BootAnimation.h | 84 float backgroundColor[3]; member
|
/frameworks/base/media/java/android/media/ |
D | Cea708CaptionRenderer.java | 507 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); in parseC1() local 516 new CaptionPenColor(foregroundColor, backgroundColor, edgeColor))); in parseC1() 520 foregroundColor, backgroundColor, edgeColor)); in parseC1() 918 public final CaptionColor backgroundColor; field in Cea708CCParser.CaptionPenColor 921 public CaptionPenColor(CaptionColor foregroundColor, CaptionColor backgroundColor, in CaptionPenColor() argument 924 this.backgroundColor = backgroundColor; in CaptionPenColor() 2143 ? style.backgroundColor : DEFAULT_CAPTION_STYLE.backgroundColor); in setCaptionStyle()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SubtitleView.java | 282 style.backgroundColor : defStyle.backgroundColor; in setStyle()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | MainActivity.java | 117 opts.backgroundColor = Color.LTGRAY; in getView()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotSurface.java | 247 int backgroundColor = taskDescription.getBackgroundColor(); in TaskSnapshotSurface() local 248 mBackgroundPaint.setColor(backgroundColor != 0 ? backgroundColor : WHITE); in TaskSnapshotSurface()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | ThemedBatteryDrawable.kt | 81 private var backgroundColor: Int = Color.MAGENTA in <lambda>() variable 346 backgroundColor = bgColor in <lambda>()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 4779 int backgroundColor = getBackgroundColor(p); in ensureColors() local 4782 || mTextColorsAreForBackground != backgroundColor) { in ensureColors() 4783 mTextColorsAreForBackground = backgroundColor; in ensureColors() 4786 backgroundColor, mInNightMode); in ensureColors() 4788 backgroundColor, mInNightMode); in ensureColors() 4789 if (backgroundColor != COLOR_DEFAULT && isColorized(p)) { in ensureColors() 4791 mPrimaryTextColor, backgroundColor, 4.5); in ensureColors() 4793 mSecondaryTextColor, backgroundColor, 4.5); in ensureColors() 4796 double backLum = ContrastColorUtil.calculateLuminance(backgroundColor); in ensureColors() 4799 backgroundColor); in ensureColors() [all …]
|