Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DDisplayColorProfileTest.cpp27 std::ostream& operator<<(std::ostream& os, const RenderIntent& value) { in operator <<()
66 using ui::RenderIntent;
69 constexpr RenderIntent VendorRenderIntent = static_cast<RenderIntent>(0x100);
127 ProfileFactory& addColorModeRenderIntent(ColorMode colorMode, RenderIntent renderIntent) { in addColorModeRenderIntent()
133 std::initializer_list<RenderIntent> renderIntents) { in addColorModeRenderIntents()
149 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::COLORIMETRIC) in createProfileWithBT2020ColorModeSupport()
150 .addColorModeRenderIntent(ColorMode::DISPLAY_BT2020, RenderIntent::ENHANCE) in createProfileWithBT2020ColorModeSupport()
159 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::COLORIMETRIC) in createProfileWithSRGBColorModeSupport()
160 .addColorModeRenderIntent(ColorMode::SRGB, RenderIntent::ENHANCE) in createProfileWithSRGBColorModeSupport()
177 .addColorModeRenderIntent(ColorMode::DISPLAY_P3, RenderIntent::COLORIMETRIC) in createProfileWithDisplayP3ColorModeSupport()
[all …]
DDisplayTest.cpp149 ASSERT_EQ(ui::RenderIntent::COLORIMETRIC, mDisplay.getState().renderIntent); in TEST_F()
153 ui::RenderIntent::COLORIMETRIC); in TEST_F()
157 EXPECT_EQ(ui::RenderIntent::COLORIMETRIC, mDisplay.getState().renderIntent); in TEST_F()
163 ui::RenderIntent::TONE_MAP_COLORIMETRIC)) in TEST_F()
167 ui::RenderIntent::TONE_MAP_COLORIMETRIC); in TEST_F()
171 EXPECT_EQ(ui::RenderIntent::TONE_MAP_COLORIMETRIC, mDisplay.getState().renderIntent); in TEST_F()
179 ui::RenderIntent::TONE_MAP_COLORIMETRIC); in TEST_F()
183 EXPECT_EQ(ui::RenderIntent::COLORIMETRIC, virtualDisplay.getState().renderIntent); in TEST_F()
DOutputTest.cpp211 ui::RenderIntent::TONE_MAP_COLORIMETRIC); in TEST_F()
215 EXPECT_EQ(ui::RenderIntent::TONE_MAP_COLORIMETRIC, mOutput.getState().renderIntent); in TEST_F()
222 mOutput.editState().renderIntent = ui::RenderIntent::TONE_MAP_COLORIMETRIC; in TEST_F()
225 ui::RenderIntent::TONE_MAP_COLORIMETRIC); in TEST_F()
DMockHWComposer.h61 MOCK_CONST_METHOD2(getRenderIntents, std::vector<ui::RenderIntent>(DisplayId, ui::ColorMode));
82 MOCK_METHOD3(setActiveColorMode, status_t(DisplayId, ui::ColorMode, ui::RenderIntent));
/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 …]
/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;
63 const ui::ColorMode mode, const ui::RenderIntent intent);
71 ui::RenderIntent renderIntent;
74 static ColorModeKey getColorModeKey(ui::Dataspace dataspace, ui::RenderIntent intent) { in getColorModeKey()
DOutputCompositionState.h89 ui::RenderIntent renderIntent{ui::RenderIntent::COLORIMETRIC};
DDisplay.h42 void setColorMode(ui::ColorMode, ui::Dataspace, ui::RenderIntent) override;
/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*));
DOutput.h44 MOCK_METHOD3(setColorMode, void(ui::ColorMode, ui::Dataspace, ui::RenderIntent));
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DDisplayColorProfile.h46 virtual bool hasRenderIntent(ui::RenderIntent) const = 0;
53 virtual void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
55 ui::RenderIntent* outIntent) const = 0;
DDisplayColorProfileCreationArgs.h32 using HwcColorModes = std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>>;
DOutput.h74 virtual void setColorMode(ui::ColorMode, ui::Dataspace, ui::RenderIntent) = 0;
/frameworks/native/libs/ui/
DDebugUtils.cpp26 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/
DDisplayTransactionTest.cpp62 using android::Hwc2::RenderIntent;
643 std::vector<RenderIntent>({RenderIntent::COLORIMETRIC})), in setupComposerCallExpectations()
647 RenderIntent::COLORIMETRIC)) in setupComposerCallExpectations()
1197 std::vector<ui::RenderIntent> renderIntents) { in addHwcColorModesMapping()
1203 void setInputRenderIntent(ui::RenderIntent renderIntent) { mInputRenderIntent = renderIntent; } in setInputRenderIntent()
1230 ui::RenderIntent mOutRenderIntent;
1234 ui::RenderIntent mInputRenderIntent;
1236 std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>> mHwcColorModes;
1242 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F()
1244 setInputRenderIntent(ui::RenderIntent::COLORIMETRIC); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplay.h50 Error(android::ui::ColorMode, std::vector<android::ui::RenderIntent>*));
72 MOCK_METHOD2(setColorMode, Error(android::ui::ColorMode, android::ui::RenderIntent));
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>*));
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicTypes.h36 using android::hardware::graphics::common::V1_1::RenderIntent;
DDebugUtils.h35 std::string decodeRenderIntent(android::ui::RenderIntent renderIntent);
/frameworks/native/libs/ui/include/ui/
DGraphicTypes.h36 using android::hardware::graphics::common::V1_1::RenderIntent;
DDebugUtils.h35 std::string decodeRenderIntent(android::ui::RenderIntent renderIntent);
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWComposer.h126 virtual std::vector<ui::RenderIntent> getRenderIntents(DisplayId displayId,
170 ui::RenderIntent renderIntent) = 0;
264 std::vector<ui::RenderIntent> getRenderIntents(DisplayId displayId,
303 ui::RenderIntent renderIntent) override;
DComposerHal.h51 using types::V1_1::RenderIntent;
138 virtual Error setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) = 0;
187 std::vector<RenderIntent>* outRenderIntents) = 0;
353 Error setColorMode(Display display, ColorMode mode, RenderIntent renderIntent) override;
399 std::vector<RenderIntent>* outRenderIntents) override;
DHWC2.h220 std::vector<android::ui::RenderIntent>* outRenderIntents) const = 0;
253 android::ui::ColorMode mode, android::ui::RenderIntent renderIntent) = 0;
288 std::vector<android::ui::RenderIntent>* outRenderIntents) const override;
316 android::ui::RenderIntent renderIntent) override;
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java712 public enum RenderIntent { enum in ColorSpace
1195 return connect(source, destination, RenderIntent.PERCEPTUAL); in connect()
1220 @NonNull RenderIntent intent) { in connect()
1251 return connect(source, RenderIntent.PERCEPTUAL); in connect()
1272 public static Connector connect(@NonNull ColorSpace source, @NonNull RenderIntent intent) { in connect()
3638 @NonNull private final RenderIntent mIntent;
3649 @NonNull RenderIntent intent) { in Connector()
3666 @NonNull RenderIntent intent, @Nullable @Size(3) float[] transform) { in Connector()
3681 @NonNull ColorSpace destination, @NonNull RenderIntent intent) { in computeTransform()
3682 if (intent != RenderIntent.ABSOLUTE) return null; in computeTransform()
[all …]

12