Home
last modified time | relevance | path

Searched refs:getContrastColor (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java870 assertEquals(cDay.getContrastColor(), cNight.getContrastColor()); in validateColorizedPaletteForColor()
1819 assertThat(c.getContrastColor()).isNotEqualTo(Notification.COLOR_INVALID); in assertValid()
1828 assertContrastIsAtLeast(c.getContrastColor(), c.getBackgroundColor(), 4.5); in assertValid()
/frameworks/base/core/java/android/app/
DNotification.java7153 return getColors(p).getContrastColor();
7162 return getColors(/* isHeader = */ isHeader).getContrastColor();
13885 public @ColorInt int getContrastColor() { in getContrastColor() method in Notification.Builder.Colors