summaryrefslogtreecommitdiff
path: root/tests/VectorDrawableTest/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary casts on calls to findViewByIdAlan Viverette2017-04-141-1/+1
| | | | | | | | Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
* Add test for clip path grouping and intersectionTeng-Hui Zhu2016-07-011-0/+1
| | | | | | b/29597018 Change-Id: Ib7b214376ab0089b3810e74bae60d4b8e666e13e
* Add test for private API forceAnimationOnUITeng-Hui Zhu2016-03-311-18/+35
| | | | | | b/27343522 Change-Id: I5167a159f5630ab064f434930f3056754e2c0f44
* Add radio button as a bundle XML file in the manual testTeng-Hui Zhu2016-03-291-0/+1
| | | | | | | | | This will make the reproducing and isolating the bug easier b/c everything is in one single file. b/27343522 Change-Id: I25445127f6fb44a8613701a7195a605e052730e5
* Add test for AVD on SW LayerTeng-Hui Zhu2016-03-291-17/+21
| | | | | | Now we can put both HW Layer and SW Layer side by side. Change-Id: I105d0aa6baad0e096cf71c05568323e81301e9b0
* Add fillType support to VectorDrawableTeng-Hui Zhu2016-03-161-0/+2
| | | | | | | Default as non-zero, which is the same as SVG. b/27533958 Change-Id: Id20e6d3493bb4d2b4b65d7f6cdb13586631c40e4
* Add tileMode support into GradientColorTeng-Hui Zhu2016-03-071-0/+3
| | | | | | | So VectorDrawable can have tileMode supported Gradient color. b/27126035 Change-Id: Icbf5983be165f04dc640627f6208fb1292f15625
* Add manual VectorDrawable tests for CSL related issueTeng-Hui Zhu2016-01-281-1/+2
| | | | | | | b/26847411 b/26774249 Change-Id: I51f8f0f8852a0f8cfb82b9c8a7ffda7ba08fd060
* Gradient for VectorDrawable's fill and strokeTeng-Hui Zhu2016-01-271-1/+5
| | | | | | | | | | | | | | | | | | | Add ComplexColor interface for both GradientColor and ColorStateList. Set up constant state, factory, theme attrs for GradientColor, while refactoring the ColorStateList's similar code. (Functionality in CSL should be the same). Support themeing in both the root and item level in GradientColor. For example, both startColor in <gradient> tag or color in <item> tag can have theme color. Add tests for both simple and complex cases with themeing etc. Hook up the native VectorDrawable implementation using 2 extra JNI calls for simplicity. Such calls only happen at inflate and applyTheme call. b/22564318 Change-Id: Ibdc564ddb4a7ee0133c6141c4784782f0c93ce0e
* Allow color state list for vector drawable fill and strokeAlan Viverette2015-09-221-0/+22
| | | | | | | | Removes unnecessary invalidateSelf() from VD.onStateChange(). This is handled by the view hosting the drawable. Bug: 22984152 Change-Id: Idf11a0ffef392cb1d8452aa3f5f836b35027a756
* Scaling (Animated)VectorDrawable inside ImageViewztenghui2015-07-171-4/+11
| | | | | | | | | | | Before, the VectorDrawable is behaving like BitmapDrawable inside a ImageView, and it can be blurry due to scaling. Now apply the scaling information to the cached bitmap, then the size of bitmap will match the ImageView's screen size. Therefore, no blurry any more. b/18185626 Change-Id: I979cef3b5178a9bd37ee6cc776df3361ca47c803
* Setup the animation callback for AnimatedVectorDrawableztenghui2015-06-041-16/+9
| | | | | | b/21341096 Change-Id: I84e20366db21ceaa4f044be3e322f9215bb06ad2
* AnimatedVectorDrawable Attr proof of conceptAndrew Flynn2015-05-111-0/+32
| | | | | | | | 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-021-0/+4
| | | | | | | | | 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
* Remove 2 sub-tests from the internal test app.ztenghui2014-12-151-2/+0
| | | | | | b/18171696 Change-Id: I4c4e96c2d0a8e664d81abb300a8f56c5bbb358cd
* Supporrt tapas build for vector testsztenghui2014-11-211-1/+33
| | | | | | | | | | | | | | 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-201-1/+8
|\ | | | | | | now." into lmp-mr1-dev
| * ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.ztenghui2014-11-201-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-131-0/+1
|/ | | | | | | | | 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-041-1/+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-101-0/+1
| | | | | | | | | | | 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-081-0/+1
| | | | | | | | | 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-301-0/+5
| | | | | | | | | This adds more realistic avds for testing purpose. Also add root level alpha tests. b/17698712 Change-Id: I32efaecf8a46a110c77e432a5307296e8a443160
* Add one more test and update old testsztenghui2014-09-231-0/+122
| | | | | | | | | This is just updating the internal test app. No real functionality changed. b/17631551 Change-Id: Icc01e017ea4fbf97712214e6ac02691d29ea5e96
* Add root alpha and animation to (Animated)VectorDrawableztenghui2014-09-121-0/+2
| | | | | | b/17393626 Change-Id: If6a28b072f7d4bcb2b57022d86ec784f4c0d78f1
* Don't double count the left/top when using bitmap cache in VectorDrawable.ztenghui2014-08-111-0/+57
| | | | | | bug:16861184 Change-Id: I0530602957a434b222725b6fcbc1af165ee05835
* Add stroke related test to the VectorDrawableTestztenghui2014-08-061-0/+3
| | | | Change-Id: I7dceebd58d9365cf8e2a31dfeec418aa439bacb6
* Fix one typo and add linear progress bar in the test.ztenghui2014-08-041-1/+2
| | | | Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
* Fix FIT_XY scaleType issue on VectorDrawableztenghui2014-07-181-28/+9
| | | | | | bug:16019658 Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
* Add more reverse support to AnimatedVDztenghui2014-07-161-2/+4
| | | | | | bug:16162242 Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
* Fix the render order to follow the XML file order.ztenghui2014-07-101-0/+1
| | | | | | | | | 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-031-0/+52
| | | | | BUG: 16016730 Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
* Test scaleType for both bitmap and vector drawables.ztenghui2014-07-011-0/+97
| | | | Change-Id: I3c75963a624cd87a47a9eff68f9e113b8c147210
* Update the tests to show more animations from UX teamztenghui2014-06-271-13/+32
| | | | Change-Id: I16d2ed29f40c85ec48c87b5a0355e2a262ed3af7
* Improve constant state for VectorDrawableztenghui2014-06-181-0/+78
| | | | | | | Now inflation will not cause duplicated constant states. And update tests. Change-Id: I66861e5451c4c10d18756e8522546ea1cb938a55
* Add AnimatedVectorDrawableztenghui2014-06-122-1/+44
| | | | | | | | | | | 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-031-0/+45
| | | | Change-Id: Ieabd1f628cdccd4939f733f92c0cbefbf8bc0446
* Handle the alpha in the group setting and fix the fill issue.ztenghui2014-06-032-1/+4
| | | | | | | | | | 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-021-2/+4
| | | | | | bug:15288554 Change-Id: I7caedb8466d078a0d9a6148e00d02eded4a4d234
* Add translation and scale to the group tag and related tests.ztenghui2014-05-281-1/+2
| | | | | | bug:15288554 Change-Id: Iebe176d0a9c2c566d1910674a068e65e15569829
* Bring the group tag back to VectorDrawable.ztenghui2014-05-271-2/+0
| | | | | | | | | | | | | | | | | | | | | 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
* 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
* Clean up on VectorDrawable.ztenghui2014-04-027-0/+506
Rename the test from DynamicDrawableTest to VectorDrawableTest. Remove duplicate function calls in the test. Fix comments in VectorDrawable Change-Id: I1ef87137088ccc10b1abdb40ca368345d9dbadab