Home
last modified time | relevance | path

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

123

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp44 std::ostream& operator<<(std::ostream& os, const ColorMode& value) { in operator <<()
63 using ui::ColorMode;
127 ProfileFactory& addColorModeRenderIntent(ColorMode colorMode, RenderIntent renderIntent) { in addColorModeRenderIntent()
132 ProfileFactory& addColorModeRenderIntents(ColorMode colorMode, in addColorModeRenderIntents()
149 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::COLORIMETRIC) in createProfileWithBT2020ColorModeSupport()
150 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::ENHANCE) in createProfileWithBT2020ColorModeSupport()
151 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, VendorRenderIntent) in createProfileWithBT2020ColorModeSupport()
159 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::COLORIMETRIC) in createProfileWithSRGBColorModeSupport()
160 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::ENHANCE) in createProfileWithSRGBColorModeSupport()
161 .addColorModeRenderIntent(ColorMode::SRGB, VendorRenderIntent) in createProfileWithSRGBColorModeSupport()
[all …]
DDisplayTest.cpp147 ASSERT_EQ(ui::ColorMode::NATIVE, mDisplay.getState().colorMode); in TEST_F()
152 mDisplay.setColorMode(ui::ColorMode::NATIVE, ui::Dataspace::UNKNOWN, in TEST_F()
155 EXPECT_EQ(ui::ColorMode::NATIVE, mDisplay.getState().colorMode); in TEST_F()
162 setActiveColorMode(DEFAULT_DISPLAY_ID, ui::ColorMode::DISPLAY_P3, in TEST_F()
166 mDisplay.setColorMode(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F()
169 EXPECT_EQ(ui::ColorMode::DISPLAY_P3, mDisplay.getState().colorMode); in TEST_F()
178 virtualDisplay.setColorMode(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F()
181 EXPECT_EQ(ui::ColorMode::NATIVE, virtualDisplay.getState().colorMode); in TEST_F()
DMockHWComposer.h61 MOCK_CONST_METHOD2(getRenderIntents, std::vector<ui::RenderIntent>(DisplayId, ui::ColorMode));
81 MOCK_CONST_METHOD1(getColorModes, std::vector<ui::ColorMode>(DisplayId));
82 MOCK_METHOD3(setActiveColorMode, status_t(DisplayId, ui::ColorMode, ui::RenderIntent));
DOutputTest.cpp210 mOutput.setColorMode(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F()
213 EXPECT_EQ(ui::ColorMode::DISPLAY_P3, mOutput.getState().colorMode); in TEST_F()
220 mOutput.editState().colorMode = ui::ColorMode::DISPLAY_P3; in TEST_F()
224 mOutput.setColorMode(ui::ColorMode::DISPLAY_P3, ui::Dataspace::DISPLAY_P3, in TEST_F()
/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 Dataspace colorModeToDataspace(ColorMode mode) { in colorModeToDataspace()
70 case ColorMode::SRGB: in colorModeToDataspace()
[all …]
/frameworks/native/libs/ui/
DDebugUtils.cpp25 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/tests/
DCredentials_test.cpp21 using ui::ColorMode;
196 ASSERT_NE(static_cast<ui::ColorMode>(BAD_VALUE), in TEST_F()
203 Vector<ui::ColorMode> outColorModes; in TEST_F()
229 return SurfaceComposerClient::setActiveColorMode(display, ui::ColorMode::NATIVE); in TEST_F()
332 Vector<ColorMode> colorModes; in TEST_F()
334 for (ColorMode colorMode : colorModes) { in TEST_F()
336 case ColorMode::DISPLAY_P3: in TEST_F()
337 case ColorMode::ADOBE_RGB: in TEST_F()
338 case ColorMode::DCI_P3: in TEST_F()
361 ColorMode colorMode = SurfaceComposerClient::getActiveColorMode(display); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplayColorProfile.h44 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
63 const ui::ColorMode mode, const ui::RenderIntent intent);
70 ui::ColorMode colorMode;
DOutputCompositionState.h86 ui::ColorMode colorMode{ui::ColorMode::NATIVE};
DDisplay.h42 void setColorMode(ui::ColorMode, ui::Dataspace, ui::RenderIntent) override;
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplay.h46 MOCK_CONST_METHOD1(getColorModes, Error(std::vector<android::ui::ColorMode>*));
50 Error(android::ui::ColorMode, std::vector<android::ui::RenderIntent>*));
72 MOCK_METHOD2(setColorMode, Error(android::ui::ColorMode, android::ui::RenderIntent));
DMockComposer.h33 using android::hardware::graphics::common::V1_2::ColorMode;
67 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*));
87 MOCK_METHOD3(setColorMode, Error(Display, ColorMode, RenderIntent));
114 MOCK_METHOD3(getRenderIntents, Error(Display, ColorMode, std::vector<RenderIntent>*));
/frameworks/base/libs/hwui/renderthread/
DIRenderPipeline.h45 enum class ColorMode { enum
69 virtual bool setSurface(ANativeWindow* window, SwapBehavior swapBehavior, ColorMode colorMode,
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h88 ColorMode color_mode;
152 ColorMode color_mode() const { return color_mode_; } in color_mode()
153 void set_color_mode(ColorMode mode) { color_mode_ = mode; } in set_color_mode()
185 ColorMode color_mode_;
227 Error getColorModes(Display display, hidl_vec<ColorMode>* outModes) override;
240 Error setColorMode(Display display, ColorMode mode) override;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h127 ui::ColorMode colorMode) const = 0;
167 virtual std::vector<ui::ColorMode> getColorModes(DisplayId displayId) const = 0;
169 virtual status_t setActiveColorMode(DisplayId displayId, ui::ColorMode mode,
265 ui::ColorMode colorMode) const override;
300 std::vector<ui::ColorMode> getColorModes(DisplayId displayId) const override;
302 status_t setActiveColorMode(DisplayId displayId, ui::ColorMode mode,
DComposerHal.h52 using types::V1_2::ColorMode;
107 virtual Error getColorModes(Display display, std::vector<ColorMode>* outModes) = 0;
138 virtual Error setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) = 0;
186 virtual Error getRenderIntents(Display display, ColorMode colorMode,
323 Error getColorModes(Display display, std::vector<ColorMode>* outModes) override;
353 Error setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) override;
398 Error getRenderIntents(Display display, ColorMode colorMode,
DHWC2.h215 std::vector<android::ui::ColorMode>* outModes) const = 0;
219 android::ui::ColorMode colorMode,
253 android::ui::ColorMode mode, android::ui::RenderIntent renderIntent) = 0;
284 Error getColorModes(std::vector<android::ui::ColorMode>* outModes) const override;
287 Error getRenderIntents(android::ui::ColorMode colorMode,
315 Error setColorMode(android::ui::ColorMode mode,
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp130 using ui::ColorMode;
141 bool isWideColorMode(const ColorMode colorMode) { in isWideColorMode()
143 case ColorMode::DISPLAY_P3: in isWideColorMode()
144 case ColorMode::ADOBE_RGB: in isWideColorMode()
145 case ColorMode::DCI_P3: in isWideColorMode()
146 case ColorMode::BT2020: in isWideColorMode()
147 case ColorMode::DISPLAY_BT2020: in isWideColorMode()
148 case ColorMode::BT2100_PQ: in isWideColorMode()
149 case ColorMode::BT2100_HLG: in isWideColorMode()
151 case ColorMode::NATIVE: in isWideColorMode()
[all …]
/frameworks/native/libs/ui/include/ui/
DGraphicTypes.h37 using android::hardware::graphics::common::V1_2::ColorMode;
DDebugUtils.h32 std::string decodeColorMode(android::ui::ColorMode colormode);
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicTypes.h37 using android::hardware::graphics::common::V1_2::ColorMode;
DDebugUtils.h32 std::string decodeColorMode(android::ui::ColorMode colormode);
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DDisplayColorProfile.h35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*,
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayColorProfile.h54 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
DDisplayColorProfileCreationArgs.h32 using HwcColorModes = std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>>;

123