Home
last modified time | relevance | path

Searched refs:UI_MODE_NIGHT_MASK (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/
DThemeUtils.kt23 import android.content.res.Configuration.UI_MODE_NIGHT_MASK
65 get() = if ((context.resources.configuration.uiMode and UI_MODE_NIGHT_MASK) == in isLight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt56 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK
82 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged()
172 return when (uiMode and Configuration.UI_MODE_NIGHT_MASK) { in getNightModeName()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DRestartDialogWindowManagerTest.java68 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in setUp()
92 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
DReachabilityEduWindowManagerTest.java74 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in setUp()
103 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/extensions/
DConfigurationExt.kt27 return (uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES in Configuration()
/frameworks/base/core/java/com/android/internal/widget/
DColoredIconHelper.java48 boolean inNightMode = (config.uiMode & Configuration.UI_MODE_NIGHT_MASK) in applyGrayTint()
/frameworks/base/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DLottieColorUtils.java86 return (context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) in isDarkMode()
DColorUtils.java100 return (context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) in isDarkMode()
/frameworks/base/core/java/android/content/res/
DConfiguration.java768 public static final int UI_MODE_NIGHT_MASK = 0x30; field in Configuration
1227 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString()
1231 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString()
1747 if ((delta.uiMode&UI_MODE_NIGHT_MASK) != UI_MODE_NIGHT_UNDEFINED) { in updateFrom()
1748 uiMode = (uiMode&~UI_MODE_NIGHT_MASK) in updateFrom()
1749 | (delta.uiMode&UI_MODE_NIGHT_MASK); in updateFrom()
2181 return (uiMode & UI_MODE_NIGHT_MASK) == UI_MODE_NIGHT_YES; in isNightModeActive()
2654 switch (config.uiMode & Configuration.UI_MODE_NIGHT_MASK) { in resourceQualifierString()
2901 if ((base.uiMode & UI_MODE_NIGHT_MASK) != (change.uiMode & UI_MODE_NIGHT_MASK)) { in generateDelta()
2902 delta.uiMode |= change.uiMode & UI_MODE_NIGHT_MASK; in generateDelta()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileDataInteractor.kt91 (context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == in createModel()
/frameworks/base/services/core/java/com/android/server/wm/
DConfigurationContainer.java667 final int currentNightMode = currentUiMode & Configuration.UI_MODE_NIGHT_MASK; in setOverrideNightMode()
668 final int validNightMode = nightMode & Configuration.UI_MODE_NIGHT_MASK; in setOverrideNightMode()
673 | (currentUiMode & ~Configuration.UI_MODE_NIGHT_MASK); in setOverrideNightMode()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DUtils.java126 & Configuration.UI_MODE_NIGHT_MASK; in isDarkTheme()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleFlyoutView.java439 int nightModeFlags = configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK; in applyColorsAccordingToConfiguration()
449 int nightModeFlags = configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK; in applyConfigurationColors()
DBubbleOverflowContainerView.java210 final int mode = res.getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK; in updateTheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/animation/
DColorSchemeTransition.kt164 context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == in colorScheme()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java124 & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES; in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DSideFpsOverlayViewModel.kt225 val darkMode = context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK in isDarkMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java130 boolean nightMode = (configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK) in needsInversion()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DWindowDecoration.java259 ? (mWindowDecorConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in inflateIfNeeded()
264 final int newNightMode = mWindowDecorConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK; in inflateIfNeeded()
DHandleMenu.java237 & Configuration.UI_MODE_NIGHT_MASK; in getWindowingIconColor()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPaintActivity.java288 (config.uiMode & Configuration.UI_MODE_NIGHT_MASK); in refreshNightMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarIconView.java211 mNightMode = (mConfiguration.uiMode & Configuration.UI_MODE_NIGHT_MASK) in StatusBarIconView()
323 boolean nightMode = (newConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in onConfigurationChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanel.kt155 resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == in updateArrowPaint()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
DSplashScreenExitAnimationUtils.java239 int nightMode = configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK; in isDarkTheme()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
DAppHeaderViewHolder.kt489 Configuration.UI_MODE_NIGHT_MASK == in isDarkMode()

12