• Home
  • History
  • Annotate
  • only in /frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
History log of /frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a733323501dbc594212a022f18dad6ccdfb92be 15-Feb-2017 Jerome Gaillard <jgaillard@google.com> Fix LayoutlibTestCallback.getResourceId

Return null instead of triggering a NPE when there are no resource of
the asked type.

Test: RenderTests.testFonts
Change-Id: Ib45ebdf2178e62cbd987082512fcbb009de3f1b2
ayoutLibTestCallback.java
dc3bb324ceeaa5e0b42b977b8f92ac7a04bcd5b1 17-Nov-2016 Diego Perez <diegoperez@google.com> Fix tests when running from the command line

When loading classes from the jar file, we can't just use the
URLClassLoader since it can not enumerate files in a jar directory.
Restoring the ModuleClassLoader and making all paths relative to the
system class loader (as opposed to relative to the class location).

Change-Id: Ib3f5d12dd5c964d0ba9cc6c5ec9cb556c989e653
(cherry picked from commit 2a4a6c81f8a103be5c48d8a0605a3e4416e8f7f1)
ayoutPullParser.java
c318f0b40872a91215801f851e38189f42c4b7ea 15-Nov-2016 Diego Perez <diegoperez@google.com> More layoutlib testing infra fixes

- Remove ModuleClassLoader as it can be replaced with a URLClassLoader
for now.
- Move CustomCalendar and CustomDate to a separate package that can be
used both by the Bridge tests and the actual test app.
- Move empty.xml out of the test app so it compiles.
- Update test app to use the latest build tools and SDK (some attributes
being used by the app weren't supported in API 21).
- Update gitignore to remove the new out directory.

Test: Update to existing tests
Change-Id: Ieb7324d5ae559f9c581771c57f2127cd83909015
ayoutLibTestCallback.java
oduleClassLoader.java
ceb1ab1d2a71c6d4e0cccf110a198ff83cb97e5a 24-Mar-2016 Deepanshu Gupta <deepanshu@google.com> Add tests for getResource*Name()

Change-Id: I02170b2b68c76f817aa0771a5333abf2aee456c0
ayoutLibTestCallback.java
ayoutPullParser.java
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
onfigGenerator.java
d7b846c1814de34f2cea8507907f70618ec7cae0 07-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Update tests per new layoutlib_api

Change-Id: Idc89ffceaf171abcf2b579f4e934b514ef209210
onfigGenerator.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
ayoutLibTestCallback.java
3dc19883c571a829c36aa603c04a55c91b00dd57 15-May-2015 Deepanshu Gupta <deepanshu@google.com> Fix build: udpate parser factory method

Change-Id: I78ad55bc924427b44451ec32fbd1032d6cd77544
ayoutLibTestCallback.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
onfigGenerator.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
ayoutLibTestCallback.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
onfigGenerator.java
ayoutLibTestCallback.java
37dbb8b7f3c069196040eed3a03006647db7fa5b 15-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Update to using LayoutlibCallback.

Change-Id: Ia89d418b0d40ca8efef8968a4a2a635616b945ac
ayoutLibTestCallback.java
oduleClassLoader.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
onfigGenerator.java
ayoutLibTestCallback.java
ayoutPullParser.java