[Provider Model] Move the Internet unavailable Wi-Fi down

- Check the Wifi network have both INTERNET and VALIDATED capabilities
to achieve effective network access

- Move the Internet unavailable Wi-Fi down to the top of Wi-Fi list

- Don't paint color for the Internet unavailable Wi-Fi

- Screenshot:
  https://screenshot.googleplex.com/w82kbALssdTZmg4

Bug: 178457619
Bug: 178926547
Bug: 178978070
Test: manual test on device
atest -c InternetUpdaterTest \
         NetworkProviderWorkerTest \
         ProviderModelSliceTest

Change-Id: Idf04e556ab5a87abc5bc96d1934f5e8fd91fbfaa
This commit is contained in:
Weng Su
2021-03-25 12:10:06 +08:00
parent fe042ac08e
commit 439cc64b1c
7 changed files with 101 additions and 58 deletions

View File

@@ -288,9 +288,9 @@ public class NetworkProviderWorker extends WifiScanWorker implements
}
/**
* Returns true, if the ethernet network is connected.
* Returns the internet type.
*/
public boolean isEthernetConnected() {
return mInternetType == INTERNET_ETHERNET;
public @InternetUpdater.InternetType int getInternetType() {
return mInternetType;
}
}