Cherry pick UIautomator setter change from AOSP.

Original description:

Add setter classes to UiAutomator to allow customization.

Also fix compile error with StubDevice.

Change-Id: Iee36d42c0dae2934fd3c4d2fbf24d934be8ce408
2 files changed