summaryrefslogtreecommitdiffstats
path: root/tests/VectorDrawableTest
Commit message (Collapse)AuthorAgeFilesLines
* Update the internal test case to show the strokeWidth can scale nowztenghui2015-06-242-6/+1
| | | | Change-Id: I16b0a232eb4108aedc9289e51a52ec9472b9dfd0
* Separate 2 clip paths into 2 groupsztenghui2015-06-171-21/+25
| | | | | | | | | | | | | | Since 2 clip paths is taking the intersection as the final clip, we should separate this test case into 2 groups. Prior to M release, the 2nd clip path is overriding the first one. The behavior changed in this CL: e9c01a40a2f0f0da195dfbb2909aaee5c005d1c6 b/16376848 b/19946683 Change-Id: Ib21c95e70f1317321725acbbe0ccf91713f748c3
* Setup the animation callback for AnimatedVectorDrawableztenghui2015-06-041-16/+9
| | | | | | b/21341096 Change-Id: I84e20366db21ceaa4f044be3e322f9215bb06ad2
* Change colors of AVD testAndrew Flynn2015-06-011-2/+2
| | | | | | | so you can actually see the animation rather than animating between the same color. Change-Id: Id32f6f5a22c000093fb9cbc1e9274eacbd183373
* AnimatedVectorDrawable Attr proof of conceptAndrew Flynn2015-05-119-1/+261
| | | | | | | | This crashes while trying to run due to the '?attr/color1' reference inside res/anim/blink.xml Bug: 20817800 Change-Id: Ie3ea24ac9b22e69af152d6ffe87c8c953929299c
* Add group scaling factor into stroke width.ztenghui2015-04-025-0/+223
| | | | | | | | | Originally, stroke width is independent of group scaling. But that is a bug and causing animation trouble. b/19501782 Change-Id: I33d5e44f2f8b2a82fee1a5a326223a39aaffa86c
* Add listener support in AVDztenghui2015-03-241-0/+23
| | | | | | | | Internally, switch to use AnimatorSet instead of an array of Animators b/19825918 Change-Id: Ia67d2cc7dd89362e6b0019c916d3f2a0d0f3e39e
* Limit the scope of clip path to the group, not globalztenghui2015-01-091-16/+24
| | | | | | http://b/18758765 Change-Id: I899401a5fcbccd0421687bd5cf671f7751092195
* Remove 2 sub-tests from the internal test app.ztenghui2014-12-1519-772/+0
| | | | | | b/18171696 Change-Id: I4c4e96c2d0a8e664d81abb300a8f56c5bbb358cd
* Supporrt tapas build for vector testsztenghui2014-11-212-1/+35
| | | | | | | | | | | | | | Such that UX team has less pain on building the VD / AVD assets. This also requires removing internal API dependence in the test. To build the VectorDrawableTest with prebuilt SDK. <root dir>/tapas VectorDrawableTest <root dir>/make -j64 showcommand Then later for incremental build. <root dir>/mmm ./frameworks/base/tests/VectorDrawableTest/ -j20 b/18260896 Change-Id: Id559074df78d7c2a5c529c545834da23986bc15f
* Merge "ASLD: ASLD's XML reversible flag can turn off the reverse behavior ↵ztenghui2014-11-209-12/+166
|\ | | | | | | now." into lmp-mr1-dev
| * ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.ztenghui2014-11-209-12/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the android:reversible flag behaves like a suggestion. Now it is used to enforce no reverse when set to false. In this way, user can safely setup one direction animation only. When set to true, but AVD can't reverse , then it will show a warning. At the same time, update the tests to show different cases, including AnimationDrawable. b/18413484 Change-Id: I5552c49dcbd76b0724b4d5593bce8388b27bd905
* | Fix the starting pen's position when a path close.ztenghui2014-11-132-0/+29
|/ | | | | | | | | We have to cache the starting point for the latest "move", then apply it after we close the path. b/18214929 Change-Id: I8e8e5c810d720a1c194b8f59d74867a0efbb7662
* VD:test:Remove open animation AVDztenghui2014-11-0422-551/+0
| | | | | | | | This is for unbundle apps, so it is not a good idea to put in open source. b/18171696 Change-Id: I4272a9cd12904b90b4421e88304795a292ceec58
* Support negative value in exponential data in the pathData.ztenghui2014-10-1022-0/+551
| | | | | | | | | | | Now "1e-5" will not be separated as "1e" and "-5". Add one test for this use case. Make sure we print out the pathData when path parsing has error. b/17919923 Change-Id: I10a00ce21166cfb5a009c49c1a93f40eeb956d83
* Support dot separation as the svg path data did.ztenghui2014-10-083-1/+30
| | | | | | | | | Like "0.0.0" will be separated to "0.0 .0" now, just to make sure we are more complied with svg path data. b/17892882 Change-Id: Id7b64e9882f5174aa794a0256e2a29d66c724876
* More test cases from UX team for AVD.ztenghui2014-09-3048-2/+1509
| | | | | | | | | This adds more realistic avds for testing purpose. Also add root level alpha tests. b/17698712 Change-Id: I32efaecf8a46a110c77e432a5307296e8a443160
* Merge "Add one more test and update old tests" into lmp-devztenghui2014-09-244-17/+136
|\
| * Add one more test and update old testsztenghui2014-09-234-17/+136
| | | | | | | | | | | | | | | | | | This is just updating the internal test app. No real functionality changed. b/17631551 Change-Id: Icc01e017ea4fbf97712214e6ac02691d29ea5e96
* | Fix animation on the some propertiesztenghui2014-09-232-1/+31
|/ | | | | | | | | 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
* Add root alpha and animation to (Animated)VectorDrawableztenghui2014-09-124-1/+33
| | | | | | b/17393626 Change-Id: If6a28b072f7d4bcb2b57022d86ec784f4c0d78f1
* Bring back the fillAlpha and strokeAlpha.ztenghui2014-09-102-3/+6
| | | | | | | | | 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
* Don't double count the left/top when using bitmap cache in VectorDrawable.ztenghui2014-08-114-2/+70
| | | | | | bug:16861184 Change-Id: I0530602957a434b222725b6fcbc1af165ee05835
* Removing fill and stroke opacityztenghui2014-08-072-4/+3
| | | | | | | | bug:16850076 attrs/public.xml update will be separated for build break friday. Change-Id: I5863193d5fecd7e210bd6db5294868f1a70e0d2f
* Add stroke related test to the VectorDrawableTestztenghui2014-08-064-0/+138
| | | | Change-Id: I7dceebd58d9365cf8e2a31dfeec418aa439bacb6
* Fix one typo and add linear progress bar in the test.ztenghui2014-08-047-1/+188
| | | | Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
* API REVIEW: VectorDrawableztenghui2014-07-2535-362/+209
| | | | | | | | | | | | | | | | | | | | - Merge <size> and <viewport> attributes all in to top-level <vector> tag - Indent attributes under <group> in java doc. - Updata android:stroke to be android:strokeColor, likewise android:fill - Instead of android:clipToPath, make this a different clip-path tag. - Document units of the various attributes - Add example code for defining a VectorDrawable resource More than that: = Refactor the code to better support clipPath as a sub-class. = Update all the xml files to use the new attributes and clip-path tag. TODO: -- Remove clipToPath, since that should happen on build break Friday. bug:16488254 Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
* Add negative sign separation support in the pathDataztenghui2014-07-239-54/+54
| | | | | | bug:14585171 Change-Id: I61dec27856be09c44bb1d32ff61b3c3cd458cc34
* Fix FIT_XY scaleType issue on VectorDrawableztenghui2014-07-181-28/+9
| | | | | | bug:16019658 Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
* Add the RTL support to VectorDrawable.ztenghui2014-07-174-4/+8
| | | | | | bug:15905631 Change-Id: Ieb3dcac2dd446ba89f307716411688dcd6ec5279
* Add more reverse support to AnimatedVDztenghui2014-07-164-3/+57
| | | | | | bug:16162242 Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
* Fix the render order to follow the XML file order.ztenghui2014-07-103-1/+95
| | | | | | | | | So we put path and group into a big list, then use reflectiont to handle them differently. bug:16162141 Change-Id: I4c84dc952d5d9b49412301dcd6459395e21d3b31
* Update AnimatedStateListDrawable to work with Animatable drawablesAlan Viverette2014-07-033-0/+108
| | | | | BUG: 16016730 Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
* Test scaleType for both bitmap and vector drawables.ztenghui2014-07-012-1/+107
| | | | Change-Id: I3c75963a624cd87a47a9eff68f9e113b8c147210
* Use AnimatedVectorDrawable for progress bar.ztenghui2014-06-302-2/+2
| | | | Change-Id: I419197ef38a611757f27ca3192350ad4bd403875
* Add string support for valueFrom/valueToztenghui2014-06-271-2/+2
| | | | | | b/15910407 Change-Id: I557e855f7d16e2eb0452d43ca6a672acdcae2071
* Update the tests to show more animations from UX teamztenghui2014-06-2718-24/+446
| | | | Change-Id: I16d2ed29f40c85ec48c87b5a0355e2a262ed3af7
* AVD now support path morphing.ztenghui2014-06-204-11/+51
| | | | | | | | Basically extended the ValueAnimator to support a new type: pathType. Add the PathDataEvaluator internally to interpolate path data. Update test to show the path morphing. Change-Id: I89db0199cbc12e3041790a6115f3f50b80213cdb
* Add path support into xml files for PathInterpolator and ObjectAnimator.ztenghui2014-06-194-6/+11
| | | | | | | The test case is showing that AnimatedVectorDrawable is able to use path to define time interpolator and object movement now. Change-Id: If3c0418265d0fd762c8f5f0bb8c39cce3ad34ef3
* Improve constant state for VectorDrawableztenghui2014-06-183-0/+88
| | | | | | | Now inflation will not cause duplicated constant states. And update tests. Change-Id: I66861e5451c4c10d18756e8522546ea1cb938a55
* Add AnimatedVectorDrawableztenghui2014-06-129-12/+271
| | | | | | | | | | | 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
* Add AnimationDrawable testztenghui2014-06-033-13/+101
| | | | Change-Id: Ieabd1f628cdccd4939f733f92c0cbefbf8bc0446
* Handle the alpha in the group setting and fix the fill issue.ztenghui2014-06-0311-3/+108
| | | | | | | | | | 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
* Add the tree hierarchy for the groupztenghui2014-06-024-2/+163
| | | | | | bug:15288554 Change-Id: I7caedb8466d078a0d9a6148e00d02eded4a4d234
* Add translation and scale to the group tag and related tests.ztenghui2014-05-284-4/+72
| | | | | | bug:15288554 Change-Id: Iebe176d0a9c2c566d1910674a068e65e15569829
* Move the rotation information from path to group.ztenghui2014-05-2811-82/+73
| | | | | | | | | | Also update the 3rd test to correctly testing clipping. Removing some naive tests which rotate 360 or 0. bug:15288554 Change-Id: I436e8e494cb78fc665a3890171a1af87367db419
* Bring the group tag back to VectorDrawable.ztenghui2014-05-2728-337/+372
| | | | | | | | | | | | | | | | | | | | | This is the first step, including: 1. Bring the group tag back by reverting. 2. If there is no group tag, then treat all the paths as a single group. Make sure our test cases covering both cases. At the same time, fix one tiny UI bug in the test. TODO: 1. Move the rotation to the group tag. 2. Add translation/scale to the group tag. 3. Convert the group into a tree hierarchy. This reverts commit 404211630ba3bb865109434aba4433e7541b39d3. Conflicts: graphics/java/android/graphics/drawable/VectorDrawable.java Change-Id: Ife65bb6a7fc85f9947124b8e356cd5b82119796a
* Remove the group tag.ztenghui2014-05-1227-364/+322
| | | | | | | | | Since we don't support animation, it is better not to expose the group tag for now, which will only lead to confusion. Internally, we keep the group class to represent multiple paths. But we don't allow multiple groups. Change-Id: I041ba32dff05ef6b1cd9d5ab1a1717e55a356145
* Further cleaning on animated part of VectorDrawable.ztenghui2014-05-0819-557/+6
| | | | | | | | | State changed support is gone. Rename VAnimatedPath. Remove the obsolete documents. Update the tests to reflect the API changes. Change-Id: Icdc19c6519a4e29975877c1d167e61c8fa14a371
* First step on API cleaning on the VectorDrawable to disable animation supportztenghui2014-05-052-27/+2
| | | | | | | | | Cleaning on the API level, and related tests. The animated icon will be only showing the initial state. TODO: Deep clean on the functionality part and attributes. Change-Id: I5723bc5b64f796c3a273d74bde02095751160a88