Searched refs:mUiModeManager (Results 1 – 4 of 4) sorted by relevance
58 private UiModeManager mUiModeManager; field in UiModeManagerTest63 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 …]
46 private UiModeManager mUiModeManager; field in HandleSplashScreenExitActivity58 mUiModeManager = getSystemService(UiModeManager.class); in onCreate()60 mUiModeManager.setApplicationNightMode(setNightMode); in onCreate()110 mUiModeManager.setApplicationNightMode(MODE_NIGHT_AUTO); in onConfigurationChanged()
129 private UiModeManager mUiModeManager; field in DisplayTest219 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()873 if (mUiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_VR_HEADSET) {
105 UiModeManager mUiModeManager; field in BaseTelecomTestWithMockServices275 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()1983 return mUiModeManager.getCurrentModeType(); in assertUiMode()