Searched refs:uiModeManager (Results 1 – 8 of 8) sorted by relevance
52 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);
128 UiModeManager uiModeManager = getContext().getSystemService(UiModeManager.class); in testAutomotiveProjectionExceptions() local130 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()
66 UiModeManager uiModeManager = context.getSystemService(UiModeManager.class); in hasGlobalSearchActivity() local67 if (uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION) { in hasGlobalSearchActivity()
218 UiModeManager uiModeManager = getContext().getSystemService(UiModeManager.class); in setAutomotiveProjection() local221 () -> uiModeManager.requestProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in setAutomotiveProjection()225 () -> uiModeManager.releaseProjection(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), in setAutomotiveProjection()
125 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in isOnWatchUiMode() local126 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_WATCH; in isOnWatchUiMode()
79 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in setUp() local81 Configuration.UI_MODE_TYPE_NORMAL, uiModeManager.getCurrentModeType()); in setUp()
358 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in testSetApplicationNightMode() local359 assumeTrue(uiModeManager != null); in testSetApplicationNightMode()360 final int systemNightMode = uiModeManager.getNightMode(); in testSetApplicationNightMode()
164 UiModeManager uiModeManager = (UiModeManager) mActivity.getSystemService( in isTvMode() local166 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION; in isTvMode()