/frameworks/native/services/surfaceflinger/ |
D | LayerFE.cpp | 82 LayerFE::LayerFE(const std::string& name) : mName(name) {} in LayerFE() function in android::LayerFE 84 LayerFE::~LayerFE() { in ~LayerFE() 94 const compositionengine::LayerFECompositionState* LayerFE::getCompositionState() const { in getCompositionState() 98 bool LayerFE::onPreComposition(bool) { in onPreComposition() 102 std::optional<compositionengine::LayerFE::LayerSettings> LayerFE::prepareClientComposition( in prepareClientComposition() 103 compositionengine::LayerFE::ClientCompositionTargetSettings& targetSettings) const { in prepareClientComposition() 104 std::optional<compositionengine::LayerFE::LayerSettings> layerSettings = in prepareClientComposition() 123 std::optional<compositionengine::LayerFE::LayerSettings> LayerFE::prepareClientCompositionInternal( in prepareClientCompositionInternal() 124 compositionengine::LayerFE::ClientCompositionTargetSettings& targetSettings) const { in prepareClientCompositionInternal() 126 compositionengine::LayerFE::LayerSettings layerSettings; in prepareClientCompositionInternal() [all …]
|
D | LayerFE.h | 36 class LayerFE : public virtual RefBase, public virtual compositionengine::LayerFE { 38 LayerFE(const std::string& name); 39 virtual ~LayerFE(); 51 std::optional<compositionengine::LayerFE::LayerSettings> prepareClientComposition( 52 compositionengine::LayerFE::ClientCompositionTargetSettings&) const; 56 LayerFE::ReleaseFencePromiseStatus getReleaseFencePromiseStatus() override; 61 std::optional<compositionengine::LayerFE::LayerSettings> prepareClientCompositionInternal( 62 compositionengine::LayerFE::ClientCompositionTargetSettings&) const; 65 void prepareClearClientComposition(LayerFE::LayerSettings&, bool blackout) const; 66 void prepareShadowClientComposition(LayerFE::LayerSettings& caster, [all …]
|
D | ScreenCaptureOutput.h | 58 std::vector<compositionengine::LayerFE::LayerSettings> generateClientCompositionRequests( 60 std::vector<compositionengine::LayerFE*>& outLayerFEs) override;
|
D | RenderArea.h | 42 static std::function<std::vector<std::pair<Layer*, sp<LayerFE>>>()> fromTraverseLayersLambda( in fromTraverseLayersLambda() 45 std::vector<std::pair<Layer*, sp<LayerFE>>> layers; in fromTraverseLayersLambda()
|
D | SurfaceFlingerFactory.h | 41 class LayerFE; variable 88 virtual sp<LayerFE> createLayerFE(const std::string& layerName, const Layer* owner) = 0;
|
D | ScreenCaptureOutput.cpp | 101 std::vector<compositionengine::LayerFE::LayerSettings> 104 std::vector<compositionengine::LayerFE*>& outLayerFEs) { in generateClientCompositionRequests() 127 compositionengine::LayerFE::LayerSettings fillLayer; in generateClientCompositionRequests()
|
D | SurfaceFlingerDefaultFactory.cpp | 88 sp<LayerFE> DefaultFactory::createLayerFE(const std::string& layerName, const Layer* /* owner */) { in createLayerFE() 89 return sp<LayerFE>::make(layerName); in createLayerFE()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | LayerFE.h | 29 class LayerFE : public compositionengine::LayerFE { 34 LayerFE(); 38 friend class sp<LayerFE>; 39 friend class testing::StrictMock<LayerFE>; 40 friend class testing::NiceMock<LayerFE>; 43 virtual ~LayerFE(); 50 std::optional<compositionengine::LayerFE::LayerSettings>( 51 compositionengine::LayerFE::ClientCompositionTargetSettings&)); 58 MOCK_METHOD0(getReleaseFencePromiseStatus, LayerFE::ReleaseFencePromiseStatus());
|
D | Output.h | 49 MOCK_METHOD(bool, includesLayer, (const sp<compositionengine::LayerFE>&), (const)); 73 compositionengine::OutputLayer*(const sp<compositionengine::LayerFE>&)); 76 compositionengine::OutputLayer*(const sp<compositionengine::LayerFE>&)); 95 void(sp<compositionengine::LayerFE>&, compositionengine::Output::CoverageState&)); 130 …std::vector<LayerFE::LayerSettings>(bool, ui::Dataspace, std::vector<compositionengine::LayerFE*>&… 132 void(const Region&, std::vector<LayerFE::LayerSettings>&));
|
D | OutputLayer.h | 41 MOCK_CONST_METHOD0(getLayerFE, compositionengine::LayerFE&()); 58 MOCK_CONST_METHOD0(getOverrideCompositionSettings, std::optional<LayerFE::LayerSettings>());
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/ |
D | PredictorTest.cpp | 53 void setupMocksForLayer(mock::OutputLayer& layer, mock::LayerFE& layerFE, in setupMocksForLayer() 79 sp<mock::LayerFE> layerFEOne = sp<mock::LayerFE>::make(); in TEST_F() 87 sp<mock::LayerFE> layerFETwo = sp<mock::LayerFE>::make(); in TEST_F() 95 sp<mock::LayerFE> layerFEThree = sp<mock::LayerFE>::make(); in TEST_F() 110 sp<mock::LayerFE> layerFEOne = sp<mock::LayerFE>::make(); in TEST_F() 119 sp<mock::LayerFE> layerFETwo = sp<mock::LayerFE>::make(); in TEST_F() 137 sp<mock::LayerFE> layerFEOne = sp<mock::LayerFE>::make(); in TEST_F() 147 sp<mock::LayerFE> layerFETwo = sp<mock::LayerFE>::make(); in TEST_F() 171 sp<mock::LayerFE> layerFEOne = sp<mock::LayerFE>::make(); in TEST_F() 181 sp<mock::LayerFE> layerFETwo = sp<mock::LayerFE>::make(); in TEST_F() [all …]
|
D | LayerStateTest.cpp | 87 void setupMocksForLayer(mock::OutputLayer& layer, mock::LayerFE& layerFE, in setupMocksForLayer() 114 sp<mock::LayerFE> mLayerFE = sp<mock::LayerFE>::make(); 140 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 164 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 179 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 209 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 224 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 256 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 274 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() 328 sp<mock::LayerFE> newLayerFE = sp<mock::LayerFE>::make(); in TEST_F() [all …]
|
D | CachedSetTest.cpp | 87 sp<mock::LayerFE> layerFE; 111 testLayer->layerFE = sp<mock::LayerFE>::make(); in SetUp() 339 sp<mock::LayerFE> layerFE1 = mTestLayers[1]->layerFE; in TEST_F() 341 sp<mock::LayerFE> layerFE2 = mTestLayers[2]->layerFE; in TEST_F() 346 std::optional<compositionengine::LayerFE::LayerSettings> clientComp1; in TEST_F() 350 std::optional<compositionengine::LayerFE::LayerSettings> clientComp2; in TEST_F() 388 sp<mock::LayerFE> layerFE1 = mTestLayers[1]->layerFE; in TEST_F() 390 sp<mock::LayerFE> layerFE2 = mTestLayers[2]->layerFE; in TEST_F() 395 std::optional<compositionengine::LayerFE::LayerSettings> clientComp1; in TEST_F() 399 std::optional<compositionengine::LayerFE::LayerSettings> clientComp2; in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | LayerFE.h | 53 class LayerFE : public virtual RefBase { 165 virtual LayerFE::ReleaseFencePromiseStatus getReleaseFencePromiseStatus() = 0; 183 size_t operator()(const sp<LayerFE>& p) const { return std::hash<LayerFE*>()(p.get()); } in operator() 186 using LayerFESet = std::unordered_set<sp<LayerFE>, LayerFESpHash>; 188 static inline bool operator==(const LayerFE::ClientCompositionTargetSettings& lhs, 189 const LayerFE::ClientCompositionTargetSettings& rhs) { 197 static inline bool operator==(const LayerFE::LayerSettings& lhs, 198 const LayerFE::LayerSettings& rhs) { 205 static inline void PrintTo(const LayerFE::ClientCompositionTargetSettings& settings, in PrintTo() 223 static inline void PrintTo(const LayerFE::LayerSettings& settings, ::std::ostream* os) { in PrintTo()
|
D | Output.h | 52 class LayerFE; variable 69 using ReleasedLayers = std::vector<wp<LayerFE>>; 70 using UniqueFELayerStateMap = std::unordered_map<LayerFE*, LayerFECompositionState*>; 239 virtual bool includesLayer(const sp<LayerFE>&) const = 0; 243 virtual OutputLayer* getOutputLayerForLayer(const sp<LayerFE>&) const = 0; 249 virtual OutputLayer* injectOutputLayerForTest(const sp<LayerFE>&) = 0; 290 virtual void ensureOutputLayerIfVisible(sp<LayerFE>&, CoverageState&) = 0; 318 virtual std::vector<LayerFE::LayerSettings> generateClientCompositionRequests( 320 std::vector<LayerFE*> &outLayerRef) = 0; 323 std::vector<LayerFE::LayerSettings>& clientCompositionLayers) = 0;
|
D | OutputLayer.h | 71 virtual LayerFE& getLayerFE() const = 0; 136 virtual std::optional<LayerFE::LayerSettings> getOverrideCompositionSettings() const = 0;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | ClientCompositionRequestCache.cpp | 26 LayerFE::LayerSettings getLayerSettingsSnapshot(const LayerFE::LayerSettings& settings) { in getLayerSettingsSnapshot() 27 LayerFE::LayerSettings snapshot = settings; in getLayerSettingsSnapshot() 62 bool layerSettingsAreEqual(const LayerFE::LayerSettings& lhs, const LayerFE::LayerSettings& rhs) { in layerSettingsAreEqual() 71 const std::vector<LayerFE::LayerSettings>& initLayerSettings) in ClientCompositionRequest() 74 for (const LayerFE::LayerSettings& settings : initLayerSettings) { in ClientCompositionRequest() 81 const std::vector<LayerFE::LayerSettings>& newLayerSettings) const { in equals() 89 const std::vector<LayerFE::LayerSettings>& layerSettings) const { in exists() 100 const std::vector<LayerFE::LayerSettings>& layerSettings) { in add()
|
D | Output.cpp | 395 bool Output::includesLayer(const sp<LayerFE>& layerFE) const { in includesLayer() 401 const sp<LayerFE>& layerFE) const { in createOutputLayer() 405 compositionengine::OutputLayer* Output::getOutputLayerForLayer(const sp<LayerFE>& layerFE) const { in getOutputLayerForLayer() 411 const sp<compositionengine::LayerFE>& layer) const { in findCurrentOutputLayerForLayer() 558 void Output::ensureOutputLayerIfVisible(sp<compositionengine::LayerFE>& layerFE, in ensureOutputLayerIfVisible() 1306 std::vector<LayerFE*> clientCompositionLayersFE; in composeSurfaces() 1307 std::vector<LayerFE::LayerSettings> clientCompositionLayers = in composeSurfaces() 1349 [](LayerFE::LayerSettings& settings) -> renderengine::LayerSettings { in composeSurfaces() 1431 std::vector<LayerFE::LayerSettings> Output::generateClientCompositionRequests( in generateClientCompositionRequests() 1432 …bool supportsProtectedContent, ui::Dataspace outputDataspace, std::vector<LayerFE*>& outLayerFEs) { in generateClientCompositionRequests() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/mock/ |
D | LayerFE.cpp | 23 LayerFE::LayerFE() = default; 24 LayerFE::~LayerFE() = default;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | ClientCompositionRequestCache.h | 45 const std::vector<LayerFE::LayerSettings>& layerSettings) const; 47 const std::vector<LayerFE::LayerSettings>& layerSettings); 54 std::vector<LayerFE::LayerSettings> layerSettings; 56 const std::vector<LayerFE::LayerSettings>& _layerSettings); 58 const std::vector<LayerFE::LayerSettings>& _layerSettings) const;
|
D | OutputLayer.h | 64 std::optional<LayerFE::LayerSettings> getOverrideCompositionSettings() const override; 105 sp<LayerFE> layerFE) { in createOutputLayerTemplated() 116 using LayerFE = in createOutputLayerTemplated() local 121 OutputLayer(const Output& output, const sp<LayerFE>& layerFE) in createOutputLayerTemplated() 128 LayerFE& getLayerFE() const override { return *mLayerFE; } in createOutputLayerTemplated() 136 const sp<LayerFE> mLayerFE; in createOutputLayerTemplated() 144 const sp<LayerFE>&);
|
D | Output.h | 76 bool includesLayer(const sp<LayerFE>&) const override; 78 compositionengine::OutputLayer* getOutputLayerForLayer(const sp<LayerFE>&) const override; 91 void ensureOutputLayerIfVisible(sp<compositionengine::LayerFE>&, 130 std::unique_ptr<compositionengine::OutputLayer> createOutputLayer(const sp<LayerFE>&) const; 132 const sp<compositionengine::LayerFE>&) const; 144 std::vector<LayerFE::LayerSettings> generateClientCompositionRequests( 146 std::vector<LayerFE*>& outLayerFEs) override; 147 void appendRegionFlashRequests(const Region&, std::vector<LayerFE::LayerSettings>&) override; 158 const sp<LayerFE>&) = 0; 159 virtual compositionengine::OutputLayer* injectOutputLayerForTest(const sp<LayerFE>&) = 0; [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | CompositionEngineTest.cpp | 149 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); 216 sp<StrictMock<mock::LayerFE>> mLayer1FE = sp<StrictMock<mock::LayerFE>>::make(); 217 sp<StrictMock<mock::LayerFE>> mLayer2FE = sp<StrictMock<mock::LayerFE>>::make(); 218 sp<StrictMock<mock::LayerFE>> mLayer3FE = sp<StrictMock<mock::LayerFE>>::make(); 491 sp<StrictMock<mock::LayerFE>> mLayer1FE = sp<StrictMock<mock::LayerFE>>::make(); 492 sp<StrictMock<mock::LayerFE>> mLayer2FE = sp<StrictMock<mock::LayerFE>>::make(); 493 sp<StrictMock<mock::LayerFE>> mLayer3FE = sp<StrictMock<mock::LayerFE>>::make(); 501 .WillOnce(Return(LayerFE::ReleaseFencePromiseStatus::FULFILLED)); in TEST_F() 503 .WillOnce(Return(LayerFE::ReleaseFencePromiseStatus::FULFILLED)); in TEST_F() 505 .WillOnce(Return(LayerFE::ReleaseFencePromiseStatus::INITIALIZED)); in TEST_F()
|
D | OutputTest.cpp | 96 compositionengine::OutputLayer*(std::optional<size_t>, const sp<LayerFE>&)); 101 MOCK_METHOD1(injectOutputLayerForTest, compositionengine::OutputLayer*(const sp<LayerFE>&)); 119 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); 136 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); 644 sp<LayerFE> layerFE(layer.layerFE); in TEST_F() 653 sp<LayerFE> layerFE(layer.layerFE); in TEST_F() 733 sp<StrictMock<mock::LayerFE>> layer1FE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() 734 sp<StrictMock<mock::LayerFE>> layer2FE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() 735 sp<StrictMock<mock::LayerFE>> layer3FE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() 1184 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); [all …]
|
D | DisplayTest.cpp | 81 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); 92 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); 125 compositionengine::OutputLayer*(std::optional<size_t>, const sp<LayerFE>&)); 129 MOCK_METHOD1(injectOutputLayerForTest, compositionengine::OutputLayer*(const sp<LayerFE>&)); 491 sp<StrictMock<mock::LayerFE>> layerFE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() 514 sp<mock::LayerFE> layerXLayerFE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() 532 sp<mock::LayerFE> layerXLayerFE = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F() 548 sp<mock::LayerFE> unknownLayer = sp<StrictMock<mock::LayerFE>>::make(); in TEST_F()
|