Home
last modified time | relevance | path

Searched refs:RenderIntent (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp37 using ui::RenderIntent;
40 constexpr RenderIntent VendorRenderIntent = static_cast<RenderIntent>(0x100);
98 ProfileFactory& addColorModeRenderIntent(ColorMode colorMode, RenderIntent renderIntent) { in addColorModeRenderIntent()
104 std::initializer_list<RenderIntent> renderIntents) { in addColorModeRenderIntents()
120 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::COLORIMETRIC) in createProfileWithBT2020ColorModeSupport()
121 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::ENHANCE) in createProfileWithBT2020ColorModeSupport()
130 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::COLORIMETRIC) in createProfileWithSRGBColorModeSupport()
131 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::ENHANCE) in createProfileWithSRGBColorModeSupport()
148 .addColorModeRenderIntent(ColorMode::DISPLAY_P3, RenderIntent::COLORIMETRIC) in createProfileWithDisplayP3ColorModeSupport()
149 .addColorModeRenderIntent(ColorMode::DISPLAY_P3, RenderIntent::ENHANCE) in createProfileWithDisplayP3ColorModeSupport()
[all …]
DMockHWComposer.h70 MOCK_CONST_METHOD2(getRenderIntents, std::vector<ui::RenderIntent>(DisplayId, ui::ColorMode));
91 MOCK_METHOD3(setActiveColorMode, status_t(DisplayId, ui::ColorMode, ui::RenderIntent));
DDisplayTest.cpp438 ASSERT_EQ(ui::RenderIntent::COLORIMETRIC, mDisplay->getState().renderIntent); in TEST_F()
443 ui::RenderIntent::COLORIMETRIC, ui::Dataspace::UNKNOWN}); in TEST_F()
447 EXPECT_EQ(ui::RenderIntent::COLORIMETRIC, mDisplay->getState().renderIntent); in TEST_F()
454 ui::RenderIntent::TONE_MAP_COLORIMETRIC)) in TEST_F()
458 ui::RenderIntent::TONE_MAP_COLORIMETRIC, in TEST_F()
463 EXPECT_EQ(ui::RenderIntent::TONE_MAP_COLORIMETRIC, mDisplay->getState().renderIntent); in TEST_F()
484 ui::RenderIntent::TONE_MAP_COLORIMETRIC, ui::Dataspace::UNKNOWN}); in TEST_F()
488 EXPECT_EQ(ui::RenderIntent::COLORIMETRIC, virtualDisplay->getState().renderIntent); in TEST_F()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplayColorProfile.cpp40 using ui::RenderIntent;
56 const std::array<RenderIntent, 2> sSdrRenderIntents = {
57 RenderIntent::ENHANCE,
58 RenderIntent::COLORIMETRIC,
62 const std::array<RenderIntent, 2> sHdrRenderIntents = {
63 RenderIntent::TONE_MAP_ENHANCE,
64 RenderIntent::TONE_MAP_COLORIMETRIC,
121 std::vector<RenderIntent> getRenderIntentCandidates(RenderIntent intent) { in getRenderIntentCandidates()
122 std::vector<RenderIntent> candidates; in getRenderIntentCandidates()
157 const std::unordered_map<ColorMode, std::vector<RenderIntent>>& hwcColorModes, in getHwcColorMode()
[all …]
DOutput.cpp672 ui::RenderIntent::COLORIMETRIC, in pickColorProfile()
698 ui::RenderIntent intent; in pickColorProfile()
702 intent = isHdr ? ui::RenderIntent::TONE_MAP_COLORIMETRIC in pickColorProfile()
703 : ui::RenderIntent::COLORIMETRIC; in pickColorProfile()
706 intent = isHdr ? ui::RenderIntent::TONE_MAP_ENHANCE : ui::RenderIntent::ENHANCE; in pickColorProfile()
709 intent = static_cast<ui::RenderIntent>(refreshArgs.outputColorSetting); in pickColorProfile()
715 ui::RenderIntent outRenderIntent; in pickColorProfile()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplayColorProfile.h41 bool hasRenderIntent(ui::RenderIntent intent) const override;
43 void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
45 ui::RenderIntent* outIntent) const override;
65 const ui::ColorMode mode, const ui::RenderIntent intent);
73 ui::RenderIntent renderIntent;
76 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey()
DOutputCompositionState.h111 ui::RenderIntent renderIntent{ui::RenderIntent::COLORIMETRIC};
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/
DDisplayColorProfile.h32 MOCK_CONST_METHOD1(hasRenderIntent, bool(ui::RenderIntent));
35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*,
36 ui::RenderIntent*));
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayColorProfile.h54 virtual bool hasRenderIntent(ui::RenderIntent) const = 0;
61 virtual void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
63 ui::RenderIntent* outIntent) const = 0;
DDisplayColorProfileCreationArgs.h40 using HwcColorModes = std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>>;
DOutput.h132 ui::RenderIntent renderIntent{ui::RenderIntent::COLORIMETRIC};
/frameworks/native/libs/ui/
DDebugUtils.cpp28 using android::ui::RenderIntent;
310 std::string decodeRenderIntent(RenderIntent renderIntent) { in decodeRenderIntent()
312 case RenderIntent::COLORIMETRIC: in decodeRenderIntent()
314 case RenderIntent::ENHANCE: in decodeRenderIntent()
316 case RenderIntent::TONE_MAP_COLORIMETRIC: in decodeRenderIntent()
318 case RenderIntent::TONE_MAP_ENHANCE: in decodeRenderIntent()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockComposer.h32 using android::hardware::graphics::common::V1_1::RenderIntent;
87 MOCK_METHOD3(setColorMode, Error(Display, ColorMode, RenderIntent));
114 MOCK_METHOD3(getRenderIntents, Error(Display, ColorMode, std::vector<RenderIntent>*));
DMockDisplay.h54 hal::Error(hal::ColorMode, std::vector<hal::RenderIntent>*));
77 MOCK_METHOD2(setColorMode, hal::Error(hal::ColorMode, hal::RenderIntent));
/frameworks/native/libs/ui/include_vndk/ui/
DDebugUtils.h36 std::string decodeRenderIntent(android::ui::RenderIntent renderIntent);
DGraphicTypes.h42 using android::hardware::graphics::common::V1_1::RenderIntent;
/frameworks/native/libs/ui/include/ui/
DDebugUtils.h36 std::string decodeRenderIntent(android::ui::RenderIntent renderIntent);
DGraphicTypes.h42 using android::hardware::graphics::common::V1_1::RenderIntent;
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayTransactionTest.cpp81 using hal::RenderIntent;
810 std::vector<RenderIntent>({RenderIntent::COLORIMETRIC})), in setupComposerCallExpectations()
814 RenderIntent::COLORIMETRIC)) in setupComposerCallExpectations()
1357 std::vector<ui::RenderIntent> renderIntents) { in addHwcColorModesMapping()
1363 void setInputRenderIntent(ui::RenderIntent renderIntent) { mInputRenderIntent = renderIntent; } in setInputRenderIntent()
1381 ui::RenderIntent mOutRenderIntent;
1385 ui::RenderIntent mInputRenderIntent;
1387 std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>> mHwcColorModes;
1392 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F()
1394 setInputRenderIntent(ui::RenderIntent::COLORIMETRIC); in TEST_F()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java717 public enum RenderIntent { enum in ColorSpace
1201 return connect(source, destination, RenderIntent.PERCEPTUAL); in connect()
1226 @NonNull RenderIntent intent) { in connect()
1257 return connect(source, RenderIntent.PERCEPTUAL); in connect()
1278 public static Connector connect(@NonNull ColorSpace source, @NonNull RenderIntent intent) { in connect()
3676 @NonNull private final RenderIntent mIntent;
3687 @NonNull RenderIntent intent) { in Connector()
3704 @NonNull RenderIntent intent, @Nullable @Size(3) float[] transform) { in Connector()
3719 @NonNull ColorSpace destination, @NonNull RenderIntent intent) { in computeTransform()
3720 if (intent != RenderIntent.ABSOLUTE) return null; in computeTransform()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h151 virtual std::vector<ui::RenderIntent> getRenderIntents(DisplayId displayId,
196 ui::RenderIntent renderIntent) = 0;
298 std::vector<ui::RenderIntent> getRenderIntents(DisplayId displayId,
337 ui::RenderIntent renderIntent) override;
DComposerHal.h63 using types::V1_1::RenderIntent;
151 virtual Error setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) = 0;
200 std::vector<RenderIntent>* outRenderIntents) = 0;
402 Error setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) override;
448 std::vector<RenderIntent>* outRenderIntents) override;
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DFakeComposerClient.h161 std::vector<graphics::common::V1_1::RenderIntent>* outIntents) override;
163 graphics::common::V1_1::RenderIntent intent) override;
174 graphics::common::V1_1::RenderIntent intent) override;
178 std::vector<graphics::common::V1_1::RenderIntent>* outIntents) override;
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h59 using types::V1_1::RenderIntent;
304 std::vector<RenderIntent>* outIntents) override;
320 RenderIntent intent) override;
322 std::vector<RenderIntent>* outIntents) override;
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h131 bool hasRenderIntent(ui::RenderIntent intent) const;
234 std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>> hwcColorModes;

12