Commit Graph

4440 Commits

Author SHA1 Message Date
Automerger Merge Worker
8aba01a25b [automerger skipped] Merge "Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev am: 087370b5e1" into pie-cts-dev am: 9b59163ff4 am: f9d89e72aa -s ours am: 9dd6826835 -s ours am: 8fc810613a -s ours
am skip reason: Change-Id I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf with SHA-1 a4eeed0833 is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: Ifb26188c6c5f1ee79fb8b73c69fcdadc88dabfc6
2020-10-14 13:40:18 +00:00
Treehugger Robot
dc6d9389f7 [automerger skipped] Update the QUIC packet format. am: a4eeed0833 am: 068469e100 -s ours
am skip reason: Change-Id I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf with SHA-1 8b5d18fe90 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12832476

Change-Id: Id9793a085fdd6d3bd1a623a636cc7f0a48cb53a1
2020-10-14 13:40:04 +00:00
Automerger Merge Worker
8fc810613a [automerger skipped] Merge "Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev am: 087370b5e1" into pie-cts-dev am: 9b59163ff4 am: f9d89e72aa -s ours am: 9dd6826835 -s ours
am skip reason: Change-Id I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf with SHA-1 a4eeed0833 is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: Ie462861af9bbbf1365238309d7d48c81da928292
2020-10-14 13:34:37 +00:00
Automerger Merge Worker
9dd6826835 [automerger skipped] Merge "Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev am: 087370b5e1" into pie-cts-dev am: 9b59163ff4 am: f9d89e72aa -s ours
am skip reason: skipped by user lorenzo

Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: I5639c925300f5bdecb3c89da6dd55cff1ff95ddc
2020-10-14 13:25:46 +00:00
Treehugger Robot
068469e100 Update the QUIC packet format. am: a4eeed0833
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12832476

Change-Id: I3a90010f445b5eb2fcdf5fee677295e1743edd99
2020-10-14 13:25:25 +00:00
Treehugger Robot
a4eeed0833 Update the QUIC packet format.
The QUIC packet format has changed again. Update the test to
ensure that the GFE can drop support for the old packet format
without causing all devices to fail CTS.

Packet format changes suggested by dschinazi@.

Bug: 170724836
Test: atest --rerun-until-failure 100 CtsNetTestCasesLatestSdk:MultinetworkApiTest#testNativeDatagramTransmission
Change-Id: I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf
Merged-In: I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf
2020-10-14 06:32:35 +00:00
Treehugger Robot
8b5d18fe90 Update the QUIC packet format.
The QUIC packet format has changed again. Update the test to
ensure that the GFE can drop support for the old packet format
without causing all devices to fail CTS.

Packet format changes suggested by dschinazi@.

Bug: 170724836
Test: atest --rerun-until-failure 100 CtsNetTestCasesLatestSdk:MultinetworkApiTest#testNativeDatagramTransmission
Change-Id: I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf
Merged-In: I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf
2020-10-14 06:29:30 +00:00
Automerger Merge Worker
f9d89e72aa Merge "Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev am: 087370b5e1" into pie-cts-dev am: 9b59163ff4
Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: Iae720d9a27b0373404740608bc3b9c515126407c
2020-10-14 01:42:50 +00:00
Automerger Merge Worker
9b59163ff4 Merge "Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev am: 087370b5e1" into pie-cts-dev 2020-10-14 01:30:16 +00:00
Automerger Merge Worker
f62f154faf Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev am: 087370b5e1
Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: I0c40c9f027efed8c29439e8ff50dde0d064410a8
2020-10-14 01:30:09 +00:00
Automerger Merge Worker
087370b5e1 Merge "Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b" into oreo-mr1-cts-dev 2020-10-14 01:18:56 +00:00
Automerger Merge Worker
b66af87ddf Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev am: 56c21dd47b
Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: I55d39f866717823fa0ddb4cc6eaef5bafe6b5a44
2020-10-14 01:18:51 +00:00
Automerger Merge Worker
56c21dd47b Merge "Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf" into oreo-cts-dev 2020-10-14 01:09:37 +00:00
Automerger Merge Worker
2f113052fa Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev am: 657d75b4bf
Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: I0d8debd9688681170abe0d08249d42b2c3badf1f
2020-10-14 01:09:27 +00:00
Automerger Merge Worker
657d75b4bf Merge "Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6" into nougat-mr1-cts-dev 2020-10-14 01:02:31 +00:00
Treehugger Robot
a37ee1c4df Merge "Update the QUIC packet format." into nougat-cts-dev am: f6a0cdcba6
Original change: https://android-review.googlesource.com/c/platform/cts/+/1457991

