2126 Commits

Author SHA1 Message Date
ztenghui
485736aeae am 2b7813c6: am 065502cb: am 892412af: am 8518c090: Merge "Fix animation on the some properties" into lmp-dev
* commit '2b7813c628abb1f5044d2e680c88b4edfdf71660':
  Fix animation on the some properties
2014-09-23 20:08:54 +00:00
ztenghui
dbcccffc37 Fix animation on the some properties
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
2014-09-23 11:22:26 -07:00
Chris Craik
e83bc5932e am 1fb91f51: am 158ab843: am 4f58dcf5: am e99510a4: Merge "Hide other color filter mutability" into lmp-dev
* commit '1fb91f51a256a7a32ebcc715fe4b1f3ea5f263f9':
  Hide other color filter mutability
2014-09-19 18:29:45 +00:00
Chris Craik
f559326b18 Hide other color filter mutability
bug:17262092
Change-Id: Ia6c0e1a684365c372803d1a6be41a478a05e0dd0
2014-09-19 08:54:09 -07:00
Alan Viverette
ce65a7c865 am 08a1632c: am 3d382270: am e5301f84: am 6a750aa9: Merge "Reduce overdraw after clearing ripples in RippleDrawable" into lmp-dev
* commit '08a1632ccd4bfecb39f7b0db76a2f8b9f76335b5':
  Reduce overdraw after clearing ripples in RippleDrawable
2014-09-16 21:08:10 +00:00
ztenghui
16e2cbf7cc am 2600eb04: am efd22801: am 6a855460: am 3137b288: Merge "Set cache dirty when re-create the cache bitmap" into lmp-dev
* commit '2600eb04d177d5b7f932436c8b68657786779469':
  Set cache dirty when re-create the cache bitmap
2014-09-16 21:07:53 +00:00
Alan Viverette
238aeca552 Merge "Reduce overdraw after clearing ripples in RippleDrawable" into lmp-dev 2014-09-16 00:37:16 +00:00
ztenghui
9c13ed366f Set cache dirty when re-create the cache bitmap
b/17503595

Change-Id: Icdaa3651345b740772363f8afb29bb36741fcc87
2014-09-15 23:41:34 +00:00
Alan Viverette
2ae5640354 Reduce overdraw after clearing ripples in RippleDrawable
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
2014-09-15 12:27:13 -07:00
Alan Viverette
8c9e8e3083 am 3512e8d6: am 1e8bb662: Merge "Apply VectorDrawable color filter at draw time" into lmp-dev
* commit '3512e8d63d5ea422876661a38d01766d15cbf096':
  Apply VectorDrawable color filter at draw time
2014-09-13 02:35:14 +00:00
Alan Viverette
068a026187 am 2b4de8b4: am f559f89c: Merge "Report button opacity for current state, fix button shadows" into lmp-dev
* commit '2b4de8b4ee417695cdc88e9aef0aded47036e8ef':
  Report button opacity for current state, fix button shadows
2014-09-13 02:33:52 +00:00
Alan Viverette
264ea9c35f Merge "Apply VectorDrawable color filter at draw time" into lmp-dev 2014-09-12 23:47:55 +00:00
Alan Viverette
b07b086bd4 Apply VectorDrawable color filter at draw time
BUG: 17491152
Change-Id: Ia0ca0bd7cd00363ad5777d3e2e62fa1131a6d8a5
2014-09-12 16:37:44 -07:00
ztenghui
a5d91d52b4 am 8207e209: am 2bb77b5a: Merge "Add root alpha and animation to (Animated)VectorDrawable" into lmp-dev
* commit '8207e209ade72f13a1ed77f5bc219163385a28af':
  Add root alpha and animation to (Animated)VectorDrawable
