Commit Graph

43990 Commits

Author SHA1 Message Date
TreeHugger Robot
910ba3b2eb [automerger skipped] Merge "Add basic tests for InvalidPacketException" into sc-dev am: 06b27811c8 -s ours am: 051bc29cfc -s ours
am skip reason: Merged-In I33f1ee1702672204a46063e6e75c3880d5e7600b with SHA-1 bf44f6200e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076675

Change-Id: I147aa7ab3096c735a27b7e7b460e67a749651020
2021-06-23 16:32:48 +00:00
TreeHugger Robot
b5e31dde5d [automerger skipped] Merge "Move ConnectivityDiagnosticsManagerTest to common" into sc-dev am: ac6a28907a -s ours am: 0a326392c4 -s ours
am skip reason: Merged-In I86f39238054f43403f9a1e383dd2a935de84f06f with SHA-1 7e23f18158 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076674

Change-Id: I6c1c0869eb0fa7229f28462b36312dc475687027
2021-06-23 16:32:43 +00:00
Remi NGUYEN VAN
e47d1bea8b [automerger skipped] Added tests for QosCallback am: 763f3a0fb3 -s ours am: 37d6978d4e -s ours
am skip reason: Merged-In I29769fc8be074a5105bfe4ac34e30980c5f8744a with SHA-1 6214f82c04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076670

Change-Id: I1ec07d9557a76a66b98e52e34b127aaf8bd76739
2021-06-23 16:32:39 +00:00
Remi NGUYEN VAN
6a327275e4 [automerger skipped] Add tests for duplicate PendingIntent requests am: 3674367bcc -s ours am: ccd2989742 -s ours
am skip reason: Merged-In Ic636c731c71474ef09043d7a26ccfd6e2bb5c39f with SHA-1 489275e84e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068269

Change-Id: I1c5a5e5cfc74a96c6642d064b8a67fd2642195f6
2021-06-23 16:32:34 +00:00
TreeHugger Robot
051bc29cfc [automerger skipped] Merge "Add basic tests for InvalidPacketException" into sc-dev am: 06b27811c8 -s ours
am skip reason: Merged-In I33f1ee1702672204a46063e6e75c3880d5e7600b with SHA-1 bf44f6200e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076675

Change-Id: I8eef906ff625b484727751684058540398168012
2021-06-23 16:22:04 +00:00
TreeHugger Robot
0a326392c4 [automerger skipped] Merge "Move ConnectivityDiagnosticsManagerTest to common" into sc-dev am: ac6a28907a -s ours
am skip reason: Merged-In I86f39238054f43403f9a1e383dd2a935de84f06f with SHA-1 7e23f18158 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076674

Change-Id: I81dcad761ea0719d693af40bfd2119f807cb34e5
2021-06-23 16:21:58 +00:00
Remi NGUYEN VAN
37d6978d4e [automerger skipped] Added tests for QosCallback am: 763f3a0fb3 -s ours
am skip reason: Merged-In I29769fc8be074a5105bfe4ac34e30980c5f8744a with SHA-1 6214f82c04 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076670

Change-Id: Iaaab320d78197f5d92d5614a69d40868880813a7
2021-06-23 16:21:52 +00:00
Remi NGUYEN VAN
ccd2989742 [automerger skipped] Add tests for duplicate PendingIntent requests am: 3674367bcc -s ours
am skip reason: Merged-In Ic636c731c71474ef09043d7a26ccfd6e2bb5c39f with SHA-1 489275e84e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068269

Change-Id: I856adffad2150ac768b1cada280a390acf3e1ab0
2021-06-23 16:21:45 +00:00
TreeHugger Robot
06b27811c8 Merge "Add basic tests for InvalidPacketException" into sc-dev 2021-06-23 16:09:25 +00:00
TreeHugger Robot
ac6a28907a Merge "Move ConnectivityDiagnosticsManagerTest to common" into sc-dev 2021-06-23 16:09:23 +00:00
Chiachang Wang
bc0fe90ae8 Merge "Add test for CM#setAvoidUnvalidated" am: 13549792e2 am: eaf5893102 am: ef570996db
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1733789

Change-Id: Iff83b8640006b1d06bfbbcf547d69c863019ad27
2021-06-23 10:11:02 +00:00
Chiachang Wang
ef570996db Merge "Add test for CM#setAvoidUnvalidated" am: 13549792e2 am: eaf5893102
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1733789

