Searched refs:vote (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/services/core/java/com/android/server/display/mode/ |
H A D | VotesStorage.java | 77 void updateGlobalVote(int priority, @Nullable Vote vote) { in updateGlobalVote() argument 78 updateVote(GLOBAL_ID, priority, vote); in updateGlobalVote() 86 + ", vote=" + vote + ")"); in updateVote() 91 + ", vote=" + vote); in updateVote() 102 if (vote != null) { in updateVote() 103 votes.put(priority, vote); in updateVote() 110 getMaxPhysicalRefreshRate(vote)); in updateVote() 134 Vote vote = votes.get(p); in dump() local 135 if (vote == null) { in dump() 154 if (vote == null) { in getMaxPhysicalRefreshRate() [all …]
|
H A D | SkinThermalStatusObserver.java | 235 Vote vote = null; in reportThrottlingIfNeeded() local 237 vote = Vote.forRenderFrameRates(foundRange.min, foundRange.max); in reportThrottlingIfNeeded() 239 mVotesStorage.updateVote(displayId, Vote.PRIORITY_SKIN_TEMPERATURE, vote); in reportThrottlingIfNeeded() 241 Slog.d(TAG, "Voted: vote=" + vote + ", display =" + displayId); in reportThrottlingIfNeeded() 247 Vote vote = null; in fallbackReportThrottlingIfNeeded() local 249 vote = Vote.forRenderFrameRates(0f, 60f); in fallbackReportThrottlingIfNeeded() 251 mVotesStorage.updateVote(displayId, Vote.PRIORITY_SKIN_TEMPERATURE, vote); in fallbackReportThrottlingIfNeeded() 253 Slog.d(TAG, "Voted(fallback): vote=" + vote + ", display =" + displayId); in fallbackReportThrottlingIfNeeded()
|
H A D | DisplayModeDirector.java | 276 if (vote == null) { in summarizeVotes() 302 && vote.height > 0 && vote.width > 0) { in summarizeVotes() 1202 final Vote vote; in updateLowPowerModeSettingLocked() local 1206 vote = null; in updateLowPowerModeSettingLocked() 1328 final Vote vote; in setAppPreferredRefreshRateRangeLocked() local 1352 vote = null; in setAppPreferredRefreshRateRangeLocked() 1355 vote); in setAppPreferredRefreshRateRangeLocked() 2469 final Vote vote; in updateVoteLocked() local 2474 vote = null; in updateVoteLocked() 2553 Vote vote = null; in recalculateVotesLocked() local [all …]
|
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
H A D | DisplayModeDirectorTest.java | 1408 assertNull(vote); 2093 assertNull(vote); in testProximitySensorVoting() 2109 assertNull(vote); in testProximitySensorVoting() 2121 assertNull(vote); in testProximitySensorVoting() 2131 assertNull(vote); in testProximitySensorVoting() 2161 assertNull(vote); in testHbmVoting_forHdr() 2179 assertNull(vote); in testHbmVoting_forHdr() 2188 assertNull(vote); in testHbmVoting_forHdr() 2205 assertNull(vote); in testHbmVoting_forHdr() 2214 assertNull(vote); in testHbmVoting_forHdr() [all …]
|
H A D | SkinThermalStatusObserverTest.java | 105 Vote vote = displayVotes.get( in testNotifyWithDefaultVotesForCritical() local 107 assertEquals(0, vote.refreshRateRanges.render.min, FLOAT_TOLERANCE); in testNotifyWithDefaultVotesForCritical() 108 assertEquals(60, vote.refreshRateRanges.render.max, FLOAT_TOLERANCE); in testNotifyWithDefaultVotesForCritical() 113 vote = otherDisplayVotes.get(Vote.PRIORITY_SKIN_TEMPERATURE); in testNotifyWithDefaultVotesForCritical() 114 assertEquals(0, vote.refreshRateRanges.render.min, FLOAT_TOLERANCE); in testNotifyWithDefaultVotesForCritical() 115 assertEquals(60, vote.refreshRateRanges.render.max, FLOAT_TOLERANCE); in testNotifyWithDefaultVotesForCritical() 169 Vote vote = displayVotes.get(Vote.PRIORITY_SKIN_TEMPERATURE); in testNotifiesWithConfigVotes() local 170 assertEquals(90, vote.refreshRateRanges.render.min, FLOAT_TOLERANCE); in testNotifiesWithConfigVotes() 190 Vote vote = displayVotes.get(Vote.PRIORITY_SKIN_TEMPERATURE); in testDisplayAdded() local 191 assertEquals(0, vote.refreshRateRanges.render.min, FLOAT_TOLERANCE); in testDisplayAdded() [all …]
|