/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/ |
D | DarkModeCustomPreferenceControllerTest.java | 85 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()
|
D | DarkModeScheduleSelectorControllerTest.java | 79 mConfigNightYes.uiMode = Configuration.UI_MODE_NIGHT_YES; in setUp() 80 mConfigNightNo.uiMode = Configuration.UI_MODE_NIGHT_NO; in setUp()
|
D | DarkModeActivationPreferenceControllerTest.java | 117 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/ |
D | DarkThemeSliceTest.java | 96 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/ |
D | DarkModeActivationPreferenceController.java | 61 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()
|
D | DarkModePreference.java | 48 final boolean active = (getContext().getResources().getConfiguration().uiMode in DarkModePreference()
|
D | DarkModeScheduleSelectorController.java | 107 boolean active = (mContext.getResources().getConfiguration().uiMode in onPreferenceChange()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/ |
D | ThemeUiTestBase.java | 76 nightConfig.uiMode &= ~Configuration.UI_MODE_NIGHT_MASK; in getThemeByUiMode() 77 nightConfig.uiMode |= nightModeFlag; in getThemeByUiMode()
|
/packages/services/Car/car-lib/src/android/car/projection/ |
D | ProjectionOptions.java | 182 public Builder setUiMode(@ProjectionUiMode int uiMode) { in setUiMode() argument 183 mUiMode = uiMode; in setUiMode()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/ |
D | SettingsPanelActivityTest.java | 95 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/ |
D | FrameworksUtils.java | 33 boolean isDarkTheme = (context.getResources().getConfiguration().uiMode in makeAlertDialogBuilder()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/mode/ |
D | DarkModeSectionView.java | 36 mIsDarkModeActivated = (context.getResources().getConfiguration().uiMode in DarkModeSectionView()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | PickerAccentColorParameters.java | 53 application.getApplicationContext().getResources().getConfiguration().uiMode in setNightModeFlag()
|
/packages/modules/Permission/tests/cts/permissionmultidevice/TestUtils/src/android/permissionmultidevice/cts/ |
D | PermissionUtils.kt | 43 Resources.getSystem().configuration.uiMode and Configuration.UI_MODE_TYPE_MASK == in isAutomotive()
|
/packages/apps/ThemePicker/src/com/android/customization/model/mode/ |
D | DarkModeSnapshotRestorer.kt | 45 context.applicationContext.resources.configuration.uiMode and in <lambda>()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
D | SettingsSliceProviderTest.java | 275 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/ |
D | DarkUIPreferenceController.java | 64 return (mContext.getResources().getConfiguration().uiMode in isChecked()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/ |
D | PreviewEffectsLoadingBinder.kt | 88 (context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == in <lambda>()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/ |
D | ClockCarouselViewBinder.kt | 102 (context.resources.configuration.uiMode and in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 79 if ((context.getResources().getConfiguration().uiMode & in shouldShowDialogInForeground()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/binder/ |
D | ColorSectionViewBinder.kt | 96 (view.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == in <lambda>()
|
D | ColorPickerBinder.kt | 70 (view.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK == in <lambda>()
|
/packages/apps/Settings/tests/componenttests/src/com/android/settings/display/darkmode/ |
D | DarkThemeScheduleComponentTest.java | 133 int mode = mInstrumentation.getTargetContext().getResources().getConfiguration().uiMode; in checkNightMode()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarProjectionServiceTest.java | 372 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/ |
D | HvacPanelOverlayViewControllerTest.java | 112 config.uiMode = Configuration.UI_MODE_NIGHT_YES; in onConfigChanged_oldHVACViewRemoved_newHVACViewAdded()
|