Home
last modified time | relevance | path

Searched refs:Hwc2 (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp59 namespace Hwc2 = android::Hwc2;
63 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey()
64 const Hwc2::PerFrameMetadataKey& key) { in hasMetadataKey()
75 Display::Display(android::Hwc2::Composer& composer, in Display()
147 return mComposer.isSupported(android::Hwc2::Composer::OptionalFeature::RefreshRateSwitching); in isVsyncPeriodSwitchSupported()
156 Error Display::getPhysicalDisplayOrientation(Hwc2::AidlTransform* outTransform) const { in getPhysicalDisplayOrientation()
162 std::vector<Hwc2::Layer> layerIds; in getChangedCompositionTypes()
201 std::vector<Hwc2::PerFrameMetadataKey> tmpKeys = mComposer.getPerFrameMetadataKeys(mId); in getSupportedPerFrameMetadata()
202 std::set<Hwc2::PerFrameMetadataKey> keys(tmpKeys.begin(), tmpKeys.end()); in getSupportedPerFrameMetadata()
208 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X) && in getSupportedPerFrameMetadata()
[all …]
DHWComposer.h61 namespace Hwc2 {
200 const Hwc2::Composer::DisplayBrightnessOptions&) = 0;
256 virtual Hwc2::Composer* getComposer() const = 0;
283 virtual Hwc2::AidlTransform getPhysicalDisplayOrientation(PhysicalDisplayId) const = 0;
297 explicit HWComposer(std::unique_ptr<Hwc2::Composer> composer);
380 const Hwc2::Composer::DisplayBrightnessOptions&) override;
430 Hwc2::AidlTransform getPhysicalDisplayOrientation(PhysicalDisplayId) const override;
435 Hwc2::Composer* getComposer() const override { return mComposer.get(); } in getComposer()
485 std::unique_ptr<android::Hwc2::Composer> mComposer;
DHWC2.h55 namespace Hwc2 {
152 const Hwc2::Composer::DisplayBrightnessOptions& options) = 0;
172 Hwc2::AidlTransform* outTransform) const = 0;
181 Display(android::Hwc2::Composer&,
234 const Hwc2::Composer::DisplayBrightnessOptions& options) override;
262 hal::Error getPhysicalDisplayOrientation(Hwc2::AidlTransform* outTransform) const override;
277 android::Hwc2::Composer& mComposer;
344 Layer(android::Hwc2::Composer& composer,
389 android::Hwc2::Composer& mComposer;
DComposerHal.cpp24 namespace android::Hwc2 { namespace
DHWComposer.cpp83 HWComposer::HWComposer(std::unique_ptr<Hwc2::Composer> composer) in HWComposer()
90 : HWComposer(Hwc2::Composer::create(composerServiceName)) {} in HWComposer()
333 Hwc2::VsyncPeriodNanos vsyncPeriodNanos = 0; in getDisplayVsyncPeriod()
432 if (mComposer->isSupported(Hwc2::Composer::OptionalFeature::ExpectedPresentTime)) { in getDeviceCompositionChanges()
527 !mComposer->isSupported(Hwc2::Composer::OptionalFeature::ExpectedPresentTime) && in presentAndGetReleaseFences()
724 const Hwc2::Composer::DisplayBrightnessOptions& options) { in setDisplayBrightness()
996 Hwc2::AidlTransform HWComposer::getPhysicalDisplayOrientation(PhysicalDisplayId displayId) const { in getPhysicalDisplayOrientation()
998 RETURN_IF_INVALID_DISPLAY(displayId, Hwc2::AidlTransform::NONE); in getPhysicalDisplayOrientation()
999 Hwc2::AidlTransform outTransform; in getPhysicalDisplayOrientation()
1002 RETURN_IF_HWC_ERROR(error, displayId, Hwc2::AidlTransform::NONE); in getPhysicalDisplayOrientation()
[all …]
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_displayhardware_fuzzer.cpp137 Display createVirtualDisplay(Hwc2::AidlComposer*);
138 void validateDisplay(Hwc2::AidlComposer*, Display);
139 void presentOrValidateDisplay(Hwc2::AidlComposer*, Display);
140 void setOutputBuffer(Hwc2::AidlComposer*, Display);
141 void setLayerSidebandStream(Hwc2::AidlComposer*, Display, Hwc2::V2_4::hal::Layer);
142 void invokeComposerHal2_2(Hwc2::AidlComposer*, Display, Hwc2::V2_4::hal::Layer);
143 void invokeComposerHal2_3(Hwc2::AidlComposer*, Display, Hwc2::V2_4::hal::Layer);
144 void invokeComposerHal2_4(Hwc2::AidlComposer*, Display, Hwc2::V2_4::hal::Layer);
160 android::impl::HWComposer mHwc{std::make_unique<Hwc2::mock::Composer>()};
163 void DisplayHardwareFuzzer::validateDisplay(Hwc2::AidlComposer* composer, Display display) { in validateDisplay()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp53 using Hwc2::Config;
63 Hwc2::mock::Composer* mHal = new StrictMock<Hwc2::mock::Composer>(); in TEST()
64 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST()
97 Hwc2::mock::Composer* mHal = new StrictMock<Hwc2::mock::Composer>();
116 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST_F()
133 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST_F()
154 std::unique_ptr<Hwc2::mock::Composer> mHal{new StrictMock<Hwc2::mock::Composer>()};
DSurfaceFlinger_PowerHintTest.cpp37 using namespace android::Hwc2::mock;
66 Hwc2::mock::PowerAdvisor* mPowerAdvisor = nullptr;
67 Hwc2::mock::Composer* mComposer = nullptr;
72 mComposer = new Hwc2::mock::Composer(); in SetUp()
73 mPowerAdvisor = new Hwc2::mock::PowerAdvisor(); in SetUp()
76 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in SetUp()
78 mFlinger.setupPowerAdvisor(std::unique_ptr<Hwc2::PowerAdvisor>(mPowerAdvisor)); in SetUp()
DFakeDisplayInjector.h29 using android::Hwc2::mock::PowerAdvisor;
39 FakeDisplayInjector(TestableSurfaceFlinger& flinger, Hwc2::mock::PowerAdvisor& powerAdvisor, in FakeDisplayInjector()
92 Hwc2::mock::PowerAdvisor& mPowerAdvisor;
DTunnelModeEnabledReporterTest.cpp37 using android::Hwc2::IComposer;
38 using android::Hwc2::IComposerClient;
70 Hwc2::mock::Composer* mComposer = nullptr;
85 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in TunnelModeEnabledReporterTest()
DGameModeTest.cpp87 mComposer = new Hwc2::mock::Composer(); in setupComposer()
88 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer()
101 Hwc2::mock::Composer* mComposer = nullptr;
DRefreshRateSelectionTest.cpp40 using android::Hwc2::IComposer;
41 using android::Hwc2::IComposerClient;
82 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in RefreshRateSelectionTest()
DFpsReporterTest.cpp50 using android::Hwc2::IComposer;
51 using android::Hwc2::IComposerClient;
108 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in FpsReporterTest()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockAidlPowerHalWrapper.h31 namespace android::Hwc2::mock {
33 class MockAidlPowerHalWrapper : public Hwc2::impl::AidlPowerHalWrapper {
DMockPowerAdvisor.h23 namespace android::Hwc2::mock {
25 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockIPower.cpp19 namespace android::Hwc2::mock { namespace
DMockIPowerHintSession.cpp19 namespace android::Hwc2::mock { namespace
DMockPowerAdvisor.cpp19 namespace android::Hwc2::mock { namespace
DMockAidlPowerHalWrapper.cpp20 namespace android::Hwc2::mock { namespace
DMockComposer.cpp25 namespace android::Hwc2::mock { namespace
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayCreationArgs.h47 Hwc2::PowerAdvisor* powerAdvisor = nullptr;
76 DisplayCreationArgsBuilder& setPowerAdvisor(Hwc2::PowerAdvisor* powerAdvisor) { in setPowerAdvisor()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h88 Hwc2::Transform bufferTransform{static_cast<Hwc2::Transform>(0)};
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockPowerAdvisor.h24 namespace Hwc2 {
27 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockPowerAdvisor.cpp20 namespace Hwc2 { namespace
DMockHWComposer.h88 (PhysicalDisplayId, float, float, const Hwc2::Composer::DisplayBrightnessOptions&),
122 MOCK_CONST_METHOD0(getComposer, android::Hwc2::Composer*());
138 MOCK_METHOD(Hwc2::AidlTransform, getPhysicalDisplayOrientation, (PhysicalDisplayId),

123