First batch of layoutTestController functions + some fixes and tweaks.

Change-Id: I9dae192c498d8e19fd75861a1a6cf1f079ad9c6f
6 files changed