/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 59 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 …]
|
D | HWComposer.h | 61 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;
|
D | HWC2.h | 55 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;
|
D | ComposerHal.cpp | 24 namespace android::Hwc2 { namespace
|
D | HWComposer.cpp | 83 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/ |
D | surfaceflinger_displayhardware_fuzzer.cpp | 137 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/ |
D | HWComposerTest.cpp | 53 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>()};
|
D | SurfaceFlinger_PowerHintTest.cpp | 37 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()
|
D | FakeDisplayInjector.h | 29 using android::Hwc2::mock::PowerAdvisor; 39 FakeDisplayInjector(TestableSurfaceFlinger& flinger, Hwc2::mock::PowerAdvisor& powerAdvisor, in FakeDisplayInjector() 92 Hwc2::mock::PowerAdvisor& mPowerAdvisor;
|
D | TunnelModeEnabledReporterTest.cpp | 37 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()
|
D | GameModeTest.cpp | 87 mComposer = new Hwc2::mock::Composer(); in setupComposer() 88 mFlinger.setupComposer(std::unique_ptr<Hwc2::Composer>(mComposer)); in setupComposer() 101 Hwc2::mock::Composer* mComposer = nullptr;
|
D | RefreshRateSelectionTest.cpp | 40 using android::Hwc2::IComposer; 41 using android::Hwc2::IComposerClient; 82 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in RefreshRateSelectionTest()
|
D | FpsReporterTest.cpp | 50 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/ |
D | MockAidlPowerHalWrapper.h | 31 namespace android::Hwc2::mock { 33 class MockAidlPowerHalWrapper : public Hwc2::impl::AidlPowerHalWrapper {
|
D | MockPowerAdvisor.h | 23 namespace android::Hwc2::mock { 25 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
|
D | MockIPower.cpp | 19 namespace android::Hwc2::mock { namespace
|
D | MockIPowerHintSession.cpp | 19 namespace android::Hwc2::mock { namespace
|
D | MockPowerAdvisor.cpp | 19 namespace android::Hwc2::mock { namespace
|
D | MockAidlPowerHalWrapper.cpp | 20 namespace android::Hwc2::mock { namespace
|
D | MockComposer.cpp | 25 namespace android::Hwc2::mock { namespace
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | DisplayCreationArgs.h | 47 Hwc2::PowerAdvisor* powerAdvisor = nullptr; 76 DisplayCreationArgsBuilder& setPowerAdvisor(Hwc2::PowerAdvisor* powerAdvisor) { in setPowerAdvisor()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayerCompositionState.h | 88 Hwc2::Transform bufferTransform{static_cast<Hwc2::Transform>(0)};
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockPowerAdvisor.h | 24 namespace Hwc2 { 27 class PowerAdvisor : public android::Hwc2::PowerAdvisor {
|
D | MockPowerAdvisor.cpp | 20 namespace Hwc2 { namespace
|
D | MockHWComposer.h | 88 (PhysicalDisplayId, float, float, const Hwc2::Composer::DisplayBrightnessOptions&), 122 MOCK_CONST_METHOD0(getComposer, android::Hwc2::Composer*()); 138 MOCK_METHOD(Hwc2::AidlTransform, getPhysicalDisplayOrientation, (PhysicalDisplayId),
|