/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayer.h | 40 void setHwcLayer(std::shared_ptr<HWC2::Layer>) override; 47 HWC2::Layer* getHwcLayer() const override; 68 void writeOutputDependentGeometryStateToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition); 69 void writeOutputIndependentGeometryStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 70 void writeOutputDependentPerFrameStateToHWC(HWC2::Layer*); 71 void writeOutputIndependentPerFrameStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 72 void writeSolidColorStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 73 void writeSidebandStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 74 void writeBufferStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 75 void writeCompositionTypeToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition);
|
D | OutputLayerCompositionState.h | 41 namespace HWC2 { 91 explicit Hwc(std::shared_ptr<HWC2::Layer> hwcLayer) : hwcLayer(hwcLayer) {} in Hwc() 94 std::shared_ptr<HWC2::Layer> hwcLayer;
|
/frameworks/native/libs/vr/libvrflinger/ |
D | hwc_types.h | 31 using DisplayRequest = std::underlying_type<HWC2::DisplayRequest>::type; 146 return HWC2::to_string(static_cast<BaseType>(value)); 163 struct Attribute final : public Wrapper<HWC2::Attribute> { 177 struct BlendMode final : public Wrapper<HWC2::BlendMode> { 189 struct Composition final : public Wrapper<HWC2::Composition> { 203 struct DisplayType final : public Wrapper<HWC2::DisplayType> { 214 struct Error final : public Wrapper<HWC2::Error> { 231 struct LayerRequest final : public Wrapper<HWC2::LayerRequest> { 240 struct PowerMode final : public Wrapper<HWC2::PowerMode> { 252 struct Transform final : public Wrapper<HWC2::Transform> { [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.h | 70 using ChangedTypes = std::unordered_map<HWC2::Layer*, hal::Composition>; 73 using LayerRequests = std::unordered_map<HWC2::Layer*, hal::LayerRequest>; 83 virtual void setConfiguration(HWC2::ComposerCallback* callback, int32_t sequenceId) = 0; 99 virtual HWC2::Layer* createLayer(DisplayId displayId) = 0; 101 virtual void destroyLayer(DisplayId displayId, HWC2::Layer* layer) = 0; 134 virtual sp<Fence> getLayerReleaseFence(DisplayId displayId, HWC2::Layer* layer) const = 0; 186 virtual std::vector<std::shared_ptr<const HWC2::Display::Config>> getConfigs( 189 virtual std::shared_ptr<const HWC2::Display::Config> getActiveConfig( 237 void setConfiguration(HWC2::ComposerCallback* callback, int32_t sequenceId) override; 254 HWC2::Layer* createLayer(DisplayId displayId) override; [all …]
|
D | HWComposer.cpp | 79 using android::HWC2::ComposerCallback; 157 void HWComposer::setConfiguration(HWC2::ComposerCallback* callback, int32_t sequenceId) { in setConfiguration() 267 auto display = std::make_unique<HWC2::impl::Display>(*mComposer.get(), mCapabilities, in allocateVirtualDisplay() 296 std::make_unique<HWC2::impl::Display>(*mComposer.get(), mCapabilities, hwcDisplayId, in allocatePhysicalDisplay() 303 HWC2::Layer* HWComposer::createLayer(DisplayId displayId) { in createLayer() 306 HWC2::Layer* layer; in createLayer() 312 void HWComposer::destroyLayer(DisplayId displayId, HWC2::Layer* layer) { in destroyLayer() 336 std::vector<std::shared_ptr<const HWC2::Display::Config>> HWComposer::getConfigs( in getConfigs() 350 std::shared_ptr<const HWC2::Display::Config> HWComposer::getActiveConfig( in getActiveConfig() 354 std::shared_ptr<const HWC2::Display::Config> config; in getActiveConfig() [all …]
|
D | HWC2.cpp | 54 namespace HWC2 { namespace 115 error = setVsyncEnabled(HWC2::Vsync::DISABLE); in ~Display() 141 Error Display::createLayer(HWC2::Layer** outLayer) { in createLayer() 158 Error Display::destroyLayer(HWC2::Layer* layer) { in destroyLayer() 253 Error Display::getChangedCompositionTypes(std::unordered_map<HWC2::Layer*, Composition>* outTypes) { in getChangedCompositionTypes() 354 Error Display::getRequests(HWC2::DisplayRequest* outDisplayRequests, in getRequests() 355 std::unordered_map<HWC2::Layer*, LayerRequest>* outLayerRequests) { in getRequests() 414 auto error = static_cast<HWC2::Error>(intError); in getHdrCapabilities() 446 Error Display::getReleaseFences(std::unordered_map<HWC2::Layer*, sp<Fence>>* outFences) const { in getReleaseFences() 456 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in getReleaseFences() [all …]
|
D | HWC2.h | 49 namespace HWC2 { 230 const std::shared_ptr<const HWC2::Display::Config>& config, 243 class Display : public HWC2::Display { 286 hal::Error setActiveConfig(const std::shared_ptr<const HWC2::Display::Config>& config) override; 303 const std::shared_ptr<const HWC2::Display::Config>& config, 398 class Layer : public HWC2::Layer {
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWComposer.h | 41 MOCK_METHOD2(setConfiguration, void(HWC2::ComposerCallback*, int32_t)); 50 MOCK_METHOD1(createLayer, HWC2::Layer*(DisplayId)); 51 MOCK_METHOD2(destroyLayer, void(DisplayId, HWC2::Layer*)); 65 MOCK_CONST_METHOD2(getLayerReleaseFence, sp<Fence>(DisplayId, HWC2::Layer*)); 87 std::vector<std::shared_ptr<const HWC2::Display::Config>>(DisplayId)); 88 MOCK_CONST_METHOD1(getActiveConfig, std::shared_ptr<const HWC2::Display::Config>(DisplayId));
|
D | MockHWC2.h | 38 namespace HWC2 { 45 class Layer : public HWC2::Layer {
|
D | MockHWC2.cpp | 19 namespace android::HWC2 { namespace
|
D | OutputLayerTest.cpp | 114 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() 801 std::shared_ptr<HWC2::mock::Layer> mHwcLayer{std::make_shared<StrictMock<HWC2::mock::Layer>>()}; 995 std::shared_ptr<HWC2::mock::Layer> mHwcLayer{std::make_shared<StrictMock<HWC2::mock::Layer>>()}; 1052 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | OutputLayer.h | 37 namespace HWC2 { 59 virtual void setHwcLayer(std::shared_ptr<HWC2::Layer>) = 0; 97 virtual HWC2::Layer* getHwcLayer() const = 0;
|
D | Output.h | 39 namespace HWC2 { 126 std::unordered_map<HWC2::Layer*, sp<Fence>> layerFences;
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockDisplay.h | 23 using android::HWC2::Layer; 31 class Display : public HWC2::Display { 73 MOCK_METHOD1(setActiveConfig, hal::Error(const std::shared_ptr<const HWC2::Display::Config>&)); 90 hal::Error(const std::shared_ptr<const HWC2::Display::Config>&,
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | OutputLayer.h | 33 MOCK_METHOD1(setHwcLayer, void(std::shared_ptr<HWC2::Layer>)); 45 MOCK_CONST_METHOD0(getHwcLayer, HWC2::Layer*());
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 60 void OutputLayer::setHwcLayer(std::shared_ptr<HWC2::Layer> hwcLayer) { in setHwcLayer() 351 HWC2::Layer* hwcLayer, hal::Composition requestedCompositionType) { in writeOutputDependentGeometryStateToHWC() 391 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState) { in writeOutputIndependentGeometryStateToHWC() 421 void OutputLayer::writeOutputDependentPerFrameStateToHWC(HWC2::Layer* hwcLayer) { in writeOutputDependentPerFrameStateToHWC() 442 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState) { in writeOutputIndependentPerFrameStateToHWC() 480 void OutputLayer::writeSolidColorStateToHWC(HWC2::Layer* hwcLayer, in writeSolidColorStateToHWC() 497 void OutputLayer::writeSidebandStateToHWC(HWC2::Layer* hwcLayer, in writeSidebandStateToHWC() 507 void OutputLayer::writeBufferStateToHWC(HWC2::Layer* hwcLayer, in writeBufferStateToHWC() 534 void OutputLayer::writeCompositionTypeToHWC(HWC2::Layer* hwcLayer, in writeCompositionTypeToHWC() 582 HWC2::Layer* OutputLayer::getHwcLayer() const { in getHwcLayer()
|
D | Display.cpp | 190 auto hwcLayer = std::shared_ptr<HWC2::Layer>(hwc.createLayer(displayId), in createOutputLayer() 191 [&hwc, displayId](HWC2::Layer* layer) { in createOutputLayer()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateConfigsTest.cpp | 62 std::shared_ptr<const HWC2::Display::Config> mConfig60 = 64 std::shared_ptr<const HWC2::Display::Config> mConfig90 = 66 std::shared_ptr<const HWC2::Display::Config> mConfig90DifferentGroup = 68 std::shared_ptr<const HWC2::Display::Config> mConfig90DifferentResolution = 70 std::shared_ptr<const HWC2::Display::Config> mConfig72 = 72 std::shared_ptr<const HWC2::Display::Config> mConfig72DifferentGroup = 74 std::shared_ptr<const HWC2::Display::Config> mConfig120 = 76 std::shared_ptr<const HWC2::Display::Config> mConfig120DifferentGroup = 78 std::shared_ptr<const HWC2::Display::Config> mConfig30 = 82 std::vector<std::shared_ptr<const HWC2::Display::Config>> m60OnlyConfigDevice = {mConfig60}; [all …]
|
D | RefreshRateStatsTest.cpp | 51 void init(const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs) { in init() 64 std::shared_ptr<const HWC2::Display::Config> createConfig(HwcConfigIndexType configId, 81 std::shared_ptr<const HWC2::Display::Config> RefreshRateStatsTest::createConfig( in createConfig() 83 return HWC2::Display::Config::Builder(mDisplay, configId.value()) in createConfig()
|
D | SchedulerTest.cpp | 75 std::vector<std::shared_ptr<const HWC2::Display::Config>> configs{ in SchedulerTest() 76 HWC2::Display::Config::Builder(mDisplay, 0) in SchedulerTest()
|
D | HWComposerTest.cpp | 48 struct MockHWC2ComposerCallback : public HWC2::ComposerCallback { 125 HWC2::impl::Layer mLayer{*mHal, mCapabilies, kDisplayId, kLayerId};
|
D | TestableSurfaceFlinger.h | 206 std::vector<std::shared_ptr<const HWC2::Display::Config>> configs{ 207 HWC2::Display::Config::Builder(mDisplay, 0) 437 struct HWC2Display : public HWC2::impl::Display { 441 : HWC2::impl::Display(composer, capabilities, id, type) {} in HWC2Display() 522 auto config = HWC2::Display::Config::Builder(*display, mActiveConfig); in inject()
|
D | LayerHistoryTest.cpp | 67 RefreshRateConfigs mConfigs{{HWC2::Display::Config::Builder(mDisplay, 0) 71 HWC2::Display::Config::Builder(mDisplay, 1)
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.h | 63 std::shared_ptr<const HWC2::Display::Config> config, std::string name, in RefreshRate() 100 std::shared_ptr<const HWC2::Display::Config> hwcConfig; 280 RefreshRateConfigs(const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs, 299 const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs);
|
D | RefreshRateConfigs.cpp | 399 const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs, in RefreshRateConfigs() 562 const std::vector<std::shared_ptr<const HWC2::Display::Config>>& configs) { in constructKnownFrameRates()
|