7457ee7eb808f0b020a5df104734a2fb03313c49
When wifi location scans are off, the scan is expected to fail. But, WifiManager.getScanResults() could still return results from the last scan. This was causing the test to fail because it was relying on |mScanResults| being null to detect scan failure. Also, changed the scan done internal state name in the test to more accurately reflect that scan has been completed (could be success or failure). Bug: 77601152 Test: Ran `atest android.net.wifi.cts.WifiManagerTest# testWifiManagerScanWhenWifiOffLocationTurnedOn` with location turned on, but wifi scans turned off. Change-Id: I6d5203a836d86d03fbb8e9af0035fe951a6b9db8
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%