History log of /frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d2f50c78c3c5205d6b28b7079d2f845c3d9dc0b3 05-Dec-2014 ztenghui <ztenghui@google.com> AVD: Deep copy the animator target setup when mutate.

Only calling VectorDrawable's mutate here will miss all the animator setup,
when the VectorDrawable has a new state.
So we just deep copy everything and setup the animators again.

b/18521582

Change-Id: Id164312750bb548f9c2d21cc0b5806cd2bafcf0d
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
5b84eace6cb79c42fe43480f08c68b7dea4e074a 19-Nov-2014 ztenghui <ztenghui@google.com> ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.

Previously, the android:reversible flag behaves like a suggestion.
Now it is used to enforce no reverse when set to false. In this way, user can
safely setup one direction animation only.
When set to true, but AVD can't reverse , then it will show a warning.

At the same time, update the tests to show different cases, including
AnimationDrawable.

b/18413484

Change-Id: I5552c49dcbd76b0724b4d5593bce8388b27bd905
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
1a40facbfd60575a3232ae49f4b05098f4ec4830 07-Nov-2014 ztenghui <ztenghui@google.com> AVD: Requires all animator has stopped before start again.

We should treat all the animator as a group, we should not start again unless
all the previous animations have stopped.

b/18320770

Change-Id: I5b0c2c165cd314745ee6c7152aea3c666e9dff10
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
d21fd9d1ccd2b525f9c004a6cd9ba19a645701ab 29-Oct-2014 Alan Viverette <alanv@google.com> Add theme and config change support to more Drawable types

BUG: 16045735
Change-Id: Ic03173a1c1779c1bb545c4c389f77afed97011ee
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
17cd4dfe3a05c2eddbcbc76066ff3b13fc3f2c8b 14-Oct-2014 Alan Viverette <alanv@google.com> Update preload list, clean up drawable theming

Removes all implementations of three-arg ConstantState constructor, since
we handle mutation and applyTheme() in Resources now. Moves progress bar
tinting to android:tint attribute. Correctly implements applyTheme() and
canApplyTheme() in all drawable wrapper and container classes.

Change-Id: Ic9cb43d0d6228aa4914f3124bed234b837beaa41
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
727cae197b123ef764a1f8fbe08a995b000d14c3 08-Oct-2014 Alan Viverette <alanv@google.com> Mutate and apply theme if needed before caching themed drawables

This ensures that drawables are completely separated from their cached
constant states before applying a theme. After this, we can remove the
implicit (and incomplete) mutation in the clone constructors.

Also implements missing mutate() method on ClipDrawable.

BUG: 17646144
Change-Id: If0d66b0a85724d76e0a4f506758c7ba3c0aa3410
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
5004032ebc2aee97c5884b7f91cc33d2f98ae8b5 26-Sep-2014 Alan Viverette <alanv@google.com> Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VD

BUG: 17646144
Change-Id: I58c111d86224dc8f7f557073c0bcbc22ad74aa1b
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
98916d146afe2ff25a439603f7d9559e74a790ca 23-Sep-2014 ztenghui <ztenghui@google.com> Fix AVD for CTS failure.

Mostly about changingConfig flags, the fix is just a copy from VectorDrawable.

b/17631551

Change-Id: Ibad9c2f61cd86b15e9bca1d1991c8cd147897bb0
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
6f6578e81c1df207da47e2e1337382341f271206 06-Sep-2014 Chet Haase <chet@google.com> Use constant state in AnimatedVectorDrawable

Complex animated vector drawables can be expensive to load due to
sub-optimal parsing of the String-based pathData. Suffering that penalty
every time the same drawable is loaded (such as material-themed
ProgressBars) is painful.

The new approach caches constant state of both the VectorDrawable (including
the pathData geometry) and the animators (which includes potentially expensive
path-based interpolators).

issue #17366831 Material ProgressBar taking 200+ms to inflate

Change-Id: Iba3b541e24cfce8c07f5aa9fe6aa7d7b92b2fe1c
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
fd3c4744f265c5277e6e2641a18d5ec3dff19f6b 08-Sep-2014 George Mount <mount@google.com> Use intrinsic size for path animation in AnimatedVectorDrawable

Bug 16984007

