Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileUserActionInteractorTest.kt84 val isNightMode = true in <lambda>() constant
87 underTest.handleInput(QSTileInputTestKtx.click(createModel(isNightMode, isPowerSave))) in <lambda>()
94 val isNightMode = false in <lambda>() constant
97 underTest.handleInput(QSTileInputTestKtx.click(createModel(isNightMode, isPowerSave))) in <lambda>()
104 val isNightMode = true in <lambda>() constant
106 underTest.handleInput(QSTileInputTestKtx.longClick(createModel(isNightMode))) in <lambda>()
117 val isNightMode = false in <lambda>() constant
119 underTest.handleInput(QSTileInputTestKtx.longClick(createModel(isNightMode))) in <lambda>()
DUiModeNightTileDataInteractorTest.kt138 assertThat(flowValues.map { it.isNightMode }).containsExactly(false, true, false).inOrder() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapper.kt58 if (isNightMode) in map()
65 if (isNightMode) { in map()
76 if (isNightMode) in map()
86 if (isNightMode) in map()
109 if (isNightMode) QSTileState.ActivationState.ACTIVE in map()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DDynamicRenderResources.java142 public void setWallpaper(String wallpaperPath, boolean isNightMode) { in setWallpaper() argument
147 mDynamicColorMap = createDynamicColorMap(wallpaperPath, isNightMode); in setWallpaper()
160 static Map<String, Integer> createDynamicColorMap(String wallpaperPath, boolean isNightMode) { in createDynamicColorMap() argument
168 ColorScheme scheme = new ColorScheme(seed, isNightMode); in createDynamicColorMap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleOverflowContainerView.java211 final boolean isNightMode = (mode == Configuration.UI_MODE_NIGHT_YES); in updateTheme()
220 mEmptyStateImage.setImageDrawable(isNightMode in updateTheme()
225 .setBackgroundColor(isNightMode in updateTheme()
232 int bgColor = typedArray.getColor(0, isNightMode ? Color.BLACK : Color.WHITE); in updateTheme()
233 int textColor = typedArray.getColor(1, isNightMode ? Color.WHITE : Color.BLACK); in updateTheme()
234 textColor = ContrastColorUtil.ensureTextContrast(textColor, bgColor, isNightMode); in updateTheme()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerInternal.java26 public abstract boolean isNightMode(); in isNightMode() method in UiModeManagerInternal
DUiModeManagerService.java2322 public boolean isNightMode() { in isNightMode() method in UiModeManagerService.LocalService
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/model/
DUiModeNightTileModel.kt28 val isNightMode: Boolean, constant in com.android.systemui.qs.tiles.impl.uimodenight.domain.model.UiModeNightTileModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileUserActionInteractor.kt47 uiModeManager.setNightModeActivated(!input.data.isNightMode) in handleInput()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DAutoFillUI.java234 serviceLabel, serviceIcon, mUiModeMgr.isNightMode(), maxInputLengthForAutofill, in showFillUi()
415 }, mUiModeMgr.isNightMode(), isUpdate, compatMode, showServiceIcon); in showSaveUi()
450 mUiModeMgr.isNightMode(), new DialogFillUi.UiCallback() { in showFillDialog()
565 pw.print(prefix); pw.print("Night mode: "); pw.println(mUiModeMgr.isNightMode()); in dump()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DHandleMenu.java238 final boolean isNightMode = (mode == Configuration.UI_MODE_NIGHT_YES); in getWindowingIconColor()
242 final int inActiveColor = typedArray.getColor(0, isNightMode ? Color.WHITE : Color.BLACK); in getWindowingIconColor()
243 final int activeColor = typedArray.getColor(1, isNightMode ? Color.WHITE : Color.BLACK); in getWindowingIconColor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayControllerTest.java173 protected boolean isNightMode() { in setup()
779 protected boolean isNightMode() { in catchException_whenPackageNameIsOverlayName()
819 protected boolean isNightMode() { in onWallpaperColorsChanged_defersUntilSetupIsCompleted_ifHasColors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java581 protected boolean isNightMode() { in isNightMode() method in ThemeOverlayController
600 mColorScheme = isNightMode() ? mDarkColorScheme : mLightColorScheme; in createOverlays()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java1851 boolean isNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in runInNightMode()
1853 assertEquals(nightMode, isNightMode); in runInNightMode()