summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2016-05-31 10:44:35 -0700
committerChristopher Wiley <wiley@google.com>2016-06-09 11:43:14 -0700
commitd985dde8ccfd38a50377a8ab2378b36c92b0d7c7 (patch)
tree73351de4af5b43ce4fe5beda97b22ed4d1530b65 /tools/aapt2/java/JavaClassGenerator.cpp
parent7d76682bb3a3aaf0d6adec10014a18bebbd4a061 (diff)
Fix race conditions between Tethering and TetherInterfaceStateMachine
( cherry-pick of de4819dc82b734036b22416228327d2712e01884 ) Previously, Tethering would answer requests for current tethering state by calling methods on instances of TetherInterfaceStateMachine to build up that state. This is incorrect, since state queries can come in on an arbitrary thread, independent of updates to the state machines instances. Fix this by: - Altering TetherInterfaceStateMachine to push consistent state snapshots to Tethering via notifyInterfaceStateChange() - Storing the last state snapshot in Tethering.mTetherStates - Removing public methods to query TetherInterfaceStateMachine state. - Consistently synchronizing access to Tethering.mTetherStates Bug: 29009601 Test: WiFi Tethering continues to work, unittests continue to pass Change-Id: Ied334f5e8739bc3aff1b08a1079095b9cc2a7958
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions