0b9ab9749aec297aa03c3fde6d5552c9f212ddbf |
|
09-Dec-2014 |
Alan Viverette <alanv@google.com> |
Fix default value of AnimationDrawable's one shot property BUG: 18676499 Change-Id: Iaaf134b3a58a04cd99db001edc4438ee75dab878
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.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/AnimationDrawable.java
|
030435773dc5413a690d460e97fd681740cd32ef |
|
18-Aug-2014 |
Chet Haase <chet@google.com> |
Fix crash in AnimationDrawable When a drawable becomes invisible, it unschedule itself, which sets mCurrentFrame to -1. Later, when it becomes visible, it calls setFrame() with either 0 (if 'restart' is true) or mCurrentFrame. Calling setFrame() with a value of -1 causes a crash later as we dereference an invalid location in the state durations array. This fix also checks mCurrentFrame and calls setFrame with 0 when the current frame is invalid. This takes the code back closer to what it used to be when setFrame was always called with 0, although now it will use a valid frame when it is set. Issue #16489419 Google Translate crashes whenever hitting done button on keyboard to get translation result. Change-Id: I1f5b8672d209017aa8a4eaa15bd7ddd2f3ae38d1
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.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/AnimationDrawable.java
|
100a2d1fc67d79d19afa0c00830350a5d4ab0c59 |
|
27-Jun-2014 |
Alan Viverette <alanv@google.com> |
Clean up AnimationDrawable.setVisible() state management BUG: 15823683 Change-Id: Ied0d476956c246bdfda66219aaa896f2ef58f0bd
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
b3c56086d802ae28888dd97ba1f49bd6cee0b673 |
|
14-Jun-2014 |
Alan Viverette <alanv@google.com> |
Add support for setTint in all Drawables, clean up lint warnings Change-Id: I962089ca59684cef28cb4a648d4a91e542bdf5d4
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
cda212d79d449468384cc7744878b8c99984059c |
|
14-Jun-2014 |
Jeff Brown <jeffbrown@google.com> |
Revert "Add support for setTint in all Drawables, clean up lint warnings" This reverts commit 381f83b613f7b6e71180983dbb992ff62f8dd6e3. Change-Id: I1181f436c647216ac46162260d9d886197b24568
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
4b17118aca1e67963254ab83504b0753a3eac7ce |
|
14-Jun-2014 |
Alan Viverette <alanv@google.com> |
Add support for setTint in all Drawables, clean up lint warnings Change-Id: Ia38b9d3e9d5c0072382050e815bdd9232b672e50
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.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/AnimationDrawable.java
|
3b983a74c6bac40aad191dfcfbed930cd25a9a01 |
|
05-Jun-2014 |
Alan Viverette <alanv@google.com> |
Fix default stroke width and NPE for line with no stroke width Also fixes restart on visiblity change in AnimationDrawable BUG: 15437284 Change-Id: I698e7ffb11489061a38fbcd5cea10ba11a6abb34
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.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/AnimationDrawable.java
|
5e92c95d847a68178cf6099c801f82dcb7e4fa47 |
|
09-May-2014 |
Alan Viverette <alanv@google.com> |
Animated state transition drawable Change-Id: I6c795d55cd7ab9163fdd6fe6ce3771bbd7015d62
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
52b999f0721b53e9c6e18a4bd664e89aeb65b2d5 |
|
25-Mar-2014 |
Alan Viverette <alanv@google.com> |
Implement APIs for obtaining, caching themed Drawables When Drawables are inflated during preload (or otherwise without a theme) they cache their themeable attributes in their constant state as an array keyed on attribute index. Drawables inflated with a theme will simply resolve theme attributes as part of normal inflation, and they will not cache any themeable attributes. Drawables obtained from Resources are pulled from theme-specific cache when possible. If an unthemed Drawable exists in the preload cache, a new constant state will be obtained for the Drawable and the theme will be applied by resolving the cached themeable attributes and overwriting their respective constant state properties. If no cached version exists, a new Drawable is inflated against the desired theme. Constant states from themed drawables may be cached if the applied theme is "pure" and was loaded from a style resource without any subsequent modifications. This CL does not handle applying themes to several Drawable types, but it fully supports BitmapDrawable, GradientDrawable, NinePatchDrawable, ColorDrawable, and TouchFeedbackDrawable. BUG: 12611005 Change-Id: I4e794fbb62f7a371715f4ebdf946ee5f9a5ad1c9
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
180979f76b0c99cd7053a44692f6408721b74bce |
|
15-Nov-2013 |
John Spurlock <jspurlock@google.com> |
Fix logic problems in AnimationDrawable and View. 1. View now checks both queues when unscheduling runnables, fixing the case where work was scheduled pre-attach, and unscheduled post-attach. 2. AnimationDrawable avoids posting duplicate runnables when rescheduling itself. 3. Decouple is-animation-running state from current frame pointer in AnimationDrawable. Some calls init to the first frame, but do not kick off the animation. 4. Remove workaround in SystemUI's AnimatedImageView (status bar icon) now that the underlying framework issues are fixed. Bug:11694594 Change-Id: I77ca6bd80262f7edcf980b2d7efc2592f8051f29
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
72146433322588c1116ee06c27ac758ad09d869c |
|
06-Jun-2013 |
Alan Viverette <alanv@google.com> |
Deprecate DrawableStateList.getChildren() and add getChild(). Moves from exposing the internal structure of a drawable state list to only exposing the data. Adds getCapacity() and mutate() as package-private APIs to support various drawable subclasses. Change-Id: Id08743f979287e1a305f069ccc3c0085a7da6f7b
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
dea05e90108d7866bb41c7177cda52c842f7db74 |
|
02-Mar-2012 |
Robert Ly <robertly@google.com> |
am ca7d7541: am d70eaff4: am 941ff38d: Merge "fix bug 5942522" into ics-mr1 * commit 'ca7d7541c4cad188eb643113e3c3e91e63d21a5e': fix bug 5942522
|
9366ce81dbaa1c954911ef1c8d5791bb4a69d89c |
|
22-Feb-2012 |
Robert Ly <robertly@google.com> |
fix bug 5942522 Change-Id: Ice16e63b42d5e8c89994d0844f62adaefc8a92a1
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
2b072677538de979961b5bf527109fdab1713731 |
|
23-Dec-2011 |
Joe Fernandez <joefernandez@google.com> |
am 201469f5: am bb7f590a: Merge "docs: Add developer guide cross-references, Project ACRE, round 4" into ics-mr1 * commit '201469f54522436be79d4d6665721049bfc74320': docs: Add developer guide cross-references, Project ACRE, round 4
|
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 |
|
20-Dec-2011 |
Joe Fernandez <joefernandez@google.com> |
docs: Add developer guide cross-references, Project ACRE, round 4 Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
f7917e656b94ec2adfc3fa826e093665d39748d2 |
|
20-Dec-2011 |
Chet Haase <chet@google.com> |
Fix AnimationDrawable double-start bug AnimationDrawable.setVisible(true, true) was not correctly recording the fact that it had started the animation, so it was possible to call start(0 immediately afterwards and have two animations running on the drawable in parallel, resulting in incorrect frame ordering. Issue #5782773 Change-Id: Ifc328f755a51d10ab76b84006d1999df03d2dca1
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
34235c6eded32fa6840db7a0f38e0e2905aff8b0 |
|
19-Jul-2011 |
Scott Main <smain@google.com> |
cherrypick Change-Id: Iaada8d42f97786d393743cd7fc3011da1d21f22e docs: resolve issue 5044273 and fix markup error Change-Id: Ic028292245c14cca218ea9ac771f292254577e7c
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
f5534a0785db9dfa239d8b6c20b011993742d534 |
|
27-May-2011 |
Chet Haase <chet@google.com> |
Fixes for AnimationDrawable Set up AnimationDrawable with an initial frame when it is constructed from code (via addFrame()). This is equivalent to what is done when it is constructed via xml resources. Change-Id: I86784a241268aa2d03af8edecbc80a7cc3548e19
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
dfe5c204403bc56c29bb36410574eab8b1950417 |
|
09-Jun-2010 |
Scott Main <smain@google.com> |
docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
c2974809373697147cbe5754835cc871fb93aef1 |
|
14-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2116977: buttons are huge and bent Now that we are using preloaded drawables in compatibilty mode, when constructing them from their constant state we need to set the new drawable's target density appropriately. Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
b5537c452271634b6ff3981b0624fa65384abd5b |
|
30-Jun-2009 |
Romain Guy <romainguy@android.com> |
Replace indeterminate progress animated asset with new ones
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
b798689749c64baba81f02e10cf2157c747d6b46 |
|
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/graphics/java/android/graphics/drawable/AnimationDrawable.java
|