summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Add support for setTint in all Drawables, clean up lint warnings"Jeff Brown2014-06-1419-347/+152
| | | | | | This reverts commit 381f83b613f7b6e71180983dbb992ff62f8dd6e3. Change-Id: I1181f436c647216ac46162260d9d886197b24568
* Add support for setTint in all Drawables, clean up lint warningsAlan Viverette2014-06-1319-152/+347
| | | | Change-Id: Ia38b9d3e9d5c0072382050e815bdd9232b672e50
* Merge "Only start AnimationDrawable on visibility change when animating"Alan Viverette2014-06-122-3/+2
|\
| * Only start AnimationDrawable on visibility change when animatingAlan Viverette2014-06-132-3/+2
| | | | | | | | | | BUG: 15532494 Change-Id: I5663fc86e64c34db84385238865e08297fb1f817
* | am a99b2404: Merge "Tunings for touch ripple animations" into lmp-preview-devChristian Robertson2014-06-131-9/+31
|\ \ | |/ |/| | | | | * commit 'a99b2404caae8f29cd2bf3b13c8a41b320205aee': Tunings for touch ripple animations
| * Tunings for touch ripple animationsChristian Robertson2014-06-131-9/+31
| | | | | | | | | | | | | | | | | | | | Added a log based interpolator (it's faster in the beginning and smoother at the finish than the decelerate interpolator) Scaled the timing and opacity of the falloff ripple based on the size of the outer bounding radius. Backing circles aren't as apparent for Smaller touch targets. BUG: 15591274
* | Add AnimatedVectorDrawableztenghui2014-06-123-32/+447
| | | | | | | | | | | | | | | | | | | | | | Currently as a hidden class. It can support many the animations now as far as ObjectAnimator and hierarchical group can support. And we don't have path morphing yet. Also support the Animator / Interpolator inflation from Context and Resources. Change-Id: I948bbdf7373ad291171eed0b497959dce8c2edf3
* | Merge "Update Picture documentation Enhanced comment"Robert Phillips2014-06-101-11/+14
|\ \
| * | Update Picture documentationRobert Phillips2014-06-051-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enhanced comment Given that the SkPictures should no longer have unbalanced saves and restores there should be no inadvertent leakage of matrix or clip state. Note that the existing documentation was vague enough that no real substantive changes were required to make it match the new behavior. Change-Id: Ic2d440b3e6318ec9687c607caba05de928e08503
* | | In Bitmap.reconfigure, update the pixelref's info.Leon Scroggins III2014-06-111-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes CTS tests which are crashing on an SkASSERT due to a mismatch of SkImageInfo between the SkPixelRef and SkBitmap. Also directly call ref() and unref() instead of SkSafeRef/SkSafeUnref, since we would already crash if the SkPixelRef in question was NULL. Also if the user attempts to reconfigure to 4444, use 8888 instead. Change-Id: I473ef225c6cd1c92d67ae103c53c6cff0dad92de
* | | resolved conflict for merge of 3ca33b70 to masterAdrian Roos2014-06-112-73/+97
|\ \ \ | | |/ | |/| | | | Change-Id: I5226015ca7cef030586349cc698a46e458ac788e
| * | Change ripple tint to color, remove tintModeAlan Viverette2014-06-102-73/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixes double ripple on list preferences, missing ripple on up button, and adds the Toolbar style to public. Further improves ripple performance. BUG: 15523923 BUG: 15473856 Change-Id: I5e8bf417368b60fcc33c80852e12f27b8c580774
* | | am 28104981: Merge "Optimize use of layers in ripple, update dialog styling" ↵Alan Viverette2014-06-102-25/+27
|\ \ \ | |/ / | | | | | | | | | | | | | | | into lmp-preview-dev * commit '28104981ea36e96e0c85b735b91583fb344b85c5': Optimize use of layers in ripple, update dialog styling
| * | Optimize use of layers in ripple, update dialog stylingAlan Viverette2014-06-092-25/+27
| | | | | | | | | | | | | | | | | | BUG: 15474733 BUG: 15473856 Change-Id: I7c17865c7b2d4aad0fc3660ffac90e9f7ce8fda9
| * | Merge "DO NOT MERGE Material theme" into lmp-preview-devAlan Viverette2014-06-063-24/+24
| |\ \
| | * | DO NOT MERGE Material themeAlan Viverette2014-06-063-24/+24
| | | | | | | | | | | | | | | | | | | | BUG: 15467097 Change-Id: I15191362e104a902895418fc615892c21db64c35
| * | | Current page not updated when closedsvetoslavganov2014-06-061-1/+1
| |/ / | | | | | | | | | Change-Id: I19845f179f9e712f0213c845c795d5e2c9ea4e29
* | | Annotated the drawing commands.Antonio Calabrese2014-06-091-79/+109
| | | | | | | | | | | | Change-Id: I4eeb35ecaf4aa16e0924b5215351fce79c68369b
* | | Material themeAlan Viverette2014-06-063-24/+24
| | | | | | | | | | | | | | | BUG: 15467097 Change-Id: I15191362e104a902895418fc615892c21db64c35
* | | am 58248d04: Merge "Update drawables to fix CTS test failures" into ↵Alan Viverette2014-06-063-1/+20
|\ \ \ | |/ / | | | | | | | | | | | | | | | lmp-preview-dev * commit '58248d049e8b17dd60e4e94e784c09b00e0a7e9d': Update drawables to fix CTS test failures
| * | Update drawables to fix CTS test failuresAlan Viverette2014-06-063-1/+20
| | | | | | | | | | | | Change-Id: I78617aedab450f5bc18807c03d07ee776584ece0
* | | am 7553d48d: Merge "Fix default stroke width and NPE for line with no stroke ↵Alan Viverette2014-06-052-6/+12
|\ \ \ | |/ / | | / | |/ |/| | | | | width" into lmp-preview-dev * commit '7553d48d28683b5b21e964d837a3f3c0f66af9ad': Fix default stroke width and NPE for line with no stroke width
| * Fix default stroke width and NPE for line with no stroke widthAlan Viverette2014-06-052-6/+12
| | | | | | | | | | | | | | Also fixes restart on visiblity change in AnimationDrawable BUG: 15437284 Change-Id: I698e7ffb11489061a38fbcd5cea10ba11a6abb34
* | am c1462be8: Merge "Update ripple spec, fix ripple mask, rotate progress ↵Alan Viverette2014-06-043-27/+67
|\ \ | |/ | | | | | | | | | | drawable" into lmp-preview-dev * commit 'c1462be80a2581ddd522bf24d91ba183f166de80': Update ripple spec, fix ripple mask, rotate progress drawable
| * Update ripple spec, fix ripple mask, rotate progress drawableAlan Viverette2014-06-043-27/+67
| | | | | | | | Change-Id: I4fc155bf2f12d9f324c354dee81479f9cddafac4
* | am 8fad12dc: Merge "Fix incorrect getStringBounds (Minikin)" into ↵Raph Levien2014-06-041-4/+5
|\ \ | |/ | | | | | | | | | | lmp-preview-dev * commit '8fad12dc66f47af2fd394f44858802d10cf110f1': Fix incorrect getStringBounds (Minikin)
| * Fix incorrect getStringBounds (Minikin)Raph Levien2014-06-031-4/+5
| | | | | | | | | | | | | | | | This patch wires up getStringBounds to do the layout with Minikin to get accurate bounds, and with the correct typeface. It fixes bug 15416575 "getStringBounds gives wrong result in Minikin". Change-Id: I5c020bc372acb1d785a33c3c296239c151bd8c87
* | am aef648f4: Merge "Better Minikin integration" into lmp-preview-devRaph Levien2014-06-041-6/+6
|\ \ | |/ | | | | | | * commit 'aef648f405a6f2ed2e523e69cd6f1da884f4b9dd': Better Minikin integration
| * Merge "Better Minikin integration" into lmp-preview-devRaph Levien2014-06-041-6/+6
| |\
| | * Better Minikin integrationRaph Levien2014-06-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch improves the Minikin integration in a number of ways, including: Software rendering does text decorations and handles alignment correctly. This fixes bug 15139067 "Centered text isn't working". Paint implements getTextPath. This fixes bug 15143354 "Text rendering in Maps Navigation wrong typeface?" Also a bit of refactoring, since there was duplicated code for iterating font runs that's now a static method in MinikinUtils. Change-Id: I4cfdb2c0559982376348325a757d95235fab1768
* | | am 62ea9554: Merge "Temporary drawable for Quantum progress indicator" into ↵Alan Viverette2014-06-042-0/+494
|\ \ \ | |/ / | | | | | | | | | | | | | | | lmp-preview-dev * commit '62ea9554753820df25343e52e0dcab090e5755b5': Temporary drawable for Quantum progress indicator
| * | Merge "Temporary drawable for Quantum progress indicator" into lmp-preview-devAlan Viverette2014-06-042-0/+494
| |\ \
| | * | Temporary drawable for Quantum progress indicatorAlan Viverette2014-06-032-0/+494
| | |/ | | | | | | | | | | | | | | | Also cleans up unused 20dp spinner drawables. Change-Id: I69aba84eca9f9e8d44a4237d894015caeb3d2308
* | | am 15fabac3: Merge "Fix build, fix Drawable loop" into lmp-preview-devAlan Viverette2014-06-041-1/+1
|\ \ \ | |/ / | | | | | | | | | * commit '15fabac37d6c1ce575c66338b4a51b2f8d8afb96': Fix build, fix Drawable loop
| * | Merge "Fix build, fix Drawable loop" into lmp-preview-devAlan Viverette2014-06-031-1/+1
| |\ \
| | * | Fix build, fix Drawable loopAlan Viverette2014-06-031-1/+1
| | | | | | | | | | | | | | | | Change-Id: I524b7f40c700ebe601fdbe80644a46e90ab2bba0
* | | | Merge commit '096d52fb' into manualmergeAlan Viverette2014-06-042-5/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Conflicts: api/current.txt Change-Id: Iaf1f9172a73e74885475c30ffefcb7d0e32a5883
| * | | Merge "Update theme colors, fix EditText state transition" into lmp-preview-devAlan Viverette2014-06-032-5/+5
| |\ \ \
| | * | | Update theme colors, fix EditText state transitionAlan Viverette2014-06-032-5/+5
| | | |/ | | |/| | | | | | | | | | | | | | | | | BUG: 11218747 BUG: 15200201 Change-Id: I94368897ea9466ae971b25fc80d6ca43433aadd5
* | | | am a929b2d4: Merge "Set starting value on ripple exit animation" into ↵Alan Viverette2014-06-041-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | lmp-preview-dev * commit 'a929b2d49386cfb3cdf4e0eaecca61184fa0c857': Set starting value on ripple exit animation
| * | | Merge "Set starting value on ripple exit animation" into lmp-preview-devAlan Viverette2014-06-031-0/+1
| |\ \ \ | | |_|/ | |/| |
| | * | Set starting value on ripple exit animationAlan Viverette2014-06-021-0/+1
| | |/ | | | | | | | | | Change-Id: I2eca91c02ea059591a2ee0c75c5355f0ecd5a4be
* | | am b1c7f7f5: Merge "Fix NPE when ripples are canceled due to visibility ↵Alan Viverette2014-06-041-1/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | change" into lmp-preview-dev * commit 'b1c7f7f538e8c4947f75406cc6089f6680f59a31': Fix NPE when ripples are canceled due to visibility change
| * | Fix NPE when ripples are canceled due to visibility changeAlan Viverette2014-06-031-1/+4
| |/ | | | | | | | | BUG: 15406248 Change-Id: I63ce42fef8e1614372ee4a82e45eb15e8bbe1fe3
* | Merge "Canvas JNI cleanup."Florin Malita2014-06-041-36/+96
|\ \
| * | Canvas JNI cleanup.Florin Malita2014-06-041-36/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As pointed out in a previous patch review, some native Canvas methods do not receive a native canvas handle and instead have to use GraphicsJNI to query the object mNativeCanvasWrapper field. To avoid the extra JNI call, this change adds the missing Java wrapper methods and ensures that all native calls are passed efficient native handles. Also, some native methods are consolidated: save, saveAll -> save, clipRect* -> clipRect. Change-Id: I2eae4a633f6a463d9fbae2ca632661acc8b5cfc3
* | | Merge "Ignore inPurgeable and inInputShareable."Leon Scroggins III2014-06-041-5/+15
|\ \ \
| * | | Ignore inPurgeable and inInputShareable.Leon Scroggins III2014-06-031-5/+15
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are discouraged anyway, due to the fact that using them may result in decoding on the UI thread. Now that they are ignored, the images will still be decoded; they just will never have their memory purged, meaning there could be a RAM penalty. This is acceptable, since apps are encouraged to instead use inBitmap to manage bitmap memory. This incidentally fixes BUG:15390468 by converting purgeable index8 (e.g. gif) images to non purgeable. Change-Id: Ieaf3ab25d28d93fb94bdaea1eb3bd762f163b09a
* | | Merge "Handle the alpha in the group setting and fix the fill issue."ztenghui2014-06-031-47/+60
|\ \ \
| * | | Handle the alpha in the group setting and fix the fill issue.ztenghui2014-06-031-47/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fill used to be dafault as "none". Now it is default to opaque black, which is consistent with svg now. So it is better to always set the fill value. bug:15288554 Change-Id: I07ac41c5adc77665e66e52f2c0220139586fb09b