/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FrameRateSelectionStrategyTest.cpp | 40 using FrameRate = Layer::FrameRate; typedef 49 const FrameRate FRAME_RATE_VOTE1 = FrameRate(11_Hz, FrameRateCompatibility::Default); 50 const FrameRate FRAME_RATE_VOTE2 = FrameRate(22_Hz, FrameRateCompatibility::Default); 51 const FrameRate FRAME_RATE_VOTE3 = FrameRate(33_Hz, FrameRateCompatibility::Default); 52 const FrameRate FRAME_RATE_DEFAULT = FrameRate(Fps(), FrameRateCompatibility::Default); 53 const FrameRate FRAME_RATE_TREE = FrameRate(Fps(), FrameRateCompatibility::NoVote);
|
D | LayerSnapshotTest.cpp | 603 EXPECT_TRUE(getSnapshot({.id = 1})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 610 EXPECT_TRUE(getSnapshot({.id = 11})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 616 EXPECT_TRUE(getSnapshot({.id = 111})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 643 EXPECT_TRUE(getSnapshot({.id = 122})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 654 EXPECT_TRUE(getSnapshot({.id = 1})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 660 EXPECT_TRUE(getSnapshot({.id = 2})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 708 EXPECT_TRUE(getSnapshot({.id = 1})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 715 EXPECT_TRUE(getSnapshot({.id = 11})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 721 EXPECT_TRUE(getSnapshot({.id = 111})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() 727 EXPECT_TRUE(getSnapshot({.id = 12})->changes.test(RequestedLayerState::Changes::FrameRate)); in TEST_F() [all …]
|
D | SetFrameRateTest.cpp | 48 using FrameRate = Layer::FrameRate; typedef 56 const FrameRate FRAME_RATE_VOTE1 = FrameRate(67_Hz, FrameRateCompatibility::Default); 57 const FrameRate FRAME_RATE_VOTE2 = FrameRate(14_Hz, FrameRateCompatibility::ExactOrMultiple); 58 const FrameRate FRAME_RATE_VOTE3 = FrameRate(99_Hz, FrameRateCompatibility::NoVote); 59 const FrameRate FRAME_RATE_TREE = FrameRate(Fps(), FrameRateCompatibility::NoVote); 60 const FrameRate FRAME_RATE_NO_VOTE = FrameRate(Fps(), FrameRateCompatibility::Default);
|
D | LayerHistoryTest.cpp | 163 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 190 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 218 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 292 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 320 Return(Layer::FrameRate(setFrameRate, Layer::FrameRateCompatibility::Default))); in TEST_F() 354 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 381 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 403 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 431 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() 460 EXPECT_CALL(*layer, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerInfo.h | 93 struct FrameRate { struct 117 FrameRate() = default; argument 119 FrameRate(Fps rate, FrameRateCompatibility type, 124 bool operator==(const FrameRate& other) const { 128 bool operator!=(const FrameRate& other) const { return !(*this == other); } 211 FrameRate getSetFrameRateVote() const; 373 LayerInfo::FrameRate setFrameRateVote;
|
D | LayerInfo.cpp | 404 LayerInfo::FrameRate LayerInfo::getSetFrameRateVote() const { in getSetFrameRateVote() 497 FrameRateCompatibility LayerInfo::FrameRate::convertCompatibility(int8_t compatibility) { in convertCompatibility() 517 Seamlessness LayerInfo::FrameRate::convertChangeFrameRateStrategy(int8_t strategy) { in convertChangeFrameRateStrategy() 529 FrameRateCategory LayerInfo::FrameRate::convertCategory(int8_t category) { in convertCategory() 564 bool LayerInfo::FrameRate::isNoVote() const { in isNoVote() 568 bool LayerInfo::FrameRate::isValuelessType() const { in isValuelessType() 585 bool LayerInfo::FrameRate::isValid() const { in isValid() 589 bool LayerInfo::FrameRate::isVoteValidForMrr(bool isVrrDevice) const { in isVoteValidForMrr() 601 std::ostream& operator<<(std::ostream& stream, const LayerInfo::FrameRate& rate) { in operator <<()
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.h | 112 using FrameRate = scheduler::LayerInfo::FrameRate; variable 187 FrameRate frameRate; 190 FrameRate frameRateForLayerTree; 506 virtual FrameRate getFrameRateForLayerTree() const; 791 bool setFrameRate(FrameRate::FrameRateVote); 915 bool setFrameRateForLayerTreeLegacy(FrameRate, nsecs_t now); 916 bool setFrameRateForLayerTree(FrameRate, const scheduler::LayerProps&, nsecs_t now); 1140 bool propagateFrameRateForLayerTree(FrameRate parentFrameRate, bool overrideChildren, 1298 std::ostream& operator<<(std::ostream& stream, const Layer::FrameRate& rate);
|
D | Layer.cpp | 105 TimeStats::SetFrameRateVote frameRateToSetFrameRateVotePayload(Layer::FrameRate frameRate) { in frameRateToSetFrameRateVotePayload() 1241 bool Layer::propagateFrameRateForLayerTree(FrameRate parentFrameRate, bool overrideChildren, in propagateFrameRateForLayerTree() 1266 : FrameRate(), in propagateFrameRateForLayerTree() 1274 setFrameRateForLayerTreeLegacy(FrameRate(Fps(), FrameRateCompatibility::NoVote), in propagateFrameRateForLayerTree() 1309 bool Layer::setFrameRate(FrameRate::FrameRateVote frameRateVote) { in setFrameRate() 1486 bool Layer::setFrameRateForLayerTreeLegacy(FrameRate frameRate, nsecs_t now) { in setFrameRateForLayerTreeLegacy() 1505 bool Layer::setFrameRateForLayerTree(FrameRate frameRate, const scheduler::LayerProps& layerProps, in setFrameRateForLayerTree() 1518 Layer::FrameRate Layer::getFrameRateForLayerTree() const { in getFrameRateForLayerTree()
|
D | SurfaceFlinger.cpp | 2362 snapshot->changes.any(Changes::FrameRate | Changes::Buffer | Changes::Animation | in updateLayerHistory() 2408 if (snapshot->changes.test(Changes::FrameRate)) { in updateLayerHistory() 2503 if (mLayerLifecycleManager.getGlobalChanges().any(Changes::Hierarchy | Changes::FrameRate)) { in updateLayerSnapshots() 5690 Layer::FrameRate::convertCompatibility(s.defaultFrameRateCompatibility); in setClientStateLocked() 5703 Layer::FrameRate::convertCompatibility(s.frameRateCompatibility); in setClientStateLocked() 5705 Layer::FrameRate::convertChangeFrameRateStrategy(s.changeFrameRateStrategy); in setClientStateLocked() 5707 if (layer->setFrameRate(Layer::FrameRate::FrameRateVote(Fps::fromValue(s.frameRate), in setClientStateLocked() 5713 const FrameRateCategory category = Layer::FrameRate::convertCategory(s.frameRateCategory); in setClientStateLocked()
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | LayerSnapshot.h | 89 scheduler::LayerInfo::FrameRate frameRate; 90 scheduler::LayerInfo::FrameRate inheritedFrameRate;
|
D | RequestedLayerState.h | 53 FrameRate = 1u << 13, enumerator 123 scheduler::LayerInfo::FrameRate requestedFrameRate;
|
D | RequestedLayerState.cpp | 334 Layer::FrameRate::convertCompatibility(clientState.frameRateCompatibility); in merge() 335 const auto strategy = Layer::FrameRate::convertChangeFrameRateStrategy( in merge() 338 Layer::FrameRate::FrameRateVote(Fps::fromValue(clientState.frameRate), in merge() 340 changes |= RequestedLayerState::Changes::FrameRate; in merge() 343 const auto category = Layer::FrameRate::convertCategory(clientState.frameRateCategory); in merge() 345 changes |= RequestedLayerState::Changes::FrameRate; in merge() 412 std::ostream& operator<<(std::ostream& out, const scheduler::LayerInfo::FrameRate& obj) { in operator <<()
|
D | LayerSnapshotBuilder.cpp | 671 !childSnapshot.changes.any(RequestedLayerState::Changes::FrameRate) && in updateFrameRateFromChildSnapshot() 672 !snapshot.changes.any(RequestedLayerState::Changes::FrameRate)) { in updateFrameRateFromChildSnapshot() 700 snapshot.frameRate = scheduler::LayerInfo::FrameRate(Fps(), FrameRateCompatibility::NoVote); in updateFrameRateFromChildSnapshot() 701 snapshot.changes |= RequestedLayerState::Changes::FrameRate; in updateFrameRateFromChildSnapshot() 719 RequestedLayerState::Changes::FrameRate | RequestedLayerState::Changes::GameMode); in updateSnapshot() 834 snapshot.changes.any(RequestedLayerState::Changes::FrameRate | in updateSnapshot() 849 snapshot.changes |= RequestedLayerState::Changes::FrameRate; in updateSnapshot()
|
D | LayerSnapshot.cpp | 413 Layer::FrameRate::convertCompatibility(requested.defaultFrameRateCompatibility); in merge()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/ |
D | MockLayer.h | 44 MOCK_CONST_METHOD0(getFrameRateForLayerTree, FrameRate());
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | mp4lib_int.h | 395 float FrameRate; /* Src frame Rate */ member
|
D | mp4enc_api.cpp | 454 video->FrameRate = timeIncRes / ((float)timeInc); in PVInitVideoEncoder() 2667 srcFrameInterval = 1000 / video->FrameRate; in DetermineCodingLayer()
|