Home
last modified time | relevance | path

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

/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallServiceControl.java52 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
53 uiModeManager.disableCarMode(0);
74 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
75 uiModeManager.enableCarMode(priority, 0);
80 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
81 uiModeManager.disableCarMode(0);
86 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
87 return uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE);
92 UiModeManager uiModeManager = getSystemService(UiModeManager.class);
93 uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE);
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverTest.java128 UiModeManager uiModeManager = getContext().getSystemService(UiModeManager.class); in testAutomotiveProjectionExceptions() local
130 uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
157 () -> uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
173 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
187 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in testAutomotiveProjectionExceptions()
/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/JobScheduler/src/android/jobscheduler/cts/
DIdleConstraintTest.java218 UiModeManager uiModeManager = getContext().getSystemService(UiModeManager.class); in setAutomotiveProjection() local
221 () -> uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in setAutomotiveProjection()
225 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in setAutomotiveProjection()
/cts/tests/tests/preference/src/android/preference/cts/
DTestUtils.java125 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in isOnWatchUiMode() local
126 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_WATCH; in isOnWatchUiMode()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCarModeInCallServiceTest.java79 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in setUp() local
81 Configuration.UI_MODE_TYPE_NORMAL, uiModeManager.getCurrentModeType()); in setUp()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSplashscreenTests.java358 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in testSetApplicationNightMode() local
359 assumeTrue(uiModeManager != null); in testSetApplicationNightMode()
360 final int systemNightMode = uiModeManager.getNightMode(); in testSetApplicationNightMode()
/cts/tests/tests/widget/src/android/widget/cts/
DAutoCompleteTextViewTest.java164 UiModeManager uiModeManager = (UiModeManager) mActivity.getSystemService( in isTvMode() local
166 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION; in isTvMode()