Home
last modified time | relevance | path

Searched refs:setNightMode (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DDarkThemeSliceTest.java104 setNightMode(UiModeManager.MODE_NIGHT_AUTO); in isAvailable_nonDarkTheme_autoNightMode_returnFalse()
112 setNightMode(UiModeManager.MODE_NIGHT_CUSTOM); in isAvailable_nonDarkTheme_customNightMode_returnFalse()
120 setNightMode(UiModeManager.MODE_NIGHT_NO); in isAvailable_nonDarkThemeBatteryCapacityEq100_returnFalse()
128 setNightMode(UiModeManager.MODE_NIGHT_NO); in isAvailable_nonDarkThemeBatteryCapacityLt50_returnTrue()
175 setNightMode(UiModeManager.MODE_NIGHT_NO); in getSlice_previouslyDisplayed_isAvailable_returnSlice()
197 setNightMode(UiModeManager.MODE_NIGHT_NO); in getSlice_sliceClicked_isAvailable_returnSlice()
205 setNightMode(UiModeManager.MODE_NIGHT_NO); in getSlice_isAvailable_returnSlice()
213 setNightMode(UiModeManager.MODE_NIGHT_NO); in getSlice_isAvailable_showTitleSubtitle()
230 private void setNightMode(int mode) { in setNightMode() method in DarkThemeSliceTest
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarNightServiceTest.java109 verify(mUiModeManager).setNightMode(UiModeManager.MODE_NIGHT_YES); in onInit_propertyTimestampMissing_setsDefaultNightMode()
117 verify(mUiModeManager).setNightMode(UiModeManager.MODE_NIGHT_YES); in onInit_propertyMissing_setsDefaultNightMode()
129 verify(mUiModeManager).setNightMode(expectedNewMode); in forceDayNightMode_setsDayMode()
142 verify(mUiModeManager).setNightMode(expectedNewMode); in forceDayNightMode_setsNightMode()
176 verify(mUiModeManager).setNightMode(expectedNewMode); in forceDayNightMode_withSetting_setsDayMode()
191 verify(mUiModeManager).setNightMode(expectedNewMode); in forceDayNightMode_withSetting_setsNightMode()
213 verify(mUiModeManager).setNightMode(mode); in initServiceWithNightMode()
/packages/apps/Settings/src/com/android/settings/display/darkmode/
DDarkModeScheduleSelectorController.java111 mUiModeManager.setNightMode(mode); in onPreferenceChange()
118 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_AUTO); in onPreferenceChange()
121 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_CUSTOM); in onPreferenceChange()
/packages/services/Car/tests/ThemePlayground/src/com/android/car/themeplayground/
DWidgetsSamples.java41 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in onCreate()
43 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_YES); in onCreate()
DAbstractSampleActivity.java134 mUiModeManager.setNightMode( in toggleDayNight()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/display/darkmode/
DDarkThemeScheduleComponentTest.java71 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in setUp()
79 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_CUSTOM); in test_step_for_custom_time()
141 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in tearDown()
/packages/services/Car/service/src/com/android/car/
DCarNightService.java133 mUiModeManager.setNightMode(mNightSetting); in setNightModeLocked()
182 mUiModeManager.setNightMode(resultMode); in forceDayNightModeInternal()
/packages/apps/Settings/src/com/android/settings/display/
DNightModePreferenceController.java71 uiManager.setNightMode(value); in onPreferenceChange()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DActivityTest.java221 mUiModeManager.setNightMode(uiModeNight); in setSystemUiModeNight()