/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | ImageGradientColorizer.java | 37 public Bitmap colorize(Drawable drawable, int backgroundColor, boolean isRtl) { argument 55 int tri = Color.red(backgroundColor); 56 int tgi = Color.green(backgroundColor); 57 int tbi = Color.blue(backgroundColor);
|
H A D | MediaNotificationProcessor.java | 108 int backgroundColor = 0; 130 backgroundColor = findBackgroundColorAndFilter(palette); 145 int foregroundColor = selectForegroundColor(backgroundColor, palette); 146 builder.setColorPalette(backgroundColor, foregroundColor); 148 backgroundColor = mContext.getColor(R.color.notification_material_background_color); 150 Bitmap colorized = mColorizer.colorize(drawable, backgroundColor, 157 private int selectForegroundColor(int backgroundColor, Palette palette) { argument 158 if (NotificationColorUtil.isColorLight(backgroundColor)) {
|
/frameworks/support/viewpager/src/androidTest/java/android/support/v4/testutils/ |
H A D | TestUtilsMatchers.java | 40 public static Matcher backgroundColor(@ColorInt final int backgroundColor) { argument 65 40, 40, backgroundColor, true);
|
/frameworks/base/core/java/android/text/style/ |
H A D | SuggestionRangeSpan.java | 67 public void setBackgroundColor(int backgroundColor) { argument 68 mBackgroundColor = backgroundColor;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | MediaNotificationProcessorTest.java | 110 public Bitmap colorize(Drawable drawable, int backgroundColor, boolean isRtl) { argument
|
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
H A D | CardViewApi21Impl.java | 30 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 31 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius); 29 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | CardViewImpl.java | 27 void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, argument
|
H A D | CardViewBaseImpl.java | 81 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 82 RoundRectDrawableWithShadow background = createBackground(context, backgroundColor, radius, 90 ColorStateList backgroundColor, float radius, float elevation, 92 return new RoundRectDrawableWithShadow(context.getResources(), backgroundColor, radius, 80 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument 89 createBackground(Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | RoundRectDrawable.java | 55 RoundRectDrawable(ColorStateList backgroundColor, float radius) { argument 58 setBackground(backgroundColor);
|
H A D | RoundRectDrawableWithShadow.java | 91 RoundRectDrawableWithShadow(Resources resources, ColorStateList backgroundColor, float radius, argument 97 setBackground(backgroundColor);
|
/frameworks/base/core/java/android/util/ |
H A D | LauncherIcons.java | 100 public Drawable getBadgeDrawable(int foregroundRes, int backgroundColor) { argument 101 return getBadgedDrawable(null, foregroundRes, backgroundColor); 104 public Drawable getBadgedDrawable(Drawable base, int foregroundRes, int backgroundColor) { argument 115 badgeForeground.setTint(backgroundColor);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/app/ |
H A D | HeadersFragment.java | 263 private void updateFadingEdgeToBrandColor(int backgroundColor) { argument 269 new int[] {Color.TRANSPARENT, backgroundColor});
|
H A D | HeadersSupportFragment.java | 254 private void updateFadingEdgeToBrandColor(int backgroundColor) { argument 260 new int[] {Color.TRANSPARENT, backgroundColor});
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 81 float backgroundColor[3]; member in struct:android::BootAnimation::Animation::Part
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 186 mDarkModeBackgroundColor = Utils.getColorAttr(dualToneDarkTheme, R.attr.backgroundColor); 188 mLightModeBackgroundColor = Utils.getColorAttr(dualToneLightTheme, R.attr.backgroundColor); 323 private void updateColors(int foregroundColor, int backgroundColor) { argument 324 mDrawable.setColors(foregroundColor, backgroundColor);
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | CaptioningManager.java | 316 public final int backgroundColor; field in class:CaptioningManager.CaptionStyle 354 private CaptionStyle(int foregroundColor, int backgroundColor, int edgeType, int edgeColor, argument 357 mHasBackgroundColor = hasColor(backgroundColor); 365 this.backgroundColor = mHasBackgroundColor ? backgroundColor : Color.BLACK; 400 overlay.backgroundColor : backgroundColor; 478 final int backgroundColor = Secure.getInt( 479 cr, Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, defStyle.backgroundColor); 492 return new CaptionStyle(foregroundColor, backgroundColor, edgeTyp [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | BatteryMeterDrawableBase.java | 290 public void setColors(int fillColor, int backgroundColor) { argument 292 mFramePaint.setColor(backgroundColor);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyView.java | 570 public void setBackgroundTintColor(int backgroundColor) { argument 571 if (backgroundColor == mCurrentBackgroundColor) { 575 mCurrentBackgroundColor = backgroundColor; 577 final boolean dark = !NotificationColorUtil.isColorLight(backgroundColor); 581 backgroundColor | 0xff000000, dark); 583 mDefaultStrokeColor, backgroundColor | 0xff000000, dark, mMinStrokeContrast); 589 setColors(child, backgroundColor, strokeColor, textColor, rippleColor); 593 private void setColors(Button button, int backgroundColor, int strokeColor, int textColor, argument 606 gradientDrawable.setColor(backgroundColor);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskSnapshotSurface.java | 145 int backgroundColor = WHITE; 193 backgroundColor = taskDescription.getBackgroundColor(); 213 surface, snapshot, layoutParams.getTitle(), backgroundColor, statusBarColor, 231 TaskSnapshot snapshot, CharSequence title, int backgroundColor, int statusBarColor, 241 mBackgroundPaint.setColor(backgroundColor != 0 ? backgroundColor : WHITE); 230 TaskSnapshotSurface(WindowManagerService service, Window window, Surface surface, TaskSnapshot snapshot, CharSequence title, int backgroundColor, int statusBarColor, int navigationBarColor, int sysUiVis, int windowFlags, int windowPrivateFlags, Rect taskBounds, int currentOrientation) argument
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 97 // Placeholder is not optional because backgroundColor is part of it. 676 * Set {@link #backgroundColor} to the color used for the background of the placeholder and 739 public int backgroundColor = 0; field in class:ExtendedBitmapDrawable.ExtendedOptions 813 if (backgroundColor == 0 817 + "either backgroundColor or placeholder must be set."); 824 if (backgroundColor != 0 && Color.alpha(backgroundColor) != 255) { 827 + "backgroundColor must be set to an opaque color.");
|
/frameworks/base/core/java/android/text/ |
H A D | Html.java | 1302 public Background(int backgroundColor) { argument 1303 mBackgroundColor = backgroundColor;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 332 * @param backgroundColor the color to ensure contrast against. 336 public static int findAlphaToMeetContrast(int color, int backgroundColor, double minRatio) { argument 338 int bg = backgroundColor; 472 int backgroundColor) { 474 backgroundColor, false /* isDark */); 482 * @param backgroundColor the background color to ensure the contrast against. 488 int backgroundColor, boolean isDark) { 492 color = NotificationColorUtil.ensureTextContrast(color, backgroundColor, isDark); 500 NotificationColorUtil.contrastChange(resolvedColor, color, backgroundColor), 541 public static int resolvePrimaryColor(Context context, int backgroundColor) { argument 471 resolveContrastColor(Context context, int notificationColor, int backgroundColor) argument 487 resolveContrastColor(Context context, int notificationColor, int backgroundColor, boolean isDark) argument 552 resolveSecondaryColor(Context context, int backgroundColor) argument 563 resolveDefaultColor(Context context, int backgroundColor) argument 594 shouldUseDark(int backgroundColor) argument 602 calculateLuminance(int backgroundColor) argument 607 calculateContrast(int foregroundColor, int backgroundColor) argument 611 satisfiesTextContrast(int backgroundColor, int foregroundColor) argument 622 isColorLight(int backgroundColor) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 251 int backgroundColor) { 258 backgroundColor); 250 getContrastedColor(Context context, boolean isLowPriority, int backgroundColor) argument
|
H A D | StatusBarIconView.java | 637 * @param backgroundColor Background to test against. 640 int getContrastedStaticDrawableColor(int backgroundColor) { argument 641 if (mCachedContrastBackgroundColor != backgroundColor) { 642 mCachedContrastBackgroundColor = backgroundColor;
|
/frameworks/base/media/java/android/media/ |
H A D | Cea708CaptionRenderer.java | 507 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); 516 new CaptionPenColor(foregroundColor, backgroundColor, edgeColor))); 519 "CaptionCommand SPC foregroundColor %s backgroundColor %s edgeColor %s", 520 foregroundColor, backgroundColor, edgeColor)); 918 public final CaptionColor backgroundColor; field in class:Cea708CCParser.CaptionPenColor 921 public CaptionPenColor(CaptionColor foregroundColor, CaptionColor backgroundColor, argument 924 this.backgroundColor = backgroundColor; 2143 ? style.backgroundColor : DEFAULT_CAPTION_STYLE.backgroundColor); [all...] |