2014-09-12 23:22:34 +00:00
Alan Viverette
6d32576312 Merge "Report button opacity for current state, fix button shadows" into lmp-dev 2014-09-12 23:14:33 +00:00
Alan Viverette
888b4cf73c Report button opacity for current state, fix button shadows
BUG: 17433604
Change-Id: I25e0bd9b96e09ed2a4d85476b60f459e7cc33002
2014-09-12 16:13:32 -07:00
ztenghui
74cc5c39ae Merge "Add root alpha and animation to (Animated)VectorDrawable" into lmp-dev 2014-09-12 22:12:03 +00:00
ztenghui
8490354dc6 Add root alpha and animation to (Animated)VectorDrawable
b/17393626

Change-Id: If6a28b072f7d4bcb2b57022d86ec784f4c0d78f1
2014-09-12 15:11:10 -07:00
Alan Viverette
0cfc7717aa am 5dee9c9b: am 855fc8c7: Update icons to vectors, fix preload theming & vector tinting
* commit '5dee9c9b3e68e7567e765b7abb5ba3d3f05ce989':
  Update icons to vectors, fix preload theming & vector tinting
2014-09-12 20:52:03 +00:00
Alan Viverette
607bd84826 Update icons to vectors, fix preload theming & vector tinting
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
2014-09-12 13:06:45 -07:00
Chet Haase
51698b5e0d am 7768b45e: am f23dcf73: Merge "Unfilled shapes should not report themselves as opaque" into lmp-dev
* commit '7768b45e8e49a87709f752ed1a3f67616b70f76a':
  Unfilled shapes should not report themselves as opaque
2014-09-12 05:46:39 +00:00
Chris Craik
3c813371be am d6ec00a6: am f1101afa: Merge "Fix null rect parameter for saveLayer / saveLayerAlpha" into lmp-dev
* commit 'd6ec00a609c31d40493bfa15314763ec8937f09d':
  Fix null rect parameter for saveLayer / saveLayerAlpha
2014-09-12 05:46:30 +00:00
Chet Haase
25877af238 Merge "Unfilled shapes should not report themselves as opaque" into lmp-dev 2014-09-12 00:54:18 +00:00
Chet Haase
22cf0b0cb8 Unfilled shapes should not report themselves as opaque
Issue #17470611 Stroked, unfilled GradientDrawable shouldn't cast a shadow

Change-Id: Ied60e12c2d2567efec8dac1fe69c77b49ef25b8e
2014-09-11 17:45:43 -07:00
Chris Craik
9bc13a353f Fix null rect parameter for saveLayer / saveLayerAlpha
bug:17476559
Change-Id: I3ba43c9eed8f6fc455eb41e0990e75e0f4c7b648
2014-09-11 16:55:10 -07:00
ztenghui
2a67fa92f0 am 548b9294: am 8738c8db: Merge "Bring back the fillAlpha and strokeAlpha." into lmp-dev
* commit '548b92941c8cea5c3aa125c0fe6ea69748c18591':
  Bring back the fillAlpha and strokeAlpha.
2014-09-11 18:30:30 +00:00
ztenghui
c96e392765 Merge "Bring back the fillAlpha and strokeAlpha." into lmp-dev 2014-09-11 16:32:37 +00:00
Alan Viverette
72b834a301 am 5d1f9528: am 2a94c34d: Merge "Copy opaque over shape in GradientDrawable copy constructor" into lmp-dev
* commit '5d1f9528fd1b6f4c7919c9e19f69c86bbf1dc561':
  Copy opaque over shape in GradientDrawable copy constructor
2014-09-11 00:39:58 +00:00
Alan Viverette
87610e535d Merge "Copy opaque over shape in GradientDrawable copy constructor" into lmp-dev 2014-09-11 00:22:10 +00:00
Alan Viverette
c3a63c1fbb Copy opaque over shape in GradientDrawable copy constructor
BUG: 17433604
Change-Id: I8eeba8bd68930db178545a3b25e29c3c45ae1f79
2014-09-10 16:54:02 -07:00
Alan Viverette
25cc6dcea8 am b5d64475: am 38669745: Merge "Only force drawing in RippleDrawable when necessary" into lmp-dev
* commit 'b5d64475b9383b85432adf62d7d853e43b217d53':
  Only force drawing in RippleDrawable when necessary
