add some things from androidarmv6 frameworks

Change-Id: I20370fbbaa0406936ea953202a8f60383943af42
Layout fixes test (thanks to millo1978, hrk, Doc_cheilvenerdi.org, icebbar)

Change-Id: I40de0ad54ae86b9160029837e1728ae9fb81d1db