Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp57 namespace Hwc2 = android::Hwc2;
61 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey()
62 const Hwc2::PerFrameMetadataKey& key) { in hasMetadataKey()
73 Display::Display(android::Hwc2::Composer& composer, in Display()
149 std::vector<Hwc2::Layer> layerIds; in getChangedCompositionTypes()
150 std::vector<Hwc2::IComposerClient::Composition> types; in getChangedCompositionTypes()
188 std::vector<Hwc2::PerFrameMetadataKey> tmpKeys = mComposer.getPerFrameMetadataKeys(mId); in getSupportedPerFrameMetadata()
189 std::set<Hwc2::PerFrameMetadataKey> keys(tmpKeys.begin(), tmpKeys.end()); in getSupportedPerFrameMetadata()
195 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X) && in getSupportedPerFrameMetadata()
196 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y) && in getSupportedPerFrameMetadata()
[all …]
DPowerAdvisor.h31 namespace Hwc2 {
49 class PowerAdvisor final : public Hwc2::PowerAdvisor {
DHWComposer.h56 namespace Hwc2 {
238 virtual Hwc2::Composer* getComposer() const = 0;
252 explicit HWComposer(std::unique_ptr<Hwc2::Composer> composer);
372 Hwc2::Composer* getComposer() const override { return mComposer.get(); } in getComposer()
420 std::unique_ptr<android::Hwc2::Composer> mComposer;
DHWC2.h46 namespace Hwc2 {
157 Display(android::Hwc2::Composer&, const std::unordered_set<hal::Capability>&, hal::HWDisplayId,
236 android::Hwc2::Composer& mComposer;
298 Layer(android::Hwc2::Composer& composer,
337 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.cpp139 void HardwareComposer::UpdateEdidData(Hwc2::Composer* composer, in UpdateEdidData()
154 Hwc2::Composer* composer, hwc2_display_t primary_display_id, in Initialize()
242 composer_.reset(new Hwc2::impl::Composer("default")); in CreateComposer()
312 (Hwc2::IComposerClient::Vsync)(enabled ? HWC2_VSYNC_ENABLE in EnableVsync()
327 power_mode.cast<Hwc2::IComposerClient::PowerMode>()); in SetPowerMode()
368 Hwc2::Composer* composer, hwc2_display_t display, bool is_primary) { in GetDisplayParams()
373 Hwc2::Config config; in GetDisplayParams()
381 display, config, (Hwc2::IComposerClient::Attribute)attr, &val); in GetDisplayParams()
550 std::vector<Hwc2::Layer> out_layers; in PostLayers()
1102 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/tests/
DOutputLayerTest.cpp572 EXPECT_EQ(static_cast<Hwc2::Transform>(mBufferTransform), state.bufferTransform); in validateComputedGeometryState()
715 static constexpr Hwc2::Transform kBufferTransform = static_cast<Hwc2::Transform>(31);
716 static constexpr Hwc2::Transform kOverrideBufferTransform = static_cast<Hwc2::Transform>(0);
717 static constexpr Hwc2::IComposerClient::BlendMode kBlendMode =
718 static_cast<Hwc2::IComposerClient::BlendMode>(41);
719 static constexpr Hwc2::IComposerClient::BlendMode kOverrideBlendMode =
720 Hwc2::IComposerClient::BlendMode::PREMULTIPLIED;
758 outputLayerState.bufferTransform = static_cast<Hwc2::Transform>(kBufferTransform); in OutputLayerWriteStateToHWCTest()
806 Hwc2::Transform bufferTransform = kBufferTransform, in expectGeometryCommonCalls()
807 Hwc2::IComposerClient::BlendMode blendMode = kBlendMode, in expectGeometryCommonCalls()
[all …]
DMockPowerAdvisor.h24 namespace Hwc2 {
27 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockPowerAdvisor.cpp20 namespace Hwc2 { namespace
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayer.h53 void applyDeviceCompositionTypeChange(Hwc2::IComposerClient::Composition) override;
55 void applyDeviceLayerRequest(Hwc2::IComposerClient::LayerRequest request) override;
71 void writeOutputDependentGeometryStateToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition,
81 void writeCompositionTypeToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition,
83 void detectDisallowedCompositionTypeChange(Hwc2::IComposerClient::Composition from,
84 Hwc2::IComposerClient::Composition to) const;
DOutputLayerCompositionState.h86 Hwc2::Transform bufferTransform{static_cast<Hwc2::Transform>(0)};
126 Hwc2::IComposerClient::Composition hwcCompositionType{
127 Hwc2::IComposerClient::Composition::INVALID};
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp51 using Hwc2::Config;
71 Hwc2::mock::Composer* mHal = new StrictMock<Hwc2::mock::Composer>();
91 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST_F()
109 impl::HWComposer hwc{std::unique_ptr<Hwc2::Composer>(mHal)}; in TEST_F()
130 std::unique_ptr<Hwc2::mock::Composer> mHal{new StrictMock<Hwc2::mock::Composer>()};
DTunnelModeEnabledReporterTest.cpp38 using android::Hwc2::IComposer;
39 using android::Hwc2::IComposerClient;
71 Hwc2::mock::Composer* mComposer = nullptr;
87 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;
DFpsReporterTest.cpp46 using android::Hwc2::IComposer;
47 using android::Hwc2::IComposerClient;
104 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in FpsReporterTest()
DRefreshRateSelectionTest.cpp41 using android::Hwc2::IComposer;
42 using android::Hwc2::IComposerClient;
84 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in RefreshRateSelectionTest()
DDisplayTransactionTest.cpp90 mComposer = new Hwc2::mock::Composer(); in injectMockComposer()
91 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in injectMockComposer()
/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/mock/DisplayHardware/
DMockPowerAdvisor.h23 namespace android::Hwc2::mock {
25 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockPowerAdvisor.cpp19 namespace android::Hwc2::mock { namespace
DMockComposer.cpp24 namespace android::Hwc2::mock { namespace
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DOutputLayer.h49 MOCK_METHOD1(applyDeviceCompositionTypeChange, void(Hwc2::IComposerClient::Composition));
51 MOCK_METHOD1(applyDeviceLayerRequest, void(Hwc2::IComposerClient::LayerRequest request));
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayCreationArgs.h53 Hwc2::PowerAdvisor* powerAdvisor = nullptr;
92 DisplayCreationArgsBuilder& setPowerAdvisor(Hwc2::PowerAdvisor* powerAdvisor) { in setPowerAdvisor()
DOutputLayer.h115 virtual void applyDeviceCompositionTypeChange(Hwc2::IComposerClient::Composition) = 0;
121 virtual void applyDeviceLayerRequest(Hwc2::IComposerClient::LayerRequest request) = 0;

12