Cherrypick the following CLs from LMP MR1

Cherrypick CLs from lmp-mr1 and fixed a typo in method name in
android.hardware.cts.SensorTest.

List of the CLs:

  Move timestamp synchronization test cases to sensor test platform.
  b/17643223

  - Improves the logging of timestamp synchronization verifications
  - Refactor batching tests to use sensor test platform

  Original-Change-Id: Ic6924d5c794ddcf646f618f446cbda11b938d184

  Refactor Sensor test platform Operations.
  b/17838681

  The refactoring is required in preparation to add support to save sensor events upon failure.

  Original-Change-Id: I13ed41e3fa5393c61ccee766f0fdb9f4fd6aadd5

  Fix handling of Sensor test platform exceptions.
  b/18705736

  Original-Change-Id: I82f4a4f18b52ff3ea263b3ff9f063e1c5459eca5

  Refactor sensor test platform listeners.
  b/17838681

  The refactoring is required in preparation to add support to save sensor events upon failure.

  Original-Change-Id: I5540451d70426fbbbe19a10b2a727b2e010c3838

  Refactor SensorStats.
  b/17838681

  The refactoring is required in preparation to add support to save sensor events upon failure.

  Original-Change-Id: I4661647b13296912fe89f5b20e01dad12553f72d

  Save all sensor events when a verification fails.
  b/17838681

  It also prepares the sensor test platform for logging and maintaining a hierarchy of elements.
  Most of the changes are only required to propagate the hierarchy information down to all the
  elements of the sensor test platform.

  Original-Change-Id: I08f750cfb426502240db584b5a1209481856c13c

Change-Id: Ia68a7d9952b7ac7bfd100cdf70dace494b17e7b3
48 files changed