summaryrefslogtreecommitdiffstats
path: root/graphics/java
Commit message (Collapse)AuthorAgeFilesLines
* Default gradient radius to %p when no intrinsic width or height setAlan Viverette2014-11-031-4/+8
| | | | | BUG: 18224018 Change-Id: I05cbe3023d0a5e6813658063d3a3633c6ddd8d96
* Crash apps that print malformed or password protected PDFs.Svet Ganov2014-11-012-0/+8
| | | | | | | | | If apps are writing malformed content (typically not a PDF file) or if the PDF content they provide to the print system is password protected, are now crashed as both of these are app bugs. bug:17636435 Change-Id: Ifce6a3199e587448dd38f6a84290a965c24b698b
* Merge "Save to a PDF file should look like print preview." into lmp-mr1-devSvetoslav2014-10-311-0/+155
|\
| * Save to a PDF file should look like print preview.Svetoslav2014-10-311-0/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When rendering a PDF file for print preview we take into account the selected print options such as paper size, orientation, etc without modifying the document. To print we send the doc in its original form and the print options so the print service can apply the necessary transforms in addition to the optional custom options it supports. When saving to PDF we have to actually change the document as we act as a print service. bug:13545980 Change-Id: Icdcecf962bec6ff742cc6015df5af9d9086ce760
* | Ensure we don't pass null values in to Theme.resolveAttributesAlan Viverette2014-10-304-11/+14
| | | | | | | | | | BUG: 18182274 Change-Id: I08acf877cb81478cc205254edf92a31fcf05991d
* | Merge "Add theme and config change support to more Drawable types" into ↵Alan Viverette2014-10-3014-425/+677
|\ \ | | | | | | | | | lmp-mr1-dev
| * | Add theme and config change support to more Drawable typesAlan Viverette2014-10-2914-425/+677
| |/ | | | | | | | | BUG: 16045735 Change-Id: Ic03173a1c1779c1bb545c4c389f77afed97011ee
* | Clean up GradientDrawable styled attributes, fix useLevelForShapeAlan Viverette2014-10-241-8/+9
|/ | | | | BUG: 18117976 Change-Id: Iff2ea392204346f68ea47d577e442d398114e5d8
* Added a generic configuration and theme based cacheYigit Boyar2014-10-231-47/+65
| | | | | | | | For now, only animators use it but we can consider migrating drawable cache to it as well. Bug: 17456416 Change-Id: I571b96856805edb171f0fc52e6bff5a365f46b70
* Merge "Fix gradient drawable radius when specified as float, dimension" into ↵Alan Viverette2014-10-211-1/+4
|\ | | | | | | lmp-mr1-dev
| * Fix gradient drawable radius when specified as float, dimensionAlan Viverette2014-10-211-1/+4
| | | | | | | | | | BUG: 18070756 Change-Id: I991ff792c376c9695a007f8f1187390ab5ff6e3c
* | Merge "Propagate state changes even when we don't change drawable index" ↵Alan Viverette2014-10-211-21/+9
|\ \ | | | | | | | | | into lmp-mr1-dev
| * | Propagate state changes even when we don't change drawable indexAlan Viverette2014-10-201-21/+9
| |/ | | | | | | | | | | | | | | Previously we could miss the state change if we were simply reversing the current transition. BUG: 17967405 Change-Id: I2cb396dedbff61b980741ef8c0d931be6abe129c
* | am a724d1ab: am 877ce2c4: Merge "Make sure the bitmap from VD\'s cache is ↵ztenghui2014-10-201-0/+1
|\ \ | |/ |/| | | | | | | | | drawn using bi-linear filter." into lmp-dev * commit 'a724d1ab4083f08958bd88e76e15b7c0af337bfc': Make sure the bitmap from VD's cache is drawn using bi-linear filter.
| * Make sure the bitmap from VD's cache is drawn using bi-linear filter.ztenghui2014-10-161-0/+1
| | | | | | | | | | | | b/17949291 Change-Id: I0e59852220ab8a3be2c70afa483e805029a9e19e
* | Merge "Avoid saveLayer in RippleDrawable if the background won't draw" into ↵Alan Viverette2014-10-151-3/+5
|\ \ | | | | | | | | | lmp-mr1-dev
| * | Avoid saveLayer in RippleDrawable if the background won't drawAlan Viverette2014-10-131-3/+5
| | | | | | | | | | | | | | | BUG: 17952941 Change-Id: Ic2640f847e2ed43fc5117d43230513ee7696d9e7
* | | Merge "Update preload list, clean up drawable theming" into lmp-mr1-devAlan Viverette2014-10-1418-251/+266
|\ \ \
| * | | Update preload list, clean up drawable themingAlan Viverette2014-10-1418-251/+266
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add support for tint and tintMode to GradientDrawable" into lmp-mr1-devAlan Viverette2014-10-141-8/+50
|\ \ \
| * | | Add support for tint and tintMode to GradientDrawableAlan Viverette2014-10-131-8/+50
| |/ / | | | | | | | | | | | | BUG: 17975498 Change-Id: I8aeec48b8499abaf055e75018759f99801efdecc
* | | Merge "Revert "Always project ripples"" into lmp-mr1-devAlan Viverette2014-10-141-3/+2
|\ \ \ | |/ / |/| |
| * | Revert "Always project ripples"Alan Viverette2014-10-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Projecting ripples places them under shadows, which is not ideal. Punting this workaround and waiting until we have proper support for rounded corner clipping on windows. This reverts commit f90b6bd54f60960a790b5bd507a0d75d961a981a. Change-Id: I61946649bbb1bf74a969d74e5353608afc8e4463
* | | Merge "Always project ripples" into lmp-mr1-devAlan Viverette2014-10-131-2/+3
|\ \ \ | |/ /
| * | Always project ripplesAlan Viverette2014-10-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | We already handle bounding rect in draw(), so this just ensures that ripples are always clipped to window background outlines until we can implement more general clipping. BUG: 17498583 Change-Id: Iaff51fb177b017a11822bdf4f31c117fc9522c15
* | | Fix inset drawable's intrinsic size, replace ic_text_dot assetAlan Viverette2014-10-101-2/+4
|/ / | | | | | | | | BUG: 17648301 Change-Id: I8af0f6d1beee7a1cb3a3b9db571ed2c407e24556
* | am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." ↵Dianne Hackborn2014-10-093-4/+4
|\ \ | |/ | | | | | | | | | | into lmp-dev * commit '0761b1b5ebb453a411e3289c1c972dbfddcee880': Put in real "code" (aka marketing) name.
| * Put in real "code" (aka marketing) name.Dianne Hackborn2014-10-073-4/+4
| | | | | | | | Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
* | Slow down ripple background fade in from pressAlan Viverette2014-10-082-15/+19
| | | | | | | | | | BUG: 17433613 Change-Id: Ie9c4046532d61ad8ef8e044d14557db5d52e0d0b
* | Mutate and apply theme if needed before caching themed drawablesAlan Viverette2014-10-0719-0/+193
|/ | | | | | | | | | | 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
* Fix theme propagation to contained android:drawable elementsAlan Viverette2014-10-029-10/+14
| | | | | BUG: 17790666 Change-Id: I6733a98e779cad0d384b917c57d2b3409a166c02
* 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