Home
last modified time | relevance | path

Searched refs:supportedStates (Results 1 – 5 of 5) sorted by relevance

/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java103 final List<DeviceState> supportedStates = manager.getSupportedDeviceStates(); in testRequestAllSupportedStates() local
104 for (int i = 0; i < supportedStates.size(); i++) { in testRequestAllSupportedStates()
105 final int stateToRequest = supportedStates.get(i).getIdentifier(); in testRequestAllSupportedStates()
169 final List<DeviceState> supportedStates = manager.getSupportedDeviceStates(); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() local
172 assumeTrue(supportedStates.size() > 1); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
173 Set<Integer> statesAvailableToRequest = getAvailableStatesToRequest(supportedStates); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
175 assumeTrue(statesAvailableToRequest.size() < supportedStates.size()); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
177 Set<Integer> availableDeviceStates = generateDeviceStateSet(supportedStates); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
220 final List<DeviceState> supportedStates = manager.getSupportedDeviceStates(); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest() local
224 assumeTrue(supportedStates.size() > 1); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
[all …]
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java302 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isDeviceFoldable() local
311 return Arrays.stream(foldedDeviceStates).anyMatch(supportedStates::contains); in isDeviceFoldable()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/
DExtensionWindowLayoutComponentTest.java797 final List<DeviceState> supportedStates = deviceStateManager.getSupportedDeviceStates(); in isHalfOpenedSupported() local
798 final int[] supportedStateIdentifiers = new int[supportedStates.size()]; in isHalfOpenedSupported()
799 for (int i = 0; i < supportedStates.size(); i++) { in isHalfOpenedSupported()
800 supportedStateIdentifiers[i] = supportedStates.get(i).getIdentifier(); in isHalfOpenedSupported()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java913 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isFoldableDevice() local
919 return Arrays.stream(foldedDeviceStates).anyMatch(supportedStates::contains); in isFoldableDevice()
/cts/tests/camera/src/android/hardware/camera2/cts/
DExtendedCameraCharacteristicsTest.java3234 List<Long> supportedStates = new ArrayList<>(Arrays.asList( in testDeviceStateSensorOrientationMapCharacteristics() local
3236 for (long deviceState : supportedStates) { in testDeviceStateSensorOrientationMapCharacteristics()