summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2019-03-27 15:42:53 +0900
committerRemi NGUYEN VAN <reminv@google.com>2019-04-01 11:33:10 +0900
commit3962f678c3559ee62bcfd81d353af5d86a32622e (patch)
treee5e05a11c032559ee3cd3e48eae67bf64dce04ec /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1859ae7e7d0d250aebd32d98c1963f6f7084dd1f (diff)
Fix race when starting NetworkMonitor
NetworkMonitor obtained LinkProperties and NetworkCapabilities via synchronous calls to ConnectivityManager after receiving an asynchronous notification, which is prone to races: the network could be gone before the LinkProperties/NetworkCapabilities can be fetched. Fix the race by passing LinkProperties/NetworkCapabilities directly to NetworkMonitor in the asynchronous notifications. Test: atest FrameworksNetTests NetworkStackTests Test: booted, WiFi works Bug: 129375892 Change-Id: I200ac7ca6ff79590b11c9be705f650c92fd3cb63
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions