summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorQuang Luong <qal@google.com>2019-03-28 15:35:22 -0700
committerQuang Luong <qal@google.com>2019-03-29 11:19:59 -0700
commit85bbc6e0a057c1953e8dfafbd37bea46315657c8 (patch)
tree974ff9e8b3dbd410aba342d41352c32504620da0 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc27024d97ae3c14eb50dd97a15325931482fb6bb (diff)
Increase ScanResult cache eviction timeout for failed/aborted scans
Currently ScanResults are evicted from WifiTracker's cache when they are more than 15 seconds old. Since scans are conducted every 10 seconds, one aborted scan will cause no fresh scans to be seen until 20 seconds later, resulting in all scans to be evicted and the wifi-picker completely emptying. This change doubles the eviction timeout to 30 seconds if the last scan was aborted, avoiding this case. Bug: 113132408 Test: atest WifiTrackerTest Change-Id: I2e3aad3a1470f52c3d87e657262a2c4de1bd2418
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions