/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/src/com/android/systemui/statusbar/notification/ |
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)) {
|
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);
|
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifLayout.java | 131 ColorStateList backgroundColor = 133 setBackgroundBaseColor(backgroundColor); 295 int backgroundColor = 0; 297 backgroundColor = mBackgroundBaseColor.getDefaultColor(); 299 backgroundColor = mPrimaryColor.getDefaultColor(); 302 ? new GlifPatternDrawable(backgroundColor) 303 : new ColorDrawable(backgroundColor);
|
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
H A D | CardViewImpl.java | 27 void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, argument
|
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 | 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 | CardView.java | 125 ColorStateList backgroundColor; 127 backgroundColor = a.getColorStateList(R.styleable.CardView_cardBackgroundColor); 137 backgroundColor = ColorStateList.valueOf(hsv[2] > 0.5f 162 IMPL.initialize(mCardViewDelegate, context, backgroundColor, radius,
|
H A D | RoundRectDrawable.java | 55 RoundRectDrawable(ColorStateList backgroundColor, float radius) { argument 58 setBackground(backgroundColor);
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/text/ |
H A D | SpannableStringBuilderTest.kt | 139 backgroundColor(RED) { 149 assertEquals(RED, color.backgroundColor) 237 backgroundColor(YELLOW) { 267 val backgroundColor = spans.filterIsInstance<BackgroundColorSpan>().single() 268 assertEquals(YELLOW, backgroundColor.backgroundColor) 269 assertEquals(7, result.getSpanStart(backgroundColor)) 270 assertEquals(12, result.getSpanEnd(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/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/apct-tests/perftests/core/src/android/graphics/perftests/ |
H A D | VectorDrawablePerfTest.java | 80 int backgroundColor = bmp.getPixel(w / 4, h / 2); 83 assertTrue("The background should be white", backgroundColor == Color.WHITE);
|
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
H A D | MediaRouterThemeHelper.java | 131 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); 133 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { 164 int backgroundColor = (int) backgroundView.getTag(); 165 controllerColor = ColorUtils.compositeColors(controllerColor, 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/mediarouter/src/main/java/androidx/mediarouter/app/ |
H A D | MediaRouterThemeHelper.java | 128 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); 130 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { 163 int backgroundColor = (int) backgroundView.getTag(); 164 controllerColor = ColorUtils.compositeColors(controllerColor, 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/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
H A D | AppCompatBaseViewTest.java | 367 final @ColorInt int backgroundColor = ResourcesCompat.getColor( 372 backgroundColor, 0); 408 ColorUtils.compositeColors(emeraldDefault, backgroundColor), 415 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), 436 final @ColorInt int backgroundColor = ResourcesCompat.getColor( 441 backgroundColor, 0); 477 ColorUtils.compositeColors(emeraldDefault, backgroundColor), 484 view, ColorUtils.compositeColors(emeraldDisabled, 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/base/core/tests/coretests/src/android/app/ |
H A D | NotificationTest.java | 106 int backgroundColor = 0xff585868; 108 builder.setColorPalette(backgroundColor, initialForegroundColor); 110 assertTrue(satisfiesTextContrast(primaryTextColor, backgroundColor)); 112 assertTrue(satisfiesTextContrast(secondaryTextColor, backgroundColor));
|
/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/opt/bitmap/sample/src/com/example/bitmapsample/ |
H A D | MainActivity.java | 117 opts.backgroundColor = Color.LTGRAY;
|
/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/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
H A D | RecentsTaskLoadPlan.java | 137 int backgroundColor = loader.getActivityBackgroundColor(t.taskDescription); 149 thumbnail, title, titleDescription, activityColor, backgroundColor,
|