/hardware/qcom/display/msm8909/sdm/libs/core/ |
D | display_base.h | 94 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr); 95 virtual DisplayError SetColorMode(const std::string &color_mode); 97 virtual DisplayError GetDefaultColorMode(std::string *color_mode); 135 DisplayError SetColorModeInternal(const std::string &color_mode); 138 DisplayError GetHdrColorMode(std::string *color_mode, bool *found_hdr); 139 bool IsSupportColorModeAttribute(const std::string &color_mode);
|
D | display_base.cpp | 735 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument 745 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr() 747 DLOGE("Failed: Mode %s without attribute", color_mode.c_str()); in GetColorModeAttr() 755 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 762 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode() 763 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode() 772 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode() 781 error = SetColorModeInternal(color_mode); in SetColorMode() 787 current_color_mode_ = color_mode; in SetColorMode() 796 error = SetColorModeInternal(color_mode); in SetColorMode() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/ |
D | display_base.h | 97 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr); 98 virtual DisplayError SetColorMode(const std::string &color_mode); 100 virtual DisplayError GetDefaultColorMode(std::string *color_mode); 135 DisplayError SetColorModeInternal(const std::string &color_mode); 138 DisplayError GetHdrColorMode(std::string *color_mode, bool *found_hdr); 139 bool IsSupportColorModeAttribute(const std::string &color_mode);
|
D | display_base.cpp | 713 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument 723 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr() 725 DLOGE("Failed: Mode %s without attribute", color_mode.c_str()); in GetColorModeAttr() 733 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 740 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode() 741 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode() 750 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode() 759 error = SetColorModeInternal(color_mode); in SetColorMode() 765 current_color_mode_ = color_mode; in SetColorMode() 774 error = SetColorModeInternal(color_mode); in SetColorMode() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/core/ |
D | display_base.h | 96 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr); 97 virtual DisplayError SetColorMode(const std::string &color_mode); 100 virtual DisplayError GetDefaultColorMode(std::string *color_mode); 135 DisplayError SetColorModeInternal(const std::string &color_mode); 138 DisplayError GetHdrColorMode(std::string *color_mode, bool *found_hdr); 139 bool IsSupportColorModeAttribute(const std::string &color_mode);
|
D | display_base.cpp | 733 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument 743 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr() 745 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr() 753 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 760 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode() 761 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode() 770 if (color_mode.find("hal_hdr") != std::string::npos) { in SetColorMode() 779 error = SetColorModeInternal(color_mode); in SetColorMode() 785 current_color_mode_ = color_mode; in SetColorMode() 794 error = SetColorModeInternal(color_mode); in SetColorMode() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/core/ |
D | display_base.h | 94 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr); 95 virtual DisplayError SetColorMode(const std::string &color_mode); 98 virtual DisplayError GetDefaultColorMode(std::string *color_mode); 139 DisplayError SetColorModeInternal(const std::string &color_mode); 142 bool IsSupportColorModeAttribute(const std::string &color_mode);
|
D | display_base.cpp | 783 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument 793 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr() 795 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr() 803 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 810 error = SetColorModeInternal(color_mode); in SetColorMode() 816 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode() 817 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode() 823 current_color_mode_ = color_mode; in SetColorMode() 831 DisplayError DisplayBase::SetColorModeInternal(const std::string &color_mode) { in SetColorModeInternal() argument 832 DLOGV_IF(kTagQDCM, "Color Mode = %s", color_mode.c_str()); in SetColorModeInternal() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/core/ |
D | display_base.h | 108 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr); 109 virtual DisplayError SetColorMode(const std::string &color_mode); 113 virtual DisplayError GetDefaultColorMode(std::string *color_mode); 170 DisplayError SetColorModeInternal(const std::string &color_mode); 173 bool IsSupportColorModeAttribute(const std::string &color_mode);
|
D | display_pluggable.cpp | 393 DisplayError DisplayPluggable::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 394 auto current_color_attr_ = color_mode_attr_map_.find(color_mode); in SetColorMode() 396 DLOGE("Failed to get the color mode = %s", color_mode.c_str()); in SetColorMode() 418 current_color_mode_ = color_mode; in SetColorMode() 450 DisplayError DisplayPluggable::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument 456 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr() 458 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr()
|
D | display_pluggable.h | 52 virtual DisplayError SetColorMode(const std::string &color_mode); 55 virtual DisplayError GetColorModeAttr(const std::string &color_mode, AttrVal *attr);
|
D | display_base.cpp | 900 DisplayError DisplayBase::GetColorModeAttr(const std::string &color_mode, AttrVal *attr) { in GetColorModeAttr() argument 910 auto it = color_mode_attr_map_.find(color_mode); in GetColorModeAttr() 912 DLOGI("Mode %s has no attribute", color_mode.c_str()); in GetColorModeAttr() 920 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 927 error = SetColorModeInternal(color_mode); in SetColorMode() 933 if (IsSupportColorModeAttribute(color_mode)) { in SetColorMode() 934 auto it_mode = color_mode_attr_map_.find(color_mode); in SetColorMode() 940 current_color_mode_ = color_mode; in SetColorMode() 955 DisplayError DisplayBase::SetColorModeInternal(const std::string &color_mode) { in SetColorModeInternal() argument 956 DLOGV_IF(kTagQDCM, "Color Mode = %s", color_mode.c_str()); in SetColorModeInternal() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/include/core/ |
D | display_interface.h | 540 virtual DisplayError GetColorModeAttr(const std::string &color_mode, 549 virtual DisplayError SetColorMode(const std::string &color_mode) = 0; 566 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
|
/hardware/qcom/display/msm8909/sdm/include/core/ |
D | display_interface.h | 532 virtual DisplayError GetColorModeAttr(const std::string &color_mode, 541 virtual DisplayError SetColorMode(const std::string &color_mode) = 0; 558 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
|
/hardware/qcom/display/msm8998/sdm/include/core/ |
D | display_interface.h | 532 virtual DisplayError GetColorModeAttr(const std::string &color_mode, 541 virtual DisplayError SetColorMode(const std::string &color_mode) = 0; 565 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
|
/hardware/qcom/sdm845/display/sdm/include/core/ |
D | display_interface.h | 540 virtual DisplayError GetColorModeAttr(const std::string &color_mode, 549 virtual DisplayError SetColorMode(const std::string &color_mode) = 0; 573 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
|
/hardware/qcom/sm8150/display/sdm/include/core/ |
D | display_interface.h | 587 virtual DisplayError GetColorModeAttr(const std::string &color_mode, 596 virtual DisplayError SetColorMode(const std::string &color_mode) = 0; 630 virtual DisplayError GetDefaultColorMode(std::string *color_mode) = 0;
|
/hardware/qcom/display/msm8998/sdm/libs/hwc2/ |
D | hwc_display.cpp | 265 const std::string &color_mode, in PopulateTransform() argument 269 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform() 273 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform() 275 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform() 277 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform() 279 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform() 281 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform() 283 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform() 288 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local 290 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/ |
D | hwc_display.cpp | 262 const std::string &color_mode, in PopulateTransform() argument 266 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform() 270 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform() 272 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform() 274 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform() 276 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform() 278 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform() 280 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform() 285 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local 287 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
D | hwc_display.cpp | 273 const std::string &color_mode, in PopulateTransform() argument 277 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform() 281 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_VALUE_INVERSE] = color_mode; in PopulateTransform() 283 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_GRAYSCALE] = color_mode; in PopulateTransform() 285 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_PROTANOPIA] = color_mode; in PopulateTransform() 287 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_DEUTERANOPIA] = color_mode; in PopulateTransform() 289 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_CORRECT_TRITANOPIA] = color_mode; in PopulateTransform() 291 color_mode_transform_map_[mode][HAL_COLOR_TRANSFORM_IDENTITY] = color_mode; in PopulateTransform() 296 android_color_mode_t color_mode = HAL_COLOR_MODE_NATIVE; in ApplyDefaultColorMode() local 298 color_mode = color_mode_transform_map_.begin()->first; in ApplyDefaultColorMode() [all …]
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
D | hwc_display.cpp | 69 int HWCColorMode::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 76 color_mode); in SetColorMode() 78 DLOGE("Invalid colorMode request: %s", color_mode.c_str()); in SetColorMode() 82 DisplayError error = display_intf_->SetColorMode(color_mode); in SetColorMode() 84 DLOGE("Failed to set color_mode = %s", color_mode.c_str()); in SetColorMode() 87 current_color_mode_ = color_mode; in SetColorMode()
|
/hardware/qcom/display/msm8909/sdm/libs/hwc/ |
D | hwc_display.cpp | 69 int HWCColorMode::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 76 color_mode); in SetColorMode() 78 DLOGE("Invalid colorMode request: %s", color_mode.c_str()); in SetColorMode() 82 DisplayError error = display_intf_->SetColorMode(color_mode); in SetColorMode() 84 DLOGE("Failed to set color_mode = %s", color_mode.c_str()); in SetColorMode() 87 current_color_mode_ = color_mode; in SetColorMode()
|
/hardware/qcom/display/msm8996/sdm/include/core/ |
D | display_interface.h | 501 virtual DisplayError SetColorMode(const std::string &color_mode) = 0;
|
/hardware/qcom/display/msm8996/sdm/libs/core/ |
D | display_base.h | 98 virtual DisplayError SetColorMode(const std::string &color_mode);
|
D | display_base.cpp | 765 DisplayError DisplayBase::SetColorMode(const std::string &color_mode) { in SetColorMode() argument 771 DLOGV_IF(kTagQDCM, "Color Mode = %s", color_mode.c_str()); in SetColorMode() 773 ColorModeMap::iterator it = color_mode_map_.find(color_mode); in SetColorMode() 775 DLOGE("Failed: Unknown Mode : %s", color_mode.c_str()); in SetColorMode()
|