diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2016-06-02 19:14:57 -0700 |
---|---|---|
committer | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2016-08-04 15:41:59 -0700 |
commit | 9d68cdf7f50c23dd5a7158771c71c294352881b8 (patch) | |
tree | 3aded0ab64f1b51a3747d9610d0fbe03414a08b7 /libqdutils/display_config.cpp | |
parent | 84fb13a94e3b3313870d5ca11725cbb74969427e (diff) | |
download | display-9d68cdf7f50c23dd5a7158771c71c294352881b8.tar.gz |
sdm: Add support to query display port information.
1. Add binder and display interface to query display port information.
2. Add permission for audio client to use display services.
CRs-Fixed: 1044314
Change-Id: I67a9549cd6e01e421534dcb139a2e39672873775
Diffstat (limited to 'libqdutils/display_config.cpp')
-rw-r--r-- | libqdutils/display_config.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libqdutils/display_config.cpp b/libqdutils/display_config.cpp index 3415ac68..c1335b1d 100644 --- a/libqdutils/display_config.cpp +++ b/libqdutils/display_config.cpp @@ -78,7 +78,7 @@ int getDisplayAttributes(int dpy, DisplayAttributes_t& dpyattr) { dpyattr.yres = outParcel.readInt32(); dpyattr.xdpi = outParcel.readFloat(); dpyattr.ydpi = outParcel.readFloat(); - dpyattr.panel_type = (char) outParcel.readInt32(); + dpyattr.panel_type = outParcel.readInt32(); } else { ALOGE("%s() failed with err %d", __FUNCTION__, err); } @@ -237,7 +237,7 @@ int setActiveConfig(int configIndex, int /*dpy*/) { } DisplayAttributes getDisplayAttributes(int configIndex, int /*dpy*/) { - DisplayAttributes dpyattr; + DisplayAttributes dpyattr = {}; sp<IQService> binder = getBinder(); if(binder != NULL) { Parcel inParcel, outParcel; @@ -252,7 +252,7 @@ DisplayAttributes getDisplayAttributes(int configIndex, int /*dpy*/) { dpyattr.yres = outParcel.readInt32(); dpyattr.xdpi = outParcel.readFloat(); dpyattr.ydpi = outParcel.readFloat(); - dpyattr.panel_type = (char) outParcel.readInt32(); + dpyattr.panel_type = outParcel.readInt32(); dpyattr.is_yuv = outParcel.readInt32(); ALOGI("%s() Received attrs for index %d: xres %d, yres %d", __FUNCTION__, configIndex, dpyattr.xres, dpyattr.yres); |