diff options
author | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2015-01-30 18:25:32 -0800 |
---|---|---|
committer | Ramkumar Radhakrishnan <ramkumar@codeaurora.org> | 2015-02-04 15:16:01 -0800 |
commit | 952081f9ede05cab4ae618369a1840f4bbc327c0 (patch) | |
tree | c0e0bb4920df90d82d5fec2779e4590ee1441f31 /libqservice | |
parent | 94c27a389be20787a4439ee94e3b907ac16b22bb (diff) | |
download | display-952081f9ede05cab4ae618369a1840f4bbc327c0.tar.gz |
sde: Add support for input and output layer dump
1. Add support to dump the input layers for all displays or each
display separately.
2. Add support to dump output layer for virtual display.
3. Add binder support to enable dump on each display, to enable dump
for input/output layers, and to set number of frames to be dumped.
Syntax:
adb shell "service call display.qservice 21 i32 <FRAME_COUNT> i32
<DISPLAY_TYPE> i32 <LAYER_TYPE>"
FRAME_COUNT = Number of frames to be dumped.
DISPLAY_TYPE = 1 -> To enable dump on primary display
2 -> To enable dump on hdmi display
4 -> To enable dump on virtual display
LAYER_TYPE = 1 -> To enable input layer dump
2 -> To enable output layer dump
To dump 2 frames of input and output layers on virtual display:
adb shell "service call display.qservice 21 i32 2 i32 4 i32 3"
Change-Id: Ifb3e6a7554e0012495f6f5858d6e32ff8fee6bec
Diffstat (limited to 'libqservice')
-rw-r--r-- | libqservice/IQService.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libqservice/IQService.h b/libqservice/IQService.h index e5fc2a81..cd2d1165 100644 --- a/libqservice/IQService.h +++ b/libqservice/IQService.h @@ -59,6 +59,7 @@ public: CONFIGURE_DYN_REFRESH_RATE = 18, SET_PARTIAL_UPDATE = 19, // Preference on partial update feature TOGGLE_SCREEN_UPDATE = 20, // Provides ability to disable screen updates + SET_FRAME_DUMP_CONFIG = 21, // Provides ability to set the frame dump config COMMAND_LIST_END = 400, }; @@ -77,6 +78,12 @@ public: DEBUG_ROTATOR, }; + enum { + DUMP_PRIMARY_DISPLAY, + DUMP_HDMI_DISPLAY, + DUMP_VIRTUAL_DISPLAY, + }; + // Register a client that can be notified virtual void connect(const android::sp<qClient::IQClient>& client) = 0; // Generic function to dispatch binder commands |