diff options
author | Sundeep Ghuman <sghuman@google.com> | 2017-06-16 15:12:56 -0700 |
---|---|---|
committer | Sundeep Ghuman <sghuman@google.com> | 2017-06-26 14:24:32 -0700 |
commit | 266b409d17acb111f670598c679e8b6514616564 (patch) | |
tree | 23b5f97476f7d35334b731c42a2e9d374f2e4c3a /rs/java/android/renderscript/ProgramStore.java | |
parent | 5345fce58ff35b29e8e7264a2e36c9c990aedcb1 (diff) |
Remove IPC calls from synchronized block.
updateAccessPointsLocked holds mLock to avoid concurrent modifications.
When WifiSettings onStop is called, it calls the trackers stopTracking
method, it is also synchonized on mLock, hence the main thread is blocked
until updateAccessPoints finished. If the IPCs take too long, this can
cause an ANR. Refactor the IPC calls outside of the synchonized block to
avoid this condition.
Also mark certain tests as flakey.
Bug: b/62343176
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
Change-Id: I2b6aff8fafe859dfc1a5192c2d352a65cfa73cbb
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions