Searched refs:mUiModeManager (Results 1 – 4 of 4) sorted by relevance
84 private UiModeManager mUiModeManager; field in UiModeManagerTest90 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 …]
52 private UiModeManager mUiModeManager; field in HandleSplashScreenExitActivity69 mUiModeManager = getSystemService(UiModeManager.class); in onCreate()71 mUiModeManager.setApplicationNightMode(setNightMode); in onCreate()132 mUiModeManager.setApplicationNightMode(MODE_NIGHT_AUTO); in onConfigurationChanged()
145 private UiModeManager mUiModeManager; field in DisplayTest250 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()954 if (mUiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_VR_HEADSET) {
121 UiModeManager mUiModeManager; field in BaseTelecomTestWithMockServices298 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()2276 return mUiModeManager.getCurrentModeType();