diff options
author | Todd Poynor <toddpoynor@google.com> | 2012-05-03 14:49:02 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2012-05-03 16:04:41 -0700 |
commit | bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8 (patch) | |
tree | 5c194b634e6516f2fd12dee4cf4714a8d91d0005 /include/hardware/power.h | |
parent | 6b7adef0ef38f568099eab38d6865f402c92235b (diff) | |
download | hardware_libhardware-bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8.zip hardware_libhardware-bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8.tar.gz hardware_libhardware-bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8.tar.bz2 |
hardware: Power HAL: Add POWER_HINT_INTERACTION
Change-Id: I9b2c29eadc60e2bea2f01b3925ad6a8539ec2655
Diffstat (limited to 'include/hardware/power.h')
-rw-r--r-- | include/hardware/power.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/hardware/power.h b/include/hardware/power.h index d6a84ed..6c55061 100644 --- a/include/hardware/power.h +++ b/include/hardware/power.h @@ -39,10 +39,8 @@ __BEGIN_DECLS */ typedef enum { - /* - * VSYNC pulse request from SurfaceFlinger started or stopped. - */ POWER_HINT_VSYNC = 0x00000001, + POWER_HINT_INTERACTION = 0x00000002, } power_hint_t; /** @@ -103,6 +101,13 @@ typedef struct power_module { * non-zero to indicate VSYNC pulse is now requested, or zero for * VSYNC pulse no longer requested. * + * POWER_HINT_INTERACTION + * + * User is interacting with the device, for example, touchscreen + * events are incoming. CPU and GPU load may be expected soon, + * and it may be appropriate to raise speeds of CPU, memory bus, + * etc. The data parameter is unused. + * * A particular platform may choose to ignore any hint. * * availability: version 0.2 |