summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Weng Su <wengsu@google.com> 2022-04-20 03:17:10 +0800
committer Weng Su <wengsu@google.com> 2022-04-20 01:52:34 +0000
commit258483bff314186185fb95992c3b460d08a10ca2 (patch)
tree453f82a6b28b00973b34ab9b996ccdc379337044 /libs/androidfw/ResourceTimer.cpp
parentf0af066196b5572acfcc3ff341148f278897340a (diff)
Cache Wi-Fi state in worker thread
- The WifiManager.getWifiState() is a blocking API, It may not be suitable for use on the UI thread. - To avoid blocking the UI thread, we should cache the Wi-Fi state from the WIFI_STATE_CHANGED broadcast to return immediately. Bug: 226039078 Test: manual test make RunSettingsLibRoboTests ROBOTEST_FILTER=WifiStateWorkerTest Change-Id: Ia0443824975f01099e52f777c15468f30285f4c1
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions