History log of /frameworks/base/cmds/bootanimation/BootAnimation.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d1794cdbb4183774ac68e9d445ca87835fbe6461 04-Apr-2017 Keun-young Park <keunyoung@google.com> show different timing log for shutdown animation

bug: 36873098
Test: reboot and check log
Change-Id: Ic3adaba383cc29dba039a7fb5adcb01d4c0c963b
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
dbdda2b60ec440f2b140343e08aeff2d9c6cbcc5 08-Feb-2017 Wei Wang <wvw@google.com> BootAnimation: change log format when animation starts

Bug: 34499826
Test: on marlin
Change-Id: I719485d399406abc08360620c09d90f4b87934a6
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
a90c54c90e1cb668cd74f218370f868763bbd009 02-Feb-2017 Wei Wang <wvw@google.com> BootAnimation: Add log when animation starts

Bug: 34499826
Test: on marlin
Change-Id: I04e4663daf4b30e2ab3c1ddda215127cf7faef9f
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
53dd8b80a501f9bdb2d5db113417a3fede4e9db7 06-Dec-2016 Damien Bargiacchi <drb@google.com> Centre clock text on visible characters instead of : character am: 45a7644004 am: 04f17be3e6
am: e2ca6b465e

Change-Id: If3edabead7835e9949f1d1601cbe7cb59c0bbc4c
04f17be3e6a6b8594a05d9e4828a40fbb20cda75 06-Dec-2016 Damien Bargiacchi <drb@google.com> Centre clock text on visible characters instead of : character
am: 45a7644004

Change-Id: Ibb152f2217297ab0b0aa1ec622e59ae8ae815d59
45a764400485fb6fb9b0d3566e24feac446e616c 06-Dec-2016 Damien Bargiacchi <drb@google.com> Centre clock text on visible characters instead of : character

Bug: 33340845
Change-Id: I235ad7c6aafc62daa55242f81df2d076f27c56df
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
b1df48d32632d0ba5a2389fb9fad2943dcb55562 23-Nov-2016 Baligh Uddin <baligh@google.com> Merge remote-tracking branch 'goog/cw-f-dev' into fix_merger

Bug: 32849428

* goog/cw-f-dev: (98 commits)
Revert "Catch KeyStoreException for setting profile lock"
Fix createConfirmDeviceCredentialIntent for wear for CTS.
Fix default dialog background colour for watch devices.
Catch KeyStoreException for setting profile lock
Add cross-links between FINE and COARSE location permissions. bug: 25371600
Fixed a bug with the emergency affordance in multi user
Zygote: Additional whitelists for runtime overlay / other static resources.
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Zygote : Block SIGCHLD during fork.
colors: add missing accent_material_{700,50} resources.
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Zygote : Block SIGCHLD during fork.
DO NOT MERGE ANYWHERE Revert "DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous"
...

Change-Id: I63468da5bfa21ed9ac5985bbdbf3a61d4c389aa0
f5970785adc7300a764212e8e84223489100f17c 01-Nov-2016 Damien Bargiacchi <drb@google.com> Allow boot clock to be toggled between 12 and 24 hour format am: 9071db1d37 am: 3400dffcad
am: bb2e8993f0

Change-Id: I8f4ccc9e82e5539c615a8388a002d5ab196f77f9
bb2e8993f03121297f8c7e5a8445ba5f350e7de8 01-Nov-2016 Damien Bargiacchi <drb@google.com> Allow boot clock to be toggled between 12 and 24 hour format am: 9071db1d37
am: 3400dffcad

Change-Id: Ic4df64d163845547416ef1280ae2ba2f1b41efda
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.cpp
f67b317c102db72182046ec2a2cffe2331017709 08-Sep-2016 Damien Bargiacchi <drb@google.com> resolve merge conflicts of 6574d9c to master

