sdm: Support ControlPartialUpdate api in libqdutils

Implement CONTROL_PARTIAL_UPDATE binder support. DPSS module
use this api to control partial update feature.

Remove support for sdm.partial_update property as it is no
longer applicable.

Change-Id: Ib463aff0042dcfc0d0b2f296b54016b1ee70115d
diff --git a/libqdutils/display_config.cpp b/libqdutils/display_config.cpp
index 3941137..7849d7f 100644
--- a/libqdutils/display_config.cpp
+++ b/libqdutils/display_config.cpp
@@ -286,7 +286,26 @@
 // Screen refresh for native daemons linking dynamically to libqdutils
 // ----------------------------------------------------------------------------
 extern "C" int refreshScreen() {
-  int ret = 0;
-  ret = screenRefresh();
-  return ret;
+    int ret = 0;
+    ret = screenRefresh();
+    return ret;
 }
+
+extern "C" int controlPartialUpdate(int dpy, int mode) {
+    status_t err = (status_t) FAILED_TRANSACTION;
+    sp<IQService> binder = getBinder();
+    if(binder != NULL) {
+        Parcel inParcel, outParcel;
+        inParcel.writeInt32(dpy);
+        inParcel.writeInt32(mode);
+        err = binder->dispatch(IQService::CONTROL_PARTIAL_UPDATE, &inParcel, &outParcel);
+        if(err != 0) {
+            ALOGE("%s() failed with err %d", __FUNCTION__, err);
+        } else {
+            return outParcel.readInt32();
+        }
+    }
+
+    return err;
+}
+