summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Correct the documentation for VectorDrawableztenghui2014-09-301-0/+6
| | | | | | | | | | We missed the alpha for the vector drawable root level in the documentation. And the animation target can be vector drawable itself for the alpha value, which is more than path and group object. b/17696183 Change-Id: Ic9d441fbdf411dad92718ae5adbc6655fe708453
* Merge "Fix drawable container tinting" into lmp-devAlan Viverette2014-09-301-13/+18
|\
| * Fix drawable container tintingAlan Viverette2014-09-291-13/+18
| | | | | | | | | | BUG: 17704311 Change-Id: Ib9ced41e8589352c852e6c9dc7abbe6e4b9f2520
* | Implement alpha as documented for drawablesChris Craik2014-09-292-1/+8
|/ | | | | | | | | | | bug:17693526 With this change, outline opacity isn't published by default, as was intended. Default behavior for custom drawables is to have a rectangular outline, but not cast a shadow, e.g. as a button background. Change-Id: If80a256ff359bcb58f3f593ec9018f2df5fc4e44
* Add callback to track and thumb drawables, propagate state in ASLDAlan Viverette2014-09-261-2/+7
| | | | | BUG: 17665424 Change-Id: I22da4530f3e2869d856102e804f020461a46fe49
* Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VDAlan Viverette2014-09-264-17/+47
| | | | | BUG: 17646144 Change-Id: I58c111d86224dc8f7f557073c0bcbc22ad74aa1b
* Merge "Cut ripple background alpha in half" into lmp-devAlan Viverette2014-09-251-1/+1
|\
| * Cut ripple background alpha in halfAlan Viverette2014-09-251-1/+1
| | | | | | | | | | | | | | | | | | Ripple alpha is supposed to be split evenly between the foreground ripple layer and the background layer, but the background alpha wasn't getting adjusted properly. BUG: 17658817 Change-Id: I7af2f2ed38400a40d4a17da020363c7ae5c71a7b
* | Merge "Fix AVD for CTS failure." into lmp-devztenghui2014-09-241-2/+9
|\ \
| * | Fix AVD for CTS failure.ztenghui2014-09-231-2/+9
| |/ | | | | | | | | | | | | | | Mostly about changingConfig flags, the fix is just a copy from VectorDrawable. b/17631551 Change-Id: Ibad9c2f61cd86b15e9bca1d1991c8cd147897bb0
* | Fix animation on the some propertiesztenghui2014-09-231-8/+8
|/ | | | | | | | | The risk is low since most of them are just matching the naming to xml. And this update won't cause build breakage. b/17623982 Change-Id: I1eda0b8314ec7b94bc03976cdc365a7dc1039f4c
* Hide other color filter mutabilityChris Craik2014-09-193-3/+18
| | | | | bug:17262092 Change-Id: Ia6c0e1a684365c372803d1a6be41a478a05e0dd0
* Merge "Reduce overdraw after clearing ripples in RippleDrawable" into lmp-devAlan Viverette2014-09-163-5/+30
|\
| * Reduce overdraw after clearing ripples in RippleDrawableAlan Viverette2014-09-153-5/+30
| | | | | | | | | | | | | | | | | | We only need to force a transparent draw after canceling a render thread accelerated animation, and then we can draw again without the transparency to avoid overdraw in the display list. BUG: 17451761 Change-Id: I640f9a29d0940a93802f14a15f27d2c2072755ce
* | Set cache dirty when re-create the cache bitmapztenghui2014-09-151-0/+1
|/ | | | | b/17503595 Change-Id: Icdaa3651345b740772363f8afb29bb36741fcc87
* Merge "Apply VectorDrawable color filter at draw time" into lmp-devAlan Viverette2014-09-121-75/+40
|\
| * Apply VectorDrawable color filter at draw timeAlan Viverette2014-09-121-75/+40
| | | | | | | | | | BUG: 17491152 Change-Id: Ia0ca0bd7cd00363ad5777d3e2e62fa1131a6d8a5
* | Merge "Report button opacity for current state, fix button shadows" into lmp-devAlan Viverette2014-09-121-19/+19
|\ \ | |/ |/|
| * Report button opacity for current state, fix button shadowsAlan Viverette2014-09-121-19/+19
| | | | | | | | | | BUG: 17433604 Change-Id: I25e0bd9b96e09ed2a4d85476b60f459e7cc33002
* | Merge "Add root alpha and animation to (Animated)VectorDrawable" into lmp-devztenghui2014-09-121-19/+90
|\ \ | |/ |/|
| * Add root alpha and animation to (Animated)VectorDrawableztenghui2014-09-121-19/+90
| | | | | | | | | | | | b/17393626 Change-Id: If6a28b072f7d4bcb2b57022d86ec784f4c0d78f1
* | Update icons to vectors, fix preload theming & vector tintingAlan Viverette2014-09-127-31/+89
| | | | | | | | | | | | | | | | | | Adds a missing JNI binding to AssetManager, ensures drawables have default tint modes as documented, and updates vector tint appropriately when state changes. BUG: 17385604 Change-Id: Ice92885989ebc13b95952f5dc3b7904cc956da12
* | Merge "Unfilled shapes should not report themselves as opaque" into lmp-devChet Haase2014-09-121-0/+5
|\ \
| * | Unfilled shapes should not report themselves as opaqueChet Haase2014-09-111-0/+5
| | | | | | | | | | | | | | | | | | Issue #17470611 Stroked, unfilled GradientDrawable shouldn't cast a shadow Change-Id: Ied60e12c2d2567efec8dac1fe69c77b49ef25b8e
* | | Fix null rect parameter for saveLayer / saveLayerAlphaChris Craik2014-09-111-15/+11
| |/ |/| | | | | | | bug:17476559 Change-Id: I3ba43c9eed8f6fc455eb41e0990e75e0f4c7b648
* | Merge "Bring back the fillAlpha and strokeAlpha." into lmp-devztenghui2014-09-111-28/+42
|\ \
| * | Bring back the fillAlpha and strokeAlpha.ztenghui2014-09-101-28/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | At the same time, remove the group alpha since we did not follow the convention that group's alpha should apply together, not separately to each elements. b/17393626 Change-Id: Idfc071414213583924961dc8ea760d6fb317873c
* | | Merge "Copy opaque over shape in GradientDrawable copy constructor" into lmp-devAlan Viverette2014-09-111-0/+1
|\ \ \
| * | | Copy opaque over shape in GradientDrawable copy constructorAlan Viverette2014-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | BUG: 17433604 Change-Id: I8eeba8bd68930db178545a3b25e29c3c45ae1f79
* | | | Merge "Only force drawing in RippleDrawable when necessary" into lmp-devAlan Viverette2014-09-101-3/+15
|\ \ \ \ | |_|/ / |/| | |
| * | | Only force drawing in RippleDrawable when necessaryAlan Viverette2014-09-101-3/+15
| |/ / | | | | | | | | | | | | BUG: 17451761 Change-Id: Ibb9d1c64791ec54eb90608c957eeb5efb1712b4a
* | | Use constant state in AnimatedVectorDrawableChet Haase2014-09-102-9/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Use intrinsic size for path animation in AnimatedVectorDrawable" into ↵George Mount2014-09-102-3/+30
|\ \ \ | | | | | | | | | | | | lmp-dev
| * | | Use intrinsic size for path animation in AnimatedVectorDrawableGeorge Mount2014-09-092-3/+30
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Trim unnecessary pages when printing.Svetoslav2014-09-092-1/+163
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | A user may request a subset of the document's pages to be printed. In this case the expectation is that the resulting document does not include not selected pages. While print serivices can do the trimming themselves or the printer may do so, moving, potantually many, redundant pages is inefficient. The real problem is when saving to a PDF file where the saved file must not have the pages the user did not select. This change adds shredding of undesired pages from the PDF before saving it or passing it to a print service. : bug:17285994 Change-Id: I7deba535af99457bea3c118202314f0f3812e809
* | Merge "Simplify ripple background drawing, fix ripple alphas" into lmp-devAlan Viverette2014-09-053-174/+105
|\ \
| * | Simplify ripple background drawing, fix ripple alphasAlan Viverette2014-09-053-174/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Eliminates an extra saveLayer on the background in the common case of a rectangle-bounded ripple. Ripples and backgrounds are now drawn at 50% opacity of the ripple color, which ensures that both the ripple and background are visible and that the pressed state has a correct combined alpha. Also fixes a bug where hardware (RT) animation was getting turned off prematurely. BUG: 17405007 BUG: 17398089 BUG: 17394445 BUG: 17389859 Change-Id: Idb5808368fe563581a51a8cb9778275ee8d22f4c
* | | Merge "Remove old setTint from Drawable" into lmp-devAlan Viverette2014-09-051-13/+0
|\ \ \
| * | | Remove old setTint from DrawableAlan Viverette2014-09-051-13/+0
| |/ / | | | | | | | | | | | | BUG: 15782973 Change-Id: Idf0a6ea7c81135b032fcdadc46ee78d7db6945c7
* | | Merge "Replace native crash with IAE when calling picture.draw() w/ a HW ↵Chris Craik2014-09-052-1/+6
|\ \ \ | | | | | | | | | | | | canvas" into lmp-dev
| * | | Replace native crash with IAE when calling picture.draw() w/ a HW canvasChris Craik2014-09-052-1/+6
| |/ / | | | | | | | | | | | | bug:17397958 Change-Id: I75f942db0e604f9fd6ab31e6c81f718c0f57b16a
* | | Merge "Hide color filter mutability" into lmp-devChris Craik2014-09-051-0/+4
|\ \ \ | |/ / |/| |
| * | Hide color filter mutabilityChris Craik2014-09-041-0/+4
| | | | | | | | | | | | | | | | | | bug:17262092 Change-Id: I1662194958dac9f5ebf943d17fa9074f1b6a0168
* | | Clear ripple animations on cancel/endAlan Viverette2014-09-042-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents subsequent calls to end() from snapping the background opacity (among others) back to 1. BUG: 17357749 BUG: 17349157 Change-Id: I2a4870ed588ba98986428983bf29b556cdc9a701
* | | Merge "Remove partial support for hotspot changes on focus movement" into ↵Alan Viverette2014-09-032-146/+6
|\ \ \ | |_|/ |/| | | | | lmp-dev
| * | Remove partial support for hotspot changes on focus movementAlan Viverette2014-09-022-146/+6
| | | | | | | | | | | | | | | | | | | | | | | | Also removes unused x/y position and tween values on RippleBackground. The background is now always centered within the hotspot area. BUG: 17300399 Change-Id: I1904c9f44e6bebb2b434d2b092205edd42204263
* | | Merge "Fix behavior of inflating InsetDrawable" into lmp-devChet Haase2014-09-031-0/+2
|\ \ \
| * | | Fix behavior of inflating InsetDrawableChet Haase2014-09-021-0/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change to InsetDrawable changed the behavior of inflating an InsetDrawable when it already had a valid bitmap. The new behavior avoids throwing an exception with a bad resource where it used to throw, because the existence of the bitmap makes it avoid trying to load the resource at all. The fix is to reintroduce the old behavior of forcing it to load the resource regardless of the state of its bitmap. Issue #17068252 InsetDrawable inflation CTS test is failing Change-Id: I941388730d4479f8f4747a7985754ffdf5133f04
* | | Merge "Make sure ripple background bounds are used for invalidation" into ↵Alan Viverette2014-09-022-26/+5
|\ \ \ | | | | | | | | | | | | lmp-dev
| * | | Make sure ripple background bounds are used for invalidationAlan Viverette2014-09-022-26/+5
| | |/ | |/| | | | | | | | | | BUG: 17349157 Change-Id: Ie88fbabbc66349aea9b7d00e28ca12f93776a4a7