replicant-frameworks_native/include/gui
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
..
BitTube.h fix a few problems with BitTube 2013-09-10 21:10:53 -07:00
BufferItem.h Split BufferQueue into core + producer + consumer 2014-03-04 09:33:14 -08:00
BufferItemConsumer.h BufferItemConsumer: Use IGBC instead of BQ 2014-03-13 11:12:04 -07:00
BufferQueue.h Remove deprecated BufferQueue constructor 2014-04-22 14:12:55 -07:00
BufferQueueConsumer.h BufferQueue: Increase max slots from 32 to 64 2014-04-18 11:40:14 -07:00
BufferQueueCore.h BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
BufferQueueDefs.h BufferQueue: Increase max slots from 32 to 64 2014-04-18 11:40:14 -07:00
BufferQueueProducer.h BufferQueueProducer: add detachNextBuffer 2014-04-15 10:27:25 -07:00
BufferSlot.h BufferQueue: Allow detaching/reattaching buffers 2014-03-10 16:45:38 -07:00
ConsumerBase.h Add sideband streams to BufferQueue and related classes 2014-03-11 12:23:14 -07:00
CpuConsumer.h gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired 2013-08-14 20:17:17 -07:00
DisplayEventReceiver.h make struct Event layout consistent on 32/64-bit 2014-03-20 16:49:06 +08:00
GLConsumer.h GLConsumer: start using EGL_ANDROID_image_crop 2013-10-02 17:34:35 +00:00
GraphicBufferAlloc.h SurfaceFlinger: Move GraphicBufferAlloc to libgui 2012-12-11 17:54:29 -08:00
GuiConfig.h Show build config in dumpsys SurfaceFlinger 2012-09-25 11:31:46 -07:00
IConsumerListener.h Add sideband streams to BufferQueue and related classes 2014-03-11 12:23:14 -07:00
IDisplayEventConnection.h Improve the VSYNC api a bit. 2011-12-06 22:43:10 -08:00
IGraphicBufferAlloc.h fix libgui header location 2012-02-27 13:03:08 -08:00
IGraphicBufferConsumer.h Merge "BufferQueue: Increase max slots from 32 to 64" 2014-04-21 16:11:22 +00:00
IGraphicBufferProducer.h BufferQueueProducer: add detachNextBuffer 2014-04-15 10:27:25 -07:00
IProducerListener.h BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
ISensorEventConnection.h Enable wakeup sensors. 2014-04-23 14:38:56 -07:00
ISensorServer.h new SensorService 2010-07-19 17:57:29 -07:00
ISurfaceComposer.h surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
ISurfaceComposerClient.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
Sensor.h Surface maxDelay and isWakeUpSensor flag in Sensor.java. 2014-05-23 18:58:01 -07:00
SensorEventQueue.h Enable wakeup sensors. 2014-04-23 14:38:56 -07:00
SensorManager.h SensorManager reconnects to sensor service when the later dies 2011-10-16 22:15:23 -07:00
StreamSplitter.h BufferQueue: Add StreamSplitter 2014-04-15 10:34:10 -07:00
Surface.h Add sideband streams to BufferQueue and related classes 2014-03-11 12:23:14 -07:00
SurfaceComposerClient.h surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
SurfaceControl.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00