Home
last modified time | relevance | path

Searched refs:displayVotes (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DProximitySensorObserverTest.java73 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testAddsProximityVoteIfSensorManagerProximityActive() local
74 assertThat(displayVotes.size()).isEqualTo(1); in testAddsProximityVoteIfSensorManagerProximityActive()
75 Vote vote = displayVotes.get(Vote.PRIORITY_PROXIMITY); in testAddsProximityVoteIfSensorManagerProximityActive()
89 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testDoesNotAddProximityVoteIfSensorManagerProximityNotActive() local
90 assertThat(displayVotes.size()).isEqualTo(0); in testDoesNotAddProximityVoteIfSensorManagerProximityNotActive()
99 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testDoesNotAddProximityVoteIfDoze() local
100 assertThat(displayVotes.size()).isEqualTo(0); in testDoesNotAddProximityVoteIfDoze()
DSkinThermalStatusObserverTest.java104 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testNotifyWithDefaultVotesForCritical() local
105 assertEquals(1, displayVotes.size()); in testNotifyWithDefaultVotesForCritical()
107 Vote vote = displayVotes.get(Vote.PRIORITY_SKIN_TEMPERATURE); in testNotifyWithDefaultVotesForCritical()
173 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testNotifiesWithConfigVotes() local
174 assertEquals(1, displayVotes.size()); in testNotifiesWithConfigVotes()
175 Vote vote = displayVotes.get(Vote.PRIORITY_SKIN_TEMPERATURE); in testNotifiesWithConfigVotes()
196 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID_ADDED); in testDisplayAdded() local
198 Vote vote = displayVotes.get(Vote.PRIORITY_SKIN_TEMPERATURE); in testDisplayAdded()
/frameworks/base/services/core/java/com/android/server/display/mode/
DVotesStorage.java67 SparseArray<Vote> displayVotes = mVotesByDisplay.get(displayId); in getVotes() local
68 votesLocal = displayVotes != null ? displayVotes.clone() : new SparseArray<>(); in getVotes()