Animated Vector Drawables were using the viewport dimensions for
calculating the allowable animation error. Instead of using viewport
dimensions, it is better to use the intrinsic dimensions. Using
the viewport dimensions meant that a small viewport (e.g. 1x1)
would mean that animation paths within would only have an accuracy
of 50% of the dimensions of the drawable.

Change-Id: Id0152eabb4effd1e50c644eea7a371b38baeb7c1
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
a94900e587dca6e342bf29ed1acb720c594066c0 22-Aug-2014 ztenghui <ztenghui@google.com> Merge "Fixing AVD animation with startOffset" into lmp-dev
14aedd1fbf52f1b844064a15d583ccfbda6ce57d 22-Aug-2014 ztenghui <ztenghui@google.com> Fixing AVD animation with startOffset

b/17160751

Change-Id: If030ca04f5a7dd7e732dcc5dfb18d51faa7e7b79
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
06cd7dce24876b54870f9ef3831237f8298773a9 20-Aug-2014 Alan Viverette <alanv@google.com> Forward additional drawable methods in AVD

BUG: 17156349
Change-Id: I1d7b41fc8d0399b31db4cf21aa47180e96bfbcfe
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
06eaf193bde2f8455a3f957f1df4b1c328ac1432 06-Aug-2014 ztenghui <ztenghui@google.com> End the animator when stop() is called

bug:16830053

Change-Id: If27ba904b0f78ee8c59df3522a97f5f86509ca0e
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
a95c8abb366d9c39450513335f550b56da13b30a 23-Jul-2014 ztenghui <ztenghui@google.com> API REVIEW: VectorDrawable

- Merge <size> and <viewport> attributes all in to top-level <vector> tag
- Indent attributes under <group> in java doc.
- Updata android:stroke to be android:strokeColor, likewise android:fill
- Instead of android:clipToPath, make this a different clip-path tag.
- Document units of the various attributes
- Add example code for defining a VectorDrawable resource

More than that:
= Refactor the code to better support clipPath as a sub-class.
= Update all the xml files to use the new attributes and clip-path tag.

TODO:
-- Remove clipToPath, since that should happen on build break Friday.

bug:16488254

Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
7bc6a3f023ca3e1dde91fc97b6036dee3ba538a2 16-Jul-2014 ztenghui <ztenghui@google.com> Add more reverse support to AnimatedVD

bug:16162242

Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
6e0a9fa6ed86e918bfed5310d2522b2c2a527ef0 14-Jul-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Add support for AVD reverse() to ASLD, clean up transition handling

BUG: 16162242
Change-Id: I29336491d01d40e5369503ece858bcbe5aa99b19
(cherry picked from commit 4e9c797a9c024e5a4226ed37eece16e3db2edb78)
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
482eb53c8a7d5180a2d0ce3b0a779c18960aa8cd 14-Jul-2014 ztenghui <ztenghui@google.com> Enable the bitmap cache for the VectorDrawable

b/16299765

Change-Id: Ia2c0fd366abc097d1ce485936de74e4e898cc07a
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
55f765441c6cec6b2990de12f68d1c4ac444d35c 08-Jul-2014 ztenghui <ztenghui@google.com> Add constant state support back to VectorDrawable

At the same time, AVD is using a mutated version of VD.
And AVD won't support constant state.
Move the targetsMap down into constant state.

bug:16017895

Change-Id: I12fbc52a8719362adba9df1e0f97288decbd33b2
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
9cb5b4c2d93acb9d6f5e14167e265c328c487d6b 27-Jun-2014 ztenghui <ztenghui@google.com> Use AnimatedVectorDrawable for progress bar.

Change-Id: I419197ef38a611757f27ca3192350ad4bd403875
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
7e7ea9da6785a8345feffb754ddcb55b16cf69c9 20-Jun-2014 ztenghui <ztenghui@google.com> Make AnimatedVectorDrawable public.

Clean up some useless VectorDrawable functions.
Add comments, too.

Change-Id: I8cc2165d14d09fd71f5830c4f61f9e8ac1d7c8da
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java
e5e92602a41a4ddc7b42cd1c171a0edfbd09b8da 03-Jun-2014 ztenghui <ztenghui@google.com> Add AnimatedVectorDrawable

Currently as a hidden class.
It can support many the animations now as far as ObjectAnimator and
hierarchical group can support.
And we don't have path morphing yet.

Also support the Animator / Interpolator inflation from Context and Resources.

Change-Id: I948bbdf7373ad291171eed0b497959dce8c2edf3
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java