Home
last modified time | relevance | path

Searched refs:vote (Results 1 – 13 of 13) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateConfigsTest.cpp290 lr.vote = LayerVoteType::Min; in TEST_F()
294 lr.vote = LayerVoteType::Max; in TEST_F()
299 lr.vote = LayerVoteType::Heuristic; in TEST_F()
322 lr.vote = LayerVoteType::Min; in TEST_F()
325 lr.vote = LayerVoteType::Max; in TEST_F()
329 lr.vote = LayerVoteType::Heuristic; in TEST_F()
346 lr.vote = LayerVoteType::Min; in TEST_F()
349 lr.vote = LayerVoteType::Max; in TEST_F()
353 lr.vote = LayerVoteType::Heuristic; in TEST_F()
369 lr.vote = LayerVoteType::Min; in TEST_F()
[all …]
DLayerHistoryTest.cpp101 LayerHistory::LayerVoteType vote) NO_THREAD_SAFETY_ANALYSIS { in setDefaultLayerVote() argument
104 layerPair->second->setDefaultLayerVote(vote); in setDefaultLayerVote()
124 ASSERT_EQ(LayerHistory::LayerVoteType::Heuristic, summary[0].vote); in recordFramesAndExpect()
164 EXPECT_EQ(LayerHistory::LayerVoteType::Max, summarizeLayerHistory(time)[0].vote); in TEST_F()
173 EXPECT_EQ(LayerHistory::LayerVoteType::Max, summarizeLayerHistory(time)[0].vote); in TEST_F()
193 EXPECT_EQ(LayerHistory::LayerVoteType::Max, summarizeLayerHistory(time)[0].vote); in TEST_F()
219 EXPECT_EQ(LayerHistory::LayerVoteType::Heuristic, summarizeLayerHistory(time)[0].vote); in TEST_F()
269 EXPECT_EQ(LayerHistory::LayerVoteType::Min, summarizeLayerHistory(time)[0].vote); in TEST_F()
297 EXPECT_EQ(LayerHistory::LayerVoteType::Max, summarizeLayerHistory(time)[0].vote); in TEST_F()
325 EXPECT_EQ(LayerHistory::LayerVoteType::ExplicitDefault, summarizeLayerHistory(time)[0].vote); in TEST_F()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayModeDirectorTest.java788 Vote vote = director.getVote(Display.DEFAULT_DISPLAY, Vote.PRIORITY_FLICKER_REFRESH_RATE);
789 assertVoteForRefreshRate(vote, 90 /*fps*/);
790 vote = director.getVote(Display.DEFAULT_DISPLAY, Vote.PRIORITY_FLICKER_REFRESH_RATE_SWITCH);
791 assertThat(vote).isNotNull();
792 assertThat(vote.disableRefreshRateSwitching).isTrue();
800 vote = director.getVote(Display.DEFAULT_DISPLAY, Vote.PRIORITY_FLICKER_REFRESH_RATE);
801 assertThat(vote).isNull();
802 vote = director.getVote(Display.DEFAULT_DISPLAY, Vote.PRIORITY_FLICKER_REFRESH_RATE_SWITCH);
803 assertThat(vote).isNull();
846 Vote vote = director.getVote(Display.DEFAULT_DISPLAY, Vote.PRIORITY_FLICKER_REFRESH_RATE);
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DDisplayModeDirector.java169 final BallotBox ballotBox = (displayId, priority, vote) -> { in DisplayModeDirector()
171 updateVoteLocked(displayId, priority, vote); in DisplayModeDirector()
275 Vote vote = votes.get(priority); in summarizeVotes() local
276 if (vote == null) { in summarizeVotes()
280 summary.minRefreshRate = Math.max(summary.minRefreshRate, vote.refreshRateRange.min); in summarizeVotes()
281 summary.maxRefreshRate = Math.min(summary.maxRefreshRate, vote.refreshRateRange.max); in summarizeVotes()
286 && vote.height > 0 && vote.width > 0) { in summarizeVotes()
287 summary.width = vote.width; in summarizeVotes()
288 summary.height = vote.height; in summarizeVotes()
290 if (!summary.disableRefreshRateSwitching && vote.disableRefreshRateSwitching) { in summarizeVotes()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateConfigs.cpp72 ftl::enum_string(layer.vote).c_str(), weight, in formatLayerInfo()
164 if (layer.vote == LayerVoteType::ExplicitDefault) { in calculateNonExactMatchingLayerScoreLocked()
183 if (layer.vote == LayerVoteType::ExplicitExactOrMultiple || in calculateNonExactMatchingLayerScoreLocked()
184 layer.vote == LayerVoteType::Heuristic) { in calculateNonExactMatchingLayerScoreLocked()
227 if (layer.vote == LayerVoteType::Max) { in calculateLayerScoreLocked()
234 if (layer.vote == LayerVoteType::ExplicitExact) { in calculateLayerScoreLocked()
292 switch (layer.vote) { in getBestRefreshRateLocked()
380 ftl::enum_string(layer.vote).c_str(), layer.weight, in getBestRefreshRateLocked()
382 if (layer.vote == LayerVoteType::NoVote || layer.vote == LayerVoteType::Min) { in getBestRefreshRateLocked()
423 (layer.vote == LayerVoteType::ExplicitDefault || in getBestRefreshRateLocked()
[all …]
DLayerHistory.cpp149 const auto vote = info->getRefreshRateVote(configs, now); in summarize() local
151 if (vote.type == LayerVoteType::NoVote) { in summarize()
163 summary.push_back({info->getName(), info->getOwnerUid(), vote.type, vote.fps, in summarize()
164 vote.seamlessness, weight, layerFocused}); in summarize()
167 trace(*info, vote.type, vote.fps.getIntValue()); in summarize()
DRefreshRateConfigs.h160 LayerVoteType vote = LayerVoteType::NoVote; member
172 return name == other.name && vote == other.vote &&
DLayerInfo.h149 void setLayerVote(LayerVote vote) { mLayerVote = vote; } in setLayerVote() argument
/frameworks/native/services/surfaceflinger/
DBufferLayer.cpp400 const auto vote = frameRateToSetFrameRateVotePayload(mDrawingState.frameRate); in onPostComposition() local
405 refreshRate, renderRate, vote, gameMode); in onPostComposition()
416 refreshRate, renderRate, vote, gameMode); in onPostComposition()
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_scheduler_fuzzer.cpp355 layers[0].vote = mFdp.PickValueInArray(kLayerVoteTypes.values); in fuzzRefreshRateConfigs()
/frameworks/native/services/surfaceflinger/TimeStats/timestatsatomsproto/
Dtimestats_atoms.proto283 // The last frame rate vote set by the application.
/frameworks/proto_logging/stats/
Datoms.proto13445 // The last frame rate vote set by the application.
/frameworks/base/services/
Dart-profile21193 HSPLcom/android/server/display/DisplayModeDirector$$ExternalSyntheticLambda0;->vote(IILcom/android/…