Home
last modified time | relevance | path

Searched refs:ColorMode (Results 1 – 25 of 83) sorted by relevance

1234

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp34 using ui::ColorMode;
98 ProfileFactory& addColorModeRenderIntent(ColorMode colorMode, RenderIntent renderIntent) { in addColorModeRenderIntent()
103 ProfileFactory& addColorModeRenderIntents(ColorMode colorMode, in addColorModeRenderIntents()
120 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::COLORIMETRIC) in createProfileWithBT2020ColorModeSupport()
121 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::ENHANCE) in createProfileWithBT2020ColorModeSupport()
122 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, VendorRenderIntent) in createProfileWithBT2020ColorModeSupport()
130 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::COLORIMETRIC) in createProfileWithSRGBColorModeSupport()
131 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::ENHANCE) in createProfileWithSRGBColorModeSupport()
132 .addColorModeRenderIntent(ColorMode::SRGB, VendorRenderIntent) in createProfileWithSRGBColorModeSupport()
140 .addColorModeRenderIntent(ColorMode::BT2100_PQ, VendorRenderIntent) in createProfileWithBT2100PQSupport()
[all …]
DMockHWComposer.h80 std::vector<ui::RenderIntent>(HalDisplayId, ui::ColorMode));
100 MOCK_CONST_METHOD1(getColorModes, std::vector<ui::ColorMode>(PhysicalDisplayId));
101 MOCK_METHOD3(setActiveColorMode, status_t(PhysicalDisplayId, ui::ColorMode, ui::RenderIntent));
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp38 using ui::ColorMode;
43 const std::array<ColorMode, 3> sSdrColorModes = {
44 ColorMode::DISPLAY_BT2020,
45 ColorMode::DISPLAY_P3,
46 ColorMode::SRGB,
50 const std::array<ColorMode, 2> sHdrColorModes = {
51 ColorMode::BT2100_PQ,
52 ColorMode::BT2100_HLG,
68 bool isHdrColorMode(const ColorMode colorMode) { in isHdrColorMode()
70 [colorMode](ColorMode hdrColorMode) { return hdrColorMode == colorMode; }); in isHdrColorMode()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_GetBestColorModeTest.cpp36 void addHwcColorModesMapping(ui::ColorMode colorMode, in addHwcColorModesMapping()
60 ui::ColorMode mOutColorMode;
67 std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>> mHwcColorModes;
71 addHwcColorModesMapping(ui::ColorMode::SRGB, in TEST_F()
80 ASSERT_EQ(ui::ColorMode::SRGB, mOutColorMode); in TEST_F()
85 addHwcColorModesMapping(ui::ColorMode::DISPLAY_P3, in TEST_F()
87 addHwcColorModesMapping(ui::ColorMode::SRGB, in TEST_F()
89 addHwcColorModesMapping(ui::ColorMode::DISPLAY_BT2020, in TEST_F()
98 ASSERT_EQ(ui::ColorMode::DISPLAY_P3, mOutColorMode); in TEST_F()
103 addHwcColorModesMapping(ui::ColorMode::DISPLAY_BT2020, in TEST_F()
[all …]
DSurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp45 .WillOnce(DoAll(SetArgPointee<1>(std::vector<ColorMode>({ColorMode::DISPLAY_P3})), in setupComposerCallExpectations()
48 getRenderIntents(Display::HWC_DISPLAY_ID, ColorMode::DISPLAY_P3, _)) in setupComposerCallExpectations()
53 setColorMode(Display::HWC_DISPLAY_ID, ColorMode::SRGB, in setupComposerCallExpectations()
/frameworks/native/libs/ui/
DDebugUtils.cpp27 using android::ui::ColorMode;
202 std::string decodeColorMode(ColorMode colorMode) { in decodeColorMode()
204 case ColorMode::NATIVE: in decodeColorMode()
207 case ColorMode::STANDARD_BT601_625: in decodeColorMode()
210 case ColorMode::STANDARD_BT601_625_UNADJUSTED: in decodeColorMode()
213 case ColorMode::STANDARD_BT601_525: in decodeColorMode()
216 case ColorMode::STANDARD_BT601_525_UNADJUSTED: in decodeColorMode()
219 case ColorMode::STANDARD_BT709: in decodeColorMode()
222 case ColorMode::DCI_P3: in decodeColorMode()
225 case ColorMode::SRGB: in decodeColorMode()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplayColorProfile.h44 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
58 ui::Dataspace getTargetDataspace(ui::ColorMode, ui::Dataspace, ui::Dataspace) const override;
65 const ui::ColorMode mode, const ui::RenderIntent intent);
72 ui::ColorMode colorMode;
DOutputCompositionState.h109 ui::ColorMode colorMode{ui::ColorMode::NATIVE};
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp37 using ui::ColorMode;
240 return SurfaceComposerClient::setActiveColorMode(display, ui::ColorMode::NATIVE); in TEST_F()
339 for (ColorMode colorMode : colorModes) { in TEST_F()
341 case ColorMode::DISPLAY_P3: in TEST_F()
342 case ColorMode::ADOBE_RGB: in TEST_F()
343 case ColorMode::DCI_P3: in TEST_F()
368 ColorMode colorMode = info.activeColorMode; in TEST_F()
369 ASSERT_NE(static_cast<ColorMode>(BAD_VALUE), colorMode); in TEST_F()
/frameworks/native/libs/ui/include/ui/
DDynamicDisplayInfo.h40 std::vector<ui::ColorMode> supportedColorModes;
41 ui::ColorMode activeColorMode;
DDebugUtils.h33 std::string decodeColorMode(android::ui::ColorMode colormode);
/frameworks/base/libs/hwui/renderthread/
DEglManager.cpp389 ColorMode colorMode, in createSurface()
395 LOG_ALWAYS_FATAL_IF(colorMode == ColorMode::A8, in createSurface()
399 colorMode = ColorMode::Default; in createSurface()
426 if (colorMode == ColorMode::A8) { in createSurface()
437 colorMode = ColorMode::Default; in createSurface()
442 colorMode = ColorMode::Default; in createSurface()
450 case ColorMode::Default: in createSurface()
453 case ColorMode::WideColorGamut: { in createSurface()
469 case ColorMode::Hdr: in createSurface()
473 case ColorMode::Hdr10: in createSurface()
[all …]
DVulkanSurface.h38 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType,
110 static bool InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode,
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DDisplayColorProfile.h35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*,
47 ui::Dataspace(ui::ColorMode, ui::Dataspace, ui::Dataspace));
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_fuzzers_utils.h87 using types::V1_2::ColorMode;
114 static constexpr ui::ColorMode kColormodes[] = {ui::ColorMode::NATIVE,
115 ui::ColorMode::STANDARD_BT601_625,
116 ui::ColorMode::STANDARD_BT601_625_UNADJUSTED,
117 ui::ColorMode::STANDARD_BT601_525,
118 ui::ColorMode::STANDARD_BT601_525_UNADJUSTED,
119 ui::ColorMode::STANDARD_BT709,
120 ui::ColorMode::DCI_P3,
121 ui::ColorMode::SRGB,
122 ui::ColorMode::ADOBE_RGB,
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DCompositionRefreshArgs.h57 ui::ColorMode forceOutputColorMode{ui::ColorMode::NATIVE};
DDisplayColorProfile.h63 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
91 virtual ui::Dataspace getTargetDataspace(ui::ColorMode, ui::Dataspace,
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.h53 void setSurfaceColorProperties(ColorMode colorMode) override;
79 ColorMode mColorMode = ColorMode::Default;
DSkiaPipeline.cpp597 void SkiaPipeline::setSurfaceColorProperties(ColorMode colorMode) { in setSurfaceColorProperties()
600 case ColorMode::Default: in setSurfaceColorProperties()
604 case ColorMode::WideColorGamut: in setSurfaceColorProperties()
608 case ColorMode::Hdr: in setSurfaceColorProperties()
612 case ColorMode::Hdr10: in setSurfaceColorProperties()
616 case ColorMode::A8: in setSurfaceColorProperties()
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h60 using types::V1_2::ColorMode;
101 ColorMode color_mode;
165 ColorMode color_mode() const { return color_mode_; } in color_mode()
166 void set_color_mode(ColorMode mode) { color_mode_ = mode; } in set_color_mode()
198 ColorMode color_mode_;
303 Error getRenderIntents(Display display, types::V1_1::ColorMode mode,
319 Error setColorMode_2_3(Display display, ColorMode mode,
321 Error getRenderIntents_2_3(Display display, ColorMode mode,
324 hidl_vec<ColorMode>* outModes) override;
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.h79 V2_1::Error getColorModes(Display display, hidl_vec<V1_0::ColorMode>* outModes) override;
92 V2_1::Error setColorMode(Display display, V1_0::ColorMode mode) override;
158 hidl_vec<graphics::common::V1_1::ColorMode>* outModes) override;
160 Display display, graphics::common::V1_1::ColorMode mode,
162 V2_1::Error setColorMode_2_2(Display display, graphics::common::V1_1::ColorMode mode,
173 V2_1::Error setColorMode_2_3(Display display, graphics::common::V1_2::ColorMode mode,
177 Display display, graphics::common::V1_2::ColorMode mode,
181 hidl_vec<graphics::common::V1_2::ColorMode>* outModes) override;
/frameworks/base/libs/hwui/
DColorMode.h22 enum class ColorMode { enum
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockComposer.h33 using android::hardware::graphics::common::V1_2::ColorMode;
71 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*));
91 MOCK_METHOD3(setColorMode, Error(Display, ColorMode, RenderIntent));
120 MOCK_METHOD3(getRenderIntents, Error(Display, ColorMode, std::vector<RenderIntent>*));
DMockHWC2.h46 MOCK_METHOD(hal::Error, getColorModes, (std::vector<hal::ColorMode> *), (const, override));
48 MOCK_METHOD(hal::Error, getRenderIntents, (hal::ColorMode, std::vector<hal::RenderIntent> *),
72 MOCK_METHOD(hal::Error, setColorMode, (hal::ColorMode, hal::RenderIntent), (override));
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h183 virtual std::vector<ui::RenderIntent> getRenderIntents(HalDisplayId, ui::ColorMode) const = 0;
226 virtual std::vector<ui::ColorMode> getColorModes(PhysicalDisplayId) const = 0;
228 virtual status_t setActiveColorMode(PhysicalDisplayId, ui::ColorMode mode,
366 std::vector<ui::RenderIntent> getRenderIntents(HalDisplayId, ui::ColorMode) const override;
399 std::vector<ui::ColorMode> getColorModes(PhysicalDisplayId) const override;
401 status_t setActiveColorMode(PhysicalDisplayId, ui::ColorMode, ui::RenderIntent) override;

1234