frecon: add loop count and option to exit after splash animation

This allows us to run an animation for prescribed number of repetitions
and exit afterwards which makes frecon usable for displaying low battery
animation.

BUG=chromium:529496
CQ-DEPEND=Ide5d932738dca2ddba177c0a4ed4ced234e25229
TEST=via ssh: powerd_setuid_helper --action=shut_down --shutdown_reason=low-battery

Change-Id: I074b21a682de286fcce4393f56262697f8abb719
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/336041
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
4 files changed