Searched refs:LayerHistory (Results 1 – 14 of 14) sorted by relevance
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerHistoryTest.cpp | 68 LayerHistory& history() { return mScheduler->mutableLayerHistory(); } in history() 69 const LayerHistory& history() const { return mScheduler->mutableLayerHistory(); } in history() 71 LayerHistory::Summary summarizeLayerHistory(nsecs_t now) { in summarizeLayerHistory() 111 LayerHistory::LayerVoteType vote) NO_THREAD_SAFETY_ANALYSIS { in setDefaultLayerVote() 113 if (found != LayerHistory::LayerStatus::NotFound) { in setDefaultLayerVote() 128 LayerHistory::Summary summary; in recordFramesAndExpect() 131 LayerHistory::LayerUpdateType::Buffer); in recordFramesAndExpect() 138 ASSERT_EQ(LayerHistory::LayerVoteType::Heuristic, summary[0].vote); in recordFramesAndExpect() 177 LayerHistory::LayerUpdateType::Buffer); in TEST_F() 203 LayerHistory::LayerUpdateType::Buffer); in TEST_F() [all …]
|
D | LayerHistoryIntegrationTest.cpp | 74 LayerHistory& history() { return mScheduler->mutableLayerHistory(); } in history() 75 const LayerHistory& history() const { return mScheduler->mutableLayerHistory(); } in history() 77 LayerHistory::Summary summarizeLayerHistory(nsecs_t now) { in summarizeLayerHistory() 117 LayerHistory::LayerVoteType vote) NO_THREAD_SAFETY_ANALYSIS { in setDefaultLayerVote() 119 if (found != LayerHistory::LayerStatus::NotFound) { in setDefaultLayerVote() 147 LayerHistory::Summary summary; in recordFramesAndExpect() 156 ASSERT_EQ(LayerHistory::LayerVoteType::Heuristic, summary[0].vote); in recordFramesAndExpect() 213 EXPECT_EQ(LayerHistory::LayerVoteType::Min, summarizeLayerHistory(time)[0].vote); in TEST_F() 229 EXPECT_EQ(LayerHistory::LayerVoteType::Max, summarizeLayerHistory(time)[0].vote); in TEST_F() 252 EXPECT_EQ(LayerHistory::LayerVoteType::ExplicitDefault, summarizeLayerHistory(time)[0].vote); in TEST_F() [all …]
|
D | LayerInfoTest.cpp | 58 LayerInfo layerInfo{"TestLayerInfo", 0, LayerHistory::LayerVoteType::Heuristic}; 200 LayerInfo::LayerVote vote = {.type = LayerHistory::LayerVoteType::ExplicitDefault, in TEST_F() 214 LayerInfo::LayerVote vote = {.type = LayerHistory::LayerVoteType::ExplicitDefault, in TEST_F() 223 ASSERT_EQ(actualVotes[0].type, LayerHistory::LayerVoteType::ExplicitCategory); in TEST_F() 234 LayerInfo::LayerVote vote = {.type = LayerHistory::LayerVoteType::ExplicitDefault, in TEST_F() 241 ASSERT_EQ(actualVotes[0].type, LayerHistory::LayerVoteType::ExplicitCategory); in TEST_F() 247 LayerInfo::LayerVote vote = {.type = LayerHistory::LayerVoteType::ExplicitDefault, in TEST_F() 254 ASSERT_EQ(actualVotes[0].type, LayerHistory::LayerVoteType::ExplicitCategory); in TEST_F() 261 .type = LayerHistory::LayerVoteType::Heuristic, in TEST_F() 268 ASSERT_EQ(actualVotes[0].type, LayerHistory::LayerVoteType::Max); in TEST_F() [all …]
|
D | SetFrameRateTest.cpp | 46 using scheduler::LayerHistory; 342 LayerHistory::LayerUpdateType::Buffer); in TEST_P() 344 LayerHistory::LayerUpdateType::Buffer); in TEST_P()
|
D | FrameRateSelectionStrategyTest.cpp | 38 using scheduler::LayerHistory;
|
D | SchedulerTest.cpp | 165 LayerHistory::LayerUpdateType::Buffer); in TEST_F() 191 LayerHistory::LayerUpdateType::Buffer); in TEST_F() 230 LayerHistory::LayerUpdateType::Buffer); in TEST_F()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerHistory.cpp | 73 void trace(const LayerInfo& info, LayerHistory::LayerVoteType type, int fps) { in trace() 74 const auto traceType = [&](LayerHistory::LayerVoteType checkedType, int value) { in trace() 78 traceType(LayerHistory::LayerVoteType::NoVote, 1); in trace() 79 traceType(LayerHistory::LayerVoteType::Heuristic, fps); in trace() 80 traceType(LayerHistory::LayerVoteType::ExplicitDefault, fps); in trace() 81 traceType(LayerHistory::LayerVoteType::ExplicitExactOrMultiple, fps); in trace() 82 traceType(LayerHistory::LayerVoteType::ExplicitExact, fps); in trace() 83 traceType(LayerHistory::LayerVoteType::Min, 1); in trace() 84 traceType(LayerHistory::LayerVoteType::Max, 1); in trace() 85 traceType(LayerHistory::LayerVoteType::ExplicitCategory, 1); in trace() [all …]
|
D | LayerInfo.h | 53 using LayerUpdateType = LayerHistory::LayerUpdateType; 71 LayerHistory::LayerVoteType type = LayerHistory::LayerVoteType::Heuristic; 173 LayerInfo(const std::string& name, uid_t ownerUid, LayerHistory::LayerVoteType defaultVote); 192 void setDefaultLayerVote(LayerHistory::LayerVoteType type) { mDefaultVote = type; } in setDefaultLayerVote() 219 const char* getTraceTag(LayerHistory::LayerVoteType type) const; 339 LayerHistory::LayerVoteType mDefaultVote; 353 static constexpr std::chrono::nanoseconds HISTORY_DURATION = LayerHistory::kMaxPeriodForHistory; 363 mutable std::unordered_map<LayerHistory::LayerVoteType, std::string> mTraceTags;
|
D | LayerInfo.cpp | 44 LayerHistory::LayerVoteType defaultVote) in LayerInfo() 313 if (mLayerVote.type != LayerHistory::LayerVoteType::Heuristic) { in getRefreshRateVote() 315 const auto voteType = mLayerVote.type == LayerHistory::LayerVoteType::NoVote in getRefreshRateVote() 316 ? LayerHistory::LayerVoteType::NoVote in getRefreshRateVote() 317 : LayerHistory::LayerVoteType::ExplicitCategory; in getRefreshRateVote() 328 mLayerVote.type != LayerHistory::LayerVoteType::ExplicitDefault) { in getRefreshRateVote() 342 votes.push_back({LayerHistory::LayerVoteType::Max, Fps()}); in getRefreshRateVote() 350 votes.push_back({LayerHistory::LayerVoteType::Max, Fps()}); in getRefreshRateVote() 363 votes.push_back({LayerHistory::LayerVoteType::Min, Fps()}); in getRefreshRateVote() 377 votes.push_back({LayerHistory::LayerVoteType::NoVote, Fps()}); in getRefreshRateVote() [all …]
|
D | LayerHistory.h | 44 class LayerHistory { 50 LayerHistory(); 51 ~LayerHistory(); 132 return const_cast<LayerHistory*>(this)->findLayer(id); in findLayer()
|
D | Scheduler.h | 227 nsecs_t now, LayerHistory::LayerUpdateType) EXCLUDES(mDisplayLock); 488 LayerHistory mLayerHistory; 577 LayerHistory::Summary contentRequirements;
|
D | Scheduler.cpp | 679 nsecs_t now, LayerHistory::LayerUpdateType updateType) { in recordLayerHistory() 707 LayerHistory::Summary summary = mLayerHistory.summarize(*selectorPtr, systemTime()); in chooseRefreshRateForContent()
|
/frameworks/native/services/surfaceflinger/ |
D | Android.bp | 203 "Scheduler/LayerHistory.cpp",
|
D | Layer.cpp | 1501 scheduler::LayerHistory::LayerUpdateType::SetFrameRate); in setFrameRateForLayerTreeLegacy() 1514 scheduler::LayerHistory::LayerUpdateType::SetFrameRate); in setFrameRateForLayerTree() 3268 scheduler::LayerHistory::kMaxPeriodForHistory.count(); in recordLayerHistoryBufferUpdate() 3308 scheduler::LayerHistory::LayerUpdateType::Buffer); in recordLayerHistoryBufferUpdate() 3315 scheduler::LayerHistory::LayerUpdateType::AnimationTX); in recordLayerHistoryAnimationTx()
|