drm_hwcomposer: Move properties into vendor namespace
... to fix VTS VtsTrebleSysProp#testVendorPropertyNames.
Signed-off-by: Jason Macnak <natsu@google.com>
diff --git a/drm/drmdevice.cpp b/drm/drmdevice.cpp
index bef41d8..d7fd2f2 100644
--- a/drm/drmdevice.cpp
+++ b/drm/drmdevice.cpp
@@ -59,7 +59,7 @@
static std::vector<std::string> read_primary_display_order_prop() {
std::array<char, PROPERTY_VALUE_MAX> display_order_buf;
- property_get("hwc.drm.primary_display_order", display_order_buf.data(),
+ property_get("vendor.hwc.drm.primary_display_order", display_order_buf.data(),
"...");
std::vector<std::string> display_order;
@@ -254,7 +254,7 @@
}
// Primary display priority:
- // 1) hwc.drm.primary_display_order property
+ // 1) vendor.hwc.drm.primary_display_order property
// 2) internal connectors
// 3) anything else
std::vector<DrmConnector *>
@@ -267,8 +267,8 @@
found_primary = true;
} else {
ALOGE(
- "Failed to find primary display from \"hwc.drm.primary_display_order\" "
- "property");
+ "Failed to find primary display from "
+ "\"vendor.hwc.drm.primary_display_order\" property");
}
// If no priority display were found then pick first available as primary and
diff --git a/drm/resourcemanager.cpp b/drm/resourcemanager.cpp
index 382a85a..986d4ab 100644
--- a/drm/resourcemanager.cpp
+++ b/drm/resourcemanager.cpp
@@ -33,7 +33,8 @@
char path_pattern[PROPERTY_VALUE_MAX];
// Could be a valid path or it can have at the end of it the wildcard %
// which means that it will try open all devices until an error is met.
- int path_len = property_get("hwc.drm.device", path_pattern, "/dev/dri/card%");
+ int path_len = property_get("vendor.hwc.drm.device", path_pattern,
+ "/dev/dri/card%");
int ret = 0;
if (path_pattern[path_len - 1] != '%') {
ret = AddDrmDevice(std::string(path_pattern));
@@ -58,7 +59,7 @@
}
char scale_with_gpu[PROPERTY_VALUE_MAX];
- property_get("hwc.drm.scale_with_gpu", scale_with_gpu, "0");
+ property_get("vendor.hwc.drm.scale_with_gpu", scale_with_gpu, "0");
scale_with_gpu_ = bool(strncmp(scale_with_gpu, "0", 1));
return hw_get_module(GRALLOC_HARDWARE_MODULE_ID,