Change-Id: I9b97396a03f80507d71a52d281f88f686712b129
6574d9ca46bcdc1db970309baf4ad49532370542 08-Sep-2016 Damien Bargiacchi <drb@google.com> Allow custom fonts in the boot animaiton zip file
am: 0e3d2ab6d2

Change-Id: I13d1e6a707ad941a267b89483e6dc029398a2d82
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.cpp
fa88d564641bb10710b2123db883697cbfa5937b 11-Aug-2016 Geoffrey Pitsch <gpitsch@google.com> Suppress Boot sound for non-standard scenarios. am: 290c4350ed am: 854f8cecf7
am: 9e7b3f657f

Change-Id: Id7d1cb29fa1e1a416d56b4b16a73576a458216c4
9e7b3f657f4f25a5ad65d028b7b100e36f2162c8 11-Aug-2016 Geoffrey Pitsch <gpitsch@google.com> Suppress Boot sound for non-standard scenarios. am: 290c4350ed
am: 854f8cecf7

Change-Id: I182a77ce9fec2ae3f900a544ac4af8064240a06b
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.cpp
d6536e4d22b910864431c2f4999230b15df9620d 09-Aug-2016 Geoffrey Pitsch <gpitsch@google.com> BootAnimation system property to play sound. am: 305087991d am: 8e4b8a988f
am: 5e8bb86e8c

Change-Id: Ibcf73b3245b63492c1feaa1494271c181c86c59e
5e8bb86e8cca04a810806d650f544908726b6c50 09-Aug-2016 Geoffrey Pitsch <gpitsch@google.com> BootAnimation system property to play sound. am: 305087991d
am: 8e4b8a988f

Change-Id: Icd062a5b3eb9da9d9c7bd3c5d7dd4e40f75c3a1e
305087991d1b88d98c5e5e03fcf5a6a6e93ad356 22-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> BootAnimation system property to play sound.

Optional system property "persist.sys.bootanim.play_sound"
If nonexistent, default behavior plays the sound.

Bug: 30690353
Change-Id: Ie5ed456d891632be5ec8be255ac7c1193753c741
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
b5f8fe16296e5bb4541833a04dee499ac94c496c 25-Jul-2016 Jesse Hall <jessehall@google.com> Merge \\\\"bootanimation: Call eglReleaseThread in threadLoop\\\\" am: 189bbd9f6d am: 9495872add am: 41ebe86049
am: af2a8a9ca6

Change-Id: Ic03306aadf473d0c5cf6954288c57b759186c807
af2a8a9ca6d08f673205140c2ae114aa0373b79a 25-Jul-2016 Sai Kiran Korwar <skirank@nvidia.com> Merge \\\"bootanimation: Call eglReleaseThread in threadLoop\\\" am: 189bbd9f6d am: 9495872add
am: 41ebe86049

Change-Id: I7927f23aa76cc17221e557d7f36b95bc23696a1b
9495872addfe27a68500b39deb9fab6e2b1d3eff 25-Jul-2016 Sai Kiran Korwar <skirank@nvidia.com> Merge \"bootanimation: Call eglReleaseThread in threadLoop\"
am: 189bbd9f6d

Change-Id: Iaa5b3e60548ee2cce19cb4c31a6274d0ad877189
163c97a8ea0682e91fdccf1c3137ee43b9e00135 18-Jul-2016 Derek Sollenberger <djsollen@google.com> Merge changes from topic 'skia_merge'

* changes:
Fix include to match Skia filename change
Remove references to SkImageDecoder (part 2)
Update SkiaCanvasProxy with SkSurface API change
Return DNG mimeType for the case kDNG_SkEncodedFormat
Remove use of SkFixed. Update code to use SkGlyph.fAdvance[XY] after https://codereview.chromium.org/1737693006.
skia SkDocument - new MakePDF API, fix leak
8898c16987831db47542a92151ed7209e22268aa 24-Mar-2016 Matt Sarett <msarett@google.com> Remove references to SkImageDecoder (part 2)

As of this CL, SkImageDecoder is no longer used in Android and
will be deleted by Skia.

