Paul Hu
7c64a1765e
[automerger skipped] Merge "Add ConnectivitySettingsManagerTest" into sc-dev am: a244f13f21 am: 341971c0e1 -s ours
...
am skip reason: Merged-In I8161c1bca84b41964578d59ee5d6ab07b2380707 with SHA-1 236a992cd0 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15079711
Change-Id: Iacbd33fd860c047b318393e4613c9af83c849d71
2021-06-23 17:08:22 +00:00
Paul Hu
341971c0e1
Merge "Add ConnectivitySettingsManagerTest" into sc-dev am: a244f13f21
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15079711
Change-Id: I621d54f7290c45d73db9369364a19f544915943c
2021-06-23 16:47:11 +00:00
TreeHugger Robot
08bf407469
[automerger skipped] Merge changes I77dc5556,If772078c,Idb19b0f7 into sc-dev am: e7ac3ffec5 am: e89ecee138 -s ours
...
am skip reason: Merged-In I77dc5556458c2e824f7abd5a7b79e8aeed8dabf3 with SHA-1 79f6827d45 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15079710
Change-Id: I9122aa1d0a6cf9dc4133c6c80931a092123125ef
2021-06-23 16:38:29 +00:00
Chiachang Wang
bfb4c563f7
[automerger skipped] Provide a way to override the avoid bad wifi configuration am: fad30e3d84 am: 8bb531f3af -s ours
...
am skip reason: Merged-In If772078c61a9b12926f104d5dfc9c9071e844732 with SHA-1 fad30e3d84 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068262
Change-Id: I3e0ec7f7f49229cc5e974fc8b4a828dc9398c53f
2021-06-23 16:38:27 +00:00
Remi NGUYEN VAN
bb5efc9c52
[automerger skipped] Remove ConnectivityServiceTest signature perms use am: ff55aeb916 am: 3e19171609 -s ours
...
am skip reason: Merged-In If309d653ac2e9bbcf1b94bcee6336367289df359 with SHA-1 18a979fa41 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076673
Change-Id: I5f9309f4b3ab128b1a12dd18dca39586ced8dae6
2021-06-23 16:38:25 +00:00
TreeHugger Robot
d14c50edc5
[automerger skipped] Merge "Add basic tests for InvalidPacketException" into sc-dev am: 06b27811c8 am: 30ebf987bb -s ours
...
am skip reason: Merged-In I33f1ee1702672204a46063e6e75c3880d5e7600b with SHA-1 bdd448e641 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076675
Change-Id: I66732384a87a9ce1847ab798ffdb4e60aa493a65
2021-06-23 16:38:16 +00:00
TreeHugger Robot
28885981cd
[automerger skipped] Merge "Move ConnectivityDiagnosticsManagerTest to common" into sc-dev am: ac6a28907a am: c0459cdcb8 -s ours
...
am skip reason: Merged-In I86f39238054f43403f9a1e383dd2a935de84f06f with SHA-1 b5f0819d35 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076674
Change-Id: Ia15aadbd4c58aab5868f5204ab9271d302f32e3d
2021-06-23 16:38:09 +00:00
Remi NGUYEN VAN
46a14845d7
[automerger skipped] Added tests for QosCallback am: 763f3a0fb3 am: feda9bfeaa -s ours
...
am skip reason: Merged-In I29769fc8be074a5105bfe4ac34e30980c5f8744a with SHA-1 763f3a0fb3 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076670
Change-Id: Ic29c70aebb522220896006fceaa76490174cefcf
2021-06-23 16:38:04 +00:00
Remi NGUYEN VAN
737730dba8
[automerger skipped] Add tests for duplicate PendingIntent requests am: 3674367bcc am: 798e8c2747 -s ours
...
am skip reason: Merged-In Ic636c731c71474ef09043d7a26ccfd6e2bb5c39f with SHA-1 3674367bcc is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068269
Change-Id: Idaec3210bb8349d4e4cbd9cdf22a2e4583fa9c83
2021-06-23 16:37:57 +00:00
TreeHugger Robot
114b2322a5
[automerger skipped] Merge changes I77dc5556,If772078c,Idb19b0f7 into sc-dev am: e7ac3ffec5 -s ours am: 4212f39749 -s ours
...
am skip reason: Merged-In I77dc5556458c2e824f7abd5a7b79e8aeed8dabf3 with SHA-1 481040b43a is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15079710
Change-Id: Id3736060e1a36ba5fc3692ba93ab275aef315d2c
2021-06-23 16:32:53 +00:00
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
Paul Hu
a244f13f21
Merge "Add ConnectivitySettingsManagerTest" into sc-dev
2021-06-23 16:29:20 +00:00
TreeHugger Robot
e89ecee138
Merge changes I77dc5556,If772078c,Idb19b0f7 into sc-dev am: e7ac3ffec5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15079710
Change-Id: I3bb589deffd64544931966e94502a658f3945d10
2021-06-23 16:24:57 +00:00
Chiachang Wang
8bb531f3af
Provide a way to override the avoid bad wifi configuration am: fad30e3d84
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068262
Change-Id: I918e3af3e637cfa20c0943c197780411f99e41f1
2021-06-23 16:24:55 +00:00
Remi NGUYEN VAN
3e19171609
Remove ConnectivityServiceTest signature perms use am: ff55aeb916
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076673
Change-Id: I82e8d3473fab1c5190b18e123f6ced4ad9a7bc1d
2021-06-23 16:24:52 +00:00
TreeHugger Robot
30ebf987bb
Merge "Add basic tests for InvalidPacketException" into sc-dev am: 06b27811c8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076675
Change-Id: I028a47e25820a13a2ebfb4354f52618564a954e7
2021-06-23 16:23:50 +00:00
TreeHugger Robot
c0459cdcb8
Merge "Move ConnectivityDiagnosticsManagerTest to common" into sc-dev am: ac6a28907a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076674
Change-Id: I593327a7edc6327e3f0277b08d204ec4474579c9
2021-06-23 16:23:36 +00:00
Remi NGUYEN VAN
feda9bfeaa
Added tests for QosCallback am: 763f3a0fb3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15076670
Change-Id: Ib0d640796639efd7c95fed7cec1bf798b0f22dc4
2021-06-23 16:23:21 +00:00
Remi NGUYEN VAN
798e8c2747
Add tests for duplicate PendingIntent requests am: 3674367bcc
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15068269
Change-Id: Icb70a514e3a0650932351eb7abd86e569c010bf4
2021-06-23 16:23:12 +00:00
TreeHugger Robot
4212f39749
[automerger skipped] Merge changes I77dc5556,If772078c,Idb19b0f7 into sc-dev am: e7ac3ffec5 -s ours
...
am skip reason: Merged-In I77dc5556458c2e824f7abd5a7b79e8aeed8dabf3 with SHA-1 481040b43a is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15079710
Change-Id: I9049e421b915a69e981aa208028c7bd5d493bc97
2021-06-23 16:22:10 +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
e7ac3ffec5
Merge changes I77dc5556,If772078c,Idb19b0f7 into sc-dev
...
* changes:
Add test for CM#setAvoidUnvalidated
Provide a way to override the avoid bad wifi configuration
Remove ConnectivityServiceTest signature perms use
2021-06-23 16:16:03 +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
paulhu
0903f73e1f
Add ConnectivitySettingsManagerTest
...
- Add tests for ConnectivitySettingsManager.
- Also address leftover javadoc comments.
Bug: 182538166
Test: atest FrameworksNetTests
Test: atest CtsNetTestCases
Original-Change: https://android-review.googlesource.com/1738353
Merged-In: I8161c1bca84b41964578d59ee5d6ab07b2380707
Change-Id: I8161c1bca84b41964578d59ee5d6ab07b2380707
2021-06-23 20:02:27 +08:00
Chiachang Wang
79f6827d45
Add test for CM#setAvoidUnvalidated
...
Bug: 186061922
Test: atest CtsNetTestCases:android.net.cts.ConnectivityManagerTest
Test: atest CtsNetTestCasesLatestSdk
Original-Change: https://android-review.googlesource.com/1733789
Merged-In: I77dc5556458c2e824f7abd5a7b79e8aeed8dabf3
Change-Id: I77dc5556458c2e824f7abd5a7b79e8aeed8dabf3
2021-06-23 10:31:17 +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
Chiachang Wang
fad30e3d84
Provide a way to override the avoid bad wifi configuration
...
ConnectivityManager.setAvoidUnvalidated only works if the
config_networkAvoidBadWifi configuration is set to 0 and the
NETWORK_AVOID_BAD_WIFI setting is unset. There is no easy way
for a testing app to temporary set a test value to verify the
behavior of the API. Thus, add a mechanism to allow test app
to set a period of time to temporary unstrict the resource
configuration, i.e. Temporary simulate config_networkAvoidBadWifi
configured to 0.
Bug: 186061922
Test: atest CtsNetTestCases FrameworksNetTests
Original-Change: https://android-review.googlesource.com/1733788
Merged-In: If772078c61a9b12926f104d5dfc9c9071e844732
Change-Id: If772078c61a9b12926f104d5dfc9c9071e844732
2021-06-23 08:42:47 +00:00
Remi NGUYEN VAN
ff55aeb916
Remove ConnectivityServiceTest signature perms use
...
To allow unit tests to run without platform certificates, remove
signature permission usage in ConnectivityServiceTest.
This mocks permission checks done in ConnectivityService for which the
test assumed that the permission was held, and mocks calls to
BatteryStatsManager. Calls to ActivityManagerService (through
PendingIntent) are done with shell permissions as the test uses real
PendingIntent mechanics.
Bug: 187935317
Test: atest FrameworksNetTests
Merged-In: If309d653ac2e9bbcf1b94bcee6336367289df359
Change-Id: If309d653ac2e9bbcf1b94bcee6336367289df359
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1736615
(cherry picked from commit 595dda3604 )
Change-Id: Idb19b0f7cb87bb4d9de7a0b1a0e4128c2d6b9c6d
2021-06-23 08:39:38 +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