commit | 318a93083dcbcc0d70c5a4dd6e95cf8bf2f01461 | [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 18:13:32 2017 +0000 |
tree | c2a58aff474679bfdd860e7e163420cb9ae48f48 | |
parent | 2df98dca91c75df8f75aabb4f07763deb8b000a2 [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