Merge changes I1a574a49,I42d417d3

* changes:
  Helper function/class to sensor cts test
  Fix readHardwareBuffer function to correctly handle offset