Change-Id: Ie36145fb92e6efb20e6b15ca4b0dc57dafc63a92
2020-10-14 01:02:23 +00:00
Treehugger Robot
f6a0cdcba6 Merge "Update the QUIC packet format." into nougat-cts-dev 2020-10-14 00:39:13 +00:00
Automerger Merge Worker
a0444475ff [automerger skipped] Merge "Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af" into pie-cts-dev am: a114d93542 am: 19475a058c am: c99d38b04c am: a04ff04fe8 -s ours
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I25bd3a7ec3a01ebd4276a58fed4a354315840b6d
2020-10-13 18:03:23 +00:00
Automerger Merge Worker
f132fa6adb [automerger skipped] Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af am: e59a75a8db am: dabe25d559 -s ours am: aa17131fb9 am: b16129bbec -s ours
am skip reason: Change-Id I4669a6ff79b3d2e99795015e42bfa611cffb9070 with SHA-1 54601cdcdf is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: Ia6a64a7d247ac05a4ba01553ae78b88c50adda25
2020-10-13 18:03:15 +00:00
Automerger Merge Worker
a04ff04fe8 Merge "Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af" into pie-cts-dev am: a114d93542 am: 19475a058c am: c99d38b04c
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: Ib2dfe2d13fd7cbc8eb8d91bccefe8a5a3693a187
2020-10-13 17:49:04 +00:00
Automerger Merge Worker
b16129bbec [automerger skipped] Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af am: e59a75a8db am: dabe25d559 -s ours am: aa17131fb9
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I916f33ef2a445a564c9df4051ed432ce39baadd2
2020-10-13 17:48:53 +00:00
Automerger Merge Worker
c99d38b04c Merge "Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af" into pie-cts-dev am: a114d93542 am: 19475a058c
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: Iba1c9afdd567ce2be302a94284dfe681e7eff425
2020-10-13 17:11:39 +00:00
Automerger Merge Worker
aa17131fb9 [automerger skipped] Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af am: e59a75a8db am: dabe25d559 -s ours
am skip reason: skipped by user dysu

Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I415b9faad607639c4c21d47f717cfe54ca2301c9
2020-10-13 17:11:06 +00:00
Automerger Merge Worker
19475a058c Merge "Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af" into pie-cts-dev am: a114d93542
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I2b994b57ba11905e6d35bea511c729fd40b6299b
2020-10-13 15:21:54 +00:00
Automerger Merge Worker
dabe25d559 Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af am: e59a75a8db
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I44f41a40d8ff5fa15e0bb0c14a3e9b9b463828aa
2020-10-13 15:21:42 +00:00
Automerger Merge Worker
a114d93542 Merge "Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af" into pie-cts-dev 2020-10-13 15:08:06 +00:00
Automerger Merge Worker
7fa7aa033b Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I73e88886644d87ad67e16af1713f0339d83eec45
2020-10-13 15:07:59 +00:00
Automerger Merge Worker
e59a75a8db Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev am: 09eb86e9af
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: I01c63580b9fcaf26e2289002ead0d3beb7fd7428
2020-10-13 15:07:53 +00:00
Automerger Merge Worker
09eb86e9af Merge "Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804" into oreo-mr1-cts-dev 2020-10-13 14:53:09 +00:00
Treehugger Robot
a3e0d990be Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev am: f23d174804
Original change: https://android-review.googlesource.com/c/platform/cts/+/1452057

Change-Id: Icf1c069f515ba31dff6d2ca501ee43042ea9ab9f
2020-10-13 14:53:02 +00:00
Lorenzo Colitti
25da49b7ff Update the QUIC packet format.
The QUIC packet format has changed again. Update the test to
ensure that the GFE can drop support for the old packet format
without causing all devices to fail CTS.

Packet format changes suggested by dschinazi@.

