Home
last modified time | relevance | path

Searched refs:isNightMode (Results 1 – 7 of 7) sorted by relevance

/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
H A DBubbleOverflowContainerView.java204 final boolean isNightMode = (mode == Configuration.UI_MODE_NIGHT_YES); in updateTheme()
213 mEmptyStateImage.setImageDrawable(isNightMode in updateTheme()
218 .setBackgroundColor(isNightMode in updateTheme()
225 int bgColor = typedArray.getColor(0, isNightMode ? Color.BLACK : Color.WHITE); in updateTheme()
226 int textColor = typedArray.getColor(1, isNightMode ? Color.WHITE : Color.BLACK); in updateTheme()
227 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, isNightMode); in updateTheme()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerInternal.java26 public abstract boolean isNightMode(); in isNightMode() method in UiModeManagerInternal
H A DUiModeManagerService.java2217 public boolean isNightMode() { in isNightMode() method in UiModeManagerService.LocalService
/aosp14/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
H A DAutoFillUI.java232 serviceLabel, serviceIcon, mUiModeMgr.isNightMode(), new FillUi.Callback() { in showFillUi()
412 }, mUiModeMgr.isNightMode(), isUpdate, compatMode, showServiceIcon); in showSaveUi()
444 mUiModeMgr.isNightMode(), new DialogFillUi.UiCallback() { in showFillDialog()
553 pw.print(prefix); pw.print("Night mode: "); pw.println(mUiModeMgr.isNightMode()); in dump()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
H A DThemeOverlayControllerTest.java162 protected boolean isNightMode() { in setup()
744 protected boolean isNightMode() { in catchException_whenPackageNameIsOverlayName()
784 protected boolean isNightMode() { in onWallpaperColorsChanged_defersUntilSetupIsCompleted_ifHasColors()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
H A DThemeOverlayController.java580 protected boolean isNightMode() { in isNightMode() method in ThemeOverlayController
591 boolean nightMode = isNightMode(); in createOverlays()
/aosp14/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationTest.java1679 boolean isNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in runInNightMode()
1681 assertEquals(nightMode, isNightMode); in runInNightMode()