(cherry picked from commit 097a6ea4b65046df3e3cbf93d1acfc4e6833e02f)

Change-Id: Ic754ab0dde7ad1b65ccf3b2bc23fcbc5ef44ed08
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
a91a2d737586ebd0040129333055d8093899751b 12-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> Fixes delay when playing first sound in BootAnimation

audioplay is initialized with an example of the type of clip it
will play.
Also remove asserts and debug compile settings from BootAnimation.

BUG:24800792
Change-Id: Icb78489417aee0549c340c746b25e57ccdb3427e
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
4786f6d958908dc668d677e0260bbe821dd61298 13-Jul-2016 Damien Bargiacchi <drb@google.com> Merge "Don't show times before 2000-01-01" into nyc-mr1-dev
9676281c4f0b34707e34cf9d2f5a866f1979c405 13-Jul-2016 Damien Bargiacchi <drb@google.com> Don't show times before 2000-01-01

BUG=27802041

Change-Id: Iaa826e029c3b887e2bda6d12bc7c372d862ed320
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
859029ff7b87087e5e70a087a75bac5836f41a22 12-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> Merge "OpenSL-based audio support for BootAnimation" into nyc-mr1-dev
143d48927e0fa2a8680168c0ea076bb71775d712 11-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> Merge "BootAnimation: Use npot textures" into nyc-mr1-dev
2fb30fb68e9acb121a3e0dae0cd2790b3a7cc17d 06-Jul-2016 Geoffrey Pitsch <gpitsch@google.com> Wait until end of BootAnimation to free looping textures

glDeleteTextures causes a noticeable framerate hitch when switching to
the outro. By the time looping is finished, the system has finished
booting, so freeing the textures immediately is less beneficial.

Bug: 29878551
Bug: 30040263
Change-Id: I5a404a6e18cd2cf64d6c94343f82fa5db8dfbab3
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
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.cpp
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.cpp
3eee9fbb6df1dbbcefe1f0dfdf1295c95ddf3279 16-Jun-2015 Sai Kiran Korwar <skirank@nvidia.com> bootanimation: Call eglReleaseThread in threadLoop

Add eglReleaseThread call in the threadLoop function to
ensure that the thread properly cleans up its resources
before exiting.

Change-Id: I90dff47370e7acaecc046c43f0bb274214a29f77
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
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.cpp
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.cpp
358fcc795ea567ba086a460c587de427507fefdd 12-Aug-2015 Jorim Jaggi <jjaggi@google.com> Do not start with a black frame in bootanimation

Bug: 23128307
Change-Id: I0ec044f983c1c30960be046e43a882c63205dc5f
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
4600dd053dbdbd4b95f3b11057a1cc55b99f9c77 16-Jun-2015 Narayan Kamath <narayan@google.com> ZipFileRO: Use precise widths for zip file types.

getEntryInfo crashes on 64-bit devices because "long" types
were being passed int pointers (that pointed to a stack frame)
that were reinterpret_cast'ed to long* (sigh.). To fix this issue
once and for all, use types with explicitly defined widths.

This change also removes some dead invariant checking from
Asset.cpp instead of cleaning it up.

Note that we've introduced a wart in NativeLibraryHelper, where
we need to deal with zlib's uLong type, which is "at least 32 bits
wide".

bug: 21622286

Change-Id: Iae675a9601db7aae03a8b80b40321d2cc1d97f50
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
b65b66ccc251371c817abe75176a73f84565410e 07-May-2015 Chris Elliott <chriselliott@google.com> am 2224eac3: Merge "bootanimation: fix garbage line issue when screen height is odd." into lmp-mr1-modular-dev

* commit '2224eac30375a731f4ad38d6930dbc37b0855a0d':
bootanimation: fix garbage line issue when screen height is odd.
d13d504e4b7548f0ce4f9c4f0eee5c1ac2ce6794 05-May-2015 Chris Elliott <chriselliott@google.com> bootanimation: fix garbage line issue when screen height is odd.

