History log of /frameworks/base/cmds/bootanimation/BootAnimation.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b593842063770f9e75c623a4bc7bb41b4c1830c6 23-Mar-2017 Keun-young Park <keunyoung@google.com> support shutdown animation from bootanim

- init will set sys.powerctl property and run bootanim.
- Use /oem/media/shutdownanimation.zip or
/system/media/shutdownanimation.zip for animation file.
If none of them exist, android animation will be used.
- Disable audio playing for shutdown animation.
- Disable TimeCheckThread for shutdown animation. It
accesses /data partition and can block umount.

bug: 36526187
Test: many reboots

Change-Id: If02c73cda2015317d88d056cd45201208da49946
/frameworks/base/cmds/bootanimation/BootAnimation.h
a917353da0ed6079d45487a8c96b892c5d754637 19-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> Initialize bootanimation sound on separate thread

Blocks when it's time to play the first sound.
Bug: 30189706
Test: on marlin
Change-Id: Ib3666fbfb5f109c633ed59edad4a283b8ada8ae2
/frameworks/base/cmds/bootanimation/BootAnimation.h
9071db1d370573bad80f127898e34066f56c4e64 29-Oct-2016 Damien Bargiacchi <drb@google.com> Allow boot clock to be toggled between 12 and 24 hour format

Bug: 32461548
Change-Id: I414192e6d9f3ae44267f4a360e35647f18c420b4
/frameworks/base/cmds/bootanimation/BootAnimation.h
0e3d2ab6d2988a1ae70d13d6d77a0f8109eb66e1 29-Aug-2016 Damien Bargiacchi <drb@google.com> Allow custom fonts in the boot animaiton zip file

Change the font format to be a 16x6 grid of characters

Bug: 29580875
Change-Id: Ia468307cb9770436e8ae865c91acda23a71bde05
/frameworks/base/cmds/bootanimation/BootAnimation.h
290c4350edc66de5663e27c54e694c8ee8cf0e0e 09-Aug-2016 Geoffrey Pitsch <gpitsch@google.com> Suppress Boot sound for non-standard scenarios.

Blacklisted bootreasons will not play a sound (e.g. "kernel_panic")
If boot has already completed, assume this is a runtime restart and
skip the sound.

Bug: 30654343
Change-Id: I41b1829a93c0d9a63c69aea2d1614eaa18b72230
/frameworks/base/cmds/bootanimation/BootAnimation.h
859029ff7b87087e5e70a087a75bac5836f41a22 12-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> Merge "OpenSL-based audio support for BootAnimation" into nyc-mr1-dev
271674930a1f9020a291827a8ecb6ab68782c4fa 07-Jul-2015 Sai Kiran Korwar <skirank@nvidia.com> BootAnimation: Use npot textures

If non power of two textures are supported, then use
npot texture for specifying the images supplied by vendor.
This will reduce the memory footprint of the app by a considerable
amount.

Bug: 28865582
Bug: 30040263
Change-Id: I5cef98fb013318d60d8a648041c9665da68c0ff3
/frameworks/base/cmds/bootanimation/BootAnimation.h
d6d9a1d0b9cf6fa740d9fe410015b094475c5a4c 08-Jun-2016 Geoffrey Pitsch <gpitsch@google.com> OpenSL-based audio support for BootAnimation

Respects dnd settings for sound playback.
Basic implementation uses in-memory wavs as buffers.
audioplay::playClip should not be called before previous clip ends.
Updated FORMAT.md to reflect no more audio_conf.txt

Bug: 29055299
Change-Id: Ifc358d7c85f11b8b54ae6446c40643b87bc567f2
/frameworks/base/cmds/bootanimation/BootAnimation.h
dd214a796f8b97070645226d6a61f8651f9e13a0 27-Jun-2016 Geoffrey Pitsch <gpitsch@google.com> Support trimmed images in BootAnimation

Each frame directory may optionally contain a `trim.txt` to specify
how the image was trimmed relative to the animation's full size.
See FORMAT.md for more details.

