Make sure that when switching between idle, paroled
and battery saver, the network availability of the app
is correctly updated.
Bug: 31399882
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_whenCharging
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_whenCharging
Change-Id: I060a0d5f9c3297430b5b623b389c1afdf6abde87
* commit '9be9d5865ba2584a251642359710c074061dee5e': (75 commits)
CameraITS scene5 should be skipped if read_3a is not supported
Added Bluetooth LE tests
Add CTS tests for LocalSocket read/write timeouts
Replace libziparchive-host with libziparchive
Fix clang-tidy warnings in libjnitest.
Fix clang-tidy warnings in librscpptest.
Fix clang-tidy warnings in openglperf2.
Fix clang-tidy warnings in audio_quality.
Replaces pcre with pcre2
Add Mockito to deps for Conscrypt tests and remove core-tests
simpleperf_cts_test: link libevent.
Add the new android kernel path to includes.
FileSystemPermisionTest: Drop unused method
Use mockito-target-minus-junit4.
android.core.tests.libcore.package.tests: add mockito to the dependencies
Fix misc-macro-parentheses warnings in cts.
[RenderScript] Fix refocus test to accommodate different rounding behavior for half_sqrt().
Remove data race from refocus test
Remove one test from MediaCodecTest#testCreateInputSurfaceErrors.
Return all errors, not only the first one.
...
The behavior was not previous covered and broke in N
due to commit c80af6d8. There is an associated fix
in frameworks/base.
Some refactoring of existing tests to reduce
duplication and tidy up sockets after tests.
Test: Ran the new CTS test (before and after related fix)
Bug: 31205169
(cherry picked from commit 52376fc1c8)
Change-Id: I9ee96a91abbdaaba64c2f6daf49c92d1b23352e2
The behavior was not previous covered and broke in N
due to commit c80af6d8. There is an associated fix
in frameworks/base.
Some refactoring of existing tests to reduce
duplication and tidy up sockets after tests.
Test: Ran the new CTS test (before and after related fix)
Bug: 31205169
Change-Id: Ie94335bc535beefcc5301d5469de6b8211af0bab
- Retry on all cases (not only when expecting connected).
- Uses exponential back-off for timeout.
BUG: 27803922
Fixes: 30509643
Change-Id: I42454f43158598a72e30f290c27c5a02e80ea6d2
When counting all connectivity changed events, we were failing
on devices with sim cards because we were counting both wifi and
mobile connectivity changes the same. Since the test only
toggles wifi, changing the listener only to pay attention to wifi
changes.
Bug: 29346253
Change-Id: I1ed3b976bc21419218c780d4afc4a5e73f128496
Add parentheses around macro arguments used beside operators.
Use 'aoto' type to avoid clang-tidy warnings of missing parentheses
of 'TYPE *'.
Bug: 28705665
Change-Id: I5d2c3b2bdfb7775200f31a011758b9a35b14794d
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