BootAnimation: Play boot/shutdown animation and music
Add support to show customized boot and shut down animation, as well as music. Change-Id: I69c87640175a96a18833a763a34afd362bbfb487 Conflicts: cmds/bootanimation/Android.mk cmds/bootanimation/BootAnimation.cpp bootanimtion: fix no boot sound due to error file descriptor -wrong file descriptor passed to setDataSource(fd, offset, length) API and causes no sound -use the default setDataSource(httpService,url,header) to parse the file of boot sound CRs-Fixed: 731547 Change-Id: I437e7d797cd13b7f8f8e0fbf81d5de99c55c27d1 bootanimation: Only try to shutdown the mediaplayer if it was prepared The bootanimation tries to shutdown the mediaplayer gracefully by waiting on an asynchronous shutdown event for 5 seconds. If, however, there is no boot sound, that asynchronous shutdown event will never happen and the animation will be stopped for 5 seconds before shutting down. Visibly, this fixes the issue where the bootanimation would simply stop near the end for exactly 5 seconds. Change-Id: I77f5631368c7d9b9fef7941a6278af9c36032044 bootanimation: Fix compilation warnings Change-Id: Iaf7e66811f3cecf8b5b1fa690941489a7a07f7fd bootanimation: Move the bootanimation playaudio code Move the bootanimation playaudio code, so that the audio plays after the boot animation, because the audio manager is not ready and races with the boot animation, if they the audio and boot animation play together and makes the boot animation stutter. SAMOSA-10 Change-Id: I56ab19ec06a4af2de84916cdc330e646dd5a8695 (cherry picked from commit 9ccd0254) bootanimation: Use CLOCK_MONTONIC for pthread Use CLOCK_REALTIME can mess up the pthread timed wait if system clock changes. Change-Id: I7e14958460ccd1ecd8c9aa3cdfa4e60dd2a083ec [mikeioannina]: Adjust for cm-14.0 Change-Id: I437e7d797cd13b7f8f8e0fbf81d5de99c55c27d1
Loading
Please register or sign in to comment