/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayTest.cpp | 77 EXPECT_CALL(*outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE)); in Layer() 78 EXPECT_CALL(*outputLayer, getHwcLayer()).WillRepeatedly(Return(&hwc2Layer)); in Layer() 82 StrictMock<mock::OutputLayer>* outputLayer = new StrictMock<mock::OutputLayer>(); member 88 EXPECT_CALL(*outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE)); in LayerNoHWC2Layer() 89 EXPECT_CALL(*outputLayer, getHwcLayer()).WillRepeatedly(Return(nullptr)); in LayerNoHWC2Layer() 93 StrictMock<mock::OutputLayer>* outputLayer = new StrictMock<mock::OutputLayer>(); member 236 std::unique_ptr<compositionengine::OutputLayer>(mLayer1.outputLayer)); in DisplayWithLayersTestCommon() 238 std::unique_ptr<compositionengine::OutputLayer>(mLayer2.outputLayer)); in DisplayWithLayersTestCommon() 240 std::unique_ptr<compositionengine::OutputLayer>(mLayer3.outputLayer)); in DisplayWithLayersTestCommon() 497 auto outputLayer = mDisplay->createOutputLayer(layerFE); in TEST_F() local [all …]
|
D | CompositionEngineTest.cpp | 146 Layer() { EXPECT_CALL(outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE)); } in Layer() 148 StrictMock<mock::OutputLayer> outputLayer; member 159 .WillRepeatedly(Return(&mOutput2Layer1.outputLayer)); in CompositionEngineUpdateCursorAsyncTest() 163 .WillRepeatedly(Return(&mOutput3Layer1.outputLayer)); in CompositionEngineUpdateCursorAsyncTest() 165 .WillRepeatedly(Return(&mOutput3Layer2.outputLayer)); in CompositionEngineUpdateCursorAsyncTest() 178 EXPECT_CALL(mOutput3Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(false)); in TEST_F() 179 EXPECT_CALL(mOutput3Layer2.outputLayer, isHardwareCursor()).WillRepeatedly(Return(false)); in TEST_F() 180 EXPECT_CALL(mOutput2Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(false)); in TEST_F() 190 EXPECT_CALL(mOutput2Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(true)); in TEST_F() 191 EXPECT_CALL(mOutput2Layer1.outputLayer, writeCursorPositionToHWC()); in TEST_F() [all …]
|
D | OutputTest.cpp | 109 EXPECT_CALL(*outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE.get())); in InjectedLayer() 110 EXPECT_CALL(*outputLayer, getState()).WillRepeatedly(ReturnRef(outputLayerState)); in InjectedLayer() 111 EXPECT_CALL(*outputLayer, editState()).WillRepeatedly(ReturnRef(outputLayerState)); in InjectedLayer() 118 mock::OutputLayer* outputLayer = {new StrictMock<mock::OutputLayer>}; member 126 EXPECT_CALL(outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(*layerFE.get())); in NonInjectedLayer() 127 EXPECT_CALL(outputLayer, getState()).WillRepeatedly(ReturnRef(outputLayerState)); in NonInjectedLayer() 128 EXPECT_CALL(outputLayer, editState()).WillRepeatedly(ReturnRef(outputLayerState)); in NonInjectedLayer() 135 mock::OutputLayer outputLayer; member 164 mOutput->injectOutputLayerForTest(std::unique_ptr<OutputLayer>(layer.outputLayer)); in injectOutputLayer() 712 EXPECT_CALL(*layer1.outputLayer, getLayerFE()).WillOnce(ReturnRef(*layer1.layerFE.get())); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | Output.h | 245 auto outputLayer = (prevIndex && *prevIndex <= mCurrentOutputLayersOrderedByZ.size()) in createOutputTemplated() local 248 auto result = outputLayer.get(); in createOutputTemplated() 249 mPendingOutputLayersOrderedByZ.emplace_back(std::move(outputLayer)); in createOutputTemplated() 265 auto outputLayer = BaseOutput::createOutputLayer(layerFE); in createOutputTemplated() local 266 auto result = outputLayer.get(); in createOutputTemplated() 267 mCurrentOutputLayersOrderedByZ.emplace_back(std::move(outputLayer)); in createOutputTemplated() 274 virtual void injectOutputLayerForTest(std::unique_ptr<OutputLayer> outputLayer) { in createOutputTemplated() 275 mCurrentOutputLayersOrderedByZ.emplace_back(std::move(outputLayer)); in createOutputTemplated()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | Display.cpp | 158 auto outputLayer = impl::createOutputLayer(*this, layerFE); in createOutputLayer() local 161 outputLayer && !mIsDisconnected && halDisplayId) { in createOutputLayer() 166 outputLayer->setHwcLayer(std::move(hwcLayer)); in createOutputLayer() 168 return outputLayer; in createOutputLayer() 186 for (auto* outputLayer : getOutputLayersOrderedByZ()) { in setReleasedLayers() local 187 if (!outputLayer) { in setReleasedLayers() 191 compositionengine::LayerFE* layerFE = &outputLayer->getLayerFE(); in setReleasedLayers()
|
D | Output.cpp | 155 for (auto* outputLayer : getOutputLayersOrderedByZ()) { in setLayerCachingEnabled() local 156 if (!outputLayer) { in setLayerCachingEnabled() 160 outputLayer->editState().overrideInfo = {}; in setLayerCachingEnabled() 326 for (const auto* outputLayer : getOutputLayersOrderedByZ()) { in dumpBase() local 327 if (!outputLayer) { in dumpBase() 330 outputLayer->dump(out); in dumpBase() 413 auto outputLayer = getOutputLayerOrderedByZByIndex(i); in findCurrentOutputLayerForLayer() local 414 if (outputLayer && &outputLayer->getLayerFE() == layer.get()) { in findCurrentOutputLayerForLayer() 508 for (auto outputLayer : getOutputLayersOrderedByZ()) { in uncacheBuffers() local 509 outputLayer->uncacheBuffers(bufferIdsToUncache); in uncacheBuffers()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/ |
D | FlattenerTest.cpp | 85 mock::OutputLayer outputLayer; member 133 EXPECT_CALL(testLayer->outputLayer, getLayerFE) in SetUp() 135 EXPECT_CALL(testLayer->outputLayer, getState) in SetUp() 137 EXPECT_CALL(testLayer->outputLayer, editState) in SetUp() 140 testLayer->layerState = std::make_unique<LayerState>(&testLayer->outputLayer); in SetUp() 712 EXPECT_EQ(&mTestLayers[2]->outputLayer, peekThroughLayer1); in TEST_F() 781 EXPECT_EQ(&mTestLayers[1]->outputLayer, peekThroughLayer0); in TEST_F() 851 EXPECT_EQ(&mTestLayers[1]->outputLayer, peekThroughLayer0); in TEST_F() 860 layerState2->update(&mTestLayers[1]->outputLayer); in TEST_F() 907 layerState2->update(&mTestLayers[1]->outputLayer); in TEST_F() [all …]
|
D | CachedSetTest.cpp | 84 mock::OutputLayer outputLayer; member 118 EXPECT_CALL(testLayer->outputLayer, getLayerFE) in SetUp() 120 EXPECT_CALL(testLayer->outputLayer, getState) in SetUp() 123 testLayer->layerState = std::make_unique<LayerState>(&testLayer->outputLayer); in SetUp() 588 mTestLayers[0]->layerState->update(&mTestLayers[0]->outputLayer); in TEST_F() 635 mTestLayers[0]->layerState->update(&mTestLayers[0]->outputLayer); in TEST_F() 651 mTestLayers[0]->layerState->update(&mTestLayers[0]->outputLayer); in TEST_F() 671 mTestLayers[0]->layerState->update(&mTestLayers[0]->outputLayer); in TEST_F() 765 ASSERT_EQ(&mTestLayers[2]->outputLayer, cachedSet.getHolePunchLayer()); in TEST_F() 780 ASSERT_EQ(&mTestLayers[2]->outputLayer, cachedSet.getHolePunchLayer()); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | CachedSet.cpp | 347 const auto* outputLayer = layer.getState()->getOutputLayer(); in addHolePunchLayerIfFeasible() local 348 if (contains(outputLayer->getState().displayFrame, holePunchBounds) && in addHolePunchLayerIfFeasible() 349 (isFirstLayer || outputLayer->getLayerFE().getCompositionState()->isOpaque)) { in addHolePunchLayerIfFeasible()
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 403 const auto outputLayer = findOutputLayerForDisplay(display, snapshot->path); in updateTrustedPresentationState() local 404 if (outputLayer != nullptr) { in updateTrustedPresentationState() 405 if (outputLayer->getState().coveredRegionExcludingDisplayOverlays) { in updateTrustedPresentationState() 407 *outputLayer->getState().coveredRegionExcludingDisplayOverlays; in updateTrustedPresentationState() 740 const auto outputLayer = findOutputLayerForDisplay(&display); in getCompositionType() local 741 return getCompositionType(outputLayer); in getCompositionType() 745 const compositionengine::OutputLayer* outputLayer) const { in getCompositionType() 746 if (outputLayer == nullptr) { in getCompositionType() 749 if (outputLayer->getState().hwc) { in getCompositionType() 750 return (*outputLayer->getState().hwc).hwcCompositionType; in getCompositionType() [all …]
|
D | SurfaceFlinger.cpp | 2851 for (auto outputLayer : compositionDisplay->getOutputLayersOrderedByZ()) { in composite() local 2852 if (outputLayer->getLayerFE().getCompositionState() == nullptr) { in composite() 2857 outputLayer->getLayerFE().getDebugName(), in composite() 3240 const auto* outputLayer = in onCompositionPresented() local 3242 if (outputLayer) { in onCompositionPresented() 3249 const auto displayFrame = outputLayer->getState().displayFrame; in onCompositionPresented()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | CompositionTest.cpp | 808 auto outputLayer = test->mDisplay->getCompositionDisplay()->injectOutputLayerForTest( in injectLayer() local 810 outputLayer->editState().visibleRegion = Region(Rect(0, 0, 100, 100)); in injectLayer() 811 outputLayer->editState().outputSpaceVisibleRegion = Region(Rect(0, 0, 100, 100)); in injectLayer() 1060 const auto outputLayer = in setupLayerState() local 1062 LOG_FATAL_IF(!outputLayer); in setupLayerState() 1063 outputLayer->editState().forceClientComposition = true; in setupLayerState()
|
D | TestableSurfaceFlinger.h | 343 auto outputLayer = findOutputLayerForDisplay(layer, mFlinger->getDefaultDisplayDevice()); in setLayerCompositionType() local 344 LOG_ALWAYS_FATAL_IF(!outputLayer); in setLayerCompositionType() 345 auto& state = outputLayer->editState(); in setLayerCompositionType() 346 LOG_ALWAYS_FATAL_IF(!outputLayer->getState().hwc); in setLayerCompositionType()
|