6 Commits (cm-14.0)

Author SHA1 Message Date
Ricardo Cerqueira becd9eafd4 sensors: Raise the max limit on the magnetometer rate
Although the mag modules in the daemon were limited to 20hz, the HAL
was announcing 50hz. Fix the HAL value so that it matches the daemon
implementation

android.hardware.cts.SingleSensorTests#testMagneticFieldUncalibrated_100hz,
testMagneticFieldUncalibrated_100hz, testMagneticFieldUncalibrated_25hz,
testMagneticFieldUncalibrated_50hz, testMagneticFieldUncalibrated_fastest,
testMagneticField_100hz, testMagneticField_200hz, testMagneticField_25hz,
testMagneticField_fastest

Ref CRACKLING-962

Change-Id: Ia74473d72b2275a3f86e3ff4735b89fd89ddd294
10 years ago
Ricardo Cerqueira 10ea10c4c0 crackling: M time
- Adjust camera APIs
- Fix compiler errors
- TEMP: Remove pending overlay values

Change-Id: Ie85f72d1c2c24d3c6e3665f7a34dbbe325cc64d7
10 years ago
Ricardo Cerqueira a6e6184b0c sensors: Add a recalibration hook for the accelerometer
Dial *#*#ACCEL#*#*

Addresses CRACKLING-692

Change-Id: I55d034a8bb8de774ff89277845fef14863c5cccb
10 years ago
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