Optofidelity: Re-connect devices via USB if they lost connection

Sometimes ADB commands will randomly fail because the device lost
connection. This would prevent any further benchmarks on this device.
to prevent this, we are throwing a special exception in case a
connection has been lost. A whole bunch of calls that are known to
access ADB have been updated to re-connect the device and retry the
command.

BUG=None
TEST=None

Change-Id: I726bff9e521fdd402c75fb6f7d4fc7afc21d8cda
Reviewed-on: https://chromium-review.googlesource.com/336537
Commit-Ready: Dennis Kempin <denniskempin@chromium.org>
Tested-by: Dennis Kempin <denniskempin@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
4 files changed
tree: 4d02b1d554c092b1f72308ea1010e6e8348c5364
  1. .gitignore
  2. OWNERS
  3. optofidelity/
  4. quickstep/
  5. setup.py
  6. touchbotI/
  7. touchbotII/