Switch to ActivityTestRule.runOnUiThread

This allows proper handling of exceptions thrown in code
that runs on the UI thread without crashing the whole
test class.

Bug: 30592578
Change-Id: Id80b211eb16fe391a12a2532ff9615aec25f5aad
46 files changed