Home
last modified time | relevance | path

Searched refs:uiMode (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/
DDarkModeCustomPreferenceControllerTest.java85 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in getAvailabilityStatus_nightModeManualOn_unavailable()
93 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in getAvailabilityStatus_nightModeManualOff_unavailable()
101 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in getAvailabilityStatus_nightModeCustomOn_available()
109 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in getAvailabilityStatus_nightModeCustomOff_available()
119 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in getAvailabilityStatus_nightModeCustomBedtimeOn_unavailable()
129 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in getAvailabilityStatus_nightModeCustomBedtimeOff_unavailable()
137 mConfig.uiMode = Configuration.UI_MODE_NIGHT_YES; in nightMode_customOn_setSummaryTo10Am()
147 mConfig.uiMode = Configuration.UI_MODE_NIGHT_NO; in nightMode_customOff_setSummaryTo10Am()
DDarkModeScheduleSelectorControllerTest.java79 mConfigNightYes.uiMode = Configuration.UI_MODE_NIGHT_YES; in setUp()
80 mConfigNightNo.uiMode = Configuration.UI_MODE_NIGHT_NO; in setUp()
DDarkModeActivationPreferenceControllerTest.java117 mConfigNightNo.uiMode = Configuration.UI_MODE_NIGHT_NO; in setUp()
118 mConfigNightYes.uiMode = Configuration.UI_MODE_NIGHT_YES; in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java96 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in isAvailable_inDarkThemeMode_returnFalse()
103 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in isAvailable_nonDarkTheme_autoNightMode_returnFalse()
111 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in isAvailable_nonDarkTheme_customNightMode_returnFalse()
146 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_notAvailable_returnErrorSlice()
162 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_newSession_notAvailable_returnErrorSlice()
185 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in getSlice_sliceNotClicked_notAvailable_returnErrorSlice()
224 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in setBatteryCapacityLevel()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeActivationPreferenceController.java61 final boolean active = (mContext.getResources().getConfiguration().uiMode in updateState()
68 final boolean isActivated = (mContext.getResources().getConfiguration().uiMode in getSummary()
101 final boolean active = (mContext.getResources().getConfiguration().uiMode in onCheckedChanged()
DDarkModePreference.java48 final boolean active = (getContext().getResources().getConfiguration().uiMode in DarkModePreference()
DDarkModeScheduleSelectorController.java107 boolean active = (mContext.getResources().getConfiguration().uiMode in onPreferenceChange()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/
DThemeUiTestBase.java76 nightConfig.uiMode &= ~Configuration.UI_MODE_NIGHT_MASK; in getThemeByUiMode()
77 nightConfig.uiMode |= nightModeFlag; in getThemeByUiMode()
/packages/services/Car/car-lib/src/android/car/projection/
DProjectionOptions.java182 public Builder setUiMode(@ProjectionUiMode int uiMode) { in setUiMode() argument
183 mUiMode = uiMode; in setUiMode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java95 mOriginalUiMode = mSettingsPanelActivity.getResources().getConfiguration().uiMode; in setUp()
103 mSettingsPanelActivity.getResources().getConfiguration().uiMode = mOriginalUiMode; in tearDown()
221 config.uiMode = UI_MODE_NIGHT_NO; in notInNightMode_lightNavigationBarAppearance()
/packages/services/Telephony/src/com/android/phone/
DFrameworksUtils.java33 boolean isDarkTheme = (context.getResources().getConfiguration().uiMode in makeAlertDialogBuilder()
/packages/apps/ThemePicker/src/com/android/customization/picker/mode/
DDarkModeSectionView.java36 mIsDarkModeActivated = (context.getResources().getConfiguration().uiMode in DarkModeSectionView()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerAccentColorParameters.java53 application.getApplicationContext().getResources().getConfiguration().uiMode in setNightModeFlag()
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/
DPermissionUtils.kt43 Resources.getSystem().configuration.uiMode and Configuration.UI_MODE_TYPE_MASK == in isAutomotive()
/packages/apps/ThemePicker/src/com/android/customization/model/mode/
DDarkModeSnapshotRestorer.kt45 context.applicationContext.resources.configuration.uiMode and in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java275 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in onBindSlice_nightModeChanged_shouldReloadTheme()
280 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_YES; in onBindSlice_nightModeChanged_shouldReloadTheme()
288 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in onBindSlice_nightModeNotChanged_shouldNotReloadTheme()
293 mContext.getResources().getConfiguration().uiMode = UI_MODE_NIGHT_NO; in onBindSlice_nightModeNotChanged_shouldNotReloadTheme()
/packages/apps/Settings/src/com/android/settings/display/
DDarkUIPreferenceController.java64 return (mContext.getResources().getConfiguration().uiMode in isChecked()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DPreviewEffectsLoadingBinder.kt88 (context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DClockCarouselViewBinder.kt102 (context.resources.configuration.uiMode and in <lambda>()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java79 if ((context.getResources().getConfiguration().uiMode & in shouldShowDialogInForeground()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/binder/
DColorSectionViewBinder.kt96 (view.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == in <lambda>()
DColorPickerBinder.kt70 (view.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == in <lambda>()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/display/darkmode/
DDarkThemeScheduleComponentTest.java133 int mode = mInstrumentation.getTargetContext().getResources().getConfiguration().uiMode; in checkNightMode()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java372 final int uiMode = ProjectionOptions.UI_MODE_BLENDED; in getProjectionOptions_nonDefaults() local
378 .thenReturn(uiMode); in getProjectionOptions_nonDefaults()
394 assertThat(options.getUiMode()).isEqualTo(uiMode); in getProjectionOptions_nonDefaults()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/
DHvacPanelOverlayViewControllerTest.java112 config.uiMode = Configuration.UI_MODE_NIGHT_YES; in onConfigChanged_oldHVACViewRemoved_newHVACViewAdded()

123