Bug: 29055299
Change-Id: I7a291e9a52b4bbe50a29c519f6a4d0e2cc0389d7
/frameworks/base/cmds/bootanimation/BootAnimation.h
9748086fe267e21d243a49df1775905094a28dd9 29-Mar-2016 Damien Bargiacchi <drb@google.com> Check clock accuracy before attempting to display clock

The RTC may not be set yet, may have been reset, or may have drifted
significantly if the device time hasn't been updated in a long time.

Using the the last_time_change file to determine if the time is known to
be accurate and only display the clock when that is the case.

Bug: 27802041
Change-Id: I845cf9c74fcb4009504f1bab853e04146fa19e1d
/frameworks/base/cmds/bootanimation/BootAnimation.h
815e51d76cc284f3ca59534d9f9372d3dd50f574 25-Mar-2016 Andriy Naborskyy <andriyn@google.com> resolve merge conflicts of 0c7535b to nyc-dev

Change-Id: I49fa42e0d78aeaa8127cefc5cc5122cf37fce878
39218ba26d5bb8646f04273f2c3731598721c1da 17-Aug-2015 Andriy Naborskyy <andriyn@google.com> bootanimation: implement split packaging of animation

Animation package zip can be separated into OEM and SYSTEM
OEM desc.txt can use new command "$SYSTEM" to invoke animation
from SYSTEM package

Changes to animation structure:
1. animation can refer other animation
2. animation contains zip file reference
3. BootAnimation has name of root of animation Zip; processing desc.txt we
need filename of container zip and we can't access it from ZipFileRO instance

movie() changes:
1. Split movie() into loading Zip and playing part
2. load parses desc.txt and if needed referred Zip
3. play can descend animations tree

Change-Id: I600d02c84d537df7b3e32a84f84a294b26e319e0
Signed-off-by: Andriy Naborskyy <andriyn@google.com>
/frameworks/base/cmds/bootanimation/BootAnimation.h
a704b7d3444d218fe3b3f977fd242d2cd626058e 17-Feb-2016 Damien Bargiacchi <drb@google.com> Draw a clock on top of the Android boot animation

Don't draw on top of vendor specific animations/logos since we can't
make it look good.

Bug: 27209004
Change-Id: If4791b861ff476c23b37787ba896a3ef8d9df4fd
/frameworks/base/cmds/bootanimation/BootAnimation.h
ebf9a0d8a888042c16ec0cb6dd8419f18038663f 03-Oct-2014 Mike Lockwood <lockwood@google.com> Add support for playing audio during bootanimation

The bootanimation daemon will play 16 bit WAV files contained in bootanimation.zip
For this to work, the bootanimation.zip must contain an audio_conf.txt file,
which contains parameters to be used for the tinyalsa pcm_open call
as well as mixer parameters to set before attempting to play the sound.

If the bootanimation finds an audio_conf.txt file, then it will look for a file named
"audio.wav" in each of the part subdirectories. If audio.wav is found, it will play that
WAV file starting at the beginning of that part.

The code for this is based on the tinyplay utility in tinyalsa.

The audio_conf.txt and must begin with the following header:

card=<ALSA card number>
device=<ALSA device number>
period_size=<period size>
period_count=<period count>

This header is followed by zero or more mixer settings, each with the format:
mixer "<name>" = <value list>
Since mixer names can contain spaces, the name must be enclosed in double quotes.
The values in the value list can be integers, booleans (represented by 0 or 1)
or strings for enum values.

Finally I should mention that this change is not the right approach.
Instead of going straight to ALSA we should be using the mediaserver instead.
But mediaserver isn't ready in time due to interactions with the system server, and there
isn't time to fix this for the current release. We need to fix that for the next one.

Bug: 17674304

Change-Id: Ic391ade61c941d0a24f4d64fe005ac9375a23fa9
/frameworks/base/cmds/bootanimation/BootAnimation.h
083b84cf8880bb7f0d2c2dc1b45c7d610656dbd1 22-Sep-2014 Jesse Hall <jessehall@google.com> bootanimation: allow animation to specify background color

