Home
last modified time | relevance | path

Searched refs:LayerHistory (Results 1 – 15 of 15) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerHistoryTestV2.cpp74 LayerHistory::LayerVoteType vote) NO_THREAD_SAFETY_ANALYSIS { in setLayerInfoVote()
94 history().record(layer.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in recordFramesAndExpect()
101 ASSERT_EQ(LayerHistory::LayerVoteType::Heuristic, summary[0].vote); in recordFramesAndExpect()
139 history().record(layer.get(), 0, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
141 EXPECT_EQ(LayerHistory::LayerVoteType::Max, history().summarize(time)[0].vote); in TEST_F()
147 history().record(layer.get(), 0, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
149 EXPECT_EQ(LayerHistory::LayerVoteType::Max, history().summarize(time)[0].vote); in TEST_F()
164 history().record(layer.get(), 0, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
168 EXPECT_EQ(LayerHistory::LayerVoteType::Max, history().summarize(time)[0].vote); in TEST_F()
188 history().record(layer.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
[all …]
DLayerHistoryTest.cpp52 impl::LayerHistory& history() { return *mScheduler->mutableLayerHistory(); } in history()
53 const impl::LayerHistory& history() const { return *mScheduler->mutableLayerHistory(); } in history()
99 history().record(layer.get(), 0, mTime, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
106 history().record(layer.get(), 0, mTime, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
124 history().record(layer.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
158 history().record(layer1.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
169 history().record(layer2.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
174 history().record(layer1.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
185 history().record(layer2.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
199 history().record(layer2.get(), time, time, LayerHistory::LayerUpdateType::Buffer); in TEST_F()
[all …]
DTestableScheduler.h36 mLayerHistory = std::make_unique<scheduler::impl::LayerHistory>();
48 mLayerHistory = std::make_unique<scheduler::impl::LayerHistory>(); in TestableScheduler()
62 return static_cast<scheduler::impl::LayerHistory*>(mLayerHistory.get()) in layerHistorySize()
76 return static_cast<scheduler::impl::LayerHistory*>(mLayerHistory.get()); in mutableLayerHistory()
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerHistory.cpp71 LayerHistory::LayerHistory() in LayerHistory() function in android::scheduler::impl::LayerHistory
73 LayerHistory::~LayerHistory() = default;
75 void LayerHistory::registerLayer(Layer* layer, float lowRefreshRate, float highRefreshRate, in registerLayer()
82 void LayerHistory::record(Layer* layer, nsecs_t presentTime, nsecs_t now, in record()
100 LayerHistory::Summary LayerHistory::summarize(nsecs_t now) { in summarize()
106 LayerHistory::Summary summary; in summarize()
144 void LayerHistory::partitionLayers(nsecs_t now) { in partitionLayers()
177 void LayerHistory::clear() { in clear()
DLayerInfoV2.h46 using LayerUpdateType = LayerHistory::LayerUpdateType;
66 LayerHistory::LayerVoteType defaultVote);
79 void setLayerVote(LayerHistory::LayerVoteType type, float fps) { mLayerVote = {type, fps}; } in setLayerVote()
84 void setDefaultLayerVote(LayerHistory::LayerVoteType type) { mDefaultVote = type; } in setDefaultLayerVote()
89 std::pair<LayerHistory::LayerVoteType, float> getRefreshRate(nsecs_t now);
96 const char* getTraceTag(LayerHistory::LayerVoteType type) const;
135 LayerHistory::LayerVoteType type = LayerHistory::LayerVoteType::Heuristic;
195 LayerHistory::LayerVoteType mDefaultVote;
213 mutable std::unordered_map<LayerHistory::LayerVoteType, std::string> mTraceTags;
DLayerHistoryV2.cpp61 void trace(const wp<Layer>& weak, const LayerInfoV2& info, LayerHistory::LayerVoteType type, in trace()
66 const auto traceType = [&](LayerHistory::LayerVoteType checkedType, int value) { in trace()
70 traceType(LayerHistory::LayerVoteType::NoVote, 1); in trace()
71 traceType(LayerHistory::LayerVoteType::Heuristic, fps); in trace()
72 traceType(LayerHistory::LayerVoteType::ExplicitDefault, fps); in trace()
73 traceType(LayerHistory::LayerVoteType::ExplicitExactOrMultiple, fps); in trace()
74 traceType(LayerHistory::LayerVoteType::Min, 1); in trace()
75 traceType(LayerHistory::LayerVoteType::Max, 1); in trace()
116 LayerHistory::Summary summary; in summarize()
135 if (type == LayerHistory::LayerVoteType::NoVote) { in summarize()
[all …]
DLayerHistory.h42 class LayerHistory {
46 virtual ~LayerHistory() = default;
80 class LayerHistory : public android::scheduler::LayerHistory {
82 LayerHistory();
83 virtual ~LayerHistory();
97 android::scheduler::LayerHistory::Summary summarize(nsecs_t now) override;
137 class LayerHistoryV2 : public android::scheduler::LayerHistory {
155 android::scheduler::LayerHistory::Summary summarize(nsecs_t /*now*/) override;
DLayerInfoV2.cpp37 LayerHistory::LayerVoteType defaultVote) in LayerInfoV2()
201 std::pair<LayerHistory::LayerVoteType, float> LayerInfoV2::getRefreshRate(nsecs_t now) { in getRefreshRate()
202 if (mLayerVote.type != LayerHistory::LayerVoteType::Heuristic) { in getRefreshRate()
210 return {LayerHistory::LayerVoteType::Max, 0}; in getRefreshRate()
216 return {LayerHistory::LayerVoteType::Min, 0}; in getRefreshRate()
229 return {LayerHistory::LayerVoteType::Heuristic, refreshRate.value()}; in getRefreshRate()
233 return {LayerHistory::LayerVoteType::Max, 0}; in getRefreshRate()
236 const char* LayerInfoV2::getTraceTag(android::scheduler::LayerHistory::LayerVoteType type) const { in getTraceTag()
DScheduler.h42 using scheduler::LayerHistory;
135 void recordLayerHistory(Layer*, nsecs_t presentTime, LayerHistory::LayerUpdateType updateType);
234 std::unique_ptr<LayerHistory> mLayerHistory;
256 LayerHistory::Summary contentRequirements;
DScheduler.cpp116 mLayerHistory = std::make_unique<scheduler::impl::LayerHistory>(); in Scheduler()
421 scheduler::LayerHistory::LayerVoteType::NoVote); in registerLayer()
427 scheduler::LayerHistory::LayerVoteType::Max); in registerLayer()
435 scheduler::LayerHistory::LayerVoteType::Heuristic); in registerLayer()
440 scheduler::LayerHistory::LayerVoteType::Min); in registerLayer()
443 scheduler::LayerHistory::LayerVoteType::Heuristic); in registerLayer()
449 LayerHistory::LayerUpdateType updateType) { in recordLayerHistory()
466 scheduler::LayerHistory::Summary summary = mLayerHistory->summarize(systemTime()); in chooseRefreshRateForContent()
/frameworks/native/services/surfaceflinger/
DAndroid.bp166 "Scheduler/LayerHistory.cpp",
DBufferQueueLayer.cpp404 LayerHistory::LayerUpdateType::Buffer); in onFrameAvailable()
DBufferStateLayer.cpp280 LayerHistory::LayerUpdateType::Buffer); in setBuffer()
DLayer.cpp1419 LayerHistory::LayerUpdateType::SetFrameRate); in setFrameRate()
DSurfaceFlinger.cpp3423 LayerHistory::LayerUpdateType::AnimationTX); in applyTransactionState()