History log of /system/core/libsuspend/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b98865586bcf7779150c461b64e4fe49972f6351 22-Sep-2012 Colin Cross <ccross@android.com> libsuspend: force autosleep off during init

If autosuspend_autosleep_init is called when autosleep is enabled,
for example after a runtime restart with the screen off, the kernel
autosleep state will be enabled, but autosuspend_enabled is false.
Further calls to autosuspend_disable by the framework will not result
in autosleep being disabled.

Call autosuspend_autosleep_disable from autosuspend_autosleep_init
to get the kernel state into a known state that matches the
autosuspend_enabled flag.

Bug: 7119416
Change-Id: I8611e4fd256838272aad4382c2340508805b0376
utosuspend_autosleep.c
30f52fea05fb91394b50793c5cb14ef05e5c94d6 09-Aug-2012 Stephen Hines <srhines@google.com> am 67bdfa98: am d25b8502: Merge "Fix unused param warning"

* commit '67bdfa9823dd954fdfaa01721da17d8252fc05d1':
Fix unused param warning
62f9ffac1aa4809c0acd29dc4c4872a3b4da2062 26-Jul-2012 Edwin Vane <edwin.vane@intel.com> Fix unused param warning

libsuspend had only a single warning in the clang build. Fixing it to
make the build clean.

Change-Id: Iaac5f9144b6e6cb122141c6416056c1b2c9aa98e
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Kevin P Schoedel <kevin.p.schoedel@intel.com>
utosuspend_wakeup_count.c
f25dd878dfeba87a3c2b868e07cb550061f670b4 14-Jun-2012 Colin Cross <ccross@android.com> libsuspend: wait for earlysuspend transition to finish

Wait for the early suspend transition to finish to the point where
surfaceflinger would previously have synchronized. This is important
during screen on, to ensure the display early suspend handlers have
completed before surfaceflinger unblanks.

Change-Id: I91ac0253d9655c3f1ae3dd7f1a918c279568b23e
utosuspend_earlysuspend.c
2146b7f2d7f8e9320d8ec5581c61e14f243ee97c 07-Jun-2012 Colin Cross <ccross@android.com> libsuspend: always unblock early suspend

SurfaceFlinger and PowerManagerService manage their synchronization
without the help of early suspend, and SurfaceFlinger no longer unblocks
early suspend. Add a new thread when early suspend is detected that will
immediately unblock early suspend.

Change-Id: I87ef4984a2ab34cbbb3af8b7762236b9a92dc2ea
utosuspend_earlysuspend.c
a2582c2c4d20684b21aaf50913a27239789bf5eb 04-May-2012 Colin Cross <ccross@android.com> libsuspend: create new library to handle triggering suspend

libsuspend provides functions autosuspend_enable() and
autosuspend_disable() to trigger suspend on a variety of different
kernels.

Change-Id: I5dc28fb51532fa7c514330f1cfde7698d31d734c
ndroid.mk
utosuspend.c
utosuspend_autosleep.c
utosuspend_earlysuspend.c
utosuspend_ops.h
utosuspend_wakeup_count.c
nclude/suspend/autosuspend.h