commit | 5da1b3dc059ec71308383842707a248b40f5cade | [log] [tgz] |
---|---|---|
author | Joe Onorato <joeo@google.com> | Thu Dec 27 13:16:02 2018 -0800 |
committer | Joe Onorato <joeo@google.com> | Tue Apr 02 19:19:13 2019 +0000 |
tree | 54057e43449d403021e7970494ac91f5002ff506 | |
parent | e465eb1be5748a3bd577ec578512d56894571de0 [diff] |
Fix ConditionVariable.block to use elapsedRealtime. System.currentTimeMillis() is NEVER okay to use to calculate a time delta. The original spirit of this probably should have used SystemClock.uptimeMillis(), but use SystemClock.elapsedRealtime because it's the same as System.currentTimeMillis() in all the cases where System.currentTimeMillis() is correct. Test: Treehugger Change-Id: Ib6e090425af83e7e822fb12814d87e8a37e2d2ac