Use std::string in DeviceProductInfo and serialize it as Flattenable
Use std::string instead of fixed size char arrays. Serialize
DeviceProductInfo and DisplayInfo as Flattenable instead of using
memcpy().
Bug: 145299597
Test: 1. m
2. adb shell dumpsys display
3. check that DeviceProductInfo is correctly populated
Change-Id: Id21186138b39d7bb167c41ff7ee9387081ac6285
diff --git a/libs/ui/Android.bp b/libs/ui/Android.bp
index 9f7f36f..3965cf0 100644
--- a/libs/ui/Android.bp
+++ b/libs/ui/Android.bp
@@ -46,7 +46,7 @@
apex_available: [
"//apex_available:anyapex",
- "//apex_available:platform",
+ "//apex_available:platform",
],
shared_libs: [
"libutils",
@@ -97,6 +97,8 @@
"BufferHubEventFd.cpp",
"BufferHubMetadata.cpp",
"DebugUtils.cpp",
+ "DeviceProductInfo.cpp",
+ "DisplayInfo.cpp",
"Fence.cpp",
"FenceTime.cpp",
"FrameStats.cpp",