Some OEMs want to have a bootanimation (or parts of it) displayed on a
color other than black. They currently just use full-screen frames for
that, which wastes lots of memory and bandwidth. This change allows
each part of the animation to specify a background color that will be
applied outside of the frame images; if unspecified the background
will be black as it is now.

Bug: 16635599
Change-Id: Ibf008fc75c5aad891c86ba9e4ec0879b7a61b8bd
/frameworks/base/cmds/bootanimation/BootAnimation.h
0c1eeb3c8ab53954218d3b8f4be08ff21be3e985 15-Apr-2014 Mykola Kondratenko <mykola.kondratenko@sonymobile.com> Freeing frame map

FileMap memory is never released until application exit

Release it now as the texture is already loaded and the memory
used for the packed resource can be released.

Change-Id: Id08a1e466337b3a0179684eb6a444e18147ee343
/frameworks/base/cmds/bootanimation/BootAnimation.h
afd31e08299008fdc5c2813f21b2573f29dc53df 03-Dec-2013 Narayan Kamath <narayan@google.com> Reimplement ZipFileRO in terms of libziparchive.

This lets us share zip archive processing code with both
the runtime (Art, dalvik) and critical java code
(StrictJarFile).

This change also moves several utility methods to ZipUtils
and dedups code across several zip inflation methods.

One of the side effects of this change is that several
processing loops are now O(n) instead of O(n^2).

bug: 10193060

Change-Id: I3c7188496837a47246c4f342e45485a70fef3169
/frameworks/base/cmds/bootanimation/BootAnimation.h
d3782b26b2026e60a8e0d4b967a156369f2a46f8 26-Apr-2012 Kevin Hester <khester@google.com> Exit boot animation cleanly.

The desc.txt file can now mark parts as 'must finish cleanly' by using
'c' as the part line prefix rather than 'p'. If so indicated, if the
bootanimation is asked to quit it will do so only after waiting to
finish that part.

I considered either making init.c service killing smarter or promoting
bootanim to be a bindable service with a requestExit method. However,
these changes are probably too big/risky given our ship date. So
I used a property as a mailbox between SurfaceFlinger and bootanim.

Bug: 6679877
Change-Id: I1f8dd9e7da1ea80a483b31fa14c4a5645922d774
/frameworks/base/cmds/bootanimation/BootAnimation.h
8335f1ccccedb6655d96d9d5b697a7f0938235dd 26-Feb-2012 Mathias Agopian <mathias@google.com> fix libgui header location

Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
/frameworks/base/cmds/bootanimation/BootAnimation.h
b13b9bdad2baf6ad1ec2e56b6b7598fa20f55fc4 18-Feb-2012 Mathias Agopian <mathias@google.com> frameworks/base refactoring.

step 2: move libutils headers to their new home: androidfw

Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
/frameworks/base/cmds/bootanimation/BootAnimation.h
000479f9e325b4e426a67033abd92d47da412725 10-Feb-2010 Mathias Agopian <mathias@google.com> split libsurfaceflinger_client and libcamera_client out of libui
/frameworks/base/cmds/bootanimation/BootAnimation.h
a8826d67097b12cf9d6b14a7e32c0862f17b189a 01-Oct-2009 Mathias Agopian <mathias@google.com> improve boot animation a bit
/frameworks/base/cmds/bootanimation/BootAnimation.h
bc7261130a51dc9f3461d3970eee1b923bcbf193 24-Sep-2009 Mathias Agopian <mathias@google.com> fix [2132563] stuck in boot animation (framebuffer_device_open: Failed to create flip chain)
/frameworks/base/cmds/bootanimation/BootAnimation.h
947f4f4d384ea26eb2145cc070a3eed42c59534a 22-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
627e7b50be41e4fdee758a1bfad3a55de56b4e27 22-May-2009 Mathias Agopian <mathias@google.com> split boot animation out of SurfaceFlinger

Conflicts:

data/etc/platform.xml
/frameworks/base/cmds/bootanimation/BootAnimation.h