Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp58 namespace Hwc2 = android::Hwc2;
62 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey()
63 const Hwc2::PerFrameMetadataKey& key) { in hasMetadataKey()
101 Display::Display(android::Hwc2::Composer& composer, in Display()
205 Hwc2::VsyncPeriodNanos vsyncPeriodNanos = 0; in getDisplayVsyncPeriod()
254 std::vector<Hwc2::Layer> layerIds; in getChangedCompositionTypes()
255 std::vector<Hwc2::IComposerClient::Composition> types; in getChangedCompositionTypes()
293 std::vector<Hwc2::PerFrameMetadataKey> tmpKeys = mComposer.getPerFrameMetadataKeys(mId); in getSupportedPerFrameMetadata()
294 std::set<Hwc2::PerFrameMetadataKey> keys(tmpKeys.begin(), tmpKeys.end()); in getSupportedPerFrameMetadata()
300 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X) && in getSupportedPerFrameMetadata()
[all …]
DPowerAdvisor.h28 namespace Hwc2 {
43 class PowerAdvisor final : public Hwc2::PowerAdvisor {
DHWComposer.h54 namespace Hwc2 {
218 virtual Hwc2::Composer* getComposer() const = 0;
232 explicit HWComposer(std::unique_ptr<Hwc2::Composer> composer);
357 Hwc2::Composer* getComposer() const override { return mComposer.get(); } in getComposer()
407 std::unique_ptr<android::Hwc2::Composer> mComposer;
DHWC2.h43 namespace Hwc2 {
245 Display(android::Hwc2::Composer& composer,
337 android::Hwc2::Composer& mComposer;
400 Layer(android::Hwc2::Composer& composer,
438 android::Hwc2::Composer& mComposer;
/frameworks/native/libs/vr/libvrflinger/
Dhardware_composer.h72 Layer(Hwc2::Composer* composer, const DisplayParams& display_params,
86 Layer(Hwc2::Composer* composer, const DisplayParams& display_params,
177 Hwc2::Composer* composer_ = nullptr;
309 bool Initialize(Hwc2::Composer* composer,
347 DisplayParams GetDisplayParams(Hwc2::Composer* composer,
370 class ComposerCallback : public Hwc2::IComposerCallback {
373 hardware::Return<void> onHotplug(Hwc2::Display display,
375 hardware::Return<void> onRefresh(Hwc2::Display display) override;
376 hardware::Return<void> onVsync(Hwc2::Display display,
379 Hwc2::Display display, int64_t timestamp,
[all …]
Dhardware_composer.cpp140 void HardwareComposer::UpdateEdidData(Hwc2::Composer* composer, in UpdateEdidData()
155 Hwc2::Composer* composer, hwc2_display_t primary_display_id, in Initialize()
247 composer_.reset(new Hwc2::impl::Composer("default")); in CreateComposer()
323 (Hwc2::IComposerClient::Vsync)(enabled ? HWC2_VSYNC_ENABLE in EnableVsync()
338 power_mode.cast<Hwc2::IComposerClient::PowerMode>()); in SetPowerMode()
379 Hwc2::Composer* composer, hwc2_display_t display, bool is_primary) { in GetDisplayParams()
384 Hwc2::Config config; in GetDisplayParams()
392 display, config, (Hwc2::IComposerClient::Attribute)attr, &val); in GetDisplayParams()
561 std::vector<Hwc2::Layer> out_layers; in PostLayers()
1135 Hwc2::Display display, IComposerCallback::Connection conn) { in onHotplug()
[all …]
Dvr_flinger.cpp31 Hwc2::Composer* hidl, hwc2_display_t primary_display_id, in Create()
58 bool VrFlinger::Init(Hwc2::Composer* hidl, in Init()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h78 Hwc2::Transform bufferTransform{static_cast<Hwc2::Transform>(0)};
97 Hwc2::IComposerClient::Composition hwcCompositionType{
98 Hwc2::IComposerClient::Composition::INVALID};
DOutputLayer.h50 void applyDeviceCompositionTypeChange(Hwc2::IComposerClient::Composition) override;
52 void applyDeviceLayerRequest(Hwc2::IComposerClient::LayerRequest request) override;
68 void writeOutputDependentGeometryStateToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition);
75 void writeCompositionTypeToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition);
76 void detectDisallowedCompositionTypeChange(Hwc2::IComposerClient::Composition from,
77 Hwc2::IComposerClient::Composition to) const;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp531 EXPECT_EQ(static_cast<Hwc2::Transform>(mBufferTransform), state.bufferTransform); in validateComputedGeometryState()
675 static constexpr Hwc2::Transform kBufferTransform = static_cast<Hwc2::Transform>(31);
676 static constexpr Hwc2::IComposerClient::BlendMode kBlendMode =
677 static_cast<Hwc2::IComposerClient::BlendMode>(41);
708 outputLayerState.bufferTransform = static_cast<Hwc2::Transform>(kBufferTransform); in OutputLayerWriteStateToHWCTest()
764 void expectSetCompositionTypeCall(Hwc2::IComposerClient::Composition compositionType) { in expectSetCompositionTypeCall()
871 mLayerFEState.compositionType = Hwc2::IComposerClient::Composition::SOLID_COLOR; in TEST_F()
879 expectSetCompositionTypeCall(Hwc2::IComposerClient::Composition::SOLID_COLOR); in TEST_F()
886 mLayerFEState.compositionType = Hwc2::IComposerClient::Composition::SIDEBAND; in TEST_F()
890 expectSetCompositionTypeCall(Hwc2::IComposerClient::Composition::SIDEBAND); in TEST_F()
[all …]
DMockPowerAdvisor.h24 namespace Hwc2 {
27 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockPowerAdvisor.cpp20 namespace Hwc2 { namespace
/frameworks/native/libs/vr/libvrflinger/include/dvr/
Dvr_flinger.h18 namespace Hwc2 {
30 Hwc2::Composer* hidl,
45 bool Init(Hwc2::Composer* hidl,
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp64 Hwc2::mock::Composer* mHal = new StrictMock<Hwc2::mock::Composer>();
88 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST_F()
107 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST_F()
123 std::unique_ptr<Hwc2::mock::Composer> mHal{new StrictMock<Hwc2::mock::Composer>()};
DRefreshRateSelectionTest.cpp46 using android::Hwc2::IComposer;
47 using android::Hwc2::IComposerClient;
77 Hwc2::mock::Composer* mComposer = nullptr;
155 mComposer = new Hwc2::mock::Composer(); in setupComposer()
157 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer()
DSetFrameRateTest.cpp48 using android::Hwc2::IComposer;
49 using android::Hwc2::IComposerClient;
129 Hwc2::mock::Composer* mComposer = nullptr;
191 mComposer = new Hwc2::mock::Composer(); in setupComposer()
193 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer()
DTestableSurfaceFlinger.h54 namespace Hwc2 {
192 void setupComposer(std::unique_ptr<Hwc2::Composer> composer) { in setupComposer()
438 HWC2Display(Hwc2::Composer& composer, in HWC2Display()
511 void inject(TestableSurfaceFlinger* flinger, Hwc2::Composer* composer) { in inject()
663 Hwc2::mock::Display mDisplay;
DCompositionTest.cpp122 mComposer = new Hwc2::mock::Composer(); in setupComposer()
124 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer()
189 Hwc2::mock::Composer* mComposer = nullptr;
193 Hwc2::mock::PowerAdvisor mPowerAdvisor;
323 .WillOnce(DoAll(SetArgPointee<1>(std::vector<Hwc2::DisplayCapability>({})), in setupPreconditionCallExpectations()
330 setColorTransform(HWC_DISPLAY, _, Hwc2::ColorTransform::IDENTITY)) in setupCommonCompositionCallExpectations()
451 setColorTransform(HWC_DISPLAY, _, Hwc2::ColorTransform::IDENTITY)) in setupCommonCompositionCallExpectations()
1022 .WillOnce(DoAll(SetArgPointee<1>(std::vector<Hwc2::Layer>{ in setupHwcGetCallExpectations()
1023 static_cast<Hwc2::Layer>(HWC_LAYER)}), in setupHwcGetCallExpectations()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerAdvisor.h24 namespace Hwc2 {
27 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockDisplay.cpp20 namespace Hwc2 { namespace
DMockPowerAdvisor.cpp20 namespace Hwc2 { namespace
DMockComposer.cpp24 namespace Hwc2 { namespace
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DOutputLayer.h48 MOCK_METHOD1(applyDeviceCompositionTypeChange, void(Hwc2::IComposerClient::Composition));
50 MOCK_METHOD1(applyDeviceLayerRequest, void(Hwc2::IComposerClient::LayerRequest request));
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DOutputLayer.h106 virtual void applyDeviceCompositionTypeChange(Hwc2::IComposerClient::Composition) = 0;
112 virtual void applyDeviceLayerRequest(Hwc2::IComposerClient::LayerRequest request) = 0;
DDisplayCreationArgs.h64 Hwc2::PowerAdvisor* powerAdvisor = nullptr;
108 DisplayCreationArgsBuilder& setPowerAdvisor(Hwc2::PowerAdvisor* powerAdvisor) { in setPowerAdvisor()

12