bug:20032072

Change-Id: I784fb6f815b22c37dcd7354729aca346726196d9
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
688ff4cf0f93d1a886437884f23874e5595d59a3 23-Feb-2015 Narayan Kamath <narayan@google.com> Track removal of refcounts from FileMap.

Use delete instead of release.

Change-Id: I25c841b368aa9d51e9259399b94cafa2bbb7a076
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
cfedceb8c180a2e176154d461659e0c3569dc931 01-Oct-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Turn on -Wall -Werror in cmds

Fix small warnings, turn on -Wall -Werror.

Change-Id: Iab1f01a7c7ebd6ba832b75067c5e395f380a1b8b
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
5a71f83227f0340a265f34b226d8fe01d4dd9773 22-Oct-2014 Bill Yi <byi@google.com> Merge lmp-dev-plus-aosp-without-vendor into stage-aosp-master

Change-Id: I7063b7b52e9c09a57eb6bf3b4ffa3716d58ebf43
bb94f3107ea567ddf67bed4617c3bcbd602538df 21-Oct-2014 Elliott Hughes <enh@google.com> Include <time.h> for clock_nanosleep.

Change-Id: If3098fa03003bce5d06d60e9129c10cce3c850bb
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
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.cpp
42a1d08df7d417fd4e67eabc91ff05ee77fd9995 08-Jul-2014 Mike Reed <reed@google.com> SkBitmap::Config is deprecated, use SkColorType

Change-Id: Ida181d2aac760072cf2d01409edac37699dea216
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
52adfdaafd464348628d9257101f24a67d7c8bbb 30-Apr-2014 Narayan Kamath <narayan@google.com> am 516130cc: am dbbf431b: am d0f7f418: Merge "Freeing frame map"

* commit '516130ccb1841afb6ef154c28269d91594925429':
Freeing frame map
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.cpp
28f0877073e0ebc59f1eeeb6e0d54b614b9d3fa5 16-Apr-2014 Jeff Sharkey <jsharkey@android.com> Allow custom wallpaper and boot animation.

Add new "ro.config.wallpaper" and "ro.config.wallpaper_component"
properties which may be defined outside of the bundled framework
resources. Falls back to bundled resources when properties are
undefined.

Also look for boot animation under OEM partition.

Bug: 13340779
Change-Id: Ibdc9935dbdaae3319bf63b40573de0503d82ae67
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
c749b44086722217526f220f3656ba06b2e8cea0 06-Mar-2014 Andy McFadden <fadden@android.com> FramebufferNativeWindow.h is obsolete

Change-Id: I3c645af7247a520e28d337e567f326375558519a
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
eece0dda56ae29fff6e9003df97594f6ac50b6e2 27-Feb-2014 Derek Sollenberger <djsollen@google.com> Fix includes so that they no longer rely on the global Skia includes directories.

bug:13225538
Change-Id: Ia5d816dc665f81c7985f21036af4fd0a63c560cf
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
9d7d4da6b719594a89b4b8b17546f6601b617f33 16-Dec-2013 Nick Kralevich <nnk@google.com> am fc800d40: am fbd6d5a8: am 09fdc159: am 3ddee4de: Merge "[bootanimation] Drop user loadable bootanimation.zip abiltiy."

* commit 'fc800d407d695926ba07299c4e27d1e06284098f':
[bootanimation] Drop user loadable bootanimation.zip abiltiy.
cee6a096b155582211f58bb3e541cf431c6ac3dc 16-Dec-2013 Robert Craig <rpcraig@tycho.ncsc.mil> [bootanimation] Drop user loadable bootanimation.zip abiltiy.

A prior change removed the ability of
the shell to push to /data/local. Because
of this, the bootanimation code no longer
supports users loading custom bootanimation.zip
files. This patch drops the access attempt
from the code.

