Home
last modified time | relevance | path

Searched refs:supportsDarkText (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java59 boolean supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in colorHintsTest()
62 Assert.assertTrue("White surface should support dark text.", supportsDarkText); in colorHintsTest()
69 supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in colorHintsTest()
71 Assert.assertFalse("Black surface shouldn't support dark text.", supportsDarkText); in colorHintsTest()
79 supportsDarkText = (WallpaperColors.fromBitmap(image) in colorHintsTest()
82 + "when it contains dark pixels.", supportsDarkText); in colorHintsTest()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTonalCompat.java39 result.supportsDarkText = darkColors.supportsDarkText(); in extractDarkColors()
50 public boolean supportsDarkText; field in TonalCompat.ExtractionInfo
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockPalette.kt55 fun setColorPalette(supportsDarkText: Boolean, colorPalette: IntArray?) { in setColorPalette()
59 accentSecondaryDark = if (supportsDarkText) Color.BLACK else Color.WHITE in setColorPalette()
66 length - if (supportsDarkText) SECONDARY_DARK_INDEX else SECONDARY_LIGHT_INDEX)] in setColorPalette()
DAnalogClockController.java139 setColorPalette(colors.supportsDarkText(), colors.getColorPalette()); in getPreview()
175 public void setColorPalette(boolean supportsDarkText, int[] colorPalette) { in setColorPalette() argument
176 mPalette.setColorPalette(supportsDarkText, colorPalette); in setColorPalette()
DBubbleClockController.java139 setColorPalette(colors.supportsDarkText(), colors.getColorPalette()); in getPreview()
175 public void setColorPalette(boolean supportsDarkText, int[] colorPalette) { in setColorPalette() argument
176 mPalette.setColorPalette(supportsDarkText, colorPalette); in setColorPalette()
DDefaultClockController.java128 setColorPalette(colors.supportsDarkText(), colors.getColorPalette()); in getPreview()
162 public void setColorPalette(boolean supportsDarkText, int[] colorPalette) {} in setColorPalette() argument
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java115 final boolean supportsDarkText = (hints & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0; in runTonalExtraction()
197 if (supportsDarkText) { in runTonalExtraction()
211 if (supportsDarkText) { in runTonalExtraction()
223 outColorsNormal.setSupportsDarkText(supportsDarkText); in runTonalExtraction()
224 outColorsDark.setSupportsDarkText(supportsDarkText); in runTonalExtraction()
225 outColorsExtraDark.setSupportsDarkText(supportsDarkText); in runTonalExtraction()
/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java261 public void setSupportsDarkText(boolean supportsDarkText) { in setSupportsDarkText() argument
262 mSupportsDarkText = supportsDarkText; in setSupportsDarkText()
284 public boolean supportsDarkText() { in supportsDarkText() method in ColorExtractor.GradientColors
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DClockPlugin.java107 default void setColorPalette(boolean supportsDarkText, int[] colors) {} in setColorPalette() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLightBarController.java188 && !scrimInFrontColor.supportsDarkText(); in setScrimState()
DStatusBarWindowController.java632 final boolean useDarkText = mColorExtractor.getNeutralColors().supportsDarkText(); in onThemeChanged()
DScrimController.java568 int textColor = mColors.supportsDarkText() ? Color.BLACK : Color.WHITE; in updateScrims()
DStatusBar.java3338 final boolean lockDarkText = mColorExtractor.getNeutralColors().supportsDarkText(); in updateTheme()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsActivity.java326 WallpaperManager.FLAG_SYSTEM).supportsDarkText(); in onCreate()
398 boolean darkText = colors.supportsDarkText(); in onColorsChanged()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockSwitch.java413 mSupportsDarkText = colors.supportsDarkText(); in updateColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java1677 if (colors.supportsDarkText()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java670 final boolean useDarkText = mColorExtractor.getNeutralColors().supportsDarkText(); in onThemeChanged()