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.java84 private UiModeManager mUiModeManager; field in UiModeManagerTest
90 mUiModeManager = (UiModeManager) getContext().getSystemService(Context.UI_MODE_SERVICE); in setUp()
91 assertNotNull(mUiModeManager); in setUp()
109 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in resetNightMode()
110 mUiModeManager.setNightModeActivatedForCustomMode(MODE_NIGHT_CUSTOM_TYPE_BEDTIME, in resetNightMode()
124 mUiModeManager.getCurrentModeType()); in testUiMode()
128 mUiModeManager.getCurrentModeType()); in testUiMode()
138 assertTrue(mUiModeManager.isNightModeLocked()); in testNightMode()
141 if (mUiModeManager.isNightModeLocked()) { in testNightMode()
150 LocalTime time = mUiModeManager.getCustomNightModeStart(); in testSetAndGetCustomTimeStart()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DHandleSplashScreenExitActivity.java52 private UiModeManager mUiModeManager; field in HandleSplashScreenExitActivity
69 mUiModeManager = getSystemService(UiModeManager.class); in onCreate()
71 mUiModeManager.setApplicationNightMode(setNightMode); in onCreate()
132 mUiModeManager.setApplicationNightMode(MODE_NIGHT_AUTO); in onConfigurationChanged()
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java145 private UiModeManager mUiModeManager; field in DisplayTest
250 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()
954 if (mUiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_VR_HEADSET) {
/cts/tests/tests/telecom/src/android/telecom/cts/
DBaseTelecomTestWithMockServices.java121 UiModeManager mUiModeManager; field in BaseTelecomTestWithMockServices
298 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()
2276 return mUiModeManager.getCurrentModeType();