/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerHistoryTestV2.cpp | 74 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 …]
|
D | LayerHistoryTest.cpp | 52 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 …]
|
D | TestableScheduler.h | 36 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/ |
D | LayerHistory.cpp | 71 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()
|
D | LayerInfoV2.h | 46 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;
|
D | LayerHistoryV2.cpp | 61 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 …]
|
D | LayerHistory.h | 42 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;
|
D | LayerInfoV2.cpp | 37 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()
|
D | Scheduler.h | 42 using scheduler::LayerHistory; 135 void recordLayerHistory(Layer*, nsecs_t presentTime, LayerHistory::LayerUpdateType updateType); 234 std::unique_ptr<LayerHistory> mLayerHistory; 256 LayerHistory::Summary contentRequirements;
|
D | Scheduler.cpp | 116 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/ |
D | Android.bp | 166 "Scheduler/LayerHistory.cpp",
|
D | BufferQueueLayer.cpp | 404 LayerHistory::LayerUpdateType::Buffer); in onFrameAvailable()
|
D | BufferStateLayer.cpp | 280 LayerHistory::LayerUpdateType::Buffer); in setBuffer()
|
D | Layer.cpp | 1419 LayerHistory::LayerUpdateType::SetFrameRate); in setFrameRate()
|
D | SurfaceFlinger.cpp | 3423 LayerHistory::LayerUpdateType::AnimationTX); in applyTransactionState()
|