a4d7ad8663e624d46f53ac0e5948348348d82204 |
06-Apr-2016 |
Diego Perez <diegoperez@google.com> |
Fix rect shadow detection ViewGroup_Delegate was trying to use a rect shadow even in cases where we needed to use a path. This caused that using a ToggleButton would throw an exception with radius < 0. Also, changed the tests so we can detect certain render errors and ignore other (like known fidelity warnings). Change-Id: I900d45f9efa892ad0aebc8f4ef73fc9f21ab9d92
om/android/layoutlib/bridge/intensive/Main.java
|
2605f91f705fbf51800c6fde8ee8cd5f199447b4 |
04-Apr-2016 |
Diego Perez <diegoperez@google.com> |
Separate inflate from render step Up until now, createSession will always do a first render. With the new embedded layoutlib we might want to actually call objects from the inflated view before doing a render or even do it between renders. This allows to avoid the first initial render unless needed. This CL also fixes a bug that would only happen when multiple render calls are issued. When scrolling, use scrollTo since we likely want absolute positions, not relative. Change-Id: I4b1d8388d7218a8de33e25cd546fd965fcb07dc7
om/android/layoutlib/bridge/intensive/Main.java
|
fc970ab65ad8c860dd0654d59b70bbe271f95784 |
26-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Implement VirtualRefBasePtr native methods The VirtualRefBasePtr is used to track the usage of native objects from the java side by reference counting. Implementing the class delegate to make sure we dispose the objects correctly. Change-Id: I3dd4717944b0dbe79f30e49b3083bf65c6e5276d
om/android/layoutlib/bridge/intensive/Main.java
|
ceb1ab1d2a71c6d4e0cccf110a198ff83cb97e5a |
24-Mar-2016 |
Deepanshu Gupta <deepanshu@google.com> |
Add tests for getResource*Name() Change-Id: I02170b2b68c76f817aa0771a5333abf2aee456c0
om/android/layoutlib/bridge/intensive/Main.java
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
om/android/layoutlib/bridge/intensive/setup/LayoutPullParser.java
|
d15459197f71f8cc940e2b057b399117df282f2c |
04-Mar-2016 |
Diego Perez <diegoperez@google.com> |
Account for parent scroll position When calculating the ViewInfo bounding box, account for the parent scroll position. Also make renderAndVerify return a RenderResult to verify some data about the result layout. Change-Id: I965e393c49b5030c80083daf5e058fa31400ce93
om/android/layoutlib/bridge/intensive/Main.java
om/android/layoutlib/bridge/intensive/RenderResult.java
|
52c2030f422c05ebec1aeb3a7476b0ecb72fb935 |
01-Mar-2016 |
Diego Perez <diegoperez@google.com> |
Fix layoutlib expand unit test Changing the theme used to "Light" since currently the "Dark" theme seems to be missing at least one value. This test doesn't visually depend on the theme so just changing it to "Light" to make it pass. Change-Id: Ibb885bf3948dcf587de08896540dda622f86e8b3
om/android/layoutlib/bridge/intensive/Main.java
|
f5650cf3a3a1a8d6ced9fc7b0f399689c9adc1b8 |
01-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Fix Canvas memory leak Every RenderSession would call the AttachInfo.setAttachInfo but wouldn't issue a View.dispatchDetachedFromWindow. This caused some Canvas to be slowly leaked in the DelegateManager in every session. Change-Id: Iec418a86f5c5e55c2a2860ef945268c51c0e8173
om/android/layoutlib/bridge/intensive/Main.java
|
4f2103631a44303257e3adbe89fa2a6854841bbb |
19-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Merge "Revert "Fix Canvas memory leak"" into mnc-ub-dev am: 44f92b00d1 * commit '44f92b00d1a060773625de5884fc86e7218e2dd5': Revert "Fix Canvas memory leak"
|
cf935728897e9f208e250d3bb57296c84cfa0ef9 |
19-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Revert "Fix Canvas memory leak" This reverts commit e82bd72b6e7ab3135d3b28fc2c2694d08af45c3d. Change-Id: Ie9ef25b17d5f725d5054c039992a8cd2912868a6
om/android/layoutlib/bridge/intensive/Main.java
|
1d3c41e563c30d85d5524df598f4bd6e6a226362 |
19-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Merge "Fix Canvas memory leak" into mnc-ub-dev am: bad0e07ee9 * commit 'bad0e07ee9163d6b0f0bf73ad591ff6e453199ef': Fix Canvas memory leak
|
e82bd72b6e7ab3135d3b28fc2c2694d08af45c3d |
01-Feb-2016 |
Diego Perez <diegoperez@google.com> |
Fix Canvas memory leak Every RenderSession would call the AttachInfo.setAttachInfo but wouldn't issue a View.dispatchDetachedFromWindow. This caused some Canvas to be slowly leaked in the DelegateManager in every session. Change-Id: I0322767e5fffc6053ce1be852dd8ca904dfaa137
om/android/layoutlib/bridge/intensive/Main.java
|
491523d52cd8368ef9a92e95fb3e9332bf86a996 |
07-Oct-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib fixes for N Moves LayoutLib to Java 8 - YAY! Fix delegates Change-Id: I098996e43e330e995d33f12df1c16355bbc02f0f
om/android/layoutlib/bridge/intensive/ImageUtils.java
|
b9c48d8f49d35e2682c7205a9d8d5fcc25d7c736 |
18-Dec-2015 |
Diego Perez <diegoperez@google.com> |
New path interpolation to paint vector drawables Before this CL, PathMeasure_Delegate would use Path_Delegate.approximate to get a path segment to draw. Path_Delegate.approximate uses a flattening iterator to do the path approximation. Unfortunately, because we do not control the stroke mode while painting, in some cases the approximation would draw unwanted artifacts caused by the rough approximation and the use of wrong miter values. This CL does a much better calculation of the path and interpolates the segments of the curves instead of replacing them with line segments. This also fixes an issue with the calculation of empty paths. Bug: http://b.android.com/187256 Change-Id: I450f7aa4c3d9efcbf902a40c3b4d6d388546893f
om/android/layoutlib/bridge/intensive/Main.java
|
1665a621da2d503d405fb784bd50b5a8596539a1 |
05-Jan-2016 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Fix device used comments in intensive tests Change-Id: I65ee2f8bdf096ea991e72c99777c8981da7b5ae2
om/android/layoutlib/bridge/intensive/Main.java
|
0c08fc0fc58be4f52527d7a0529960752056e83b |
11-Jan-2016 |
Deepanshu Gupta <deepanshu@google.com> |
Merge "Fix ninepatch scaling." into mnc-ub-dev
|
95e58deaa2ab56de3df827ad615f5b7799506edc |
07-Dec-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix ninepatch scaling. Really fix the bug now. Also add tests for the same and update allwidgets golden file for M. Bug: http://b.android.com/187939 Change-Id: I98cd55da0561fef9d47d8759bcd287ee36d03cc2
om/android/layoutlib/bridge/intensive/Main.java
om/android/layoutlib/bridge/intensive/setup/ConfigGenerator.java
|
29ed07524ce0fc2e5950f5340d306247145d0efa |
14-Oct-2015 |
Diego Perez <diegoperez@google.com> |
Add support for Choreographer animations First step to add support for Choreographer based animations. The Choreographer_Delegate avoid using a handler so the animation callbacks can be called on-demand (by using doFrame). This allows things like frame by frame animation or selecting a specific frame, and doesn't need a separate thread to run. The CL also changes the System and SystemClock implementations to allow to set specific times. Because animations heavily rely on the system time, this allows controlling it. It can also be useful to ensure that the rendering produces a deterministic result when using controls like the Calendar widget. Change-Id: Iff221d2698a82075cafbb60f341be01741f7aa13
om/android/layoutlib/bridge/intensive/Main.java
|
e91096c03dda225240b1487f019bf3d082854587 |
29-Sep-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Support databinding in listitem layouts. Add a wrapper around the PullParser to support stripping out databinding parts. Bug: http://b.android.com/187428 Change-Id: I88080d8f4108cb5ae27a137ad20c5dd7d516f3ea
om/android/layoutlib/bridge/impl/LayoutParserWrapperTest.java
|
89a045c31f4f08bc0d9d533ef47f321e6423f656 |
03-Aug-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Revert to using AppTheme for LayoutLib tests. Use AppTheme for all tests other than testExpand. AppTheme contains an attribute needed by testArrayCheck. Also, since the AppTheme extends Theme.Material.Light.DarkActionBar, other tests should be unaffected. Also, update the golden image for the testArrayCheck. Change-Id: Ib5f53f3b029c5aceef2b622e5ac63952d6b1972a
om/android/layoutlib/bridge/intensive/Main.java
|
4a6ee98d39ab2300b2cd17c60221e43bf4ade8e7 |
29-Jul-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix theme namespace in tests. The tests used framework theme (Material), but the ResourceResolver was created with project theme. This caused tests to fail becasue of missing resources. Change-Id: Ia17ee19054f6689f85e3423e83c1f47a2cc4364f
om/android/layoutlib/bridge/intensive/Main.java
|
b9935889b1be2aac4a47d1acbf7547a832edf9f3 |
21-Jul-2015 |
Diego Perez <diegoperez@google.com> |
resolved conflicts for merge of 112d8a36 to mnc-dev Change-Id: Ic9511a57db8a96f54dba0704800789a8602b9dd2
|
d7b846c1814de34f2cea8507907f70618ec7cae0 |
07-Jul-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Update tests per new layoutlib_api Change-Id: Idc89ffceaf171abcf2b579f4e934b514ef209210
om/android/layoutlib/bridge/intensive/setup/ConfigGenerator.java
|
4362443cd9a5df6c5cc012881a0aaf96c927b923 |
02-Jun-2015 |
Diego Perez <diegoperez@google.com> |
Render to measured size when using expand mode When using RenderingMode.V_SCROLL or RenderingMode.H_SCROLL, if the screen size is smaller than the measured size but as large as the desired size, the layout will render incorrectly and won't expand. This changes that to expand to at least the size of the screen. Added tests for the V_SCROLL and H_SCROLL modes. Bug: http://b.android.com/174928 Change-Id: I22686903560775e2e4f362af1d7b50c9b985467d
om/android/layoutlib/bridge/intensive/Main.java
|
642cff50f8f7a67eed09eac1e56d7133b26a192c |
23-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Support getting resource arrays. - Don't crash when Resources.get<Type>Array() is called. - If the IDE supports it, actually return the value. - Add tests for getArray. - Update test app to latest gradle plugin version. - Switch to using AppTheme for tests, since the tests depend on some custom theme attributes. The AppTheme now inherits from Material.Light.DarkActionBar, so other tests should be unaffected. Depends on a newer version of sdk-common, which fixes the parsing of array resource in value files. Bug: 12372031 Change-Id: I313b61511e98ac1402d75056ebfdeeb005ebb96d
om/android/layoutlib/bridge/intensive/Main.java
|
476e582d2ffdf25102d4c55f8c242baa3d21d37f |
22-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Change nullity annotations. Switch from using tools nullity annotations (com.android.annotations) to android framework annotations (android.annotation). A new sdk-common prebuilt is required for LayoutLib tests. The new sdk-common requires an updated tools-common. The updated tools-common doesn't have nullity annotations. So, instead of adding the annotation dependency, just reuse the platform ones. This also paves the way to include other platform annotations like IdRes etc. Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
om/android/layoutlib/bridge/intensive/ImageUtils.java
om/android/layoutlib/bridge/intensive/Main.java
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
|
612a05e7e15184b21437731b9aa5db2d1d4fc54c |
20-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Update platformDir search in tests. When trying to find the SDK Platform Dir for LayoutLib tests, also test if the dir from which the tests are run is module dir. Change-Id: Id5c6038d07ebbb122e38f907ad488ed1f2bcde32
om/android/layoutlib/bridge/intensive/Main.java
|
3dc19883c571a829c36aa603c04a55c91b00dd57 |
15-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix build: udpate parser factory method Change-Id: I78ad55bc924427b44451ec32fbd1032d6cd77544
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
|
f2d408b51debadca830eefbf8131185ac55ce699 |
15-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Don't keep LayoutlibCallback reference. Switch to the newer API that enables keeping a reference only to the ParserFactory which is a much leaner object as compared to LayoutlibCallback. Change-Id: I9b7afd93226db23786a00b2951cbf5ae5b8f3e5f
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
|
139d6ff12d395a888624113fdd2521861b47d761 |
14-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Update nav bar icons. - Add a script to copy the icons from the original source. - Update layout used for the navigation bar to be closer to the original layout. - Update test image with the latest rendering. - Add a nexus 5 landscape device config to help with testing. Change-Id: I0b6674955e0970a6a8cce148b1b7aa61e1752ccd
om/android/layoutlib/bridge/intensive/setup/ConfigGenerator.java
|
d77b9ed7dcc42efca33b225c4594a30aab9e709c |
12-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Add missing delegates for M preview. - Remove ICU dependency (use the version bundled with platform). - Restructure intelliJ project to move dependencies to module. - Minor fixes to layoutlib tests. TODO: - Load ICU data. - Hyphenator doesn't work. - High quality line breaker not present. Change-Id: I965e096e17bfc97ee995a649c3f4f6f64bb4f70d
om/android/layoutlib/bridge/TestDelegates.java
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
om/android/layoutlib/bridge/intensive/Main.java
|
a12ec8f1e28cb5a8601bf606852f1d34d7c91996 |
09-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Run setup for full tests only once. Change-Id: Iee64dbd88d473b7be08581f26ccddf649aed8e56
om/android/layoutlib/bridge/intensive/Main.java
|
78af25584633462e4ab8cf9bafe10f43e7cb2d83 |
09-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Remove kxml dependency. Create XmlPullParser using callback provided by the client. This enables clients to choose which XmlPullParser implementation they want. Change-Id: I9ad97a4777820cdbe5c8fc3716f74ddec9065c70
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
|
a035dfbf8ddfc8d301dd96088eb50e8c2e63e487 |
17-Apr-2015 |
Deepanshu Gupta <deepanshu@google.com> |
More layoutlib tests. - Add another layout including more widgets and thus testing layoutlib better. - Update targetSdk Version to 22. - Handling of dynamic ids (@+id/) in LayoutLibTestCallback is buggy. Since this is not a problem in Studio, and this is not testing the callback, work around the issue by declaring the ids in values/ids.xml. Change-Id: I457c105e8556c4df13cd86da2250fe5fd37843a8
om/android/layoutlib/bridge/intensive/Main.java
om/android/layoutlib/bridge/intensive/setup/ConfigGenerator.java
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
|
eca0b3d9ec1cff4ee1d1a0dc41ef4c0f482033f8 |
16-Apr-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Nullity annotations to some tests. Change-Id: I2939d7fab30f3b8fe32f2fdf720c630d677373ff
om/android/layoutlib/bridge/intensive/Main.java
|
37dbb8b7f3c069196040eed3a03006647db7fa5b |
15-Apr-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Update to using LayoutlibCallback. Change-Id: Ia89d418b0d40ca8efef8968a4a2a635616b945ac
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
om/android/layoutlib/bridge/intensive/setup/ModuleClassLoader.java
|
4e6ae02a29dd432648a81f3803f3ccf712621d43 |
27-Mar-2015 |
Deepanshu Gupta <deepanshu@google.com> |
am 17bb697b: am ec8df9af: Fix tests for Java 6. * commit '17bb697b3bce1b23137553829dd62e0e7c16b472': Fix tests for Java 6.
|
ec8df9af2f35eb5be4df01d66b1add4a4e7546c7 |
26-Mar-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix tests for Java 6. - Change the guava version used to match the one included in the SDK. The test server uses the same. However, the command line build still uses the guava present at platform/external/guava, which is compiled with Java 7. Thus, running the tests from inside the IDE can be done via Java 6. - Rebuilt the test app classes with Java 6 compatibility. - Change similarity threshold to prevent differences due to some locale settings different java versions. Change-Id: Ic71d43256a8cf6f9df296e63550667a202c7105f
om/android/layoutlib/bridge/intensive/ImageUtils.java
|
5bc625d83d60fbb27ab2297051971be91fb3e415 |
25-Mar-2015 |
Deepanshu Gupta <deepanshu@google.com> |
am a62a18e3: am 311a0f54: Merge "Fix layoutlib tests." into lmp-dev * commit 'a62a18e341180ccf6f5379a7d753584f6cee2e7c': Fix layoutlib tests.
|
84e550f5e6b286f6f2194d0a01b460df331dae03 |
18-Mar-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix layoutlib tests. The date picker and calendar widgets show the current date. Comparing widgets showing current date with a static golden image wasn't the best idea. - Change the widgets to custom widgets that set a predefined date/time so that the rendering is independent of the system date. - Change the layout slightly to make it look nicer. - Update gradle plugin version. Change-Id: Ia3fb4965a372a28087a0d8c9df40fd6779df6050
om/android/layoutlib/bridge/intensive/Main.java
|
565b6b415a18ee0b99af8cb693b980e57136282b |
08-Jan-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Merge "Update platform.dir search in tests." into lmp-mr1-dev
|
0359b4b19962a4e3c44925907dedb4a9bfd916d0 |
07-Jan-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Update platform.dir search in tests. The tests search for a built sdk using some heuristics. The default path of the built sdk has changed now, and this updates the search accordingly. Change-Id: I36d465d8c5f6cfd971bbdf95878fb144de233c6c
om/android/layoutlib/bridge/intensive/Main.java
|
d657b149274aeba0561e68f7172907b300d1b452 |
07-Jan-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix tests on jenkins, take 2. Change-Id: I67386c34a7abd7c3afdf9f0768f36f4786399be0
om/android/layoutlib/bridge/intensive/Main.java
|
48603a39d4dd721d231c99e10908f4f00c4ec6b9 |
07-Jan-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix tests on jenkins When the tests are run on the build server, they are run from the jar, as opposed to the extracted build, which is default when run from an IDE. Thus, when class.getResourceAsStream() is called with ".." in the path, it is not resolved properly. This change explicitly resolves the relative path, so that the test is run properly on the server. Change-Id: Ib5fabd617dca4052220e5173a8bf4fb4234254ff
om/android/layoutlib/bridge/intensive/Main.java
|
58df125bbc76fd71a9c056c6b6108fc149733b0e |
07-Dec-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Add image comparison to LayoutLib tests. The LayoutLib rendering tests now compares the rendered image with a golden file from a previous execution. This will help catch any unexpected changes in the final rendering. Change-Id: I80251a778e89df7d7ec13863a8f299967f3d747d
om/android/layoutlib/bridge/intensive/ImageUtils.java
om/android/layoutlib/bridge/intensive/Main.java
|
0774bc4605fdd47178cc38258d1b4c40ae113b2f |
25-Aug-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Remove ANDROID_BUILD_TOP from intelliJ path variables. The variable is not actually needed and it makes working with different API levels a lot easier since everything now depends on $PROJECT_DIR$. This change also makes the tests more robust by improving the way it tries to find the SDK. Change-Id: I3502ad4a0ba85fd88b497e47964fddb2a89e520c
om/android/layoutlib/bridge/intensive/Main.java
|
70d1574db986610232d59ee1406d7532f71812f5 |
04-Aug-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Get filename from File faster Use the direct call from a File object to get the filename instead of going through Path which depends on Java 7 making the LayoutLib tests incompatible with Java 6. Change-Id: I815895eedbc10245ee09bdb53b11e5548b076aad
om/android/layoutlib/bridge/intensive/Main.java
|
86eb8b4e29b1ad889fc814bae723d4d6e491f53f |
31-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Add testing framework to LayoutLib. This change adds an end to end test which loads the framework resources and a test app and ensures that no exceptions or warnings are thrown. The change also adds project configuration for intelliJ. Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
ndroid/graphics/Matrix_DelegateTest.java
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
om/android/layoutlib/bridge/intensive/Main.java
om/android/layoutlib/bridge/intensive/setup/ConfigGenerator.java
om/android/layoutlib/bridge/intensive/setup/LayoutLibTestCallback.java
om/android/layoutlib/bridge/intensive/setup/LayoutPullParser.java
|
fe2a71bb13d65a2e8d6bcc60e6bda181029c78a0 |
25-Jun-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Report all TestDelegate failures in a single run. Change-Id: I37fa0a6f300ea89c8d0a60380b77b7d61db01cb7
om/android/layoutlib/bridge/TestDelegates.java
|
9be03c4e980d3058aeb3fd730da5f7d4a4a4f8a8 |
22-Feb-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Update layoutlib tests to check methods return value. The test in layoutlib bridge has been updated to check the return value of the delegate method match the value of the overriden method. This changeset also fixes the problems found due to this change. Change-Id: I87cef323c4eaee4e9f60475f01156b276593fa50
om/android/layoutlib/bridge/TestDelegates.java
|
282e181b58cf72b6ca770dc7ca5f91f135444502 |
24-Jan-2014 |
Adam Lesinski <adamlesinski@google.com> |
Revert "Move frameworks/base/tools/ to frameworks/tools/" This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
ndroid/graphics/Matrix_DelegateTest.java
om/android/layoutlib/bridge/TestDelegates.java
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
|
9f6a119c8aa276432ece4fe2118bd8a3c9b1067e |
28-Aug-2013 |
Mike Lockwood <lockwood@google.com> |
Move frameworks/base/tools/ to frameworks/tools/ Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
ndroid/graphics/Matrix_DelegateTest.java
om/android/layoutlib/bridge/TestDelegates.java
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
|
e86c5b2e9fe79f2a6f4187b6a4f2769c0b64168b |
21-Jun-2011 |
Xavier Ducrohet <xav@android.com> |
Merge "Add missing delegate to the layoutlib."
|
3523325159c083140ba51d36f46270f6adddad77 |
21-Jun-2011 |
Brett Chabot <brettchabot@android.com> |
Merge "Include testdata in layoutlib-tests."
|
fc511683b6647295cb645a0118d1b0afd575b3c3 |
21-Jun-2011 |
Xavier Ducrohet <xav@android.com> |
Add missing delegate to the layoutlib. Change-Id: I8de5c1093052c40c0cd327a4d02b01651d3b76b5
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
|
01f0fd84d085f90ca73e9091618ab3d98b5e1c4a |
18-Jun-2011 |
Brett Chabot <brettchabot@android.com> |
Include testdata in layoutlib-tests. Change-Id: I79fff895a13d171079b59db54d4b9d2bec555b3c
om/android/layoutlib/testdata/layout1.xml
|
04ce81113107d2bfa0b8248b13145b4cf24cb943 |
10-Jun-2011 |
Xavier Ducrohet <xav@android.com> |
Bring in more layout lib changes from hc-mr1. fe051bb2 : Change the way the layoutlib instantiate its XmlPullParser. A lot of the init code was duplicated so I made a ParserFactory class. Also created an extension of the KXmlPullParser to override toString(). This allows easier debugging when dealing with multiple parsers (which is always the case). Also added some (disabled) debugging printf to deal with parser stack as it can be tricky figuring out which parsers are in the stack at which point. 8969147c : Fix case where the int[] attrs doesn't directly match a styleable. In the case of the FastScroller the int[] is a custom mix of attr instead of a int[] that exists as R.styleable.foo. This makes our reflection based mechanism used to find the styleable fail, so instead we search for each attribute separately (like we probably should have done from the beginning). 0c264b35: Fix various cases of getDimension to report error if unit is missing. if getDimention###() is called for a string that has no unit, then an error is output through LayoutLog, but the rendering keeps going by using dp as a default. 0beb7eea: Make (Bridge)TypedArray.getInteger() call out to getInt() Only getInt() resolved attribute flags/enum and I'm not sure why there's two to begin with.
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
|
fb93ce9684120a36862b5b5e67b1865a652907e9 |
04-Jun-2011 |
Xavier Ducrohet <xav@android.com> |
Import the Layoutlib from hc-mr1. This is squash commit of all the missing patches. Change-Id: Ie081c46a173290646deddbde503a720d50c4400f
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
|
1911a6f7812e3f7dcb83fd4741a297d043a80e46 |
24-Feb-2011 |
Xavier Ducrohet <xav@android.com> |
LayoutLib: move tests to their own project. Change-Id: I8a9e128e4a17ab57ec7b126a378035d9ce5bc168
ndroid/graphics/Matrix_DelegateTest.java
om/android/layoutlib/bridge/TestDelegates.java
om/android/layoutlib/bridge/android/BridgeXmlBlockParserTest.java
om/android/layoutlib/testdata/layout1.xml
|