Change-Id: Ie30dd73699c8296be00dc6fbf14691e08baa6410
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
362028d6321468ff598a93df7b2ca0dbfcf3405a 12-Dec-2013 Nick Kralevich <nnk@google.com> am 411954ae: am a6416309: am 1e137549: am efa5c88f: Merge "Don\'t try to set service.bootanim.exit"

* commit '411954aef072574676462f579847a01af0aed728':
Don't try to set service.bootanim.exit
e58d09a5526338aa1f550a1c4111fe4d5028554d 11-Dec-2013 Nick Kralevich <nnk@google.com> Don't try to set service.bootanim.exit

init has never allowed the bootanimation code to
set service.bootanim.exit, and has always generated the
dmesg error message

<3>[ 17.644615] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit

Since setting this property has no effect and never worked, delete
the code which tries to do it.

Change-Id: Idacc5467d85479a8cf974702af8895011be585ea
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
5a74e2df57acb93b61568b90b048016046ef4512 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

(cherry picked from commit afd31e08299008fdc5c2813f21b2573f29dc53df)

Change-Id: I86a2c528575d4a3ca86b94be068dcdc3c17c2ed6
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
4b9a19a8f865970e0079f431c8c2c2a8e4333ae9 03-Dec-2013 Leon Scroggins III <scroggo@google.com> Call SkBitmap::config() instead of ::getConfig()

getConfig() has been deprecated.

Change-Id: I32066256ab82ac4760c752c80856d1b56d291fae
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
dbccd44a638ae8705a5b14bff8b2dd74abc26045 22-Nov-2013 The Android Open Source Project <initial-contribution@android.com> Merge commit 'b873a17ce7be0a9771c24999adca6964431728f6' into HEAD

Change-Id: I938755073e70602cc8f51ce9bd420fdcf870cecd
ed84dea928a5a830a19b5bcab7ad05a7e92f3279 29-Oct-2013 Elliott Hughes <enh@google.com> am 8f592378: am 69920427: Merge "Fix a variety of small publicly-reported bugs."

* commit '8f592378a1ea7f31d57253dc202f42707ef4da36':
Fix a variety of small publicly-reported bugs.
c367d48c55e5a3fa0df14fd62889e4bb6b63cb01 29-Oct-2013 Elliott Hughes <enh@google.com> Fix a variety of small publicly-reported bugs.

Possible NULL dereference in cmds/bootanimation/BootAnimation.cpp.
https://code.google.com/p/android/issues/detail?id=61556

Missing fclose in core/jni/android_os_Debug.cpp.
https://code.google.com/p/android/issues/detail?id=61546

Bad loop guards in core/jni/android_util_Process.cpp.
https://code.google.com/p/android/issues/detail?id=61557

Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560

Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549

Leaks on error in tools/aapt/Images.cpp.
https://code.google.com/p/android/issues/detail?id=61552

Two missing fclose calls in tools/aapt/Resource.cpp.
https://code.google.com/p/android/issues/detail?id=61553

Missing fclose in tools/aidl/aidl.cpp.
https://code.google.com/p/android/issues/detail?id=61554

Change-Id: I5820f3824e72d07a9acb776cf0af3e7443f5694a
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
5827cb5059ed0eec4c73adf1acbd7ee47b2c5c8f 26-Jul-2013 Derek Sollenberger <djsollen@google.com> Changes needed to support Skia at r10377.

Change-Id: Id1e1c8c5938ee1a33c6fa3caabd2c28e89243eb4
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
0b722fe9ce98d97dbcb6fefd170b85ab7037e528 25-Aug-2012 Jeff Brown <jeffbrown@google.com> Use new surface flinger API.

Change-Id: Ic888577408a59a36481a48010e19c5e77c24e211
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
92c6d2fc50ec2a33a2a990fe66cd70090eb461ca 26-Jul-2012 Mathias Agopian <mathias@google.com> update to new getDisplayInfo API

