/frameworks/native/libs/ui/include/ui/ |
D | ColorMode.h | 25 using ColorModes = std::vector<ColorMode>; 27 inline bool isWideColorMode(ColorMode colorMode) { in isWideColorMode() 29 case ColorMode::DISPLAY_P3: in isWideColorMode() 30 case ColorMode::ADOBE_RGB: in isWideColorMode() 31 case ColorMode::DCI_P3: in isWideColorMode() 32 case ColorMode::BT2020: in isWideColorMode() 33 case ColorMode::DISPLAY_BT2020: in isWideColorMode() 34 case ColorMode::BT2100_PQ: in isWideColorMode() 35 case ColorMode::BT2100_HLG: in isWideColorMode() 37 case ColorMode::NATIVE: in isWideColorMode() [all …]
|
D | DynamicDisplayInfo.h | 40 std::vector<ui::ColorMode> supportedColorModes; 41 ui::ColorMode activeColorMode;
|
D | DebugUtils.h | 36 std::string decodeColorMode(android::ui::ColorMode colormode);
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayColorProfileTest.cpp | 34 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 …]
|
D | MockHWComposer.h | 81 std::vector<ui::RenderIntent>(HalDisplayId, ui::ColorMode)); 102 MOCK_CONST_METHOD1(getColorModes, std::vector<ui::ColorMode>(PhysicalDisplayId)); 103 MOCK_METHOD3(setActiveColorMode, status_t(PhysicalDisplayId, ui::ColorMode, ui::RenderIntent));
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | DisplayColorProfile.cpp | 38 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/ |
D | DisplayDevice_GetBestColorModeTest.cpp | 36 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 …]
|
/frameworks/native/libs/ui/ |
D | DebugUtils.cpp | 26 using android::ui::ColorMode; 213 std::string decodeColorMode(ColorMode colorMode) { in decodeColorMode() 215 case ColorMode::NATIVE: in decodeColorMode() 218 case ColorMode::STANDARD_BT601_625: in decodeColorMode() 221 case ColorMode::STANDARD_BT601_625_UNADJUSTED: in decodeColorMode() 224 case ColorMode::STANDARD_BT601_525: in decodeColorMode() 227 case ColorMode::STANDARD_BT601_525_UNADJUSTED: in decodeColorMode() 230 case ColorMode::STANDARD_BT709: in decodeColorMode() 233 case ColorMode::DCI_P3: in decodeColorMode() 236 case ColorMode::SRGB: in decodeColorMode() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Credentials_test.cpp | 39 using ui::ColorMode; 227 return SurfaceComposerClient::setActiveColorMode(display, ui::ColorMode::NATIVE); in TEST_F() 306 for (ColorMode colorMode : colorModes) { in TEST_F() 308 case ColorMode::DISPLAY_P3: in TEST_F() 309 case ColorMode::ADOBE_RGB: in TEST_F() 310 case ColorMode::DCI_P3: in TEST_F() 335 ColorMode colorMode = info.activeColorMode; in TEST_F() 336 ASSERT_NE(static_cast<ColorMode>(BAD_VALUE), colorMode); in TEST_F()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | DisplayColorProfile.h | 44 ui::Dataspace* outDataspace, ui::ColorMode* outMode, 64 const ui::ColorMode mode, const ui::RenderIntent intent); 71 ui::ColorMode colorMode;
|
D | OutputCompositionState.h | 113 ui::ColorMode colorMode{ui::ColorMode::NATIVE};
|
/frameworks/base/libs/hwui/renderthread/ |
D | VulkanSurface.h | 39 static VulkanSurface* Create(ANativeWindow* window, ColorMode colorMode, SkColorType colorType, 100 ColorMode colorMode; 113 static bool InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode,
|
D | EglManager.cpp | 392 ColorMode colorMode, in createSurface() 398 LOG_ALWAYS_FATAL_IF(colorMode == ColorMode::A8, in createSurface() 402 colorMode = ColorMode::Default; in createSurface() 430 if (colorMode == ColorMode::A8) { in createSurface() 441 colorMode = ColorMode::Default; in createSurface() 448 if (colorMode == ColorMode::Hdr) { in createSurface() 462 case ColorMode::Default: in createSurface() 465 case ColorMode::Hdr: in createSurface() 473 case ColorMode::Hdr10: in createSurface() 477 case ColorMode::WideColorGamut: { in createSurface() [all …]
|
D | VulkanSurface.cpp | 135 VulkanSurface* VulkanSurface::Create(ANativeWindow* window, ColorMode colorMode, in Create() 159 bool VulkanSurface::InitializeWindowInfoStruct(ANativeWindow* window, ColorMode colorMode, in InitializeWindowInfoStruct() 219 if (colorMode == ColorMode::Hdr || colorMode == ColorMode::Hdr10) { in InitializeWindowInfoStruct() 474 if (mWindowInfo.colorMode != ColorMode::Default) { in dequeueNativeBuffer() 550 if (mWindowInfo.colorMode == ColorMode::Hdr || mWindowInfo.colorMode == ColorMode::Hdr10) { in setColorSpace()
|
D | CanvasContext.h | 142 float setColorMode(ColorMode mode); 370 ColorMode mColorMode = ColorMode::Default;
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.h | 47 void setSurfaceColorProperties(ColorMode colorMode) override; 75 ColorMode mColorMode = ColorMode::Default;
|
D | SkiaPipeline.cpp | 490 void SkiaPipeline::setSurfaceColorProperties(ColorMode colorMode) { in setSurfaceColorProperties() 493 case ColorMode::Default: in setSurfaceColorProperties() 497 case ColorMode::WideColorGamut: in setSurfaceColorProperties() 501 case ColorMode::Hdr: in setSurfaceColorProperties() 515 case ColorMode::Hdr10: in setSurfaceColorProperties() 520 case ColorMode::A8: in setSurfaceColorProperties() 528 if (mColorMode == ColorMode::Hdr || mColorMode == ColorMode::Hdr10) { in setTargetSdrHdrRatio() 531 if (mColorMode == ColorMode::Hdr && DeviceInfo::get()->isSupportFp16ForHdr() && in setTargetSdrHdrRatio()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | CompositionRefreshArgs.h | 67 ui::ColorMode forceOutputColorMode{ui::ColorMode::NATIVE};
|
/frameworks/base/libs/hwui/ |
D | ColorMode.h | 22 enum class ColorMode { enum
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | DisplayColorProfile.h | 35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*,
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 33 using android::hardware::graphics::common::V1_2::ColorMode; 70 MOCK_METHOD2(getColorModes, Error(Display, std::vector<ColorMode>*)); 93 MOCK_METHOD3(setColorMode, Error(Display, ColorMode, RenderIntent)); 124 MOCK_METHOD3(getRenderIntents, Error(Display, ColorMode, std::vector<RenderIntent>*));
|
D | MockHWC2.h | 46 MOCK_METHOD(hal::Error, getColorModes, (std::vector<hal::ColorMode> *), (const, override)); 48 MOCK_METHOD(hal::Error, getRenderIntents, (hal::ColorMode, std::vector<hal::RenderIntent> *), 73 MOCK_METHOD(hal::Error, setColorMode, (hal::ColorMode, hal::RenderIntent), (override));
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.h | 198 virtual std::vector<ui::RenderIntent> getRenderIntents(HalDisplayId, ui::ColorMode) const = 0; 245 virtual std::vector<ui::ColorMode> getColorModes(PhysicalDisplayId) const = 0; 247 virtual status_t setActiveColorMode(PhysicalDisplayId, ui::ColorMode mode, 401 std::vector<ui::RenderIntent> getRenderIntents(HalDisplayId, ui::ColorMode) const override; 435 std::vector<ui::ColorMode> getColorModes(PhysicalDisplayId) const override; 437 status_t setActiveColorMode(PhysicalDisplayId, ui::ColorMode, ui::RenderIntent) override;
|
/frameworks/base/libs/hwui/tests/unit/ |
D | EglManagerTests.cpp | 40 eglManager.createSurface(context.surface().get(), ColorMode::Default, colorSpace); in TEST()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | DebugUtils.h | 36 std::string decodeColorMode(android::ui::ColorMode colormode);
|