summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimationUtil.cpp
AgeCommit message (Collapse)Author
2021-04-15Conditionally show bootanimation for quiescent bootsRobert Horvath
Allow bootanimation to play if the boot is quiescent and the system property ro.bootanim.quiescent.enabled is set to true. This allows the bootanimation to become visible if the display is turned on during the bootanimation. If OEMs want this behavior and the device implements suppression of video/audio during quiescent boot, they can set the system property ro.bootanim.quiescent.enabled. Bug: 185118020 Test: PRODUCT_PRODUCT_PROPERTIES += ro.bootanim.quiescent.enabled=true adb reboot quiescent Spam `adb shell input keyevent POWER` during boot Test: Repeat the above test with the property set to 0 Change-Id: I54a4ad552704106ca06c4992fed4a2d501aa3fa5
2018-05-31Refactor audio code out of bootanimation_main.Ed Coyne
So it can be shared with the iot/ variant I refactored it into the audioplay.h file. This keeps all of the audio code local, we could hide the functions and only expose the callback but that would make testing harder. Test: Ran a bootanimation.zip with audio.wav on Marlin, works as expected. Bug: 67051984 Change-Id: Ie31dc5f2cfaad5bb23134ef81be712afa6b3cd6f
2017-07-14Fix nobootanimation toggleKalle Raita
The sf.debug.nobootanimation was apparently broken in a recent refactoring. Flipping the boolean in the utils fixes the issue. Left some additional logging behind. Test: marlin-eng boots Test: my test can prevent the boot animation Test: shell stop start shows boot animation Change-Id: I815708a2f16a3a8688cf1a53695e5a8d43194575
2017-06-19Allow IO During boot process, BootActions.Ed Coyne
NOTE: this is only compiled into products with PRODUCT_IOT=true. Introduce BootActions that a developer can provide to manipulate IO before the android framework comes up on boot. We will look for a configuration file at /oem/app/etc/boot_action.conf and expect it to tell us the name of a shared library. We will then fetch this library from /oem/app/lib/${arch}/ and load it. We expect it to export boot_action_init(), boot_action_shutdown(), and optionally boot_action_start_part(int partNumber, int playNumber). We will then call boot_action_init() during boot after PeripheralManager is up and call boot_action_shutdown() when the android framework is up and we are going to start loading APKs. We will also call boot_action_start_part(*) when each part of the boot animation is started, use this if you want to synchronize the boot action and the boot animation. Boot actions run in a restricted environment and in general can only make calls to PeripheralManager. Bug: 37992717 Test: Pushed to local imx7d to test boot actions, pushed to bullhead test that animation+sound still works. Change-Id: I9e53a17567f8028ea84486d637e1d231ee1125e1