OSDN Git Service

Suppress Boot sound for non-standard scenarios.
authorGeoffrey Pitsch <gpitsch@google.com>
Tue, 9 Aug 2016 18:35:10 +0000 (14:35 -0400)
committerGeoffrey Pitsch <gpitsch@google.com>
Wed, 10 Aug 2016 14:52:48 +0000 (10:52 -0400)
commit290c4350edc66de5663e27c54e694c8ee8cf0e0e
tree97961acbf248ba0f5bdfd7e1336fea4101cb8b17
parent3025e6be7fae8d7fa3eebf583c7d866a38a56432
Suppress Boot sound for non-standard scenarios.

Blacklisted bootreasons will not play a sound (e.g. "kernel_panic")
If boot has already completed, assume this is a runtime restart and
skip the sound.

Bug: 30654343
Change-Id: I41b1829a93c0d9a63c69aea2d1614eaa18b72230
cmds/bootanimation/BootAnimation.cpp
cmds/bootanimation/BootAnimation.h