diff options
author | Tatenda Chipeperekwa <tatendac@codeaurora.org> | 2015-08-24 15:10:56 -0700 |
---|---|---|
committer | Tatenda Chipeperekwa <tatendac@codeaurora.org> | 2015-09-02 11:43:54 -0700 |
commit | f51c5995133b5e48d30b00952599d51f49b1708f (patch) | |
tree | ede03e7fb384d64c2ad1cc46b330fd23e034e8e1 /libqservice | |
parent | 57265ee8cc5b88edc174e15796f7e087d0f3febc (diff) | |
download | display-f51c5995133b5e48d30b00952599d51f49b1708f.tar.gz |
sdm: Add support to enable/disable screen updates
- Add support to enable/disable screen updates.
- Remove redundant updating of backlight value in HWC wrapper.
CRs-Fixed: 888000
Change-Id: Idddf2ebadb200fe205bd29b36d3fe145f35c0d38
Diffstat (limited to 'libqservice')
-rw-r--r-- | libqservice/IQService.h | 6 | ||||
-rw-r--r-- | libqservice/QServiceUtils.h | 11 |
2 files changed, 4 insertions, 13 deletions
diff --git a/libqservice/IQService.h b/libqservice/IQService.h index df8e2359..422ddb21 100644 --- a/libqservice/IQService.h +++ b/libqservice/IQService.h @@ -40,8 +40,8 @@ public: DECLARE_META_INTERFACE(QService); enum { COMMAND_LIST_START = android::IBinder::FIRST_CALL_TRANSACTION, - SECURING = 2, // Hardware securing start/end notification - UNSECURING = 3, // Hardware unsecuring start/end notification + GET_PANEL_BRIGHTNESS = 2, // Provides ability to set the panel brightness + SET_PANEL_BRIGHTNESS = 3, // Provides ability to get the panel brightness CONNECT_HWC_CLIENT = 4, // Connect to qservice SCREEN_REFRESH = 5, // Refresh screen through SF invalidate EXTERNAL_ORIENTATION = 6,// Set external orientation @@ -59,7 +59,7 @@ public: /* Enable/Disable/Set refresh rate dynamically */ CONFIGURE_DYN_REFRESH_RATE = 18, CONTROL_PARTIAL_UPDATE = 19, // Provides ability to enable/disable partial update - CONTROL_BACKLIGHT = 20, // Provides ability to control backlight + TOGGLE_SCREEN_UPDATES = 20, // Provides ability to set the panel brightness 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 diff --git a/libqservice/QServiceUtils.h b/libqservice/QServiceUtils.h index fbad484b..73b2b181 100644 --- a/libqservice/QServiceUtils.h +++ b/libqservice/QServiceUtils.h @@ -62,21 +62,12 @@ inline android::status_t sendSingleParam(uint32_t command, uint32_t value) { // ---------------------------------------------------------------------------- // Convenience wrappers that clients can call // ---------------------------------------------------------------------------- -inline android::status_t securing(uint32_t startEnd) { - return sendSingleParam(qService::IQService::SECURING, startEnd); -} - -inline android::status_t unsecuring(uint32_t startEnd) { - return sendSingleParam(qService::IQService::UNSECURING, startEnd); -} - inline android::status_t screenRefresh() { return sendSingleParam(qService::IQService::SCREEN_REFRESH, 1); } -// TODO(user): Need to rename this wrapper name inline android::status_t toggleScreenUpdate(uint32_t on) { - return sendSingleParam(qService::IQService::CONTROL_BACKLIGHT, on); + return sendSingleParam(qService::IQService::TOGGLE_SCREEN_UPDATES, on); } inline android::status_t setExtOrientation(uint32_t orientation) { |