/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
H A D | DisplayColorProfileTest.cpp | 37 using ui::RenderIntent; 40 constexpr RenderIntent VendorRenderIntent = static_cast<RenderIntent>(0x100); 326 EXPECT_FALSE(profile.hasRenderIntent(RenderIntent::ENHANCE)); in TEST_F() 336 EXPECT_TRUE(profile.hasRenderIntent(RenderIntent::ENHANCE)); in TEST_F() 346 EXPECT_TRUE(profile.hasRenderIntent(RenderIntent::ENHANCE)); in TEST_F() 356 EXPECT_FALSE(profile.hasRenderIntent(RenderIntent::ENHANCE)); in TEST_F() 403 using ArgsType = std::tuple<Dataspace, RenderIntent>; in checkGetBestColorMode() 437 std::tuple<Dataspace, ColorMode, RenderIntent> actual; in checkGetBestColorMode() 450 using Result = std::tuple<Dataspace, ColorMode, RenderIntent>; in TEST_F() 484 using Result = std::tuple<Dataspace, ColorMode, RenderIntent>; in TEST_F() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | DisplayDevice_GetBestColorModeTest.cpp | 28 using hal::RenderIntent; 61 ui::RenderIntent mOutRenderIntent; 65 ui::RenderIntent mInputRenderIntent; 72 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F() 74 setInputRenderIntent(ui::RenderIntent::COLORIMETRIC); in TEST_F() 86 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F() 88 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F() 90 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F() 92 setInputRenderIntent(ui::RenderIntent::COLORIMETRIC); in TEST_F() 104 std::vector<ui::RenderIntent>(1, RenderIntent::COLORIMETRIC)); in TEST_F() [all …]
|
H A D | SurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp | 27 using hal::RenderIntent; 51 std::vector<RenderIntent>({RenderIntent::COLORIMETRIC})), in setupComposerCallExpectations() 55 RenderIntent::COLORIMETRIC)) in setupComposerCallExpectations()
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
H A D | DisplayColorProfile.cpp | 40 using ui::RenderIntent; 57 RenderIntent::ENHANCE, 58 RenderIntent::COLORIMETRIC, 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() 171 RenderIntent getHwcRenderIntent(const std::vector<RenderIntent>& hwcIntents, RenderIntent intent) { in getHwcRenderIntent() 181 return RenderIntent::COLORIMETRIC; in getHwcRenderIntent() 317 const RenderIntent intent) { in addColorMode() [all …]
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
H A D | DisplayColorProfile.h | 41 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()
|
H A D | OutputCompositionState.h | 111 ui::RenderIntent renderIntent{ui::RenderIntent::COLORIMETRIC};
|
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/ |
H A D | HwcHal.h | 40 using common::V1_1::RenderIntent; 174 std::vector<RenderIntent>* outIntents) override { in getRenderIntents() 184 *outIntents = std::vector<RenderIntent>({RenderIntent::COLORIMETRIC}); in getRenderIntents() 195 std::vector<RenderIntent> intents(count); in getRenderIntents() 198 reinterpret_cast<std::underlying_type<RenderIntent>::type*>(intents.data())); in getRenderIntents() 208 Error setColorMode_2_2(Display display, ColorMode mode, RenderIntent intent) override { in setColorMode_2_2() 210 if (intent < RenderIntent::COLORIMETRIC || intent > RenderIntent::TONE_MAP_ENHANCE) { in setColorMode_2_2() 213 if (intent != RenderIntent::COLORIMETRIC) { in setColorMode_2_2()
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
H A D | DisplayColorProfile.h | 32 MOCK_CONST_METHOD1(hasRenderIntent, bool(ui::RenderIntent)); 35 void(ui::Dataspace, ui::RenderIntent, ui::Dataspace*, ui::ColorMode*, 36 ui::RenderIntent*));
|
/aosp12/frameworks/native/libs/ui/ |
H A D | DebugUtils.cpp | 28 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()
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
H A D | DisplayColorProfile.h | 55 virtual bool hasRenderIntent(ui::RenderIntent) const = 0; 62 virtual void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent, 64 ui::RenderIntent* outIntent) const = 0;
|
/aosp12/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
H A D | hwc_display.h | 47 using android::hardware::graphics::common::V1_1::RenderIntent; 85 HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 92 HWC2::Error CacheColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 93 RenderIntent GetCurrentRenderIntent() { return current_render_intent_; } in GetCurrentRenderIntent() 104 HWC2::Error ValidateColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 111 RenderIntent current_render_intent_ = RenderIntent::COLORIMETRIC; 114 typedef std::map<RenderIntent, DynamicRangeMap> RenderIntentMap; 245 RenderIntent GetCurrentRenderIntent() { in GetCurrentRenderIntent() 246 return (color_mode_ ? color_mode_->GetCurrentRenderIntent() : RenderIntent::COLORIMETRIC); in GetCurrentRenderIntent() 270 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent() [all …]
|
H A D | hwc_display_pluggable.h | 54 RenderIntent *out_intents); 56 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
|
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/ |
H A D | ComposerHal.h | 34 using common::V1_1::RenderIntent; 64 return setColorMode_2_2(display, static_cast<ColorMode>(mode), RenderIntent::COLORIMETRIC); in setColorMode() 89 std::vector<RenderIntent>* outIntents) = 0; 90 virtual Error setColorMode_2_2(Display display, ColorMode mode, RenderIntent intent) = 0;
|
/aosp12/hardware/interfaces/graphics/composer/2.2/vts/functional/ |
H A D | VtsHalGraphicsComposerV2_2TargetTest.cpp | 42 using common::V1_1::RenderIntent; 591 std::vector<RenderIntent> intents = in TEST_P() 604 RenderIntent requiredIntent = in TEST_P() 605 isHdr ? RenderIntent::TONE_MAP_COLORIMETRIC : RenderIntent::COLORIMETRIC; in TEST_P() 645 std::vector<RenderIntent> intents = in TEST_P() 652 mComposerClient->setColorMode(mPrimaryDisplay, ColorMode::NATIVE, RenderIntent::COLORIMETRIC); in TEST_P() 663 RenderIntent::COLORIMETRIC); in TEST_P() 676 mPrimaryDisplay, static_cast<ColorMode>(-1), RenderIntent::COLORIMETRIC); in TEST_P() 680 mPrimaryDisplay, ColorMode::NATIVE, static_cast<RenderIntent>(-1)); in TEST_P()
|
H A D | VtsHalGraphicsComposerV2_2ReadbackTest.cpp | 195 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 257 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 329 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 394 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 512 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 635 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 720 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 781 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 852 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() 1021 mComposerClient->setColorMode(mPrimaryDisplay, mode, RenderIntent::COLORIMETRIC)); in TEST_P() [all …]
|
/aosp12/hardware/interfaces/graphics/composer/2.3/vts/functional/ |
H A D | VtsHalGraphicsComposerV2_3TargetTest.cpp | 42 using common::V1_1::RenderIntent; 332 std::vector<RenderIntent> intents = in TEST_P() 345 RenderIntent requiredIntent = in TEST_P() 346 isHdr ? RenderIntent::TONE_MAP_COLORIMETRIC : RenderIntent::COLORIMETRIC; in TEST_P() 408 std::vector<RenderIntent> intents = in TEST_P() 417 RenderIntent::COLORIMETRIC)); in TEST_P() 428 RenderIntent::COLORIMETRIC); in TEST_P() 441 mPrimaryDisplay, static_cast<ColorMode>(-1), RenderIntent::COLORIMETRIC); in TEST_P() 445 mPrimaryDisplay, ColorMode::NATIVE, static_cast<RenderIntent>(-1)); in TEST_P()
|
/aosp12/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/ |
H A D | ComposerHal.h | 28 using common::V1_1::RenderIntent; 46 RenderIntent intent) override { in setColorMode_2_2() 85 virtual Error setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) = 0; 88 std::vector<RenderIntent>* outIntents) = 0;
|
/aosp12/hardware/google/graphics/common/include/displaycolor/ |
H A D | displaycolor.h | 28 using android::hardware::graphics::common::V1_1::RenderIntent; 64 using ColorModesMap = std::map<hwc::ColorMode, std::vector<hwc::RenderIntent>>; 241 hwc::RenderIntent render_intent = hwc::RenderIntent::COLORIMETRIC;
|
/aosp12/hardware/interfaces/graphics/composer/2.3/utils/vts/include/composer-vts/2.3/ |
H A D | ComposerVts.h | 34 using common::V1_1::RenderIntent; 83 void setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent); 85 std::vector<RenderIntent> getRenderIntents_2_3(Display display, ColorMode mode);
|
/aosp12/hardware/qcom/sdm845/display/sdm/libs/hwc2/ |
H A D | hwc_display.h | 44 using android::hardware::graphics::common::V1_1::RenderIntent; 168 HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, RenderIntent *out_modes); 169 HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 191 RenderIntent current_render_intent_ = RenderIntent::COLORIMETRIC; 192 typedef std::map<RenderIntent, std::string> RenderIntentMap; 321 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent() 345 RenderIntent *out_intents);
|
H A D | hwc_display.cpp | 88 RenderIntent *out_intents) { in GetRenderIntents() 171 if (current_render_intent_ == RenderIntent::ENHANCE) { in PickTransferMatrix() 382 auto intent = RenderIntent::COLORIMETRIC; in FindRenderIntent() 384 intent = RenderIntent::ENHANCE; in FindRenderIntent() 423 color_mode_map_[ColorMode::NATIVE][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes() 428 color_mode_map_[ColorMode::SRGB][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes() 431 color_mode_map_[ColorMode::SRGB][RenderIntent::ENHANCE] = mode_string; in PopulateColorModes() 451 color_mode_map_[ColorMode::NATIVE][RenderIntent::COLORIMETRIC] = mode_string; in PopulateColorModes() 486 return SetColorModeWithRenderIntent(color_mode, RenderIntent::COLORIMETRIC); in ApplyDefaultColorMode() 1027 RenderIntent *out_intents) { in GetRenderIntents() [all …]
|
/aosp12/hardware/interfaces/graphics/composer/2.2/utils/vts/include/composer-vts/2.2/ |
H A D | ComposerVts.h | 43 using common::V1_1::RenderIntent; 85 std::vector<RenderIntent> getRenderIntents(Display display, ColorMode mode); 86 void setColorMode(Display display, ColorMode mode, RenderIntent intent);
|
/aosp12/hardware/qcom/sm7250/display/composer/ |
H A D | hwc_display.h | 49 using android::hardware::graphics::common::V1_1::RenderIntent; 109 HWC2::Error GetRenderIntents(ColorMode mode, uint32_t *out_num_intents, RenderIntent *out_modes); 110 HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 117 HWC2::Error CacheColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 128 HWC2::Error ValidateColorModeWithRenderIntent(ColorMode mode, RenderIntent intent); 135 RenderIntent current_render_intent_ = RenderIntent::COLORIMETRIC; 138 typedef std::map<RenderIntent, DynamicRangeMap> RenderIntentMap; 318 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent) { in SetColorModeWithRenderIntent() 366 RenderIntent *out_intents);
|
H A D | hwc_display_pluggable.h | 54 RenderIntent *out_intents); 56 virtual HWC2::Error SetColorModeWithRenderIntent(ColorMode mode, RenderIntent intent);
|
/aosp12/hardware/interfaces/graphics/composer/2.3/utils/vts/ |
H A D | ComposerVts.cpp | 73 void ComposerClient::setColorMode_2_3(Display display, ColorMode mode, RenderIntent intent) { in setColorMode_2_3() 78 std::vector<RenderIntent> ComposerClient::getRenderIntents_2_3(Display display, ColorMode mode) { in getRenderIntents_2_3() 79 std::vector<RenderIntent> intents; in getRenderIntents_2_3()
|