Change-Id: Ibf57a8fe0f49763b2bf1f7fe06c42851dde905cf
2021-06-23 09:51:28 +00:00
Chiachang Wang
eaf5893102 Merge "Add test for CM#setAvoidUnvalidated" am: 13549792e2
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1733789

Change-Id: I0431134cfd124e0602b32a26425d2fb943f9f95a
2021-06-23 09:38:08 +00:00
Chiachang Wang
13549792e2 Merge "Add test for CM#setAvoidUnvalidated" 2021-06-23 09:19:51 +00:00
Remi NGUYEN VAN
bdd448e641 Add basic tests for InvalidPacketException
The test simply verify the constructor. They only apply on S+ as
InvalidPacketException is not updatable before S.

Bug: 187935317
Test: atest InvalidPacketExceptionTest
Original-Change: https://android-review.googlesource.com/1742076
Merged-In: I33f1ee1702672204a46063e6e75c3880d5e7600b
Change-Id: I33f1ee1702672204a46063e6e75c3880d5e7600b
2021-06-23 09:16:59 +00:00
Remi NGUYEN VAN
b5f0819d35 Move ConnectivityDiagnosticsManagerTest to common
The tests are also useful in CTS to ensure that the
ConnectivityDiagnosticsManager class API is implemented properly
(including behavior of the DataStallReport class for example).

Bug: 187935317
Test: atest ConnectivityDiagnosticsManagerTest
Original-Change: https://android-review.googlesource.com/1742075
Merged-In: I86f39238054f43403f9a1e383dd2a935de84f06f
Change-Id: I86f39238054f43403f9a1e383dd2a935de84f06f
2021-06-23 09:16:53 +00:00
Remi NGUYEN VAN
763f3a0fb3 Added tests for QosCallback
Tests for the newly added QosCallback functionality

Bug: 155176305
Test: Added to cts/NetworkAgentTest
Original-Change: https://android-review.googlesource.com/1558648
Merged-In: I29769fc8be074a5105bfe4ac34e30980c5f8744a
Change-Id: I29769fc8be074a5105bfe4ac34e30980c5f8744a
2021-06-23 07:15:31 +00:00
Remi NGUYEN VAN
3674367bcc Add tests for duplicate PendingIntent requests
Add tests for requestNetwork and registerNetworkCallback with
PendingIntents that are equal as per PendingIntent.intentFilterEquals.

In such situations, the first request is documented to be automatically
unregistered. This means that the PendingIntent should only be fired
once, instead of being fired for both requests.

Currently this behavior is broken for network callbacks (not for network
requests).

Test: atest ConnectivityManagerTest
Bug: 174237997
Original-Change: https://android-review.googlesource.com/1742073
Merged-In: Ic636c731c71474ef09043d7a26ccfd6e2bb5c39f
Change-Id: Ic636c731c71474ef09043d7a26ccfd6e2bb5c39f
2021-06-23 07:15:24 +00:00
Remi NGUYEN VAN
d153afc4ce Merge "Added tests for QosCallback" am: 8ce48fe117 am: f4a7d4130f am: 2b2df6c85b
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1558648

Change-Id: I2de9c412cb217f1972f3e6bc389fb9fbeac68540
2021-06-23 06:32:34 +00:00
Remi NGUYEN VAN
180a00fab9 Merge "Add basic tests for InvalidPacketException" am: eb0a4b41f8 am: b1eee18493 am: 2370c7cdf4
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742076

Change-Id: I496f4ae9afc8f67e7b656bb0155c2726b621a91a
2021-06-23 06:31:59 +00:00
Luke Huang
107e727906 Merge "Fix the comments from aosp/1719018" am: 0c20c4901f am: 9adee2f105 am: 226281b698
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1729691

Change-Id: I33ee0df81faa88e955ed4c6c5cad8a6d27209fbf
2021-06-23 06:31:48 +00:00
Frank Li
df838b0b04 [automerger skipped] Ignore some ConnectivityManagerTest CTS tests that can't be run in the instant app mode am: e7d085e87d -s ours am: de0b96bbaa -s ours
am skip reason: Merged-In Ice43bcf7a1dc34f4a54fefba7f408767f0a4341e with SHA-1 279a8ee8f7 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068259

Change-Id: Ib0ac2ebd3b81975b569afd54fda4d52e558daa99
2021-06-23 06:31:16 +00:00
Frank Li
c5611b752c [automerger skipped] Ignore some ConnectivityManagerTest CTS tests that can't be run in the instant app mode am: e7d085e87d am: a94b8e1489 -s ours
am skip reason: Merged-In Ice43bcf7a1dc34f4a54fefba7f408767f0a4341e with SHA-1 279a8ee8f7 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068259