Change-Id: I8051b4f9f23d3ef4791176de1bbcfafacae7d579
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
60691ce1600cb79ec9bb9957eee29be7a6a5e5d2 11-Jun-2012 Mathias Agopian <mathias@google.com> make the boot animation 32-bits to avoid banding

Bug: 6611693

Change-Id: Id31b711ea755c89240eaea26f6403a031cd939e4
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
db7dd2af93ae96e5749cfbe978c2695049d9d782 13-May-2012 Mathias Agopian <mathias@google.com> fix BootAnimation timing

We were including the delay of the previous frame when
calculating the delay needed between a frame and the next.
This caused a bad jitter in the animation timing.

We also now use clock_nanosleep().

Change-Id: Iebb8cca4d57fe2f11d83b23a736e03db7a7d2006
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
fd135bc809589d4cadcdbcc7ececaf2d9d0969cf 24-Apr-2012 Travis Geiselbrecht <travisg@google.com> am f4b6628e: BootAnimation: fix bug to delay the appropriate amount of time per frame

* commit 'f4b6628e5084bf317eab5326c51cbecb8fabdc45':
BootAnimation: fix bug to delay the appropriate amount of time per frame
f4b6628e5084bf317eab5326c51cbecb8fabdc45 24-Apr-2012 Travis Geiselbrecht <travisg@google.com> BootAnimation: fix bug to delay the appropriate amount of time per frame

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

Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
3762c311729fe9f3af085c14c5c1fb471d994c03 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
5baa3a62a97544669fba6d65a11c07f252e654dd 20-Dec-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/156016

Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
2b99e55ee3a0956a43a276f8018356ff9d08eafc 11-Nov-2011 Mathias Agopian <mathias@google.com> boot animation is dithered and scaled

disable dithering which shouldn't have been enabled
in the first place because the frames are typically scaled.
we still use a 16-bits texture format to preserve memory.

Bug: 5600948
Change-Id: Ib4d6e133df4375d0d735cd4325b6e589bbc5dafe
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
1b253b702a356619ae3c5e68ee92062b5305c5d7 16-Aug-2011 Mathias Agopian <mathias@google.com> boot animation doesn't use EGLUtils anymore

Change-Id: I0767ac2a5ab814382b41c85bd5b0786c7a025255
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
439863f3b3e725b5de1cba4940a21900369961c0 29-Jun-2011 Mathias Agopian <mathias@google.com> SF transactions are now O(1) wrt IPC instead of O(N).

Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
7bb843ca0777111dae7daf8f1b0705817cf523c4 20-Apr-2011 Mathias Agopian <mathias@google.com> unify SurfaceTexture and Surface

Add the concept of synchronous dequeueBuffer in SurfaceTexture
Implement {Surface|SurfaceTextureClient}::setSwapInterval()
Add SurfaceTexture logging
fix onFrameAvailable
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
59f19e48c1c043bb9debdc35d166e397e2125d33 07-May-2011 Mathias Agopian <mathias@google.com> clear boot-animation background with black (not transparent) pixels

Change-Id: I2fcf9f303e8324cefaa2d96f1c46647f70980bb2
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
9638e5c167be321643bf3f3ee39e3fb45541fb3b 20-Apr-2011 Mathias Agopian <mathias@google.com> Get rid of the "pid" parameter from createSurface

Change-Id: I28635e3f803e6abe965d79998e305f54a202465d
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
bd9a08d318f94a3d0b2f8f9d7b16b10736d80c5c 31-Jan-2011 Jason parks <jparks@google.com> Show the encryption boot animation.

Change-Id: I15892a35238d97302b30f26bec170b9f231a3e15
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
0d7c66b3a555356315c17da48969fee28181ceda 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge 42c94791 from open-source master

Change-Id: Id17a1a787b6d46c44ba39d628129a3a27f6d70be
2978751310b4efef1faa87b116fcaee9423c007f 03-Nov-2010 Chih-Wei Huang <cwhuang@linux.org.tw> Fix the animation disappeared issue

The animation movie disappears due to the incorrect logic of
commit c11f46259a1e8f4e7e58925aefd1ed9eaf57a7fc.

