summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
authorGeoffrey Pitsch <gpitsch@google.com>2016-08-09 14:35:10 -0400
committerGeoffrey Pitsch <gpitsch@google.com>2016-08-10 10:52:48 -0400
commit290c4350edc66de5663e27c54e694c8ee8cf0e0e (patch)
tree97961acbf248ba0f5bdfd7e1336fea4101cb8b17 /cmds/bootanimation/BootAnimation.h
parent3025e6be7fae8d7fa3eebf583c7d866a38a56432 (diff)
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
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h
index a53216eb0310..fd497a362fc7 100644
--- a/cmds/bootanimation/BootAnimation.h
+++ b/cmds/bootanimation/BootAnimation.h
@@ -120,6 +120,7 @@ private:
void releaseAnimation(Animation*) const;
bool parseAnimationDesc(Animation&);
bool preloadZip(Animation &animation);
+ bool playSoundsAllowed() const;
void checkExit();
@@ -137,6 +138,7 @@ private:
sp<Surface> mFlingerSurface;
bool mClockEnabled;
bool mTimeIsAccurate;
+ bool mSystemBoot;
String8 mZipFileName;
SortedVector<String8> mLoadedFiles;
sp<TimeCheckThread> mTimeCheckThread;