Home
last modified time | relevance | path

Searched refs:mUiModeManager (Results 1 – 4 of 4) sorted by relevance

/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java58 private UiModeManager mUiModeManager; field in UiModeManagerTest
63 mUiModeManager = (UiModeManager) getContext().getSystemService(Context.UI_MODE_SERVICE); in setUp()
64 assertNotNull(mUiModeManager); in setUp()
78 mUiModeManager.getCurrentModeType()); in testUiMode()
82 mUiModeManager.getCurrentModeType()); in testUiMode()
92 assertTrue(mUiModeManager.isNightModeLocked()); in testNightMode()
95 if (mUiModeManager.isNightModeLocked()) { in testNightMode()
104 LocalTime time = mUiModeManager.getCustomNightModeStart(); in testSetAndGetCustomTimeStart()
111 assertEquals(timeNew, mUiModeManager.getCustomNightModeStart()); in testSetAndGetCustomTimeStart()
115 LocalTime time = mUiModeManager.getCustomNightModeEnd(); in testSetAndGetCustomTimeEnd()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DHandleSplashScreenExitActivity.java46 private UiModeManager mUiModeManager; field in HandleSplashScreenExitActivity
58 mUiModeManager = getSystemService(UiModeManager.class); in onCreate()
60 mUiModeManager.setApplicationNightMode(setNightMode); in onCreate()
110 mUiModeManager.setApplicationNightMode(MODE_NIGHT_AUTO); in onConfigurationChanged()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java129 private UiModeManager mUiModeManager; field in DisplayTest
219 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()
873 if (mUiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_VR_HEADSET) {
/cts/tests/tests/telecom/src/android/telecom/cts/
DBaseTelecomTestWithMockServices.java105 UiModeManager mUiModeManager; field in BaseTelecomTestWithMockServices
275 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()
1983 return mUiModeManager.getCurrentModeType(); in assertUiMode()