summaryrefslogtreecommitdiff
path: root/slideshow/slideshow.cpp
AgeCommit message (Collapse)Author
2017-01-20slideshow: Track the minui callback API change.Tao Bao
Needs the matching change in bootable/recovery. Test: mmma system/extra/slideshow Change-Id: Id82bee220b69b154fa1816766f58dbde4d718e8c
2015-10-12slideshow: Switch to android::uptimeMillisJohan Redestig
time(2) is not guaranteed to always go forward which makes it a bit dangerous to use in loops like slideshow does. switch to uptimeMillis which is based on clock_gettime CLOCK_MONOTONIC which is is safe. Change-Id: Ica1b7ee50df00fcc7bc849d7eaebe64f62434a47
2015-10-10slideshow: Filter out non key eventsJohan Redestig
The driver could send EV_SYN events which need to be filtered out, otherwise we would change image too soon. Change-Id: I954e8a4f228da4165a7af3fa544e95a22390a35b
2015-10-09Merge "slideshow: Trigger on key down only"Sami Tolvanen
2015-10-09slideshow: Dont crash when -t is usedJohan Redestig
Change-Id: I68764b86ad05afb3853ed753a28b4a53580cb68c
2015-10-09slideshow: Trigger on key down onlyJohan Redestig
Currently slideshow reacts to both key down and release events which makes the last image just flicker very briefly. Change-Id: I5b3215eacf127a7c739826af313c6e1fd0732775
2015-04-15Move away from gr_surface.Elliott Hughes
Change-Id: Id23940a2e92bbfd56a2f2e1e021fb89114830dd4
2015-04-01slideshow: fix format string typeSami Tolvanen
Format string specifies %u, even though long int is passed. Change-Id: I541c15552e403e16bef7a78f53d81eaacb605120
2015-02-27Add a program to display a slideshow at early bootSami Tolvanen
Add a small program to display a slideshow of images (specified on the command line) on the framebuffer device. Images are switched after a timeout, or user input. The timeout can be optionally set using the -t command line parameter and defaults to 5s. If user input occurred, the program will wait for the power button to be pressed after the last image before exiting. To avoid draining the battery after an accidental reboot, the program exists after 30s even if the power button is not pressed. Change-Id: I58c79a7f3ac747eec0d73a10f018d3d8ade9df7d (Moved from I743c68b5f38038abcaaf5ae08233fa72fd823c8e)