Change-Id: I627407377d4e5dc138050dd8cbfeda77dd737661
2021-06-23 06:30:52 +00:00
Remi NGUYEN VAN
2b2df6c85b Merge "Added tests for QosCallback" am: 8ce48fe117 am: f4a7d4130f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1558648

Change-Id: Ic1e274100986681ac7d203ae6ad424387903e2a2
2021-06-23 06:30:09 +00:00
Remi NGUYEN VAN
2370c7cdf4 Merge "Add basic tests for InvalidPacketException" am: eb0a4b41f8 am: b1eee18493
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742076

Change-Id: Ia8e3933f3abe69565e1b3e91fa38fff6ce0d36c5
2021-06-23 06:30:05 +00:00
Luke Huang
226281b698 Merge "Fix the comments from aosp/1719018" am: 0c20c4901f am: 9adee2f105
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1729691

Change-Id: I65dd02aacd50acb92d15c76457f8415b0cc8b73e
2021-06-23 06:29:30 +00:00
Chiachang Wang
481040b43a Add test for CM#setAvoidUnvalidated
Bug: 186061922
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest
Test: atest CtsNetTestCasesLatestSdk
Change-Id: I77dc5556458c2e824f7abd5a7b79e8aeed8dabf3
2021-06-23 13:54:04 +08:00
Remi NGUYEN VAN
f4a7d4130f Merge "Added tests for QosCallback" am: 8ce48fe117
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1558648

Change-Id: I198704f7c5b7d4ad3be292221270b7a41b2dd752
2021-06-23 05:50:54 +00:00
Remi NGUYEN VAN
b1eee18493 Merge "Add basic tests for InvalidPacketException" am: eb0a4b41f8
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742076

Change-Id: I55c691161abc5571ee59b2b3874540d0d28c06b9
2021-06-23 05:50:44 +00:00
Frank Li
a94b8e1489 Ignore some ConnectivityManagerTest CTS tests that can't be run in the instant app mode am: e7d085e87d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068259

Change-Id: I20baa5a6730b594679ff558bbf218c478dda1517
2021-06-23 05:45:41 +00:00
Luke Huang
9adee2f105 Merge "Fix the comments from aosp/1719018" am: 0c20c4901f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1729691

Change-Id: Ia744fbab5b8bb97198861500472127f98185f022
2021-06-23 05:39:32 +00:00
Frank Li
de0b96bbaa [automerger skipped] Ignore some ConnectivityManagerTest CTS tests that can't be run in the instant app mode am: e7d085e87d -s ours
am skip reason: Merged-In Ice43bcf7a1dc34f4a54fefba7f408767f0a4341e with SHA-1 279a8ee8f7 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068259

Change-Id: I47384d702eb620903796184677eb9655c1c8de9b
2021-06-23 05:37:45 +00:00
Remi NGUYEN VAN
8ce48fe117 Merge "Added tests for QosCallback" 2021-06-23 05:34:46 +00:00
Remi NGUYEN VAN
eb0a4b41f8 Merge "Add basic tests for InvalidPacketException" 2021-06-23 05:32:52 +00:00
Luke Huang
0c20c4901f Merge "Fix the comments from aosp/1719018" 2021-06-23 03:36:02 +00:00
Remi NGUYEN VAN
e3f8bf3775 Merge "Move ConnectivityDiagnosticsManagerTest to common" am: ef21082033 am: cb88733c59 am: 5b20059b56
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742075

Change-Id: I2428ddb4ef86cb5522674b6431d57bdd1cb6367c
2021-06-23 03:23:07 +00:00
Remi NGUYEN VAN
5b20059b56 Merge "Move ConnectivityDiagnosticsManagerTest to common" am: ef21082033 am: cb88733c59
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742075

Change-Id: I5a0959b0dacbed1662a7852ad8d191cfa57c57e4
2021-06-23 03:11:12 +00:00
Remi NGUYEN VAN
56729c6bf2 [automerger skipped] Merge "Initialize TetheringManager lazily" into sc-dev am: 7579035ac9 -s ours am: a73bc56179 -s ours
am skip reason: Merged-In I2ba7b8f2b9e1c934cfb082776b8d643f2f2c17e5 with SHA-1 e4d1cd970e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15044616

