/frameworks/base/core/java/android/text/style/ |
H A D | SuggestionRangeSpan.java | 67 public void setBackgroundColor(int backgroundColor) { argument 68 mBackgroundColor = 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 | 129 ColorStateList backgroundColor = 131 setBackgroundBaseColor(backgroundColor); 268 int backgroundColor = 0; 270 backgroundColor = mBackgroundBaseColor.getDefaultColor(); 272 backgroundColor = mPrimaryColor.getDefaultColor(); 275 ? new GlifPatternDrawable(backgroundColor) 276 : new ColorDrawable(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; 459 int backgroundColor) { 461 backgroundColor, false /* isDark */); 469 * @param backgroundColor the background color to ensure the contrast against. 475 int backgroundColor, boolean isDark) { 483 color = NotificationColorUtil.ensureTextContrast(color, backgroundColor, isDark); 492 NotificationColorUtil.contrastChange(resolvedColor, color, backgroundColor), 533 public static int resolvePrimaryColor(Context context, int backgroundColor) { argument 458 resolveContrastColor(Context context, int notificationColor, int backgroundColor) argument 474 resolveContrastColor(Context context, int notificationColor, int backgroundColor, boolean isDark) argument 544 resolveSecondaryColor(Context context, int backgroundColor) argument 555 resolveActionBarColor(Context context, int backgroundColor) argument 582 shouldUseDark(int backgroundColor) argument 590 calculateLuminance(int backgroundColor) argument 595 calculateContrast(int foregroundColor, int backgroundColor) argument 599 satisfiesTextContrast(int backgroundColor, int foregroundColor) argument 610 isColorLight(int backgroundColor) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | NotificationTest.java | 93 int backgroundColor = 0xff585868; 95 builder.setColorPalette(backgroundColor, initialForegroundColor); 97 assertTrue(satisfiesTextContrast(primaryTextColor, backgroundColor)); 99 assertTrue(satisfiesTextContrast(secondaryTextColor, backgroundColor));
|
/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 | 109 int backgroundColor = 0; 131 backgroundColor = findBackgroundColorAndFilter(palette); 146 int foregroundColor = selectForegroundColor(backgroundColor, palette); 147 builder.setColorPalette(backgroundColor, foregroundColor); 152 backgroundColor = mContext.getColor(id); 154 Bitmap colorized = mColorizer.colorize(drawable, backgroundColor, 161 private int selectForegroundColor(int backgroundColor, Palette palette) { argument 162 if (NotificationColorUtil.isColorLight(backgroundColor)) {
|
H A D | NotificationViewWrapper.java | 116 private boolean isColorLight(int backgroundColor) { argument 117 return Color.alpha(backgroundColor) == 0 118 || ColorUtils.calculateLuminance(backgroundColor) > 0.5;
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardViewImpl.java | 26 void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, argument
|
H A D | CardViewApi21Impl.java | 29 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 30 final RoundRectDrawable background = new RoundRectDrawable(backgroundColor, radius); 28 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | CardViewBaseImpl.java | 80 ColorStateList backgroundColor, float radius, float elevation, float maxElevation) { 81 RoundRectDrawableWithShadow background = createBackground(context, backgroundColor, radius, 89 ColorStateList backgroundColor, float radius, float elevation, 91 return new RoundRectDrawableWithShadow(context.getResources(), backgroundColor, radius, 79 initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument 88 createBackground(Context context, ColorStateList backgroundColor, float radius, float elevation, float maxElevation) argument
|
H A D | CardView.java | 225 ColorStateList backgroundColor; 227 backgroundColor = a.getColorStateList(R.styleable.CardView_cardBackgroundColor); 237 backgroundColor = ColorStateList.valueOf(hsv[2] > 0.5f 262 IMPL.initialize(mCardViewDelegate, context, backgroundColor, radius,
|
H A D | RoundRectDrawable.java | 57 RoundRectDrawable(ColorStateList backgroundColor, float radius) { argument 60 setBackground(backgroundColor);
|
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
H A D | TestUtilsMatchers.java | 39 public static Matcher backgroundColor(@ColorInt final int backgroundColor) { argument 64 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/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 113 badgeColor.setTint(backgroundColor);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 98 int backgroundColor = getThemeColor(context, 0, android.R.attr.colorBackground); 100 if (ColorUtils.calculateContrast(primaryColor, backgroundColor) < MIN_CONTRAST) { 133 int backgroundColor = (int) backgroundView.getTag(); 134 controllerColor = ColorUtils.compositeColors(controllerColor, backgroundColor);
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | AppCompatBaseViewTest.java | 365 final @ColorInt int backgroundColor = ResourcesCompat.getColor( 370 backgroundColor, 0); 406 ColorUtils.compositeColors(emeraldDefault, backgroundColor), 413 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor), 434 final @ColorInt int backgroundColor = ResourcesCompat.getColor( 439 backgroundColor, 0); 475 ColorUtils.compositeColors(emeraldDefault, backgroundColor), 482 view, ColorUtils.compositeColors(emeraldDisabled, backgroundColor),
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskSnapshotSurface.java | 144 int backgroundColor = WHITE; 190 backgroundColor = taskDescription.getBackgroundColor(); 210 surface, snapshot, layoutParams.getTitle(), backgroundColor, statusBarColor, 228 TaskSnapshot snapshot, CharSequence title, int backgroundColor, int statusBarColor, 238 mBackgroundPaint.setColor(backgroundColor != 0 ? backgroundColor : WHITE); 227 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/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/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/ |
H A D | DetailViewExampleFragment.java | 172 int backgroundColor = getResources().getColor(R.color.detail_view_related_background, 174 getView().setBackgroundColor(backgroundColor);
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/ |
H A D | DetailViewExampleFragment.java | 172 int backgroundColor = getResources().getColor(R.color.detail_view_related_background, 174 getView().setBackgroundColor(backgroundColor);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | HeadersFragment.java | 254 private void updateFadingEdgeToBrandColor(int backgroundColor) { argument 260 new int[] {Color.TRANSPARENT, backgroundColor});
|
H A D | HeadersSupportFragment.java | 251 private void updateFadingEdgeToBrandColor(int backgroundColor) { argument 257 new int[] {Color.TRANSPARENT, backgroundColor});
|