sde: Add support to set the display mode of the primary display

The display mode for the primary display can be set to either
command or video mode if the target supports this.

Syntax:
  adb shell "service call display.qservice 29 i32 <DISPLAY_MODE>"

  DISPLAY_MODE = 1 -> Video
                 2 -> Command

Change-Id: Iadf4beea8959a90a0b18f8286a094bbbdf18358a
diff --git a/libqdutils/display_config.h b/libqdutils/display_config.h
index 6a66e9f..5ff0862 100644
--- a/libqdutils/display_config.h
+++ b/libqdutils/display_config.h
@@ -64,6 +64,12 @@
     SET_BINDER_DYN_REFRESH_RATE,
 };
 
+enum {
+    DEFAULT_MODE = 0,
+    VIDEO_MODE,
+    COMMAND_MODE,
+};
+
 // Display Attributes that are available to clients of this library
 // Not to be confused with a similar struct in hwc_utils (in the hwc namespace)
 typedef struct DisplayAttributes {
@@ -128,6 +134,9 @@
 // Only primary display supported for now, value of dpy ignored
 DisplayAttributes getDisplayAttributes(int configIndex, int dpy);
 
+// Set the primary display mode to command or video mode
+int setDisplayMode(int mode);
+
 //=============================================================================
 // The functions and methods below run in the context of HWC and
 // are called in response to binder calls from clients