summaryrefslogtreecommitdiff
path: root/tests/VectorDrawableTest/src
AgeCommit message (Collapse)Author
2017-04-14Remove unnecessary casts on calls to findViewByIdAlan Viverette
Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
2016-07-01Add test for clip path grouping and intersectionTeng-Hui Zhu
b/29597018 Change-Id: Ib7b214376ab0089b3810e74bae60d4b8e666e13e
2016-03-31Add test for private API forceAnimationOnUITeng-Hui Zhu
b/27343522 Change-Id: I5167a159f5630ab064f434930f3056754e2c0f44
2016-03-29Add radio button as a bundle XML file in the manual testTeng-Hui Zhu
This will make the reproducing and isolating the bug easier b/c everything is in one single file. b/27343522 Change-Id: I25445127f6fb44a8613701a7195a605e052730e5
2016-03-29Add test for AVD on SW LayerTeng-Hui Zhu
Now we can put both HW Layer and SW Layer side by side. Change-Id: I105d0aa6baad0e096cf71c05568323e81301e9b0
2016-03-16Add fillType support to VectorDrawableTeng-Hui Zhu
Default as non-zero, which is the same as SVG. b/27533958 Change-Id: Id20e6d3493bb4d2b4b65d7f6cdb13586631c40e4
2016-03-07Add tileMode support into GradientColorTeng-Hui Zhu
So VectorDrawable can have tileMode supported Gradient color. b/27126035 Change-Id: Icbf5983be165f04dc640627f6208fb1292f15625
2016-01-28Add manual VectorDrawable tests for CSL related issueTeng-Hui Zhu
b/26847411 b/26774249 Change-Id: I51f8f0f8852a0f8cfb82b9c8a7ffda7ba08fd060
2016-01-27Gradient for VectorDrawable's fill and strokeTeng-Hui Zhu
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
2015-09-22Allow color state list for vector drawable fill and strokeAlan Viverette
Removes unnecessary invalidateSelf() from VD.onStateChange(). This is handled by the view hosting the drawable. Bug: 22984152 Change-Id: Idf11a0ffef392cb1d8452aa3f5f836b35027a756
2015-07-17Scaling (Animated)VectorDrawable inside ImageViewztenghui
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
2015-06-04Setup the animation callback for AnimatedVectorDrawableztenghui
b/21341096 Change-Id: I84e20366db21ceaa4f044be3e322f9215bb06ad2
2015-05-11AnimatedVectorDrawable Attr proof of conceptAndrew Flynn
This crashes while trying to run due to the '?attr/color1' reference inside res/anim/blink.xml Bug: 20817800 Change-Id: Ie3ea24ac9b22e69af152d6ffe87c8c953929299c
2015-04-02Add group scaling factor into stroke width.ztenghui
Originally, stroke width is independent of group scaling. But that is a bug and causing animation trouble. b/19501782 Change-Id: I33d5e44f2f8b2a82fee1a5a326223a39aaffa86c
2015-03-24Add listener support in AVDztenghui
Internally, switch to use AnimatorSet instead of an array of Animators b/19825918 Change-Id: Ia67d2cc7dd89362e6b0019c916d3f2a0d0f3e39e
2014-12-15Remove 2 sub-tests from the internal test app.ztenghui
b/18171696 Change-Id: I4c4e96c2d0a8e664d81abb300a8f56c5bbb358cd
2014-11-21Supporrt tapas build for vector testsztenghui
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
2014-11-20Merge "ASLD: ASLD's XML reversible flag can turn off the reverse behavior ↵ztenghui
now." into lmp-mr1-dev
2014-11-20ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.ztenghui
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
2014-11-13Fix the starting pen's position when a path close.ztenghui
We have to cache the starting point for the latest "move", then apply it after we close the path. b/18214929 Change-Id: I8e8e5c810d720a1c194b8f59d74867a0efbb7662
2014-11-04VD:test:Remove open animation AVDztenghui
This is for unbundle apps, so it is not a good idea to put in open source. b/18171696 Change-Id: I4272a9cd12904b90b4421e88304795a292ceec58
2014-10-10Support negative value in exponential data in the pathData.ztenghui
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
2014-10-08Support dot separation as the svg path data did.ztenghui
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
2014-09-30More test cases from UX team for AVD.ztenghui
This adds more realistic avds for testing purpose. Also add root level alpha tests. b/17698712 Change-Id: I32efaecf8a46a110c77e432a5307296e8a443160
2014-09-23Add one more test and update old testsztenghui
This is just updating the internal test app. No real functionality changed. b/17631551 Change-Id: Icc01e017ea4fbf97712214e6ac02691d29ea5e96
2014-09-12Add root alpha and animation to (Animated)VectorDrawableztenghui
b/17393626 Change-Id: If6a28b072f7d4bcb2b57022d86ec784f4c0d78f1
2014-08-11Don't double count the left/top when using bitmap cache in VectorDrawable.ztenghui
bug:16861184 Change-Id: I0530602957a434b222725b6fcbc1af165ee05835
2014-08-06Add stroke related test to the VectorDrawableTestztenghui
Change-Id: I7dceebd58d9365cf8e2a31dfeec418aa439bacb6
2014-08-04Fix one typo and add linear progress bar in the test.ztenghui
Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
2014-07-18Fix FIT_XY scaleType issue on VectorDrawableztenghui
bug:16019658 Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
2014-07-16Add more reverse support to AnimatedVDztenghui
bug:16162242 Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
2014-07-10Fix the render order to follow the XML file order.ztenghui
So we put path and group into a big list, then use reflectiont to handle them differently. bug:16162141 Change-Id: I4c84dc952d5d9b49412301dcd6459395e21d3b31
2014-07-03Update AnimatedStateListDrawable to work with Animatable drawablesAlan Viverette
BUG: 16016730 Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
2014-07-01Test scaleType for both bitmap and vector drawables.ztenghui
Change-Id: I3c75963a624cd87a47a9eff68f9e113b8c147210
2014-06-27Update the tests to show more animations from UX teamztenghui
Change-Id: I16d2ed29f40c85ec48c87b5a0355e2a262ed3af7
2014-06-18Improve constant state for VectorDrawableztenghui
Now inflation will not cause duplicated constant states. And update tests. Change-Id: I66861e5451c4c10d18756e8522546ea1cb938a55
2014-06-12Add AnimatedVectorDrawableztenghui
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
2014-06-03Add AnimationDrawable testztenghui
Change-Id: Ieabd1f628cdccd4939f733f92c0cbefbf8bc0446
2014-06-03Handle the alpha in the group setting and fix the fill issue.ztenghui
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
2014-06-02Add the tree hierarchy for the groupztenghui
bug:15288554 Change-Id: I7caedb8466d078a0d9a6148e00d02eded4a4d234
2014-05-28Add translation and scale to the group tag and related tests.ztenghui
bug:15288554 Change-Id: Iebe176d0a9c2c566d1910674a068e65e15569829
2014-05-27Bring the group tag back to VectorDrawable.ztenghui
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
2014-05-05First step on API cleaning on the VectorDrawable to disable animation supportztenghui
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
2014-04-02Clean up on VectorDrawable.ztenghui
Rename the test from DynamicDrawableTest to VectorDrawableTest. Remove duplicate function calls in the test. Fix comments in VectorDrawable Change-Id: I1ef87137088ccc10b1abdb40ca368345d9dbadab