commit | ca4e714ae37050265379fc6604a4e01db9ecae15 | [log] [tgz] |
---|---|---|
author | Ajay Panicker <apanicke@google.com> | Wed May 24 11:06:49 2017 -0700 |
committer | Ajay Panicker <apanicke@google.com> | Tue May 30 20:33:05 2017 +0000 |
tree | b4e85823fe805999e77836ee4c51e9ae10b11226 | |
parent | 978986041010d3d2d72e1057743415e76c6f2ce9 [diff] |
Switch GATT scan timekeeping to use a different clock System.currentTimeMillis() could cause a scan to have a negative scan time if the system time changed during a scan. Switch to SystemClock.elapsedRealtime which is guaranteed to be monotonic. Test: Start a scan and change system time Bug: 62057540 Change-Id: Ie4d88df96c0a133955f46c355660756e587d29c5 (cherry picked from commit 4e58faa3aa59332e4d2394e6e54d8d1579e5cc73)