Change-Id: Idb1f64779826f1186cead1154322b239bf24e4e4
2021-06-23 02:52:42 +00:00
Remi NGUYEN VAN
0dee6a6e27 [automerger skipped] Merge "Initialize TetheringManager lazily" into sc-dev am: 7579035ac9 am: 34611d0cf3 -s ours
am skip reason: Merged-In I2ba7b8f2b9e1c934cfb082776b8d643f2f2c17e5 with SHA-1 e4d1cd970e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15044616

Change-Id: Ic79e485f151bc235335dc4a09aa1960638f1cf9f
2021-06-23 02:52:39 +00:00
Remi NGUYEN VAN
cb88733c59 Merge "Move ConnectivityDiagnosticsManagerTest to common" am: ef21082033
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742075

Change-Id: I865e22887c55fe3faff19476948a5ed75dc05437
2021-06-23 02:48:40 +00:00
Remi NGUYEN VAN
34611d0cf3 Merge "Initialize TetheringManager lazily" into sc-dev am: 7579035ac9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15044616

Change-Id: If37fbd985758dd58de1f9d8619a96a295b2794e3
2021-06-23 02:38:16 +00:00
Remi NGUYEN VAN
a73bc56179 [automerger skipped] Merge "Initialize TetheringManager lazily" into sc-dev am: 7579035ac9 -s ours
am skip reason: Merged-In I2ba7b8f2b9e1c934cfb082776b8d643f2f2c17e5 with SHA-1 e4d1cd970e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15044616

Change-Id: I35a1257b93e6223ecf78442b8426644e204a9eec
2021-06-23 02:37:17 +00:00
Remi NGUYEN VAN
bf44f6200e Add basic tests for InvalidPacketException
The test simply verify the constructor. They only apply on S+ as
InvalidPacketException is not updatable before S.

Bug: 187935317
Test: atest InvalidPacketExceptionTest
Change-Id: I33f1ee1702672204a46063e6e75c3880d5e7600b
2021-06-23 11:33:10 +09:00
Remi NGUYEN VAN
ef21082033 Merge "Move ConnectivityDiagnosticsManagerTest to common" 2021-06-23 02:31:03 +00:00
Frank Li
0938470e45 Merge "Ignore some ConnectivityManagerTest CTS tests that can't be run in the instant app mode" am: a8a7cfd668 am: c4b4635f20 am: 23ccaddf1b
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1743373

Change-Id: I1c44952ea080019f585c5fdedfdf869d02ecfe0c
2021-06-23 02:29:43 +00:00
Paul Hu
10d540cfda Merge "Add ConnectivitySettingsManagerTest" am: 6160d60b2e am: f37dd31334 am: 977a013d10
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1738353

Change-Id: I256f8190b79e98aa969aa913a6f44c27a6774343
2021-06-23 02:29:37 +00:00
Chiachang Wang
ac8579b140 Merge "Provide a way to override the avoid bad wifi configuration" am: 38e8c2c94b am: 4ef85d615b am: 403836f671
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1733788

Change-Id: I729a31ce080f5eb781fe87b71129780ad83b4e85
2021-06-23 02:29:23 +00:00
Remi NGUYEN VAN
e57dc42f14 Merge "Add tests for duplicate PendingIntent requests" am: 307cb41ade am: 98138948fe am: 4b348711de
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1742073

Change-Id: I5ea9c4d9ae864d15ba0e15ce915660535130fb2e
2021-06-23 02:28:02 +00:00
Frank Li
e7d085e87d Ignore some ConnectivityManagerTest CTS tests that can't be run in the instant app mode
1. testIsPrivateDnsBroken: It requires the
   permission:android.permission.WRITE_SECURE_SETTINGS. But the
   WRITE_SECURE_SETTINGS permission can't be granted to instant
   apps.
2. testSetOemNetworkPreferenceForTestOnlyPref: Instant apps can't
   create test networks.
3. testSetOemNetworkPreferenceForTestPref: Instant apps can't
   create test networks.

Bug: 191678254
Bug: 191680108
Test: atest android.net.cts.ConnectivityManagerTest --instant
      atest CtsNetTestCasesLatestSdk:ConnectivityManagerTest --instant
Original-Change: https://android-review.googlesource.com/1743373
Merged-In: Ice43bcf7a1dc34f4a54fefba7f408767f0a4341e
Change-Id: Ice43bcf7a1dc34f4a54fefba7f408767f0a4341e
2021-06-23 02:24:55 +00:00
Remi NGUYEN VAN
7579035ac9 Merge "Initialize TetheringManager lazily" into sc-dev 2021-06-23 02:17:34 +00:00