hal: retry driver writes returning 0

Add sendCmd to handle sending commands to the driver

Bug: 64841879
Test: Run SensorIntegrationTests#testSensorsMovingRates and make sure
logcat doesn't show any failed to send ... warnings
Change-Id: Ibc052310dc0e9b56d7cf2a1e133117822e3d793f
Signed-off-by: Ben Fennema <fennema@google.com>
2 files changed