Home
last modified time | relevance | path

Searched refs:votes (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
H A DVotesStorageTest.java62 assertThat(votes.size()).isEqualTo(1); in addsVoteToStorage()
63 assertThat(votes.get(PRIORITY)).isEqualTo(VOTE); in addsVoteToStorage()
83 assertThat(votes.size()).isEqualTo(2); in addsAnotherVoteToStorageWithDifferentPriority()
84 assertThat(votes.get(PRIORITY)).isEqualTo(VOTE); in addsAnotherVoteToStorageWithDifferentPriority()
97 assertThat(votes.size()).isEqualTo(1); in replacesVoteInStorageForSamePriority()
98 assertThat(votes.get(PRIORITY)).isEqualTo(VOTE_OTHER); in replacesVoteInStorageForSamePriority()
119 assertThat(votes.size()).isEqualTo(1); in addsGlobalDisplayVoteToStorage()
120 assertThat(votes.get(PRIORITY)).isEqualTo(VOTE); in addsGlobalDisplayVoteToStorage()
121 votes = mVotesStorage.getVotes(DISPLAY_ID_OTHER); in addsGlobalDisplayVoteToStorage()
122 assertThat(votes.size()).isEqualTo(1); in addsGlobalDisplayVoteToStorage()
[all …]
H A DDisplayModeDirectorTest.java304 votes.clear(); in testVotingWithFloatingPointErrors()
355 votes.clear(); in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
370 votes.clear(); in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
385 votes.clear(); in testFlickerHasLowerPriorityThanUserAndRangeIsSingle()
436 votes.clear();
451 votes.clear();
466 votes.clear();
1773 votes.clear(); in testDisableRefreshRateSwitchingVote()
1785 votes.clear(); in testDisableRefreshRateSwitchingVote()
1825 votes.clear(); in testBaseModeIdInPrimaryRange()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/mode/
H A DVotesStorage.java94 SparseArray<Vote> votes; in updateVote() local
97 votes = mVotesByDisplay.get(displayId); in updateVote()
99 votes = new SparseArray<>(); in updateVote()
100 mVotesByDisplay.put(displayId, votes); in updateVote()
103 votes.put(priority, vote); in updateVote()
105 votes.remove(priority); in updateVote()
112 Slog.i(TAG, "Updated votes for display=" + displayId + " votes=" + votes); in updateVote()
128 SparseArray<Vote> votes = votesByDisplayLocal.valueAt(i); in dump() local
129 if (votes.size() == 0) { in dump()
134 Vote vote = votes.get(p); in dump()
H A DDisplayModeDirector.java267 SparseArray<Vote> votes, in summarizeVotes() argument
275 Vote vote = votes.get(priority); in summarizeVotes()
382 SparseArray<Vote> votes = mVotesStorage.getVotes(displayId); in getDesiredDisplayModeSpecs() local
407 votes, lowestConsideredPriority, highestConsideredPriority, primarySummary); in getDesiredDisplayModeSpecs()
477 votes, in getDesiredDisplayModeSpecs()
509 + " back to the default mode. Display = " + displayId + ", votes = " + votes in getDesiredDisplayModeSpecs()
755 SparseArray<Vote> votes = mVotesStorage.getVotes(displayId); in getVote() local
756 return votes.get(priority); in getVote()