Change-Id: I9c0eac2bf2950fe20e931da367036ddf38d81f52
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
18dd95f451f866804d19797bc47ab5a2821c0020 17-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 05b20c03: Merge "bootanimation: Don\'t open non-existing bootanimation.zip"

Merge commit '05b20c034d5a1ffe64c15d155dd8511b77b8989b' into gingerbread-plus-aosp

* commit '05b20c034d5a1ffe64c15d155dd8511b77b8989b':
bootanimation: Don't open non-existing bootanimation.zip
c11f46259a1e8f4e7e58925aefd1ed9eaf57a7fc 09-Aug-2010 Jim Huang <jserv@0xlab.org> bootanimation: Don't open non-existing bootanimation.zip

While booting from AOSP image, logcat always complains as following:
W/zipro ( 1001): Unable to open zip '/data/local/bootanimation.zip':
No such file or directory
W/zipro ( 1001): Unable to open zip '/system/media/bootanimation.zip':
No such file or directory

This patch avoids opening non-existing files.

Change-Id: I54cc03f125a5e16dbc930515bd2e43c623b63f8f
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
770492cb2b19f6a36ad748cd05fbedfbb9a67dfa 28-May-2010 Mathias Agopian <mathias@google.com> more clean-up in preparation of bigger changes

the most important change here is the renaming of
ISurfaceFlingerClient to ISurfaceComposerClient

Change-Id: I94e18b0417f50e06f21377446639c61f65f959b3
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
000479f9e325b4e426a67033abd92d47da412725 10-Feb-2010 Mathias Agopian <mathias@google.com> split libsurfaceflinger_client and libcamera_client out of libui
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
9f3020db15e50d07ee1ace42e47d90b076f2ce54 07-Nov-2009 Mathias Agopian <mathias@google.com> fix [2243164] live wallpaper screen artifacts at end of boot

make sure to glClear() the areas not touched by the animation
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
a8826d67097b12cf9d6b14a7e32c0862f17b189a 01-Oct-2009 Mathias Agopian <mathias@google.com> improve boot animation a bit
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
8434c5369304e639efe8eab368ca410c589d87c2 24-Sep-2009 Mathias Agopian <mathias@google.com> the boot animation is back! it broke in a recent check-in
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
b4d5a72691846bce5779cc3db056f09a5031d7cc 24-Sep-2009 Mathias Agopian <mathias@google.com> fix simulator build
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp
317a6280cc109e873646e4652be1582d870eedfd 14-Aug-2009 Mathias Agopian <mathias@google.com> Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
738b9a45399485893fa9541fae19c47e01bc4af4 07-Aug-2009 Mathias Agopian <mathias@google.com> make sure bootanimation will choose the right config wrt the native surface
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
abac01052c1c40f8582fe9f010c2efe6013e25c6 31-Jul-2009 Mathias Agopian <mathias@google.com> be more robust when errors occur upon EGL surface creation (ie: don't crash)
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
461bcdd3b7fb2d004bdc6b97b3cf36d137b11ad1 29-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am e640d259: Merge change 8832 into donut

Merge commit 'e640d259c29b9d919e80b2b3d3f810459135b8f3'

* commit 'e640d259c29b9d919e80b2b3d3f810459135b8f3':
fix [1996214] Boot animation is occasionally messed up
8166864e42bc20c1544b2028e8dd65b90f29a0ea 28-Jul-2009 Mathias Agopian <mathias@google.com> fix [1996214] Boot animation is occasionally messed up
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
947f4f4d384ea26eb2145cc070a3eed42c59534a 22-May-2009 Mathias Agopian <mathias@google.com> merge master to master_gl
ac31a3b8b09aba1c5ebc73f0cf65cac2210aa6b7 22-May-2009 Mathias Agopian <mathias@google.com> this should fix the build
/frameworks/base/cmds/bootanimation/BootAnimation.cpp
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.cpp