2014-09-10 23:38:11 +00:00
ztenghui
2e17d2b232 Bring back the fillAlpha and strokeAlpha.
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
2014-09-10 16:26:48 -07:00
Alan Viverette
5aaa7788d5 Merge "Only force drawing in RippleDrawable when necessary" into lmp-dev 2014-09-10 23:26:06 +00:00
Chet Haase
da789748f3 am 969628cd: am 804df9eb: Use constant state in AnimatedVectorDrawable
* commit '969628cdad8f3ba8581c01c0ffbf2b224196e979':
  Use constant state in AnimatedVectorDrawable
2014-09-10 21:38:29 +00:00
Chet Haase
6f6578e81c Use constant state in AnimatedVectorDrawable
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
2014-09-10 21:21:53 +00:00
Alan Viverette
8683a4f819 Only force drawing in RippleDrawable when necessary
BUG: 17451761
Change-Id: Ibb9d1c64791ec54eb90608c957eeb5efb1712b4a
2014-09-10 14:05:15 -07:00
George Mount
13a0819754 am 568b3fe9: am 1fac2ba1: Merge "Use intrinsic size for path animation in AnimatedVectorDrawable" into lmp-dev
* commit '568b3fe99baa8e5eba1acad6a522706f16803a40':
  Use intrinsic size for path animation in AnimatedVectorDrawable
2014-09-10 14:51:05 +00:00
George Mount
b7d63aedf5 Merge "Use intrinsic size for path animation in AnimatedVectorDrawable" into lmp-dev 2014-09-10 14:30:17 +00:00
Svetoslav
87c8260341 am f1b72b86: am 3f49b128: Merge "Trim unnecessary pages when printing." into lmp-dev
* commit 'f1b72b86380b25b933be32c46d4f59a41699a546':
  Trim unnecessary pages when printing.
2014-09-10 00:49:17 +00:00
George Mount
fd3c4744f2 Use intrinsic size for path animation in AnimatedVectorDrawable
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
2014-09-09 17:09:57 -07:00
Svetoslav
62ce332c14 Trim unnecessary pages when printing.
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
2014-09-09 09:38:07 -07:00
Elliott Hughes
4656e69bf3 resolved conflicts for merge of 2008cff7 to lmp-dev-plus-aosp
Change-Id: I5148eda624e8504f12dbc1288cd4a7a5b7c10850
2014-09-08 13:08:43 -07:00
Alan Viverette
e9921370d7 Merge "Simplify ripple background drawing, fix ripple alphas" into lmp-dev 2014-09-05 23:45:36 +00:00
Mark Doliner
d0646dca40 Small documentation fixes across many files.
Change-Id: I3e8787ce4bc6018ea1dc9aef2a2cd4e0a8dde663
2014-09-05 13:57:51 -07:00
Alan Viverette
f2f3bde62f Merge "Remove old setTint from Drawable" into lmp-dev 2014-09-05 20:06:02 +00:00
Alan Viverette
bd5afc7186 Remove old setTint from Drawable
BUG: 15782973
Change-Id: Idf0a6ea7c81135b032fcdadc46ee78d7db6945c7
2014-09-05 12:23:18 -07:00
Alan Viverette
a3f0c2b21a Simplify ripple background drawing, fix ripple alphas
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
2014-09-05 19:15:44 +00:00
Chris Craik
def8a37128 Merge "Replace native crash with IAE when calling picture.draw() w/ a HW canvas" into lmp-dev 2014-09-05 17:49:20 +00:00
Chris Craik
96890564bd Replace native crash with IAE when calling picture.draw() w/ a HW canvas
bug:17397958
Change-Id: I75f942db0e604f9fd6ab31e6c81f718c0f57b16a
2014-09-05 10:33:39 -07:00
Chris Craik
0edfd0be15 Merge "Hide color filter mutability" into lmp-dev 2014-09-05 17:30:50 +00:00