summaryrefslogtreecommitdiffstats
path: root/sdm
diff options
context:
space:
mode:
authorUday Kiran Pichika <pichika@codeaurora.org>2018-03-19 14:29:49 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-22 02:23:28 -0700
commit2fc16924f48e3a8a12fe2eb9fdbedbdaf832a9a8 (patch)
treeaa55590630ddabd651b257c07b4ca3537e16e125 /sdm
parent1af9fe4f0adee856f5e2527700d96baeb948db8a (diff)
downloadandroid_hardware_qcom_sdm710_display-2fc16924f48e3a8a12fe2eb9fdbedbdaf832a9a8.tar.gz
android_hardware_qcom_sdm710_display-2fc16924f48e3a8a12fe2eb9fdbedbdaf832a9a8.tar.bz2
android_hardware_qcom_sdm710_display-2fc16924f48e3a8a12fe2eb9fdbedbdaf832a9a8.zip
sdm: comply with treble guidelines
Modify the property names and use macros in place of them CRs-Fixed: 2206249 Change-Id: I0ccc09fc8335560654e487e78552f79ff7a083de
Diffstat (limited to 'sdm')
-rw-r--r--sdm/include/utils/debug.h1
-rw-r--r--sdm/libs/core/display_base.cpp2
-rw-r--r--sdm/libs/hwc2/hwc_display.cpp2
-rw-r--r--sdm/libs/hwc2/hwc_display_primary.cpp3
-rw-r--r--sdm/libs/hwc2/hwc_tonemapper.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/sdm/include/utils/debug.h b/sdm/include/utils/debug.h
index d5974d9d..73ab8cba 100644
--- a/sdm/include/utils/debug.h
+++ b/sdm/include/utils/debug.h
@@ -34,6 +34,7 @@
#include <core/sdm_types.h>
#include <core/debug_interface.h>
#include <core/display_interface.h>
+#include <display_properties.h>
#define DLOG(tag, method, format, ...) Debug::Get()->method(tag, __CLASS__ "::%s: " format, \
__FUNCTION__, ##__VA_ARGS__)
diff --git a/sdm/libs/core/display_base.cpp b/sdm/libs/core/display_base.cpp
index 3bb34414..29050f3c 100644
--- a/sdm/libs/core/display_base.cpp
+++ b/sdm/libs/core/display_base.cpp
@@ -114,7 +114,7 @@ DisplayError DisplayBase::Init() {
DisplayBase::SetMaxMixerStages(max_mixer_stages);
}
- Debug::Get()->GetProperty("sdm.disable_hdr_lut_gen", &disable_hdr_lut_gen_);
+ Debug::Get()->GetProperty(DISABLE_HDR_LUT_GEN, &disable_hdr_lut_gen_);
// TODO(user): Temporary changes, to be removed when DRM driver supports
// Partial update with Destination scaler enabled.
SetPUonDestScaler();
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp
index 2cf9af1d..e32a7267 100644
--- a/sdm/libs/hwc2/hwc_display.cpp
+++ b/sdm/libs/hwc2/hwc_display.cpp
@@ -364,7 +364,7 @@ int HWCDisplay::Init() {
}
validated_ = false;
- HWCDebugHandler::Get()->GetProperty("sys.hwc_disable_hdr", &disable_hdr_handling_);
+ HWCDebugHandler::Get()->GetProperty(DISABLE_HDR, &disable_hdr_handling_);
if (disable_hdr_handling_) {
DLOGI("HDR Handling disabled");
}
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp
index 6149831d..b6b38b45 100644
--- a/sdm/libs/hwc2/hwc_display_primary.cpp
+++ b/sdm/libs/hwc2/hwc_display_primary.cpp
@@ -113,8 +113,7 @@ int HWCDisplayPrimary::Init() {
}
color_mode_ = new HWCColorMode(display_intf_);
color_mode_->Init();
- HWCDebugHandler::Get()->GetProperty("vendor.display.enable_default_color_mode",
- &default_mode_status_);
+ HWCDebugHandler::Get()->GetProperty(ENABLE_DEFAULT_COLOR_MODE, &default_mode_status_);
return status;
}
diff --git a/sdm/libs/hwc2/hwc_tonemapper.cpp b/sdm/libs/hwc2/hwc_tonemapper.cpp
index 2ae1afc1..22896f94 100644
--- a/sdm/libs/hwc2/hwc_tonemapper.cpp
+++ b/sdm/libs/hwc2/hwc_tonemapper.cpp
@@ -333,7 +333,7 @@ void HWCToneMapper::DumpToneMapOutput(ToneMapSession *session, int *acquire_fd)
DisplayError HWCToneMapper::AcquireToneMapSession(Layer *layer, uint32_t *session_index,
PrimariesTransfer blend_cs) {
- // When the property sdm.disable_hdr_lut_gen is set, the lutEntries and gridEntries in
+ // When the property vendor.display.disable_hdr_lut_gen is set, the lutEntries and gridEntries in
// the Lut3d will be NULL, clients needs to allocate the memory and set correct 3D Lut
// for Tonemapping.
if (!layer->lut_3d.lutEntries || !layer->lut_3d.dim) {