Stop/start Android runtime for binary tests.

Test: make vts -j64 && vts-tradefed run commandAndExit vts
--skip-all-system-status-check --primary-abi-only --skip-preconditions
-l VERBOSE -m SensorsHidlTargetTest
Change-Id: I7dd1bd169346862bb7085cb96f2b8b2e7f74ebe2
diff --git a/utils/python/controllers/android_device.py b/utils/python/controllers/android_device.py
index 56ff3c6..47f1c99 100644
--- a/utils/python/controllers/android_device.py
+++ b/utils/python/controllers/android_device.py
@@ -568,6 +568,16 @@
             # process, which is normal. Ignoring these errors.
             return False
 
+    def stop(self):
+        """Stops Android runtime."""
+        self.adb.shell("stop")
+        self.adb.shell("setprop sys.boot_completed 0")
+
+    def start(self):
+        """Starts Android runtime and waits for ACTION_BOOT_COMPLETED."""
+        self.adb.shell("start")
+        self.waitForBootCompletion()
+
     def reboot(self):
         """Reboots the device and wait for device to complete booting.