History log of /frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f1f5f6fcaa768c5b88e9a56f18cbd6ecf72755a8 21-Oct-2015 Alan Viverette <alanv@google.com> Reset constant width/height when DrawableContainer density changes

Bug: 25081461
Change-Id: I9661e964e1d0bacd337e31073faf870d37939b51
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
06ff2af68aa1041eeb26778e994e0fe196bf8b1e 24-Jun-2015 Alan Viverette <alanv@google.com> Update local state when creating LayerDrawable from constant state

Also clears DrawableContainer's futures list when it's no longer needed,
correctly sets deep copy of state set in StateListDrawable, makes some
private methods into package-protected to avoid thunk, and propagates
state to StateListDrawable's super class so that getState() has correct
information.

Bug: 21840003
Change-Id: I0d4232807f280d663c03b4a80e4aab8626806440
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
102a6bff77c618112762245dbd798c8d7f6d44ea 26-Feb-2015 Alan Viverette <alanv@google.com> Propagate original Resources to DrawableContainer if no override set

Also fixes a double-add in ASLD.

Bug: 19498949
Change-Id: I9e7e0a0fb22a23518c80c1b099f8da0e0c1f53d8
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
5ed8f27858dbdf85203068eca46eef0a65f3344e 27-Nov-2014 Alan Viverette <alanv@google.com> Update drawable container constant state following clone

DrawableContainer's internal state was getting out of sync with the
internal state of child classes because we failed to call set state.

BUG: 18542282
Change-Id: Iacaa12042e99c1b9e9eaf08f0ab879d82260e7ee
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
8dcd533786df8d824f1e040230ee9e7e5b083998 25-Nov-2014 Alan Viverette <alanv@google.com> Ensure calling mutate() on DrawableContainer creates a new state

Previously, a new state would only be created on newDrawable(), which
caused the first drawable loaded for a resource to share constant state
with the cached version. Even if mutate() was called, the constant
state was still shared and any changes were applied to the cached copy.

BUG: 18504919
Change-Id: I40d257867eb0a092ce580b9c4338ddc7406a031d
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
cf84ab5e7f860a716f9a789a5d5d5f4378a8204c 25-Nov-2014 John Reck <jreck@google.com> Revert "Ensure calling mutate() on DrawableContainer creates a new state"

This reverts commit d7dab349c2af0e4bde188b1969f0c697b217dd57.

Change-Id: Icc1c4bfa296a59a551088fe7cc2449a97bb2b7b7
Reason: Broke the build
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
d7dab349c2af0e4bde188b1969f0c697b217dd57 24-Nov-2014 Alan Viverette <alanv@google.com> Ensure calling mutate() on DrawableContainer creates a new state

Previously, a new state would only be created on newDrawable(), which
caused the first drawable loaded for a resource to share constant state
with the cached version. Even if mutate() was called, the constant
state was still shared and any changes were applied to the cached copy.

BUG: 18504919
Change-Id: I1ce76fbbc144e9c0c93261e3a12cc613d0c74b83
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.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/AnimatedStateListDrawable.java
2d91f63ec20c4b06e87c80451a656462eceba17f 12-Nov-2014 Alan Viverette <alanv@google.com> Don't propagate AnimatedStateListDrawable state change to super()

Also updates child element inflation code in AnimationDrawable so
that color resources can be used in the <item> drawable attribute.

BUG: 18322272
Change-Id: I8d13643c5cbdb76d69634a7bac3cead9e9fba4e8
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
d6570d11e4d1e43c2cfe1d10e27a7786c4283169 06-Nov-2014 Alan Viverette <alanv@google.com> Support theme attributes in StateListDrawable <item> element

Also adds support for specifying drawable as a color since getDrawable()
automatically wraps colors to ColorDrawable. Does not currently allow
themed item elements to be used in Zygote preload, but we can add that
at some point in the future.

BUG: 18208662
Change-Id: I4c9721ffd100da4b9db7743a46c914828b943dae
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
7f4a63d1ebc13c6499a48331ecb78c4d27446dbc 30-Oct-2014 Alan Viverette <alanv@google.com> Ensure we don't pass null values in to Theme.resolveAttributes

