OSDN Git Service

hardware: Power HAL: Add POWER_HINT_INTERACTION
authorTodd Poynor <toddpoynor@google.com>
Thu, 3 May 2012 21:49:02 +0000 (14:49 -0700)
committerTodd Poynor <toddpoynor@google.com>
Thu, 3 May 2012 23:04:41 +0000 (16:04 -0700)
Change-Id: I9b2c29eadc60e2bea2f01b3925ad6a8539ec2655

include/hardware/power.h

index d6a84ed..6c55061 100644 (file)
@@ -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