Better notification to user when DNS-over-TLS is broken

Provide a specifc notification to let users know that device
has no internet is because it really doesn't have internet access
or it's caused by private DNS resolution failed.

Bug: 113242081
Test: atest FrameworksNetTests
Change-Id: I710c88a4742f5fd56c39fc797d7fa3ad36dba553
This commit is contained in:
lucaslin
2019-10-22 18:27:33 +08:00
parent 08459a6a7d
commit e117e2e8d7
6 changed files with 270 additions and 52 deletions

View File

@@ -271,7 +271,7 @@ public class NetworkCapabilitiesTest {
.addCapability(NET_CAPABILITY_NOT_METERED);
assertParcelingIsLossless(netCap);
netCap.setSSID(TEST_SSID);
assertParcelSane(netCap, 11);
assertParcelSane(netCap, 12);
}
@Test