commit | 9574a1beb4a71d4662a88a91834a81e56a77a2e7 | [log] [tgz] |
---|---|---|
author | Quang Luong <qal@google.com> | Thu Jun 06 16:51:53 2019 -0700 |
committer | Quang Luong <qal@google.com> | Fri Jun 07 14:06:24 2019 -0700 |
tree | d46944cecc568bcc457fbdfcaf99019f15d54dd6 | |
parent | 1f66726d08505dca06e8c60add14de5d510a934f [diff] |
Made AccessPoint's scan result list thread safe If wifi verbose logging is enabled, the main thread may iterate through the scan result list while the worker thread updates it, resulting in an ArrayIndexOutOfBounds exception. This change adds a lock to every iteration through mScanResults and mExtraScanResults. Bug: 134098126 Test: atest WifiTrackerTest && atest AccessPointTest Change-Id: If42a9ad8031ff66b1732a79772ba441185f7a18f