Commit Graph

7407 Commits

Author SHA1 Message Date
Treehugger Robot
83de262e69 [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours am: ebdd31d724 -s ours am: 141324a5cd -s ours am: 41406d19e8 am: b1925d6b0a -s ours am: d9e5f085fd am: 97f575ecce -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib351abf12f3f7989964c7f17ebbe57eae31d7d49
2020-11-03 22:43:47 +00:00
Treehugger Robot
97f575ecce [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours am: ebdd31d724 -s ours am: 141324a5cd -s ours am: 41406d19e8 am: b1925d6b0a -s ours am: d9e5f085fd
Original change: https://android-review.googlesource.com/c/platform/cts/+/1485239

Change-Id: I304730336a5e75f004118c2e91734c338742abc1
2020-11-03 22:14:25 +00:00
Treehugger Robot
d9e5f085fd [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours am: ebdd31d724 -s ours am: 141324a5cd -s ours am: 41406d19e8 am: b1925d6b0a -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6b1c6f991eded41af821f25af59cc50ee976adca
2020-11-03 21:53:11 +00:00
Treehugger Robot
b1925d6b0a [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours am: ebdd31d724 -s ours am: 141324a5cd -s ours am: 41406d19e8
Original change: https://android-review.googlesource.com/c/platform/cts/+/1485239

Change-Id: Ifcd5d67952dba89a0b3056a865dbd566609c728a
2020-11-03 21:33:25 +00:00
Treehugger Robot
41406d19e8 [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours am: ebdd31d724 -s ours am: 141324a5cd -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4ef01c89c30dc3e891478a2df26f04167aba793d
2020-11-03 21:26:55 +00:00
Treehugger Robot
141324a5cd [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours am: ebdd31d724 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If280ba235a64800cff3f300af4f9bbeb70ccfdbd
2020-11-03 20:36:13 +00:00
Treehugger Robot
ebdd31d724 [automerger skipped] Merge "DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"" into oreo-mr1-cts-dev am: 4542e0c819 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1c75662fe6c72e514cbc78d80044982880dd619d
2020-11-03 20:08:59 +00:00
David Su
5799e9167a DO NOT MERGE Revert "Ensure CONFIGURED_NETWORKS_CHANGED not received without permissions"
This reverts commit 956f4dc231.

Reason for revert: b/171022033

Change-Id: I6f28a18ef2487fda7a205bc8bfe9d0835b553b07
2020-11-03 03:01:50 +00:00
Treehugger Robot
cbc203336a Merge "Fix MultinetworkApiTest for instant mode" am: 9670ecfaa3 am: c1f9b73846 am: 0b6d90c570 am: 5b77bcb4f3
Original change: https://android-review.googlesource.com/c/platform/cts/+/1436501

Change-Id: I3889076aa39e1cbe1c9e8113face92804f08791f
2020-10-30 14:45:47 +00:00
Treehugger Robot
5b77bcb4f3 Merge "Fix MultinetworkApiTest for instant mode" am: 9670ecfaa3 am: c1f9b73846 am: 0b6d90c570
Original change: https://android-review.googlesource.com/c/platform/cts/+/1436501

Change-Id: I4ceae6e12222ff3f9c47f4bc3102ad9b7a3287f0
2020-10-30 14:33:09 +00:00
Treehugger Robot
0b6d90c570 Merge "Fix MultinetworkApiTest for instant mode" am: 9670ecfaa3 am: c1f9b73846
Original change: https://android-review.googlesource.com/c/platform/cts/+/1436501

Change-Id: I322a4f9e952fdd4839b9abc3f5461033c76c6851
2020-10-30 14:05:58 +00:00
Treehugger Robot
9670ecfaa3 Merge "Fix MultinetworkApiTest for instant mode" 2020-10-30 13:28:53 +00:00
Weilun Du
aa00145105 Fix MultinetworkApiTest for instant mode
add AppModeFull@ to MultinetworkApiTest since CHANGE_NETWORK_STATE
could not be granted in instant mode.

CHANGE_NETWORK_STATE is required to select networks that are up but
not in the foreground, for example, the mobile network after the linger
timer has expired.

Bug: 168809106
Test: atest MultinetworkApiTest
      atest MultinetworkApiTest --instant

Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: I37ca1a0f58d1c2ab57f8cd4489c2cfb13b0f2d39
2020-10-30 10:22:06 +00:00
Chalard Jean
ff90e803d0 Merge "Make sure agents start in the CONNECTING state" am: e3c9bb8545 am: 846ace20b8 am: f6d624ecf2 am: 3c7cd593da
Original change: https://android-review.googlesource.com/c/platform/cts/+/1460705

Change-Id: Ie86d8e50c78e0a48f24f6be4436bfe84275f8b03
2020-10-29 14:32:37 +00:00
Chalard Jean
3c7cd593da Merge "Make sure agents start in the CONNECTING state" am: e3c9bb8545 am: 846ace20b8 am: f6d624ecf2
Original change: https://android-review.googlesource.com/c/platform/cts/+/1460705

Change-Id: I68d3a5a6a36f6e29d9bb69657d0842538c03838b
2020-10-29 13:52:57 +00:00
Chalard Jean
f6d624ecf2 Merge "Make sure agents start in the CONNECTING state" am: e3c9bb8545 am: 846ace20b8
Original change: https://android-review.googlesource.com/c/platform/cts/+/1460705

Change-Id: I59df1d50bcff23cc082bb1872be3493c4cf799c8
2020-10-29 13:30:39 +00:00
Chalard Jean
e3c9bb8545 Merge "Make sure agents start in the CONNECTING state" 2020-10-29 12:31:03 +00:00
Treehugger Robot
cedf819e02 Merge "Don't run hotspot related tests if Soft AP is not supported" am: 5ecf780e6e am: 9fd00e4ef5 am: 2e8a119358 am: bf6ed3a086
Original change: https://android-review.googlesource.com/c/platform/cts/+/1450576

Change-Id: Icca2ae362d36ede34dcbb6b48b7e77a6ee6e8160
2020-10-29 07:46:47 +00:00
Treehugger Robot
bf6ed3a086 Merge "Don't run hotspot related tests if Soft AP is not supported" am: 5ecf780e6e am: 9fd00e4ef5 am: 2e8a119358
Original change: https://android-review.googlesource.com/c/platform/cts/+/1450576

Change-Id: I7e7247d44b0adf8242ea0dde69636d68715c50e3
2020-10-29 07:23:15 +00:00
Treehugger Robot
2e8a119358 Merge "Don't run hotspot related tests if Soft AP is not supported" am: 5ecf780e6e am: 9fd00e4ef5
Original change: https://android-review.googlesource.com/c/platform/cts/+/1450576

Change-Id: I64046271ddafb2b37dadb7d6c51dc8db6e333353
2020-10-29 06:42:36 +00:00
Treehugger Robot
5ecf780e6e Merge "Don't run hotspot related tests if Soft AP is not supported" 2020-10-29 05:32:56 +00:00
markchien
8705535e40 Don't run hotspot related tests if Soft AP is not supported
Also explicitly hold ACCESS_WIFI_STATE permission to avoid
no permission problem when using WifiManager#getScanResults
without shell identity.

Fix: 169219565
Test: "atest CtsTetheringTest" in cuttlefish and phyical device

Change-Id: I3d8fa7e8882bf96f61f3316a70efdf991addbcb2
2020-10-29 11:10:46 +08:00
Automerger Merge Worker
f90013221d Merge "[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 1ca661e5d7 -s ours" into rvc-qpr-dev-plus-aosp am: 7828c76a1f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I522668d531fbd2b5dfe47654e4c31df76744c291
2020-10-29 01:21:30 +00:00
Treehugger Robot
210600edd3 [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 579d87b15b -s ours am: 6fb05287da -s ours
am skip reason: subject contains skip directive

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

Change-Id: If5ab779b12a46767fd57f9c850ff3d08ba4eeabe
2020-10-29 01:20:59 +00:00
Automerger Merge Worker
7828c76a1f Merge "[automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 1ca661e5d7 -s ours" into rvc-qpr-dev-plus-aosp 2020-10-28 23:04:14 +00:00
Treehugger Robot
6fb05287da [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 579d87b15b -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/+/1464623

Change-Id: I409a3abe705704fd24c83d5eee0b984afbc5c740
2020-10-28 23:04:08 +00:00
Treehugger Robot
3d6737d37c [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -s ours am: 1ca661e5d7 -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/+/1464623

Change-Id: If02f6dda82f83ed655b9a202c4fab8d81c25fb61
2020-10-28 23:04:08 +00:00
Treehugger Robot
5a392c68e4 [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: a9d7cf89e5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I5c02410b5ae32103a8350fc78274a1e3af731fb2
2020-10-28 21:12:22 +00:00
Treehugger Robot
579d87b15b [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -s ours am: d59688258b -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/+/1464623

Change-Id: I685f309457d6f62c8f5e3b2901a7826e757fce13
2020-10-28 21:06:55 +00:00
Treehugger Robot
a9d7cf89e5 [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -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/+/1464623

Change-Id: Ifd45d787931a7ac6bd47902cac8be9c83d8d88c1
2020-10-28 19:11:09 +00:00
Treehugger Robot
d59688258b [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours am: e230976694 -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/+/1464623

Change-Id: I06b09ea9a14b65c105c3a91fa3d695e1761611f8
2020-10-28 19:10:55 +00:00
Treehugger Robot
e230976694 [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3 am: 4355a4a1fa -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id308d0ef1f72fa165c02fa461dc5cb13873dd4ba
2020-10-28 18:55:17 +00:00
Treehugger Robot
4355a4a1fa [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours am: d42bb3d1c3
Original change: https://android-review.googlesource.com/c/platform/cts/+/1464623

Change-Id: Ifa33a2382d4893d7efd99c254f37f05d316afd80
2020-10-28 18:42:16 +00:00
Treehugger Robot
d42bb3d1c3 [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours am: 9ec68a4e77 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I96d9e0e0024367af82c97303bbb7efe40dc9afdf
2020-10-28 18:11:14 +00:00
Treehugger Robot
9ec68a4e77 [automerger skipped] Merge "DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received" into pie-cts-dev am: 6cb461eb65 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I8ff4b0cdf08599f9e40c3339d196315f2e8edb4a
2020-10-28 17:39:31 +00:00
David Su
5dd45ebc2b DO NOT MERGE CTS: Ensure CONFIGURED_NETWORKS_CHANGED_ACTION broadcast is received
Android Pie CtsNetTestCases AndroidManifest.xml has both
ACCESS_WIFI_STATE & ACCESS_FINE_LOCATION permission.
Thus, it should receive the CONFIGURED_NETWORKS_CHANGED_ACTION
broadcast when a network is removed.

Bug: 159373687
Bug: 171022033
Test: atest CtsNetTestCases
Change-Id: I9d194424469d204c4f95e98b937d67ba728f2122
Merged-In: I4669a6ff79b3d2e99795015e42bfa611cffb9070
2020-10-28 17:06:54 +00:00
Remi NGUYEN VAN
bddac438e3 Move apache HTTP tests out of tests/net am: d4ce63c879
Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12934976

Change-Id: Ie1c8bd4e94329b31f57e502e8b4d463f0ff663c0
2020-10-28 08:33:37 +00:00
Remi NGUYEN VAN
ad2fba6088 [automerger skipped] Drop .stubs from android.test.[base|runner|mock].stubs am: 430caa9121 -s ours
am skip reason: Change-Id I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 with SHA-1 82bb526062 is in history

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

Change-Id: If85ecc8819945bc1528f9a958b175d78742168ec
2020-10-28 08:33:31 +00:00
Remi NGUYEN VAN
d4ce63c879 Move apache HTTP tests out of tests/net
The apache HTTP library is part of the platform core APIs, which are
separate from the core networking APIs.

cts/tests/tests/net is planned to move to a separate git project to put
it closer to the associated connectivity module code.

Bug: 170371348
Test: m cts && cts-tradefed run cts -m CtsApacheHttpTestCases
Change-Id: I49972b21755235e280c75eec40db14f3db974ca1
2020-10-28 10:22:20 +09:00
Remi NGUYEN VAN
430caa9121 Drop .stubs from android.test.[base|runner|mock].stubs
The .stubs library refer to the stub library of a java_sdk_library.
Since the name of the stub library is the implementation detail of the
build system, direct use of the name should be prohibited. Actually,
clients don't need to use the stub name directly because the build
system automatically redirects <name> to <name>.stubs.

This is a partial cherry-pick for the networking tests.

Bug: 157007292
Test: m
Merged-In: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
(cherry picked from commit 4072d4d5d4)
Change-Id: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
2020-10-28 10:19:26 +09:00
Treehugger Robot
859782bed9 Merge "Add all CTS tests to general-tests suite" am: 28b5564126 am: b6a955df5b am: fb7a1f49d2 am: 9cf83254fb
Original change: https://android-review.googlesource.com/c/platform/cts/+/1477639

Change-Id: If87c0a566ad4e622cb3b7b4ddfe4a08338a4111d
2020-10-28 00:03:46 +00:00
Treehugger Robot
9cf83254fb Merge "Add all CTS tests to general-tests suite" am: 28b5564126 am: b6a955df5b am: fb7a1f49d2
Original change: https://android-review.googlesource.com/c/platform/cts/+/1477639

Change-Id: Ifd22f79bf52b43cf7f5921f45a11ac5f8c930cc8
2020-10-27 23:53:03 +00:00
Treehugger Robot
fb7a1f49d2 Merge "Add all CTS tests to general-tests suite" am: 28b5564126 am: b6a955df5b
Original change: https://android-review.googlesource.com/c/platform/cts/+/1477639

Change-Id: I05f63c992cd7bce4e891a44d593fd8330049857c
2020-10-27 23:21:56 +00:00
Dan Shi
98716c5cdc Add all CTS tests to general-tests suite
Exempt-From-Owner-Approval: this change only adds the tests to
general-tests.zip, doesn't change any test behavior.

Bug: 171481522
Test: none
Change-Id: I1711237f00572d57f611dcd16ec9ad345a0b5b3b
2020-10-27 22:25:33 +00:00
Remi NGUYEN VAN
f60ff4d773 Merge "Move apache HTTP tests out of tests/net" am: 1cdfeec47d am: bc83be307e am: 9f65c013a3 am: aed3600f7d
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471587

Change-Id: Ib852b9f12a591ea4e073ff4e6555de796c000f54
2020-10-27 08:50:33 +00:00
Remi NGUYEN VAN
aed3600f7d Merge "Move apache HTTP tests out of tests/net" am: 1cdfeec47d am: bc83be307e am: 9f65c013a3
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471587

Change-Id: I0feefa1e57ce121001e61ac14963bf5ecd985e15
2020-10-27 08:09:16 +00:00
Remi NGUYEN VAN
9f65c013a3 Merge "Move apache HTTP tests out of tests/net" am: 1cdfeec47d am: bc83be307e
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471587

Change-Id: I9cef4699702f109f7edab8c781e137db3d532069
2020-10-27 07:45:36 +00:00
Remi NGUYEN VAN
1cdfeec47d Merge "Move apache HTTP tests out of tests/net" 2020-10-27 06:39:25 +00:00
Remi NGUYEN VAN
438200afb9 Move apache HTTP tests out of tests/net
The apache HTTP library is part of the platform core APIs, which are
separate from the core networking APIs.

cts/tests/tests/net is planned to move to a separate git project to put
it closer to the associated connectivity module code.

Bug: 170371348
Test: m cts && cts-tradefed run cts -m CtsApacheHttpTestCases
Change-Id: I49972b21755235e280c75eec40db14f3db974ca1
2020-10-27 11:07:04 +09:00
Treehugger Robot
9039774e2b Merge "Add com.google.android.resolv.apex and com.google.android.tethering.apex for CtsNetTestCasesLatestSdk." am: 7851370b12 am: c408ae280f am: 7d70389950 am: a888654d70
Original change: https://android-review.googlesource.com/c/platform/cts/+/1471584

Change-Id: Iaf7b022badad9b186f90c4232026c4d6a5cb8675
2020-10-26 10:39:05 +00:00