Home
last modified time | relevance | path

Searched refs:availableStates (Results 1 – 2 of 2) sorted by relevance

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/devicestate/
DDeviceStateStatsTests.java76 List<Integer> availableStates = Arrays.stream(getDevice() in testDeviceStateChanges() local
81 if (availableStates.size() == 1) { in testDeviceStateChanges()
88 for (int i = 0; i < availableStates.size(); i++) { in testDeviceStateChanges()
89 int currentStateIndex = availableStates.indexOf(currentState); in testDeviceStateChanges()
91 if (nextStateIndex >= availableStates.size()) { in testDeviceStateChanges()
94 int nextState = availableStates.get(nextStateIndex); in testDeviceStateChanges()
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java428 final Set<Integer> availableStates = new HashSet<>(supportedDeviceStates); in possibleStates() local
431 availableStates.retainAll(availableStatesToRequest); in possibleStates()
433 availableStates.removeAll(availableStatesToRequest); in possibleStates()
436 return availableStates; in possibleStates()