Bug: 170724836
Test: atest --rerun-until-failure 100 CtsNetTestCasesLatestSdk:MultinetworkApiTest#testNativeDatagramTransmission
Change-Id: I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf
Merged-In: I8625ac9a58c55fc19dfb9fdb5f34a89cee40caaf
(cherry picked from commit c2b9b83bf353a1fe0669e327fa03ddb024e4f21d)
2020-10-13 23:45:00 +09:00
Treehugger Robot
f23d174804 Merge "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions" into oreo-cts-dev 2020-10-13 14:33:26 +00:00
David Su
956f4dc231 Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions
Ensure that the CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is not
received without the required permissions.

Bug: 159373687
Test: cts-tradefed run cts -m CtsNetTestCases --test android.net.wifi.cts.WifiManagerTest#testWifiManagerNetWork
Change-Id: I2e3f38b05d63571e838b148fbbb2ce6f68c19c01
Merged-In: I4669a6ff79b3d2e99795015e42bfa611cffb9070
2020-10-07 01:30:11 +00:00
TreeHugger Robot
013b90fbec Merge "Don't require WiFi in CtsHostsideNetworkTests." into stage-aosp-rvc-ts-dev 2020-09-04 01:10:58 +00:00
TreeHugger Robot
056342a27c Merge "Run validation tests even with an eth interface" into stage-aosp-rvc-ts-dev 2020-09-04 01:07:18 +00:00
Treehugger Robot
8643ebd6b1 Don't require WiFi in CtsHostsideNetworkTests.
Skip test for non-WiFi connections.

Bug: 162192335
Test: run cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideNetworkCallbackTests#testOnBlockedStatusChanged_dataSaver
Change-Id: I7c20e3454a2fe81671162e0a50f90d64ed7516d0
2020-09-03 11:51:42 +00:00
Treehugger Robot
ed2521af1e Specify CAPABILITY_INTERNET for ConnDiags CTS test.
This CL updates the NetworkCapabilities used for getting a cellular
data network in ConnectivityDiagnosticsManagerTest to require
CAPABILITY_INTERNET.

Bug: 166732795
Test: atest CtsNetTestCases
Change-Id: Ia32ac00f949a2ee9319c80c25f294bfa834ad0f9
Merged-In: Ia32ac00f949a2ee9319c80c25f294bfa834ad0f9
(cherry picked from commit 67fb0cc3d4152f890012bbb4f1f91fb657b8dd55)
2020-09-01 15:09:41 +00:00
Remi NGUYEN VAN
3addf0d177 Run validation tests even with an eth interface
The test actually does not need the ethernet interface to be the
only ethernet interface, as ethernet test interfaces now have
TRANSPORT_TEST|TRANSPORT_ETHERNET, which can be used to differentiate
them in the network request.

Bug: 162469293
Bug: 160612321
Test: atest CtsNetTestCasesLatestSdk:NetworkValidationTest
Change-Id: I84cc8b6b9aaa764705d91ed298655d869c4388a6
Merged-In: I84cc8b6b9aaa764705d91ed298655d869c4388a6
2020-08-27 18:04:15 +00:00
TreeHugger Robot
982249b325 Merge "Force the app idle state again after whitelisting it." into stage-aosp-rvc-ts-dev 2020-07-24 22:21:43 +00:00
Sudheer Shanka
6b2ae66c40 Force the app idle state again after whitelisting it.
Whitelisting the app resets forced idle state of an app, so
forcing idle state again.

Bug: 161477606
Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Ib57202a68071cc02d6071e0dc2c4780f026ad90b
Merged-In: Ib57202a68071cc02d6071e0dc2c4780f026ad90b
(cherry picked from commit 7c4bb75e1b)
2020-07-17 23:49:16 +00:00
Sudheer Shanka
2008be86fd Merge "Force the app idle state again after whitelisting it." into rvc-dev 2020-07-17 22:48:44 +00:00
Sudheer Shanka
7c4bb75e1b Force the app idle state again after whitelisting it.
Whitelisting the app resets forced idle state of an app, so
forcing idle state again.

