3 Commits (a6e6184b0c7e592d64694aaa10aaaf6679fe10f7)

Author SHA1 Message Date
Ricardo Cerqueira 6c2d936df8 sensors: Proximity: Fix batch flushing
Flushing a pending batch of requested events is blocking for several
causes. The readEvents API call wasn't properly returning the state
of the pendings, and even after that's corrected we were still blocking
on the input reader _after_ filling out the pending requests.

While we're at it, follow the CDD recommendation synchronize with
SystemClock.elapsedRealtimeNano() clock. Replace the monotonic time
with boot time as reference time.

Fixes android.hardware.cts.SensorTest#testBatchAndFlush, addresses
CRACKLING-641

Change-Id: Iae460f503e1ad408a0cb7855000daabec414a459
10 years ago
Ricardo Cerqueira 7546dabb0b sensors: Undo accel scale reduction
This isn't necessary anymore

Change-Id: I96facbbe3b846e7373bae2543ed6d2d3c195041a
10 years ago
Ricardo Cerqueira 241e4ad2f6 crackling: Initial commit
Change-Id: I79c6d603cdaf193c03aa6d8906c54c33eaab3135
10 years ago