OSDN Git Service

Exit boot animation cleanly.
authorMathias Agopian <mathias@google.com>
Wed, 20 Jun 2012 00:26:12 +0000 (17:26 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 20 Jun 2012 00:32:00 +0000 (17:32 -0700)
commita67e418e1fda219f6cc0a7e420bcf5cc4f9fe710
tree9e454c7648b681fcd5545899e79fbdbc110a0c79
parent7c24b1d4da5e13329d2105cb2f8285715d920787
Exit boot animation cleanly.

The desc.txt file can now mark parts as 'must finish cleanly' by using
'c' as the part line prefix rather than 'p'.  If so indicated, if the
bootanimation is asked to quit it will do so only after waiting to
finish that part.

I considered either making init.c service killing smarter or promoting
bootanim to be a bindable service with a requestExit method.  However,
these changes are probably too big/risky given our ship date.  So
I used a property as a mailbox between SurfaceFlinger and bootanim.

Bug: 6679877
Change-Id: Id7dca22caa50b450fff25ca94f7242d971034f41
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h