Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp50 namespace Hwc2 = android::Hwc2;
58 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey()
59 const Hwc2::PerFrameMetadataKey& key) { in hasMetadataKey()
63 class ComposerCallbackBridge : public Hwc2::IComposerCallback {
68 Return<void> onHotplug(Hwc2::Display display, in onHotplug()
76 Return<void> onRefresh(Hwc2::Display display) override in onRefresh()
82 Return<void> onVsync(Hwc2::Display display, int64_t timestamp) override in onVsync()
98 Device::Device(std::unique_ptr<android::Hwc2::Composer> composer) : mComposer(std::move(composer)) { in Device()
174 reinterpret_cast<Hwc2::IComposerClient::DisplayType *>( in onHotplug()
256 Display::Display(android::Hwc2::Composer& composer, in Display()
[all …]
DPowerAdvisor.h33 namespace Hwc2 {
48 class PowerAdvisor final : public Hwc2::PowerAdvisor {
DHWC2.h46 namespace Hwc2 {
83 explicit Device(std::unique_ptr<android::Hwc2::Composer> composer);
109 android::Hwc2::Composer* getComposer() { return mComposer.get(); } in getComposer()
122 std::unique_ptr<android::Hwc2::Composer> mComposer;
273 Display(android::Hwc2::Composer& composer, const std::unordered_set<Capability>& capabilities,
351 android::Hwc2::Composer& mComposer;
402 Layer(android::Hwc2::Composer& composer,
436 android::Hwc2::Composer& mComposer;
DHWComposer.h44 namespace Hwc2 {
177 virtual Hwc2::Composer* getComposer() const = 0;
191 explicit HWComposer(std::unique_ptr<Hwc2::Composer> composer);
310 Hwc2::Composer* getComposer() const override { return mHwcDevice->getComposer(); } in getComposer()
DHWComposer.cpp74 HWComposer::HWComposer(std::unique_ptr<Hwc2::Composer> composer) in HWComposer()
476 static_cast<Hwc2::IComposerClient::Composition>(newCompositionType); in prepare()
480 case Hwc2::IComposerClient::Composition::CLIENT: in prepare()
483 case Hwc2::IComposerClient::Composition::DEVICE: in prepare()
484 case Hwc2::IComposerClient::Composition::SOLID_COLOR: in prepare()
485 case Hwc2::IComposerClient::Composition::CURSOR: in prepare()
486 case Hwc2::IComposerClient::Composition::SIDEBAND: in prepare()
DPowerAdvisor.cpp28 namespace Hwc2 { namespace
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h64 Hwc2::IComposerClient::BlendMode blendMode{Hwc2::IComposerClient::BlendMode::INVALID};
84 Hwc2::IComposerClient::Composition compositionType{Hwc2::IComposerClient::Composition::INVALID};
96 Hwc2::IComposerClient::Color color;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DOutputLayerCompositionState.h58 Hwc2::Transform bufferTransform{static_cast<Hwc2::Transform>(0)};
74 Hwc2::IComposerClient::Composition hwcCompositionType{
75 Hwc2::IComposerClient::Composition::INVALID};
/frameworks/native/libs/vr/libvrflinger/
Dhardware_composer.h71 Layer(Hwc2::Composer* composer, const DisplayParams& display_params,
85 Layer(Hwc2::Composer* composer, const DisplayParams& display_params,
176 Hwc2::Composer* composer_ = nullptr;
308 bool Initialize(Hwc2::Composer* composer,
338 DisplayParams GetDisplayParams(Hwc2::Composer* composer,
361 class ComposerCallback : public Hwc2::IComposerCallback {
364 hardware::Return<void> onHotplug(Hwc2::Display display,
366 hardware::Return<void> onRefresh(Hwc2::Display display) override;
367 hardware::Return<void> onVsync(Hwc2::Display display,
475 std::unique_ptr<Hwc2::Composer> composer_;
Dhardware_composer.cpp143 Hwc2::Composer* composer, hwc2_display_t primary_display_id, in Initialize()
233 composer_.reset(new Hwc2::impl::Composer("default")); in CreateComposer()
309 (Hwc2::IComposerClient::Vsync)(enabled ? HWC2_VSYNC_ENABLE in EnableVsync()
324 power_mode.cast<Hwc2::IComposerClient::PowerMode>()); in SetPowerMode()
365 Hwc2::Composer* composer, hwc2_display_t display, bool is_primary) { in GetDisplayParams()
370 Hwc2::Config config; in GetDisplayParams()
378 display, config, (Hwc2::IComposerClient::Attribute)attr, &val); in GetDisplayParams()
547 std::vector<Hwc2::Layer> out_layers; in PostLayers()
1127 Hwc2::Display display, IComposerCallback::Connection conn) { in onHotplug()
1176 Hwc2::Display /*display*/) { in onRefresh()
[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/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.h24 namespace Hwc2 {
27 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
DMockPowerAdvisor.cpp20 namespace Hwc2 { namespace
DMockComposer.cpp20 namespace Hwc2 { namespace
DMockDisplay.cpp20 namespace Hwc2 { namespace
DMockComposer.h27 namespace Hwc2 {
46 class Composer : public Hwc2::Composer {
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp254 static constexpr Hwc2::Transform kBufferTransform = static_cast<Hwc2::Transform>(31);
255 static constexpr Hwc2::IComposerClient::BlendMode kBlendMode =
256 static_cast<Hwc2::IComposerClient::BlendMode>(41);
270 outputLayerState.bufferTransform = static_cast<Hwc2::Transform>(kBufferTransform); in OutputLayerWriteStateToHWCTest()
/frameworks/native/services/surfaceflinger/tests/unittests/
DCompositionTest.cpp64 using android::Hwc2::Error;
65 using android::Hwc2::IComposer;
66 using android::Hwc2::IComposerClient;
67 using android::Hwc2::Transform;
118 mComposer = new Hwc2::mock::Composer(); in setupComposer()
122 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer()
184 Hwc2::mock::Composer* mComposer = nullptr;
268 static_cast<Hwc2::IComposerClient::PowerMode>( in setupPreconditions()
300 .WillOnce(DoAll(SetArgPointee<1>(std::vector<Hwc2::DisplayCapability>({})), in setupPreconditionCallExpectations()
307 setColorTransform(HWC_DISPLAY, _, Hwc2::ColorTransform::IDENTITY)) in setupCommonCompositionCallExpectations()
[all …]
DTestableSurfaceFlinger.h52 namespace Hwc2 {
186 void setupComposer(std::unique_ptr<Hwc2::Composer> composer) { in setupComposer()
222 (*state.hwc).hwcCompositionType = static_cast<Hwc2::IComposerClient::Composition>(type); in setLayerCompositionType()
369 HWC2Display(Hwc2::Composer& composer, in HWC2Display()
442 void inject(TestableSurfaceFlinger* flinger, Hwc2::Composer* composer) { in inject()
DDisplayTransactionTest.cpp56 using android::Hwc2::ColorMode;
57 using android::Hwc2::Error;
58 using android::Hwc2::Hdr;
59 using android::Hwc2::IComposer;
60 using android::Hwc2::IComposerClient;
61 using android::Hwc2::PerFrameMetadataKey;
62 using android::Hwc2::RenderIntent;
135 Hwc2::mock::Composer* mComposer = nullptr;
208 mComposer = new Hwc2::mock::Composer(); in injectMockComposer()
212 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in injectMockComposer()
[all …]
/frameworks/native/services/surfaceflinger/
DBufferLayer.cpp297 setCompositionType(displayDevice, Hwc2::IComposerClient::Composition::SIDEBAND); in setPerFrameData()
305 layerCompositionState.compositionType = Hwc2::IComposerClient::Composition::SIDEBAND; in setPerFrameData()
312 setCompositionType(displayDevice, Hwc2::IComposerClient::Composition::CURSOR); in setPerFrameData()
315 setCompositionType(displayDevice, Hwc2::IComposerClient::Composition::DEVICE); in setPerFrameData()
337 setCompositionType(displayDevice, Hwc2::IComposerClient::Composition::CLIENT); in setPerFrameData()
DColorLayer.cpp115 setCompositionType(display, Hwc2::IComposerClient::Composition::SOLID_COLOR); in setPerFrameData()
147 outputLayer->editState().bufferTransform = static_cast<Hwc2::Transform>(0); in setPerFrameData()
DSurfaceFlingerFactory.cpp65 std::make_unique<Hwc2::impl::Composer>(serviceName)); in createSurfaceFlinger()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DLayerCompositionState.cpp27 void dumpVal(std::string& out, const char* name, Hwc2::IComposerClient::Color value) { in dumpVal()

12