replicant-frameworks_native/include
Prashant Malani 2c9b11f029 surfaceflinger: Replace blank/unblank with setPowerMode
We replace the blank/unblank calls in surfaceFlinger with a more generic
setPowerMode() routine.

Some displays support different power modes (for example, with reduced
color palettes). Depending on the use case we should be able to toggle
these modes, so as to achieve incremental power savings.

Initially, three power modes will be supported:
- HWC_POWER_MODE_OFF
- HWC_POWER_MODE_DOZE
- HWC_POWER_MODE_NORMAL

HWC_POWER_MODE_OFF will correspond to blanking the display, while
HWC_POWER_MODE_NORMAL will correspond to unblanking. HWC_POWER_MODE_DOZE
will put the display into a low power setting, if it is supported in
hardware.

If such a low power mode is not supported, it should be treated as a
call to set the mode to HWC_POWER_MODE_NORMAL.

As a consequence of adding the mPowerMode field, the mScreenAcquired is
no longer required, and thus references to it are removed and replaced
equivalent references to mPowerMode.

We also add the glue code to connect the services invocation of setting
a power mode and the HAL implementation in HWComposer.

Bug: 13472578
Change-Id: I431595ecf16d2f2c94259272db3dd42f29636204
Signed-off-by: Prashant Malani <pmalani@google.com>
2014-06-05 16:35:52 -07:00
..
android am b3a65bb0: am 9dcd38ad: Merge "Add heart rate to ASensorEvent" into klp-modular-dev 2014-05-27 18:14:51 +00:00
batteryservice BatteryProperty: Add property ENERGY_COUNTER and 64-bit integer properties 2014-05-16 03:05:11 +00:00
binder Merge commit '6d05ef2310bdc84811d5b0385b009ad11447a749' into HEAD 2014-04-29 11:34:19 -07:00
diskusage More changes to fix PDK build: 2012-10-24 12:30:41 -07:00
gui surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
input Merge "Support VIRTUAL flag in keyboard layouts." 2014-05-21 02:34:36 +00:00
media Allow OMX pointer types to be forced to 32 bits 2014-05-07 11:12:34 -07:00
powermanager PowerManager: add powerHint binder method 2014-04-02 21:24:01 +00:00
private Allow "opaque" flag to be updated. DO NOT MERGE 2014-02-18 15:55:42 -08:00
ui am 38c9e132: am c1ffd351: am bd20e551: Merge "Use asynchronous lock/unlock API" 2014-05-12 18:18:47 +00:00