Searched refs:votes (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | DisplayModeDirectorTest.java | 107 SparseArray<Vote> votes = new SparseArray<>(); in testDisplayModeVoting() local 109 votesByDisplay.put(displayId, votes); in testDisplayModeVoting() 112 votes.put(priority, Vote.forRefreshRates(minFps + i, maxFps - i)); in testDisplayModeVoting() 128 SparseArray<Vote> votes = new SparseArray<>(); in testDisplayModeVoting() local 130 votesByDisplay.put(displayId, votes); in testDisplayModeVoting() 131 votes.put(Vote.MAX_PRIORITY, Vote.forRefreshRates(65, 85)); in testDisplayModeVoting() 132 votes.put(Vote.MIN_PRIORITY, Vote.forRefreshRates(70, 80)); in testDisplayModeVoting() 145 SparseArray<Vote> votes = new SparseArray<>(); in testVotingWithFloatingPointErrors() local 147 votesByDisplay.put(displayId, votes); in testVotingWithFloatingPointErrors() 149 votes.put(Vote.PRIORITY_USER_SETTING_PEAK_REFRESH_RATE, Vote.forRefreshRates(0, 60)); in testVotingWithFloatingPointErrors() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayModeDirector.java | 136 final SparseArray<Vote> votes; in getVotesLocked() local 138 votes = displayVotes.clone(); in getVotesLocked() 140 votes = new SparseArray<>(); in getVotesLocked() 147 if (votes.indexOfKey(priority) < 0) { in getVotesLocked() 148 votes.put(priority, globalVotes.valueAt(i)); in getVotesLocked() 152 return votes; in getVotesLocked() 176 SparseArray<Vote> votes, int lowestConsideredPriority, /*out*/ VoteSummary summary) { in summarizeVotes() argument 179 Vote vote = votes.get(priority); in summarizeVotes() 207 SparseArray<Vote> votes = getVotesLocked(displayId); in getDesiredDisplayModeSpecs() local 221 summarizeVotes(votes, lowestConsideredPriority, primarySummary); in getDesiredDisplayModeSpecs() [all …]
|