summaryrefslogtreecommitdiff
path: root/libqservice
diff options
context:
space:
mode:
authorSaurabh Shah <saurshah@codeaurora.org>2015-02-10 15:37:39 -0800
committerSaurabh Shah <saurshah@codeaurora.org>2015-03-09 14:50:01 -0700
commit90c55cfcf8ff05a6355c7dfe4bd89d9d733f4a04 (patch)
tree955245a75e75f5c9ad982077d10d8b5ae2d73da6 /libqservice
parent8557548cfbac61c7257aa01fbd578439869bcc68 (diff)
downloaddisplay-90c55cfcf8ff05a6355c7dfe4bd89d9d733f4a04.tar.gz
hwc: Add support for panel resolution switch
Add support for panel resolution switch. This feature makes use of the Linux modedb feature that lists available modes in /sys/class/graphics/fb0/modes and accepts a mode change when written to /sys/class/graphics/fb0/mode Clients can link to APIs exposed in display_config.h, these internally resolve to binder calls into HWC. For debugging, mode changes can be made over binder using shell commands. adb shell service call display.qservice CODE ARGS ARGS can include config index and display (only primary supported) setActiveConfig(): adb shell service call display.qservice 25 i32 INDEX i32 0 getActiveConfig(): adb shell service call display.qservice 26 i32 0 getConfigCount(): adb shell service call display.qservice 27 i32 0 getDisplayAttributes(): adb shell service call display.qservice 28 i32 INDEX i32 0 Change-Id: I97d34cc9c0e521a3bd5c948eeea6d1e07db7b7ff
Diffstat (limited to 'libqservice')
-rw-r--r--libqservice/IQService.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libqservice/IQService.h b/libqservice/IQService.h
index 78cbd2ae..8c63f1fd 100644
--- a/libqservice/IQService.h
+++ b/libqservice/IQService.h
@@ -63,6 +63,10 @@ public:
SET_FRAME_DUMP_CONFIG = 21, // Provides ability to set the frame dump config
SET_S3D_MODE = 22, // Set the 3D mode as specified in msm_hdmi_modes.h
CONNECT_HDMI_CLIENT = 23, // Connect HDMI CEC HAL Client
+ SET_ACTIVE_CONFIG = 25, //Set a specified display config
+ GET_ACTIVE_CONFIG = 26, //Get the current config index
+ GET_CONFIG_COUNT = 27, //Get the number of supported display configs
+ GET_DISPLAY_ATTRIBUTES_FOR_CONFIG = 28, //Get attr for specified config
COMMAND_LIST_END = 400,
};