BUG: 18182274
Change-Id: I08acf877cb81478cc205254edf92a31fcf05991d
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.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/AnimatedStateListDrawable.java
f81c6af10ef3041eeddb4a4560611a17dd3d399b 20-Oct-2014 Alan Viverette <alanv@google.com> Propagate state changes even when we don't change drawable index

Previously we could miss the state change if we were simply reversing the
current transition.

BUG: 17967405
Change-Id: I2cb396dedbff61b980741ef8c0d931be6abe129c
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.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/AnimatedStateListDrawable.java
39e33621a725bcdaa21a723866e53c6ea3356169 03-Oct-2014 Alan Viverette <alanv@google.com> Fix theme propagation to contained android:drawable elements

BUG: 17790666
Change-Id: I6733a98e779cad0d384b917c57d2b3409a166c02
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
b067405bf453289a6b6bfd34b06700f08be58c24 27-Sep-2014 Alan Viverette <alanv@google.com> Add callback to track and thumb drawables, propagate state in ASLD

BUG: 17665424
Change-Id: I22da4530f3e2869d856102e804f020461a46fe49
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.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/AnimatedStateListDrawable.java
6beeb75723cec42603b47664bce794a2b97d7bac 15-Aug-2014 Chet Haase <chet@google.com> Minor doc fixes from API council recommendations.

Issue #17008236 API review: android.graphics

Change-Id: I171d376b642707858198d8a1379c732fcfcab4dd
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
03d30a573b8bc8e169e153a0fffa053ffedcd5ee 14-Aug-2014 Alan Viverette <alanv@google.com> Make sure we're obtaining themed drawables correctly

Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
d646fa2933ddcbfd4ed9c7686bf5e8253b4ba980 16-Jul-2014 Alan Viverette <alanv@google.com> Fix state list drawable transitions

BUG: 16345178
Change-Id: I3a4f09462ac127bfb2adba6f63f5f44e5d4ea693
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.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/AnimatedStateListDrawable.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/AnimatedStateListDrawable.java
f456b1f078639a422f966ef2e9376cbd5ae3d274 04-Jul-2014 Alan Viverette <alanv@google.com> Update AnimatedStateListDrawable to work with Animatable drawables

BUG: 16016730
Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
97fb0aa5090858705b66bfc4c05e7530c5d3d6b1 13-Jun-2014 Alan Viverette <alanv@google.com> Only start AnimationDrawable on visibility change when animating

BUG: 15532494
Change-Id: I5663fc86e64c34db84385238865e08297fb1f817
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
6dbe51b50e82057af4d29882889444d22ac19c9c 03-Jun-2014 Alan Viverette <alanv@google.com> Clean up drawable theming APIs

Removes APIs for themed creation of a drawable from a stream, since
that doesn't involve any inflation. Also cleans up tinting methods
left over from previous clean up.

BUG: 15089957
Change-Id: I2af7aa9a6d351ae61b33ee1216c674fae1bffe11
Signed-off-by: Alan Viverette <alanv@google.com>
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
2356c5e69b0911e6334ebf6374217898371be5ac 23-May-2014 Alan Viverette <alanv@google.com> Update switch, checkbox, radio button, button, and toggle button

Add optical inset support to BitmapDrawable with gravity. Fix optical
inset support in DrawableContainer. Fix visibility change support in
AnimatedStateListDrawable. Adds a whole bunch of missing drawable
support to CheckedTextView.

BUG: 15127013
BUG: 15126976
BUG: 15125529
BUG: 15025806
BUG: 14597955
BUG: 14594498
BUG: 15152746
Change-Id: Id2d99e10838d25b6f927ca1e49996c8da8e78ab1
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java
5e92c95d847a68178cf6099c801f82dcb7e4fa47 09-May-2014 Alan Viverette <alanv@google.com> Animated state transition drawable

Change-Id: I6c795d55cd7ab9163fdd6fe6ce3771bbd7015d62
/frameworks/base/graphics/java/android/graphics/drawable/AnimatedStateListDrawable.java