If InetAddress.getAllByName("ipv6.google.com") throws
UnknownHostException, the test silently ignores it. This
causes a misleading failure, because the test then reuses the
addrs variable that is left over from the previous DNS query
for "www.google.com", and fails because it has an IPv4 address.
Fixes: 12210306
Bug: 29231261
Change-Id: I1dde945765d40a84eba139055306b07ebc97d0ec
Symptom:
testTrafficStatsForLocalhost fails when applications or services
except CTS are using network.
Root cause:
testTrafficStatsForLocalhost can't calculate the number of
non-localhost packets for CTS.
It includes the all of packets for applications/services except CTS
and non-localhost packets for CTS.
Solution:
Remove this assertion and only logging the number of packets.
Change-Id: I49243d59f359f3a543c6bdb46f6a2645cde8f292
It cannot use google.com because it's blocked in some countries where
CTS tests are run.
BUG: 29082308
Change-Id: I749659ec2cd33248fddbe5b4ab02bd6e90f24a67
am: 07924c0489
* commit '07924c0489b60f460b285eddc69533cbda51f5a9':
Skip Doze Mode-related tests when device does not support it.
Change-Id: Ibbe3e77b88ffdcf7fe773aa18314661b59afca75
am: b853005f3c
* commit 'b853005f3ce50c6a51963cff2e6627d55c6012b0':
Use ConnectionManager API to check if network is metered.
Change-Id: I5f092fcc9b2220af3c033d84271c29e641027e4e
am: 94636121f1
* commit '94636121f156c6b53a10b79f27d37c2a9c592f1c':
Add a test for closing sockets when a VPN comes up.
Change-Id: I0b23a38566afd96448a202d7a3b258d1960a53a3
Confirming that connectivity change broadcasts can be received
when explicitly registering for them in N, and via the manifest
pre-N.
Confirming that new_photo and new_video broadcasts are not received.
Bug: 28122277
Change-Id: Icfc27364a41ee8f4a55920e295ba658a367bb7d2
As WifiCheck is now declared in the CTS config, remove declarations in
the module configs.
Also downgrade TargetSetupErrors on failure to logged errors
bug:28234985
Change-Id: I2e1a369bc26aeca922686c4c3d8c033bb7f9fbc7
- Tests what happens on foreground applications when a restriction (like
Data Saver or Battery Saver modes) is turned on (prior tests would
turn the restriction on *before* switching the app to foreground).
- Tests multiple restrictions simultaneously enabled.
Also improved existing code:
- Fixed background state check.
- Reused some common checks in helper methods.
- Retries checks for process state.
BUG: 28473659
Change-Id: Ifcf9cc6d895ccde0ab5177f9f5d8c347ce53b811
There are known issues that cause these check to fail, and the fix has
not been submitted yet.
BUG: 28473659
BUG: 28521946
Change-Id: I26dfbebc2d07396ef89ac78230645e4791c708ee
am: fe6dc2b966
* commit 'fe6dc2b966686da65dae3e0766e56bf25844500c':
Improved connectivity check by also asserting NetworkInfo states.
Change-Id: Icba9139f192182fe6adaf03ef813dc20bd66f681
am: 16ae24badd
* commit '16ae24badd79bf100b26dc4e6dfb3ed649a0c3ad':
Added test for required packages whitelisted for Data Saver Mode.
Change-Id: I1916d82a0fcc883679e200f79594381d29afd6b2
Also fixed code that checks for whitelist uids, otherwise it would pass
when the required uid is missing but a superset was present (for
example, when asking for 1009 but 10090 was whitelisted).
BUG: 28431507
Change-Id: Iaaa67e586907dba215496460445ad627ba7b63c5
am: 25a61dc
* commit '25a61dcae9ab4f0d8828fc8f05965333eccf99e9':
Add more test coverage to ConnectivityManagerTest.
Change-Id: Id486a044ba5723cb762565c396c75b29bd09cbbe