Home
last modified time | relevance | path

Searched refs:uiModeManager (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallServiceControl.java58 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
59 uiModeManager.disableCarMode(0);
80 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
81 uiModeManager.enableCarMode(priority, 0);
86 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
87 uiModeManager.disableCarMode(0);
92 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
93 return uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE);
98 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
99 uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE);
/cts/tests/app/src/android/app/cts/
DSearchManagerTest.java66 UiModeManager uiModeManager = context.getSystemService(UiModeManager.class); in hasGlobalSearchActivity() local
67 if (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION) { in hasGlobalSearchActivity()
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java184 UiModeManager uiModeManager = getContext().getSystemService(UiModeManager.class); in testAutomotiveProjectionExceptions() local
186 uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
211 () -> uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
227 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
241 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DIdleConstraintTest.java223 UiModeManager uiModeManager = getContext().getSystemService(UiModeManager.class); in setAutomotiveProjection() local
226 () -> uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in setAutomotiveProjection()
230 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in setAutomotiveProjection()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java128 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in isOnWatchUiMode() local
129 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_WATCH; in isOnWatchUiMode()
/cts/tests/tests/telecom/src/android/telecom/cts/
DSelfManagedConnectionTest.java402 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in testIncomingVideoCallWithNoVideoSupportInCarMode() local
403 if (uiModeManager.isUiModeLocked()) { in testIncomingVideoCallWithNoVideoSupportInCarMode()
502 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in testSwapInCallServicesForSelfManagedCSCall() local
503 if (uiModeManager.isUiModeLocked()) { in testSwapInCallServicesForSelfManagedCSCall()
DCarModeInCallServiceTest.java80 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in setUp() local
82 Configuration.UI_MODE_TYPE_NORMAL, uiModeManager.getCurrentModeType()); in setUp()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DSplashscreenTests.java410 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in testSetApplicationNightMode() local
411 assumeTrue(uiModeManager != null); in testSetApplicationNightMode()
412 final int systemNightMode = uiModeManager.getNightMode(); in testSetApplicationNightMode()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewTest.java171 UiModeManager uiModeManager = (UiModeManager) mActivity.getSystemService( in isTvMode() local
173 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION; in isTvMode()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerZenTest.java2869 UiModeManager uiModeManager = checkNotNull(mContext.getSystemService(UiModeManager.class)); in isUiModeManagerThemeOverlayActive() local
2871 () -> uiModeManager.getAttentionModeThemeOverlay() in isUiModeManagerThemeOverlayActive()