replicant-frameworks_native/services/surfaceflinger
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
..
DisplayHardware surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
Effects Don't simulate color space after correction 2014-03-10 12:43:49 -07:00
EventLog surfaceflinger: add frame duration logging 2013-07-23 17:28:47 -07:00
RenderEngine SurfaceFlinger: Add sourceCrop to screenshot 2014-05-23 09:19:03 -07:00
tests Surface can now be created only from an IGraphicBufferProducer 2013-03-12 18:45:09 -07:00
Android.mk Revert "SurfaceFlinger: send VSYNC power hints to IPowerManager" 2014-04-04 18:09:30 -07:00
Barrier.h
Client.cpp Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
Client.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
clz.h implement: "Add an ANativeWindow API for SurfaceFlinger to suggest an optimal buffer orientation" 2011-07-19 15:24:46 -07:00
Colorizer.h Add a --color option to dumpsys SurfaceFlinger 2013-04-22 21:51:28 +02:00
DdmConnection.cpp Remove dependencies on runtime_libdvm and libdvm.so in general 2014-05-28 21:27:47 -07:00
DdmConnection.h add libsurfaceflinger_ddmconnection for PDK build 2012-08-31 20:08:33 -07:00
DisplayDevice.cpp surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
DisplayDevice.h surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
DispSync.cpp Add "dumpsys SurfaceFlinger --dispsync" 2014-05-08 16:14:41 -07:00
DispSync.h Add "dumpsys SurfaceFlinger --dispsync" 2014-05-08 16:14:41 -07:00
EventControlThread.cpp SurfaceFlinger: Add EventControlThread 2013-10-15 14:31:41 -07:00
EventControlThread.h SurfaceFlinger: Add EventControlThread 2013-10-15 14:31:41 -07:00
EventThread.cpp Revert "SurfaceFlinger: send VSYNC power hints to IPowerManager" 2014-04-04 18:09:30 -07:00
EventThread.h Revert "SurfaceFlinger: send VSYNC power hints to IPowerManager" 2014-04-04 18:09:30 -07:00
FrameTracker.cpp Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
FrameTracker.h Adding render stats APIs to UiAutomation (framework native). 2014-04-10 12:32:19 -07:00
Layer.cpp Improve SurfaceFlinger PTS estimation 2014-05-02 10:56:54 -07:00
Layer.h Update HWC dump format 2014-04-22 16:52:27 -07:00
LayerDim.cpp Allow disabling layer rotation during screenshots 2014-02-14 23:10:42 +00:00
LayerDim.h Allow disabling layer rotation during screenshots 2014-02-14 23:10:42 +00:00
main_surfaceflinger.cpp Add "dumpsys SurfaceFlinger --dispsync" 2014-05-08 16:14:41 -07:00
MessageQueue.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
MessageQueue.h fix another bug where screenshots could end-up all black 2013-04-10 16:27:17 -07:00
MODULE_LICENSE_APACHE2
MonitoredProducer.cpp BufferQueueProducer: add detachNextBuffer 2014-04-15 10:27:25 -07:00
MonitoredProducer.h BufferQueueProducer: add detachNextBuffer 2014-04-15 10:27:25 -07:00
SurfaceFlinger.cpp surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
SurfaceFlinger.h surfaceflinger: Replace blank/unblank with setPowerMode 2014-06-05 16:35:52 -07:00
SurfaceFlingerConsumer.cpp Improve SurfaceFlinger PTS estimation 2014-05-02 10:56:54 -07:00
SurfaceFlingerConsumer.h Improve SurfaceFlinger PTS estimation 2014-05-02 10:56:54 -07:00
Transform.cpp color blindness enhancement 2013-09-04 22:11:15 -07:00
Transform.h color blindness enhancement 2013-09-04 22:11:15 -07:00