09deff1bd970bd6749d78b6c85026a9985e6a1f3 |
|
24-May-2016 |
Alan Viverette <alanv@google.com> |
Prevent LayerDrawable bounds updates from being re-entrant Collect child invalidations during layer bounds change, then dispatch a single invalidation if any children requested invalidation. This prevents re-entrance from, for example, a LayerDrawable.updateLayerBounds() call invoking setBounds() on a child, which necessarily calls invalidateSelf() and immediately propagates up to ImageView.invalidateDrawable(), which then calls configureBounds() and puts us back in updateLayerBounds(). Bug: 28636072 Change-Id: I36c9eefc18904d493292d51b37e4b05cfddcf794
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
6f9626a1c27d29c67881aa22de3c19804b535ddb |
|
25-Apr-2016 |
Alan Viverette <alanv@google.com> |
Check for null drawable during LayerDrawable.jumpToCurrentState() Child drawables specified as theme attributes may not have been initialized yet. Bug: 28371482 Change-Id: I8452a7c5b8f74368c58ba3373336bf7d650af7a3
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
6888597c93cb0e78a30d7ba5b31025ffa435dcad |
|
15-Mar-2016 |
Alan Viverette <alanv@google.com> |
Rename undefined inset constant Bug: 27531289 Change-Id: I31c5cc295c7f36b934eccf46cdbe7a7b293af9e0
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
781fbf28c70868d803a6caf13a2209c785fa4fce |
|
14-Mar-2016 |
Alan Viverette <alanv@google.com> |
Merge "Ensure all Java-side usages of config flags are using Java flags" into nyc-dev
|
ac85f90466dd60d2af8ffc3942d503a0de606726 |
|
11-Mar-2016 |
Alan Viverette <alanv@google.com> |
Ensure all Java-side usages of config flags are using Java flags Previously we were using native config flags in some places that expected Java flags, and vice-versa. All usages of config flags are now annotated to ensure we're using the right type. Cleans up annotations on most methods that were touched. Bug: 21161798 Change-Id: Ifd87dfb12199fc8258915d8a510e03ddb681ca89
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
f6d87ec193f17e8dad82c9994ba7a58e975d364b |
|
11-Mar-2016 |
Alan Viverette <alanv@google.com> |
Add consistent @NonNull annotations for drawable callbacks Bug: 27599515 Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
0ef12aefe548e0d9472e2c23ab3374197a28b6bc |
|
12-Jan-2016 |
Alan Viverette <alanv@google.com> |
Clean up LayerDrawable, refactoring only Uses consistent naming and ordering for padding and inset calculations. Updates documentation to include UNDEFINED_INSET as public API, since we return the value and will accept the value as a valid param. Flattens out RTL logic for readability. Change-Id: Ie704e2e5fc7f5763500ebe1217ddbbf4d0c5ef86
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
22e27ccf79f4c334f84b329ab9685d95555eae9d |
|
06-Nov-2015 |
Alan Viverette <alanv@google.com> |
Merge "Correctly handle child drawables with no intrinsic size"
|
ab099c496b0136a4ad990af02b4ff9f8e4dccb9c |
|
04-Nov-2015 |
Alan Viverette <alanv@google.com> |
Correctly handle child drawables with no intrinsic size If a child drawable has no intrinsic width or height, don't attempt to apply padding and insets to the child during the parent layer drawable's intrinsic width and height calculations. Bug: 25461370 Change-Id: Idf616bde0449231f38156da53feb858e1ae41c47
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
4d47d2595e3753b0f1be5ff59de100a073141593 |
|
03-Nov-2015 |
Alan Viverette <alanv@google.com> |
If LayerDrawable child doesn't have constant state, use shallow copy Avoid NPE if mutate() is called on a LayerDrawable with a child that doesn't support constant state. Bug: 25438651 Change-Id: I6bf5a90484fda44a7b5fd10ce7b798eaa799b68e
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
ce52037e0ae0c380f5b834fb3dad105bfaf5e374 |
|
30-Oct-2015 |
Alan Viverette <alanv@google.com> |
Support for changing density of GradientDrawable Refactors density resolution and offset/size scaling into static helper methods. Also fixes VectorDrawbale insets to be treated as offset-type pixels rather than size-type. Bug: 25081461 Change-Id: I10fcb9ebb6c67f853a27ca0ee008c31af4b85da0
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
0cacad7023ad30ad886ef85751e9e39b10f846f9 |
|
28-Oct-2015 |
Alan Viverette <alanv@google.com> |
Apply density scaling in LayerDrawable and subclasses Bug: 25081461 Change-Id: I48e62caf5017ff2dd84cf62b68a828f4542b6ae5
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
0b6cfe22fda3396b4790ac79fc90488bec4a49a4 |
|
14-Sep-2015 |
Alan Viverette <alanv@google.com> |
Revert "Use floating-point value for Drawable level" This reverts commit 3da32b768899e7dabe3a16333edf5eca2b9ebe93. Change-Id: Ie75ce0c285e0f59a7a086f64c0cfe088edb5df04
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
3da32b768899e7dabe3a16333edf5eca2b9ebe93 |
|
02-Sep-2015 |
Alan Viverette <alanv@google.com> |
Use floating-point value for Drawable level This allows us to run fine-grained level animations. Backwards compatibility: Another CL will add DrawableCompat.setLevel(float) to forward calls to the existing integer-based method. For callbacks, developers can override onLevelChanged(int) and use DrawableCompat.getLevelFloat() to obtain the floating-point level. Overriding onLevelChanged(float) will only work on current API. Bug: 23566299 Change-Id: I431fe6f3679c8f23f9cf3c2bb1f92a4059ee68e3
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
9151a6995150f7c0495b98b0da59c4b9d5343167 |
|
31-Aug-2015 |
Alan Viverette <alanv@google.com> |
Implement missing jumpToCurrentState() in LayerDrawable Bug: 23674536 Change-Id: Icf1a4248d82484e48a958ce019b1f9cb0caeac9e
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.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/LayerDrawable.java
|
81e7dbddf10ecae99f65641d8774ca6b1aceac30 |
|
23-Jun-2015 |
Alan Viverette <alanv@google.com> |
Remove isDither(), deprecate setDither() Bug: 22013358 Change-Id: I37b11a94edc431a88522c6c056b76b045daa61d6
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
67b5a68088627394fd60baeeb54b78d7e68ba7b2 |
|
17-Jun-2015 |
Alan Viverette <alanv@google.com> |
Merge "Resolve start/end insets in LayerDrawable.getIntrinsicWidth()" into mnc-dev
|
536652fe91d10e5baebe0f9ca5d7e21c88ae9d9e |
|
17-Jun-2015 |
Alan Viverette <alanv@google.com> |
Resolve start/end insets in LayerDrawable.getIntrinsicWidth() Bug: 21849185 Change-Id: If9b392d863e808d83a5d90bcc32df6cb9194cbdf
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
373954a1fd371a23c420aeeea9ccbc4d983733d7 |
|
17-Jun-2015 |
Alan Viverette <alanv@google.com> |
Refactor Drawable.getDither() to isDither() Bug: 21342040 Change-Id: I801970c2a25289d670636ad5387ddf244fb48225
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
dfa4646eca54511a28f2c61e1f4b9c697e05a913 |
|
27-May-2015 |
Alan Viverette <alanv@google.com> |
API Review: Drawable Renames boolean getters to isZzz(), callback from onChange to onChanged. Bug: 21342040 Change-Id: I9700d645453354b608fd97a832359211d828b52f
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
1f29e71c4688bdc04b27224c16d5b99006796a80 |
|
29-Apr-2015 |
Alan Viverette <alanv@google.com> |
Don't propagate level or RTL in LayerDrawable.setDrawable() The developer used to be responsible for this and automatically propagating the values breaks some use cases (ex. in Camera). Bug: 20696311 Change-Id: Ia8ddc132c6d629bcc27d66f654baf30d9f078568
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
a54cd38ba552a924c481c01cf9eae31b7bb63e86 |
|
28-Apr-2015 |
Alan Viverette <alanv@google.com> |
Layout layers without intrinsic dimensions using FILL gravity Addresses a regression in Calendar where a custom drawable that doesn't implement intrinsic bounds is laid out incorrectly. Also fixes an issue where ColorDrawable would be laid out incorrectly. Bug: 20643614 Change-Id: I796f0d3e189e482cf6fa169a5dd13f654d72653c
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
388cd3b69c51a449b8bbb8086dbc429f24783ad1 |
|
21-Apr-2015 |
Alan Viverette <alanv@google.com> |
Fix visual styling for Material Spinner background Adds explicit padding attributes to LayerDrawable, constrains the ripple to fit within the container to avoid projection. Bug: 19359934 Bug: 20083467 Change-Id: I46da941fba37552adeb2c1fe617b799f576df0c6
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
7a583e7bb3eb13a804bbe2f3ebce802c885a9901 |
|
13-Apr-2015 |
Alan Viverette <alanv@google.com> |
Allow null layers in LayerDrawable Bug: 20098214 Change-Id: I80285ddda7101ab7403048d38f9c40af6b692a1a
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
d18c59b3e6d855e6a7ec12fd324791cd621a9b53 |
|
10-Apr-2015 |
Alan Viverette <alanv@google.com> |
Merge "Don't change state when inflating LayerDrawable"
|
9eaa604116ea5ee2eca81095d4d587fe680857a7 |
|
10-Apr-2015 |
Alan Viverette <alanv@google.com> |
Don't change state when inflating LayerDrawable Bug: 20098214 Change-Id: I6968697053587454bba42c0652efd99b9c8a8e25
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
45f207d6d9ccec1b9975f2ec4ca55e3c42f7bc48 |
|
09-Apr-2015 |
Alan Viverette <alanv@google.com> |
Only parse LayerDrawable child items when necessary Bug: 20098214 Change-Id: Ie9da5f6e494ede47f9fdc94481a3f8ca41d3ef00
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
e0f95f39c5a669a48ee3ebb8dc45bf2d7ee940f1 |
|
01-Apr-2015 |
Alan Viverette <alanv@google.com> |
Fix issues with theming of preloaded ColorStateLists Ensures changing configurations mask is propagated to the host drawable so that it can be properly cleared from cache on configuration changes. Also fixes constant state handling of the mask in the Inset and Rotate drawables. Hides new ColorStateList methods related to theming, since they should only be used during preloading or internally by framework drawables. Fixes bug where the cached versions of themeable ColorStateLists were modified by calling applyTheme() on the host drawable. Also cleans up some docs and naming in GradientDrawable. Bug: 19966397 Change-Id: I8c8d3cabbaf94b488c2b8fe9fd423e07d824c19c
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
1b23240f96bd5318933accf6b212b62f803bee13 |
|
20-Mar-2015 |
Alan Viverette <alanv@google.com> |
Only propagate state changes if wrapped drawable is stateful Always update layer bounds if the contained drawable changed in any way. Also adds null annotations in LayerDrawable and throws a more useful exception when the layers argument is null. Change-Id: Iae0cba68257e48b6a45fe081c3d4b0509d2dedd5
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
bd3bfc5285dcacff0a69fecf3baeeeb90d887a58 |
|
02-Mar-2015 |
Chris Craik <ccraik@google.com> |
Improve docs for drawable tint and color filters bug:19564477 Change-Id: I7e11baae2d4dd245965904c85b8855de71f6b6ac
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
6a8253fdc9f4574c28b4beeeed90580ffc93734a |
|
23-Feb-2015 |
Alan Viverette <alanv@google.com> |
Update progress bar and seek bar backgrounds, fix seek bar thumb Ensures LayerDrawable copies out the correct layer properties during "tileification". This really needs to be deprecated or replaced in a future CL, though, because it is potentially lossy (e.g. for RippleDrawable, which is an instanceof LayerDrawable). Bug: 19448441 Change-Id: I483e9c34fd781e280c13eb5951f96bc71a252819
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
a12962207155305da44b5a1b8fb9acaed358c14c |
|
21-Feb-2015 |
Alan Viverette <alanv@google.com> |
Unify wrapper-type drawables Fixes several issues with constant state and propagation of drawable property changes to wrapped drawables. Also un-hides the layout direction accessors and hotspot getter. Change-Id: Iff19db6a95059cbcfcbde7af0ac33871ccd41615
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
d8c18e81c0588a4e80bfe72fef769d758ed90f89 |
|
12-Feb-2015 |
Alan Viverette <alanv@google.com> |
API for adding layers to LayerDrawable Change-Id: I859c956a47d95fa1ce65b9eea9bc7be4659486bf
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
a756fd9af67acae37c12b492266d75fee5b1e578 |
|
11-Feb-2015 |
Alan Viverette <alanv@google.com> |
Prevent temp rect reuse across methods in LayerDrawable Drawable invalidation may call back into methods that are relying on the same temp rect objects, which mangles the values. Bug: 19321598 Change-Id: If8aa434cf85c81d22b5d580e258926087248cd93
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
7354b30d9081abdaf36b3e93eb224e728dfc8ecd |
|
03-Feb-2015 |
Alan Viverette <alanv@google.com> |
Add layer width, height, gravity, and RTL insets for LayerDrawable Bug: 18473819 Change-Id: Iae8e3dbd3fcc7f4c2f08b266c69d40036e75dfb6
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
f4c068b72e2dee2e6944488ef00b64c93217d7e8 |
|
06-Jan-2015 |
Alan Viverette <alanv@google.com> |
Add getDither, getFilterBitmap to Drawable for CTS testing Also removes unnecessary overrides from PictureDrawable. Change-Id: I13539b5204e8c0d8b9912da14de7ceae62720e3f
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
dad7d84c04c5954b63ea8bb58c52b2291f44b4df |
|
09-Dec-2014 |
John Reck <jreck@google.com> |
Teach AssetAtlas about more drawables Bug: 18317479 Change-Id: I16868ee204d24af72af9a2efc987f7e9eb1d266b
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.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/LayerDrawable.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/LayerDrawable.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/LayerDrawable.java
|
d7853e576301bf68e96148a0b9e52085bfc7cf95 |
|
27-Aug-2014 |
Alan Viverette <alanv@google.com> |
Preserve inner drawable bounds and level on mutate Also includes a tiny change to progress bar background alpha, which was too dark to see. BUG: 17285057 Change-Id: I8b0cc1c2c9405558b8163d8db9374d7c748317a2
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
a426445dfdab43886dd894f2ba8a1d55bfcbb278 |
|
29-Jul-2014 |
Alan Viverette <alanv@google.com> |
Separate tint and tintMode properties BUG: 16054922 Change-Id: I820fb857b671faf9eb27612e470e820c5c4cd6b5
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
77b5cad3efedd20f2b7cc14d87ccce1b0261960a |
|
31-Jul-2014 |
Chris Craik <ccraik@google.com> |
Add outline alpha bug:16140822 bug:16566746 This allows background drawables to alter the opacity of a shadow being cast with their own alpha values. Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
31ba192dd201df2cad96a8c503f730130ab0d80f |
|
18-Jul-2014 |
Chris Craik <ccraik@google.com> |
Tweaks to outline API b/15283203 b/16142564 Remove boolean return value chaining, as it's redundant with the data in the Outline itself. Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
7068c39526459c18a020e29c1ebfa6aed54e2d0f |
|
14-Jul-2014 |
Alan Viverette <alanv@google.com> |
Fix hotspot movement on focus change BUG: 15726988 Change-Id: I97f88e5f7e404ecfcd5c254fddd18c8f6616064e
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
9e6f9924c421d801f28b773673511cd59859d843 |
|
08-Jul-2014 |
Alan Viverette <alanv@google.com> |
Fix layer drawable inflation Change-Id: I2f16e3ddea919c33dc7b62f457a994e6d8a66e5b
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
8e5e11b99fac942122ee2d6cdd30af51564861ae |
|
07-Jul-2014 |
Alan Viverette <alanv@google.com> |
Handle configuration changes in drawable attributes Adds themeable attribute support to InsetDrawable, adds support for attribute configuration changes to all themable drawables. BUG: 16045735 Change-Id: I3dc62d28801760ac69d303be81b6c78bb9bb5aca
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
7c0517272ba2d97084739a14fea78641b265eb5d |
|
08-Jul-2014 |
Alan Viverette <alanv@google.com> |
Fix getOutline() in ripple and layer drawables BUG: 16134862 Change-Id: Ibcef20fc154ecc342344770f96fbd3d77d6fad26
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
58945975b256739fdfe78435d7846d1e2fd29da1 |
|
24-Jun-2014 |
Chris Craik <ccraik@google.com> |
Outline support in DrawableContainer and LayerDrawable bug:14445484 Change-Id: I26a45b0115b976d0dbcc351a208dc0956bc52e96
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.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/LayerDrawable.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/LayerDrawable.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/LayerDrawable.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/LayerDrawable.java
|
4d2f2483f6d9e2eb25d843d676981f4ebc9c79e5 |
|
02-Jun-2014 |
Alan Viverette <alanv@google.com> |
Fixes hotspot list transitions, update to use a single hotspot Also updates background and button colors to match spec, removes dependency on bouncycastle Arrays. Vastly simplifies ripple drawing. Adds APIs for maximum ripple radius. Makes selectableItemBackground bounded by default and adds an unbounded version and theme attribute. BUG: 15315168 BUG: 15314684 BUG: 15314830 BUG: 15316768 BUG: 15333033 BUG: 15344050 Change-Id: Ib0619587ce78e43056b66571bae185e0f1613185
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
53a3ed7c46c12c2e578d1b1df8b039c6db690eaa |
|
22-May-2014 |
Alan Viverette <alanv@google.com> |
Clean up hotspot bounds API Change-Id: I7daf7e2d360d761f673aa69a0f925b8076ab19c6
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
f31512eb17b6327c5f81bfb8a69c3a6119a0dd66 |
|
20-May-2014 |
Alan Viverette <alanv@google.com> |
Merge "Various API council fixes to drawables"
|
e5b082d6eb0489e7dbe3159338f8c94c0af61dee |
|
20-May-2014 |
Alan Viverette <alanv@google.com> |
Various API council fixes to drawables BUG: 15089957 Change-Id: Ieaf468bbff092e68f6313d8a5ecccda8b753806d
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
c80ad99a33ee49d0bac994c1749ff24d243c3862 |
|
20-May-2014 |
Alan Viverette <alanv@google.com> |
TouchFeedbackDrawable is now RippleDrawable Change-Id: I59f5f04b73089215c6320560556ac21beb03db06
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
0cfb877f5a0a1bff82d9c3ee969195bf7812c0b5 |
|
15-May-2014 |
Alan Viverette <alanv@google.com> |
Simplify attribute extraction for themed Drawables Also fixes a bug in GlowPadView that randomly popped up. Change-Id: Id20508a44ea02b4a14c8f794de36e13a2c06587c
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
61956606818918194a38e045a8e35e7108480e5e |
|
23-Apr-2014 |
Alan Viverette <alanv@google.com> |
Add ripple to switches, radio buttons, check boxes, seek bars BUG: 14231772 Change-Id: Ie40eac9f68815294460175965a999dd75f4144b5
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
860126b78aa4d6e8db5208c7f96764a8556cf95f |
|
09-Apr-2014 |
Alan Viverette <alanv@google.com> |
Make Drawable hotspot APIs public Change-Id: I8377ed735f73f7083636947aa08a5427f1dc3bf6
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
1c4e36c973ae89b1793bd557405bab958fffeea8 |
|
31-Mar-2014 |
Alan Viverette <alanv@google.com> |
Clean up LayerDrawable, ensure cached values are cleared on changes Change-Id: I9a652475b6ad66379b1298bf53cd5dcb1a1dd37b
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
47bf0d95ef6c9ac68773567d503749c874a07f2f |
|
27-Mar-2014 |
Alan Viverette <alanv@google.com> |
Separate ripple animation logic, remove RevealDrawable Change-Id: I9d0370cea288e6caf518209b5bc94a66a0f9176f
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.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/LayerDrawable.java
|
87980f9a7383fa4150f9c037ed34c37677f97f97 |
|
05-Feb-2014 |
Alan Viverette <alanv@google.com> |
Adds hotspot support to LayerDrawable and InsetDrawable Change-Id: Id17f460c8e4e0a6bf9fd39a4a7b8c79fa2df8d29
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
ee779ea446dd1161ba2fc50356edd5722454f141 |
|
13-Jan-2014 |
Alan Viverette <alanv@google.com> |
Fixing LayerDrawable methods for find layer and invalidate BUG: 12475487 BUG: 12475575 Change-Id: I98eb2674a5090a20cae1cd69db6022859dcab36c
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
6ae1bdebf308d3f857d586debbdd3c034ca85bb7 |
|
10-Jan-2014 |
Alan Viverette <alanv@google.com> |
Merge "Revert "Fixing Drawable methods for find by layer ID and invalidation callback""
|
218974915a25b2f9dd2e9543aceda16b26505280 |
|
10-Jan-2014 |
Alan Viverette <alanv@google.com> |
Revert "Fixing Drawable methods for find by layer ID and invalidation callback" This reverts commit 8f164f64ec55a973fc043de932d853dd41772e4e. Change-Id: I35637dee7b58c77387f375de585713ff76d4dd87
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
7682e0396438320226408f23fc4bf04993d24f69 |
|
10-Jan-2014 |
Alan Viverette <alanv@google.com> |
Merge "Fixes for DrawableContainer, LayerDrawable"
|
8f164f64ec55a973fc043de932d853dd41772e4e |
|
10-Jan-2014 |
Alan Viverette <alanv@google.com> |
Fixing Drawable methods for find by layer ID and invalidation callback BUG: 12475487, 12475575 Change-Id: Icbf11c76eaf9357fe2076bf60f7e448db65bc835
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
729427d451bc4d4d268335b8dc1ff6404bc1c91e |
|
07-Jan-2014 |
Alan Viverette <alanv@google.com> |
Fixes for DrawableContainer, LayerDrawable Only propagate DrawableContainer color filter, alpha when explicitly modified. Invalidate LayerDrawable padding when child inset modified. Change-Id: I27c6fe3c2d71b92bfbc54cc829e1efc7bc35e566
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
89417177d50469b6f0a0b1d10f2b64900ca79a33 |
|
06-Dec-2013 |
Alan Viverette <alanv@google.com> |
Fix typo in LayerDrawable Change-Id: I6c73cb90d0c161d29e8d41c54850d66840c947d7
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
5b10a723b0aa2eddf37262a30bb5cc9fb6fbbd9c |
|
05-Dec-2013 |
Alan Viverette <alanv@google.com> |
Add stacked padding mode to LayerDrawable General cleanup of LayerDrawable for readability's sake. BUG: 11695507 Change-Id: Id7811b3c168ef68134d53b93fe9ac36dc9440566
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
3f5a90b2fbba2a83a8a2c5babd5d466a5e0ad2aa |
|
25-Jun-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add automatic Drawable mirroring capability when in RTL layout direction - default value is "no mirroring" - introduce android:autoMirrored as a new attribute for Drawable, BitmapDrawable, LayerDrawable, StateListDrawable and NinePatchDrawable - setting android:autoMirrored="true" means that the drawable will be mirrored when the layout direction is RTL (right-to-left) - also fix an issue with ImageView drawable layout direction not updated correctly when RTL properties were changed See bug #7034321 Need Drawable RTL support Change-Id: If595ee5106c786f38e786d3a032e182f784a9d97
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
ccccc44b13a5e5407fb87461d33a5db9672499c5 |
|
25-May-2013 |
Romain Guy <romainguy@google.com> |
am ac629ee8: am 529a9e39: Merge "TransitionDrawable should not become a LayerDrawable Bug #9057757" into jb-mr2-dev * commit 'ac629ee86d9e60e35098d8e731a35fc36b3bf3d5': TransitionDrawable should not become a LayerDrawable Bug #9057757
|
529a9e391e386aac37ea722d2517d376968b3d31 |
|
25-May-2013 |
Romain Guy <romainguy@google.com> |
Merge "TransitionDrawable should not become a LayerDrawable Bug #9057757" into jb-mr2-dev
|
90e10cc58690678937575b54e1b20b899445d0e4 |
|
25-May-2013 |
Romain Guy <romainguy@google.com> |
TransitionDrawable should not become a LayerDrawable Bug #9057757 Calling TransitionDrawable.mutate() would turn it into a LayerDrawable, causing it to draw all its children on screen at the same time. Change-Id: I5efa87c43114a9c817719f08890ce41965f3220a
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
d04aaa97c94792dca662ada28b5c5d2e4289e240 |
|
13-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
am ddd02537: am b4426f15: Merge "Fix bug #8858012 layer-list\'s bitmap item\'s start/end gravity is incorrect on RTL under certain conditions" into jb-mr2-dev * commit 'ddd02537a3fb499a82097453535194f4e29583dc': Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions
|
731ba6649a40529657aa68f93e6febe7d98b4f3b |
|
11-May-2013 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions - set correct layout direction for Drawable Change-Id: Ic8968acadbc7c9aa0bb68dd4dfbe09aa4e7cfa62
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
b1af7f3d4be6cd6bc6e1e805f22c209e19bf928f |
|
08-Mar-2013 |
Chet Haase <chet@google.com> |
add getAlpha() to Drawable Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the method). This makes it more tedious to use the property. For example, animations that wish to animate this property must explicitly give it a start value since this value cannot be queried from the object. The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the method. Instead, we'll add a default method which returns an invalid value, making it easier for clients of the method to detect whether the value is valid. All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when appropriate. Issue #7485875 Drawables is missing getAlpha() Change-Id: I06b6e35f1a56d202838eca44759c85c82595020a
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
bb53dad63b4a1da04b01cdc9f4b0a98b7623a824 |
|
27-Nov-2012 |
Adam Powell <adamp@google.com> |
Remove overzealous mutate() sanity check in LayerDrawable Child drawables of a LayerDrawable should be able to mutate() as a no-op even if they !canConstantState. Bug 7622311 Change-Id: I32c00961310f23aaf9ad868c419cbefb9d27a1d2
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
fc4947491f785600b8770112fa1d19ece06d42f9 |
|
28-Sep-2012 |
Dianne Hackborn <hackbod@google.com> |
Update APIs to JB MR1 level 17. 17 is current, resources are fixed, cleanup is done. Change-Id: I6de446e209f59c5dd5fe1cde311776ab222817ea
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
0af4b8b0c8b038bca9b4f60eb81f71e186f471ce |
|
12-Jun-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Make ProgressBar / SeekBar / RatingBar widgets aware of layout direction - see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi) Change-Id: I8d76299090abf6b2b187696b1a83e71d7a44b1ce
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
26e35fca60426ce375a4a0534dbc9964123c76ee |
|
21-Mar-2012 |
Adam Powell <adamp@google.com> |
Fix LayerDrawable#mutate Change-Id: I985b80141ffc96db969eaf36538df938cb093661
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
fc8fa638617efb5695a1f89ea75375faebbe2a40 |
|
18-Aug-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #5128639: SystemUI grows by 10MB after taking a screenshot We now do the screenshot in a separate process. Also change the recents panel to not use hardware acceleration on lower-end devices. And improve how it gets shown to not load all data up-front which results in a long delay when you have lots of recents. Change-Id: Ia309a90f9939e5405758621b3f7114597bd0c02a
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
6efd2bad954e0e5bd74916a32f036a0f149dcd4d |
|
13-Jan-2011 |
Christopher Lais <chris+android@zenthought.org> |
Don't drop the drawable cache completely on configuration change There was a lot of fancy code just above the clear to ensure that drawables that aren't affected by the change are kept, then the entire array was cleared. This patch removes the clear, so that the drawables that haven't changed are really kept, matching the logs, comments and larger part of the code. This patch also fixes the various constant states to return correct ChangingConfigurations. Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15 Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
f2a47782f31b58d2d31bd00b50fe43604af8b9c2 |
|
15-Dec-2010 |
Romain Guy <romainguy@google.com> |
Make Drawable.mCallback a WeakReference. Many memory leaks occur because of long lived drawables. This should help. Change-Id: I2e9e8dee26579ec56e8e73f08f6b1d62be7812d9
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
e70b375c4b9d73d1165a21a421cfd73170cd06cc |
|
18-Nov-2010 |
Joe Onorato <joeo@google.com> |
Add an opacity attribute to LayerDrawable that lets you control the opacity directly instead of collecting the values from the children-- a task that is much harder to get right than we want to spend startup time on. Change-Id: Idf5b1d612472c6accfdc935c6a6fadb1eb239a73
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
021aad952bee3ac9ee4a98c09f1a012359088dd2 |
|
10-Nov-2010 |
Adam Powell <adamp@google.com> |
First pass at styling progress bars for Holo. Added attribute to let scale drawables size based on the intrinsic width and height as a minimum. This helps prevent artifacts when some 9-patches are used in situations like progress bars. Change-Id: I168a232d3225afe9b5578a05a9b8634a1084404c
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
82e2b4cb51e869a5c2014f56e5b0cf38569ff09a |
|
15-Jul-2010 |
Scott Main <smain@google.com> |
am 4fd41688: am 5352d237: am 38137d7a: Merge "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" into froyo Merge commit '4fd416880e53c172bac4a51b2eafea699b58badf' * commit '4fd416880e53c172bac4a51b2eafea699b58badf': docs: lots of additions to the resources docs
|
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/LayerDrawable.java
|
6430c943f9c32ea1503c6723302a944dcb18dac5 |
|
07-May-2010 |
Romain Guy <romainguy@google.com> |
Set a layered drawable's child callback to be the container. Change-Id: I959ad03883931d727d464f384073926e8fa9e2d2
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|
79a63f7ddb5bfb32a37dfbfd3e7748389c5076ad |
|
07-May-2010 |
Romain Guy <romainguy@google.com> |
Make sure that a drawable replacing a layer in a LayerDrawable gets a callback. Change-Id: Iefac7d280b3c16e05f45688da655e17e21a3098b
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.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/LayerDrawable.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/LayerDrawable.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/LayerDrawable.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/LayerDrawable.java
|
f1e484acb594a726fb57ad0ae4cfe902c7f35858 |
|
22-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@127436
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.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/LayerDrawable.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/LayerDrawable.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/graphics/java/android/graphics/drawable/LayerDrawable.java
|