Bug: 161477606
Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Ib57202a68071cc02d6071e0dc2c4780f026ad90b
2020-07-16 14:00:27 -07:00
Remi NGUYEN VAN
bd340d8912 Merge "Auto-configure wifi on virtual devices" into rvc-dev 2020-07-16 13:25:51 +00:00
TreeHugger Robot
47b8426932 Merge "Add CtsNetTestCasesLatestSdk to mainline-presubmit" into rvc-dev 2020-07-16 02:48:20 +00:00
Remi NGUYEN VAN
10980d136c Auto-configure wifi on virtual devices
At the moment tests run on virtual devices through TEST_MAPPING do not
necessarily have wifi configured to auto-connect to a test SSID.

This could be fixed by adding a TargetPreparer in AndroidTest.xml with a
given SSID, but that configuration would then apply to all runs,
including local ones. There is also no good way to apply a preparer that
configures wifi "if it is not already connected": WifiPreparer in
particular will not configure wifi even if just a mobile network is
active.

Implement auto-configuration in CtsNetUtils#connectToWifi so that if no
network is configured, and a virtual SSID is detected when scanning,
that SSID will be added to the list of configured networks. This allows
addressing the issue until TEST_MAPPING can support configuring wifi,
with minimal side-effects on other runs.

Test: atest CtsNetTestCasesLatestSdk:CaptivePortalTest
Bug: 158153057
Change-Id: I47df4c325b073f8a9bf320894245eed211606952
2020-07-16 10:07:37 +09:00
TreeHugger Robot
79b592dd26 Merge "Don't run testRequestLatestEntitlementResult if not supported" into rvc-dev 2020-07-13 16:04:39 +00:00
Mark Chien
1e19cd613f Don't run testRequestLatestEntitlementResult if not supported
If tethering is not supported, skip testRequestLatestEntitlementResult
which test TetheringManager#requestLatestTetheringEntitlementResult
API.

Bug: 159869957
Test: atest CtsTetheringTest
Merged-In: I65c32d5bc26f18f8c9d91593ab0c178e69e75c39
Change-Id: I65c32d5bc26f18f8c9d91593ab0c178e69e75c39
2020-07-13 02:52:45 +00:00
Chalard Jean
b6f64fb76c Ignore non-matching callbacks to fix flakiness
This is a host-side tests that receives its network callbacks
through a custom AIDL that proxies them to this host-side
process. As this runs of the real callbacks from a real network,
this test receives unrelated callbacks – in particular calls to
onCapabilitiesUpdated to warn the process of updates of the
signal strength.
This skips these callbacks across the board by only matching
the expected callback. This will fix flakiness in the test.

Also, as a drive-by fix, this also checks the network in
the onBlockedStatusChanged callback. If the network object
is not the expected one, the test should not pass.

Bug: 160270536
Test: NetworkCallbackTests
Original-Change: https://android-review.googlesource.com/1318219
Merged-In: I67c685ebfb2c5e2ee6f7615196eedea8292ca3ff
Change-Id: I67c685ebfb2c5e2ee6f7615196eedea8292ca3ff
2020-07-10 04:34:04 +00:00
easoncylee
d6d19a9d92 Add CtsNetTestCasesLatestSdk to mainline-presubmit
This is the pilot run for mainline testing in Test Mapping Suite.

For supporting mainline testing in Test Mapping Suite, developers can
run tests by configuring the TEST_MAPPING file, the 3 simple steps are:
  - Add tests to be part of general-tests suite if the test does not
    depend on a device specific features.
  - Update test configureation for TradeFed to run mainline testing.
  - Update TEST_MAPPING file with test-group as "mainline-presubmit"

It's only for postsubmit now, and will be moved to actual presubmit
once the whole mechanism is stable.

For more details about the usage, please refer to go/test-mapping-mainline-user-guide

Bug: 160753366
Test: forrest.
Change-Id: I8704cc5626a3e049eb3c27adb86e9c1a4d828273
Merged-In: I8704cc5626a3e049eb3c27adb86e9c1a4d828273
2020-07-10 10:34:12 +08:00
Treehugger Robot
eb41de1d35 Increase a timeout that's too short
This should have been longer to start with. This oversight is due
to a poor API in TestNetworkCallback that was made that way for
backwards compatibility ; b/157405399 tracks improving this API.

Test: this
Bug: 160660082
Original-Change: https://android-review.googlesource.com/1358064
Merged-In: If0587a2a91977427a2f679a502d838fbecdd82f2
Change-Id: If0587a2a91977427a2f679a502d838fbecdd82f2
2020-07-10 01:13:50 +00:00