summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/bootanimation_main.cpp
AgeCommit message (Collapse)Author
2019-02-14Preload zip before waiting for surface flingerHuihong Luo
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
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
2017-05-31Refactor bootanimation into a shared lib.Ed Coyne
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
2017-05-23reduce flunctuation in boot animation start / stopping timeKeun-young Park
- 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
2016-12-08Adding "quiescent" reboot mechanism to support STB operatorsDmitri Plotnikov
Bug: 31681185 Change-Id: Iada4dd4624f0221e5b59440da2718da980742720 Test: with SampleLeanbackDeviceAdmin. CTS test forthcoming
2015-01-26kill HAVE_PTHREADS.Yabin Cui
Bug: 19083585 Change-Id: Ib466949bb6cd6d1bbc4680e989f0f9fae62ca564
2014-11-07Frameworks/base: Turn on -Wall -Werror in cmdsAndreas Gampe
Fix small warnings, turn on -Wall -Werror. Change-Id: Iab1f01a7c7ebd6ba832b75067c5e395f380a1b8b
2012-02-27fix libgui header locationMathias Agopian
Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
2012-01-04Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
2010-02-11split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian
2009-07-28resolved conflicts for merge of de36313b to masterMathias Agopian
2009-07-28fix [1981759] -no-boot-anim has no effectMathias Agopian
2009-05-21this should fix the buildMathias Agopian
2009-05-21split boot animation out of SurfaceFlingerMathias Agopian
Conflicts: data/etc/platform.xml