summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/bootanimation_main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Preload zip before waiting for surface flingerHuihong Luo2019-02-141-3/+5
| | | | | | | | | | | | | | This saves about 200 msec by preloading media zip file before waiting for surface flinger becomes ready. Android Auto results: BootAnimation: BootAnimationPreloadTiming start time: 8261ms BootAnimation: BootAnimationPreloadStopTiming start time: 8508ms Bug: 62056504 Test: adb logcat -s BootAnimation Change-Id: Iaedf774983a66c2838452c45a04b3a1f4c728f17
* Refactor audio code out of bootanimation_main.Ed Coyne2018-05-311-110/+1
| | | | | | | | | | | 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
* Fix nobootanimation toggleKalle Raita2017-07-141-0/+2
| | | | | | | | | | | | 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
* Allow IO During boot process, BootActions.Ed Coyne2017-06-191-67/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Refactor bootanimation into a shared lib.Ed Coyne2017-05-311-1/+105
| | | | | | | | | | | We would like to reuse the animation parts of it in Android things. This refactors the audio part into the _main and gets callbacks from the BootAnimation class at interesting times. This will be the same approach we take to integrate with it. BUG: 37992717 Test: Built locally and pushed to a bullhead, works with sound. Change-Id: I5eaca07c25eeb5edeab07d7ae7a29945e0e2cd37
* reduce flunctuation in boot animation start / stopping timeKeun-young Park2017-05-231-0/+24
| | | | | | | | | | | | - Add separate 100ms interval polling for SurfaceFlinger. Otherwise, it can be blocked with 1 sec polling and cause 1 sec of additional delay frequently. bug: 38450031 bug: 35253872 Test: many reboots and check time to finish boot animation, python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 100 -f -e 15 -w 30 -v Change-Id: I353ca04183cbe59b82da99dc3fecfce63314cd2f
* Adding "quiescent" reboot mechanism to support STB operatorsDmitri Plotnikov2016-12-081-1/+4
| | | | | | Bug: 31681185 Change-Id: Iada4dd4624f0221e5b59440da2718da980742720 Test: with SampleLeanbackDeviceAdmin. CTS test forthcoming
* kill HAVE_PTHREADS.Yabin Cui2015-01-261-10/+2
| | | | | Bug: 19083585 Change-Id: Ib466949bb6cd6d1bbc4680e989f0f9fae62ca564
* Frameworks/base: Turn on -Wall -Werror in cmdsAndreas Gampe2014-11-071-1/+1
| | | | | | Fix small warnings, turn on -Wall -Werror. Change-Id: Iab1f01a7c7ebd6ba832b75067c5e395f380a1b8b
* fix libgui header locationMathias Agopian2012-02-271-2/+0
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-111-1/+1
|
* resolved conflicts for merge of de36313b to masterMathias Agopian2009-07-281-5/+16
|\
| * fix [1981759] -no-boot-anim has no effectMathias Agopian2009-07-281-5/+15
| |
* | this should fix the buildMathias Agopian2009-05-211-3/+3
|/
* split boot animation out of SurfaceFlingerMathias Agopian2009-05-211-0/+52
Conflicts: data/etc/platform.xml