Searched refs:supportedStates (Results 1 – 5 of 5) sorted by relevance
103 final List<DeviceState> supportedStates = manager.getSupportedDeviceStates(); in testRequestAllSupportedStates() local104 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() local172 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() local224 assumeTrue(supportedStates.size() > 1); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()[all …]
302 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isDeviceFoldable() local311 return Arrays.stream(foldedDeviceStates).anyMatch(supportedStates::contains); in isDeviceFoldable()
797 final List<DeviceState> supportedStates = deviceStateManager.getSupportedDeviceStates(); in isHalfOpenedSupported() local798 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()
913 Set<Integer> supportedStates = deviceStateManager.getSupportedDeviceStates().stream().map( in isFoldableDevice() local919 return Arrays.stream(foldedDeviceStates).anyMatch(supportedStates::contains); in isFoldableDevice()
3234 List<Long> supportedStates = new ArrayList<>(Arrays.asList( in testDeviceStateSensorOrientationMapCharacteristics() local3236 for (long deviceState : supportedStates) { in testDeviceStateSensorOrientationMapCharacteristics()