Layoutlib tests now check methods return value [DO NOT MERGE]
The change is a cherry-pick of relevant fixes from the following
commits on master branch:
the followning commits:
9be03c4e and
e05bb956
Change-Id: I87cef323c4eaee4e9f60475f01156b276593fa50