/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayer.h | 46 void setHwcLayer(std::shared_ptr<HWC2::Layer>) override; 56 HWC2::Layer* getHwcLayer() const override; 79 HWC2::Layer*, aidl::android::hardware::graphics::composer3::Composition, uint32_t z); 80 void writeOutputIndependentGeometryStateToHWC(HWC2::Layer*, const LayerFECompositionState&, 82 void writeOutputDependentPerFrameStateToHWC(HWC2::Layer*); 84 HWC2::Layer*, const LayerFECompositionState&, 87 void writeSolidColorStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 88 void writeSidebandStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 89 void writeBufferStateToHWC(HWC2::Layer*, const LayerFECompositionState&, bool skipLayer); 90 void writeCompositionTypeToHWC(HWC2::Layer*,
|
D | OutputLayerCompositionState.h | 45 namespace HWC2 { 132 explicit Hwc(std::shared_ptr<HWC2::Layer> hwcLayer) : hwcLayer(hwcLayer) {} in Hwc() 135 std::shared_ptr<HWC2::Layer> hwcLayer;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | OutputLayer.h | 44 namespace HWC2 { 65 virtual void setHwcLayer(std::shared_ptr<HWC2::Layer>) = 0; 113 virtual HWC2::Layer* getHwcLayer() const = 0;
|
D | Output.h | 45 namespace HWC2 { 133 std::unordered_map<HWC2::Layer*, sp<Fence>> layerFences;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | OutputLayer.h | 36 MOCK_METHOD1(setHwcLayer, void(std::shared_ptr<HWC2::Layer>)); 50 MOCK_CONST_METHOD0(getHwcLayer, HWC2::Layer*());
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.h | 63 namespace HWC2 { 107 [[nodiscard]] virtual base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> 193 class Display : public HWC2::Display { 202 base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> createLayer() override; 204 std::unordered_map<HWC2::Layer*, 217 std::unordered_map<HWC2::Layer*, hal::LayerRequest>* outLayerRequests) override; 230 hal::Error getReleaseFences(std::unordered_map<HWC2::Layer*, android::sp<android::Fence>>* 285 std::shared_ptr<HWC2::Layer> getLayerById(hal::HWLayerId id) const; 304 using Layers = std::unordered_map<hal::HWLayerId, std::weak_ptr<HWC2::impl::Layer>>; 363 class Layer : public HWC2::Layer { [all …]
|
D | HWComposer.h | 86 std::unordered_map<HWC2::Layer*, 91 using LayerRequests = std::unordered_map<HWC2::Layer*, hal::LayerRequest>; 119 virtual void setCallback(HWC2::ComposerCallback&) = 0; 139 virtual std::shared_ptr<HWC2::Layer> createLayer(HalDisplayId) = 0; 179 virtual sp<Fence> getLayerReleaseFence(HalDisplayId, HWC2::Layer*) const = 0; 330 void setCallback(HWC2::ComposerCallback&) override; 349 std::shared_ptr<HWC2::Layer> createLayer(HalDisplayId) override; 382 sp<Fence> getLayerReleaseFence(HalDisplayId, HWC2::Layer*) const override; 503 std::unique_ptr<HWC2::Display> hwcDisplay; 508 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences;
|
D | HWC2.cpp | 57 namespace HWC2 { namespace 106 error = setVsyncEnabled(HWC2::Vsync::DISABLE); in ~Display() 132 base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> Display::createLayer() { in createLayer() 166 Error Display::getChangedCompositionTypes(std::unordered_map<HWC2::Layer*, Composition>* outTypes) { in getChangedCompositionTypes() 257 Error Display::getRequests(HWC2::DisplayRequest* outDisplayRequests, in getRequests() 258 std::unordered_map<HWC2::Layer*, LayerRequest>* outLayerRequests) { in getRequests() 346 auto error = static_cast<HWC2::Error>(intError); in getHdrCapabilities() 383 Error Display::getReleaseFences(std::unordered_map<HWC2::Layer*, sp<Fence>>* outFences) const { in getReleaseFences() 393 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in getReleaseFences() 633 std::shared_ptr<HWC2::Layer> Display::getLayerById(HWLayerId id) const { in getLayerById() [all …]
|
D | HWComposer.cpp | 102 void HWComposer::setCallback(HWC2::ComposerCallback& callback) { in setCallback() 218 auto display = std::make_unique<HWC2::impl::Display>(*mComposer.get(), mCapabilities, in allocateVirtualDisplay() 236 std::make_unique<HWC2::impl::Display>(*mComposer.get(), mCapabilities, hwcDisplayId, in allocatePhysicalDisplay() 252 std::shared_ptr<HWC2::Layer> HWComposer::createLayer(HalDisplayId displayId) { in createLayer() 506 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in getDeviceCompositionChanges() 557 sp<Fence> HWComposer::getLayerReleaseFence(HalDisplayId displayId, HWC2::Layer* layer) const { in getLayerReleaseFence() 594 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in presentAndGetReleaseFences()
|
D | ComposerHal.h | 53 namespace HWC2 { 114 virtual void registerCallback(HWC2::ComposerCallback& callback) = 0;
|
D | AidlComposerHal.h | 75 void registerCallback(HWC2::ComposerCallback& callback) override;
|
D | HidlComposerHal.h | 176 void registerCallback(HWC2::ComposerCallback& callback) override;
|
D | AidlComposerHal.cpp | 175 AidlIComposerCallbackWrapper(HWC2::ComposerCallback& callback) : mCallback(callback) {} in AidlIComposerCallbackWrapper() 227 HWC2::ComposerCallback& mCallback; 340 void AidlComposer::registerCallback(HWC2::ComposerCallback& callback) { in registerCallback()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWC2.h | 41 namespace HWC2 { 48 class Layer : public HWC2::Layer {
|
D | MockHWC2.cpp | 19 namespace android::HWC2 { namespace
|
D | MockHWComposer.h | 42 MOCK_METHOD1(setCallback, void(HWC2::ComposerCallback&)); 56 MOCK_METHOD1(createLayer, std::shared_ptr<HWC2::Layer>(HalDisplayId)); 74 MOCK_CONST_METHOD2(getLayerReleaseFence, sp<Fence>(HalDisplayId, HWC2::Layer*));
|
D | OutputLayerTest.cpp | 142 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() 942 std::shared_ptr<HWC2::mock::Layer> mHwcLayer{std::make_shared<StrictMock<HWC2::mock::Layer>>()}; 1353 std::shared_ptr<HWC2::mock::Layer> mHwcLayer_{std::make_shared<NiceMock<HWC2::mock::Layer>>()}; 1354 HWC2::mock::Layer& mHwcLayer = *mHwcLayer_; 1442 std::shared_ptr<HWC2::mock::Layer> mHwcLayer{std::make_shared<StrictMock<HWC2::mock::Layer>>()}; 1499 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F()
|
D | DisplayTest.cpp | 83 StrictMock<HWC2::mock::Layer> hwc2Layer; 251 StrictMock<HWC2::mock::Layer> hwc2LayerUnknown; 492 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockHWC2.h | 23 namespace android::HWC2::mock { 25 class Display : public HWC2::Display { 40 MOCK_METHOD((base::expected<std::shared_ptr<HWC2::Layer>, hal::Error>), createLayer, (), 114 class Layer : public HWC2::Layer {
|
D | MockHWC2.cpp | 22 namespace android::HWC2::mock { namespace
|
D | MockComposer.h | 58 MOCK_METHOD1(registerCallback, void(HWC2::ComposerCallback&));
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 66 void OutputLayer::setHwcLayer(std::shared_ptr<HWC2::Layer> hwcLayer) { in setHwcLayer() 426 void OutputLayer::writeOutputDependentGeometryStateToHWC(HWC2::Layer* hwcLayer, in writeOutputDependentGeometryStateToHWC() 479 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState, in writeOutputIndependentGeometryStateToHWC() 511 void OutputLayer::writeOutputDependentPerFrameStateToHWC(HWC2::Layer* hwcLayer) { in writeOutputDependentPerFrameStateToHWC() 562 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState, in writeOutputIndependentPerFrameStateToHWC() 607 void OutputLayer::writeSolidColorStateToHWC(HWC2::Layer* hwcLayer, in writeSolidColorStateToHWC() 620 void OutputLayer::writeSidebandStateToHWC(HWC2::Layer* hwcLayer, in writeSidebandStateToHWC() 664 void OutputLayer::writeBufferStateToHWC(HWC2::Layer* hwcLayer, in writeBufferStateToHWC() 713 void OutputLayer::writeCompositionTypeToHWC(HWC2::Layer* hwcLayer, in writeCompositionTypeToHWC() 765 HWC2::Layer* OutputLayer::getHwcLayer() const { in getHwcLayer()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | HWComposerTest.cpp | 446 struct MockHWC2ComposerCallback final : StrictMock<HWC2::ComposerCallback> { 520 StrictMock<HWC2::mock::Display> mDisplay; 521 HWC2::impl::Layer mLayer{*mHal, mCapabilies, mDisplay, kLayerId};
|
D | TestableSurfaceFlinger.h | 786 struct HWC2Display : public HWC2::impl::Display { 792 : HWC2::impl::Display(composer, capabilities, id, type) {} in HWC2Display()
|
/frameworks/native/services/surfaceflinger/ |
D | Android.bp | 169 "DisplayHardware/HWC2.cpp",
|