diff options
| author | 2022-10-11 13:52:54 -0700 | |
|---|---|---|
| committer | 2022-10-11 13:52:54 -0700 | |
| commit | f4668f90eba99b1d4c5b5452abde0532b70f2980 (patch) | |
| tree | e8fdeb4b80144a9185c44ac4f72bd984489ee5ce /libs/androidfw/ResourceTimer.cpp | |
| parent | f4ceebbadd7226a11c99d05b56abd21a273ec3ad (diff) | |
Convert ns to ms when averaging light values
It was wrongly assumed that SensorEvent#timestamp was in milliseconds
when it is actually in nanoseconds; this change converts the units to
milliseconds.
Fixes: 243696673
Test: Cover ALS and observe led brightness change
Change-Id: Ib45429d28be1f03c4741639fd12e6fbcdd541802
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions