replicant-frameworks_native/libs/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
..
tests SurfaceFlinger: Add sourceCrop to screenshot 2014-05-23 09:19:03 -07:00
Android.mk BufferQueue: Add StreamSplitter 2014-04-15 10:34:10 -07:00
BitTube.cpp fix a few problems with BitTube 2013-09-10 21:10:53 -07:00
BufferItem.cpp Change BufferQueue into producer/consumer wrapper 2014-03-04 15:58:03 -08:00
BufferItemConsumer.cpp BufferItemConsumer: Use IGBC instead of BQ 2014-03-13 11:12:04 -07:00
BufferQueue.cpp Remove deprecated BufferQueue constructor 2014-04-22 14:12:55 -07:00
BufferQueueConsumer.cpp Merge "BufferQueue: Guard against unbounded queue growth" 2014-04-21 21:40:33 +00:00
BufferQueueCore.cpp BufferQueue: Add StreamSplitter 2014-04-15 10:34:10 -07:00
BufferQueueProducer.cpp Merge "BufferQueue: Guard against unbounded queue growth" 2014-04-21 21:40:33 +00:00
BufferSlot.cpp Change BufferQueue into producer/consumer wrapper 2014-03-04 15:58:03 -08:00
CleanSpec.mk
ConsumerBase.cpp BufferQueue: Increase max slots from 32 to 64 2014-04-18 11:40:14 -07:00
CpuConsumer.cpp gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired 2013-08-14 20:17:17 -07:00
DisplayEventReceiver.cpp
GLConsumer.cpp Always release a buffer 2014-04-04 15:37:08 -07:00
GraphicBufferAlloc.cpp
GuiConfig.cpp don't use compile-time configuration of libgui as much as possible 2013-03-29 15:33:47 -07:00
IConsumerListener.cpp Add sideband streams to BufferQueue and related classes 2014-03-11 12:23:14 -07:00
IDisplayEventConnection.cpp
IGraphicBufferAlloc.cpp
IGraphicBufferConsumer.cpp Merge "BufferQueue: Increase max slots from 32 to 64" 2014-04-21 16:11:22 +00:00
IGraphicBufferProducer.cpp BufferQueueProducer: add detachNextBuffer 2014-04-15 10:27:25 -07:00
IProducerListener.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
ISensorEventConnection.cpp Enable wakeup sensors. 2014-04-23 14:38:56 -07:00
ISensorServer.cpp
ISurfaceComposer.cpp surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
ISurfaceComposerClient.cpp Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
LayerState.cpp
Sensor.cpp Surface maxDelay and isWakeUpSensor flag in Sensor.java. 2014-05-23 18:58:01 -07:00
SensorEventQueue.cpp Enable wakeup sensors. 2014-04-23 14:38:56 -07:00
SensorManager.cpp
StreamSplitter.cpp BufferQueue: Add StreamSplitter 2014-04-15 10:34:10 -07:00
Surface.cpp am 38c9e132: am c1ffd351: am bd20e551: Merge "Use asynchronous lock/unlock API" 2014-05-12 18:18:47 +00:00
SurfaceComposerClient.cpp surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
SurfaceControl.cpp Merge "libgui: Remove unnecessary casts in SurfaceControl" 2014-04-18 20:33:52 +00:00
SyncFeatures.cpp don't use compile-time configuration of libgui as much as possible 2013-03-29 15:33:47 -07:00