paulhu
8c8d2ddbb8
Add comment for not listening EXTERNAL_APPLICATIONS_UNAVAILABLE am: e7e02d7880 am: 3c811e1e55
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1826071
Change-Id: If268578d69566cf9548ed8ea184ee4947fffcdc3
2021-10-01 02:03:26 +00:00
paulhu
3c811e1e55
Add comment for not listening EXTERNAL_APPLICATIONS_UNAVAILABLE am: e7e02d7880
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1826071
Change-Id: Ib46d16e9d96ff331a486ec4151aa498236f29d8f
2021-10-01 01:48:36 +00:00
paulhu
e7e02d7880
Add comment for not listening EXTERNAL_APPLICATIONS_UNAVAILABLE
...
Bug: 192653840
Test: only add comment.
Change-Id: I5a61ea76a40cf74e15ec36e415d6d4eb8ef6016f
2021-10-01 01:30:31 +00:00
Chiachang Wang
3685f8334a
Merge "Restore private dns host name after testing" am: 0ee7406d33 am: d2bd93f2e2
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1836114
Change-Id: Id7ff1f589915f3dadd1dd6b66876a0a4daa90a68
2021-10-01 01:09:56 +00:00
Chiachang Wang
ff64eaee16
Merge "Remove reference when active listener is unregistered" am: a39b107812 am: e129460c46
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1833145
Change-Id: Iefe5025f40f2ed9f1fc4b5b75e3dc0b9e599f6b5
2021-10-01 01:09:52 +00:00
Chiachang Wang
d2bd93f2e2
Merge "Restore private dns host name after testing" am: 0ee7406d33
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1836114
Change-Id: I51344c514278433e66016a812e1458e5e2df0e8d
2021-10-01 00:54:23 +00:00
Chiachang Wang
e129460c46
Merge "Remove reference when active listener is unregistered" am: a39b107812
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1833145
Change-Id: I7b05b33c2a0c02c298d42ab4891ce543fe5ab9bd
2021-10-01 00:54:16 +00:00
Chiachang Wang
0ee7406d33
Merge "Restore private dns host name after testing"
2021-10-01 00:37:15 +00:00
Chiachang Wang
a39b107812
Merge "Remove reference when active listener is unregistered"
2021-10-01 00:37:00 +00:00
markchien
ef9eb6af99
Move runDhcp to TetheringTester am: f320c21120 am: 97ac1a93fa
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1817921
Change-Id: Ia42c6f524c229c29ad3f7d0caf16f2f5c931a7dd
2021-09-30 15:14:44 +00:00
markchien
97ac1a93fa
Move runDhcp to TetheringTester am: f320c21120
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1817921
Change-Id: I74d5c4a6c88fb26e35218f05ef468fa125a340d4
2021-09-30 15:00:11 +00:00
markchien
4a96283c13
Rename mTapPacketReader to mDowntreamReader am: 0bd10760a8 am: 7ea99be9d6
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1824633
Change-Id: I1c707fdc5f31401ade7d7dec061d47a9e99226d9
2021-09-30 13:01:05 +00:00
Mark Chien
97f9de1efd
Merge "Support set test network to tethering upstream" am: 473d864d20 am: da862b2a35
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1797991
Change-Id: I90a61dfbd9809ab25f182bddf2a9c2bd116a401a
2021-09-30 13:00:58 +00:00
markchien
f320c21120
Move runDhcp to TetheringTester
...
This is a no-op CL which add TetheringTester and move runDhcp related
logic to it.
Test: atest EthernetTetheringTest
Change-Id: Ib1c5647b2bd5a1b27c976450d3aa265aff8f5b70
2021-09-30 12:57:30 +00:00
markchien
7ea99be9d6
Rename mTapPacketReader to mDowntreamReader am: 0bd10760a8
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1824633
Change-Id: I1cde888d4502463bbd6d49a3b76f3f8a6d676483
2021-09-30 12:48:20 +00:00
Mark Chien
da862b2a35
Merge "Support set test network to tethering upstream" am: 473d864d20
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1797991
Change-Id: Ifd5c76a943886dfe55e9b68eeb77931dae6fe204
2021-09-30 12:48:15 +00:00
markchien
0bd10760a8
Rename mTapPacketReader to mDowntreamReader
...
Test: atest EthernetTetheringTest
Change-Id: I2905aba449a2625caf6a82b27b9e43b06191da9f
2021-09-30 12:36:28 +00:00
Mark Chien
473d864d20
Merge "Support set test network to tethering upstream"
2021-09-30 12:36:11 +00:00
Chiachang Wang
022795b778
Merge "Add test for CM#[add|remove]DefaultNetworkActiveListener" am: 2086865010 am: c345dec57b
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827918
Change-Id: Iddd8043dc128b53e2d2c0533aea954f0a7ac43bb
2021-09-30 12:29:39 +00:00
Chiachang Wang
c345dec57b
Merge "Add test for CM#[add|remove]DefaultNetworkActiveListener" am: 2086865010
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827918
Change-Id: I2b1e5ed720d2ca97f740713ed3b24a119edc8f28
2021-09-30 12:16:40 +00:00
Chiachang Wang
2086865010
Merge "Add test for CM#[add|remove]DefaultNetworkActiveListener"
2021-09-30 12:02:12 +00:00
Chiachang Wang
5e54074e6e
Restore private dns host name after testing
...
The helper method in CtsNetUtils will not restore the private
dns hostname back if the device private dns mode is not strict
mode. It does not cause function break since the host
configuration is useful only when the private dns mode is in
strict mode. But tests should restore the setting back to its
old state to prevent break other tests or erase setttings.
Test: atest android.net.cts.ConnectivityManagerTest and
check if the private dns server configuration is
changed or not after testing
Change-Id: I7c85ddac7306c7c3eeac84679d96c4cfb11bd875
2021-09-30 10:32:04 +00:00
Chiachang Wang
2de41686e7
Remove reference when active listener is unregistered
...
The registered listeners are added into internal ArrayMap as a
reference but are not removed when the listeners are
unregistered. The actions for registration should be done in
pairs.
Test: atest FrameworksNetTests
Change-Id: Id9e674f5104d1471dd81224b6a271a8a92172e34
2021-09-30 10:30:35 +00:00
Chiachang Wang
859218c893
Add test for CM#[add|remove]DefaultNetworkActiveListener
...
Bug: 199753782
Test: atest FrameworksNetTests CtsNetTestCases
Change-Id: I2520f7f5feef61502479767aa023e281d1335ee4
2021-09-30 18:29:29 +08:00
markchien
2fbd3e72d3
Support set test network to tethering upstream
...
Test: atest EthernetTetheringTest
Change-Id: Ief2a92bc6c573a6bb75c72b7a0630e5c0accfa73
2021-09-30 10:14:58 +00:00
Chalard Jean
be2aee39f5
Merge "Small doc improvement" am: a997db7f40 am: 9f61ab08bd
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1838427
Change-Id: I8d7912f4e76952b899e9d72179a864d17ed8825a
2021-09-30 08:14:26 +00:00
Chalard Jean
9f61ab08bd
Merge "Small doc improvement" am: a997db7f40
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1838427
Change-Id: Id3afa12d046e1666978840fee0918f4f160a21c9
2021-09-30 08:01:44 +00:00
Chalard Jean
a997db7f40
Merge "Small doc improvement"
2021-09-30 07:48:00 +00:00
Chalard Jean
d4c7de35d5
Merge "Check NetworkAgentInfo Map Before Destroying Network" am: 9d31c63e03 am: 8c06f9991b
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1802528
Change-Id: I7f5dc2bdc4f31b6ac60df12592247587c3d9875c
2021-09-29 06:42:51 +00:00
Chalard Jean
8c06f9991b
Merge "Check NetworkAgentInfo Map Before Destroying Network" am: 9d31c63e03
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1802528
Change-Id: Ibcf989ffd494108faeeb4419041fb32389208c4d
2021-09-29 06:20:06 +00:00
Chalard Jean
9d31c63e03
Merge "Check NetworkAgentInfo Map Before Destroying Network"
2021-09-29 06:03:56 +00:00
Luke Huang
d3d5fe189f
[automerger skipped] Merge "Modify Nsd{Service,Manager}Test to conform to its change" am: 38f82199ab -s ours am: 7f2cc5395f -s ours
...
am skip reason: Merged-In I3cf658498bef5755dcb01127a94fff913b6e6298 with SHA-1 952a55c62d is already in history
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1764165
Change-Id: I502cb067ae4cef5ae5e7de838a88d1522401c5eb
2021-09-29 04:10:28 +00:00
Luke Huang
7f2cc5395f
[automerger skipped] Merge "Modify Nsd{Service,Manager}Test to conform to its change" am: 38f82199ab -s ours
...
am skip reason: Merged-In I3cf658498bef5755dcb01127a94fff913b6e6298 with SHA-1 952a55c62d is already in history
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1764165
Change-Id: Icbe217fcfba27fd186af32d79fb3d61e2a868b7c
2021-09-29 03:50:49 +00:00
Luke Huang
38f82199ab
Merge "Modify Nsd{Service,Manager}Test to conform to its change"
2021-09-29 03:35:20 +00:00
Tyler Wear
a5208a6aa2
Fix NetworkOffer Death link does not exist am: 3ec7e6d9fb am: f405adead7
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1799528
Change-Id: I8188f0bc257910e1ebb6353f60db078a3cf6a8e4
2021-09-29 01:09:27 +00:00
Tyler Wear
f405adead7
Fix NetworkOffer Death link does not exist am: 3ec7e6d9fb
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1799528
Change-Id: Ic1b0cb9e06d05d334cedd4b50bc7e8cf91dcc59a
2021-09-29 00:55:19 +00:00
Tyler Wear
614b27badd
Check NetworkAgentInfo Map Before Destroying Network
...
updateNetworkInfo is called with the argument in a message,
which is initialized with `this` in NetworkAgentRegistry.
That means it's technically possible that CS calls
tearDownUnneededNetwork, calling nai.disconnect() and
queuing up a message to call this, but before it's done
the NA calls sendNetworkInfo with DISCONNECTED, which
never looks up the agent from the map. Throwing a
ServiceSpecificException and resulting in a System crash.
Bug: 196423147
Change-Id: Ia52f2b794f32c263200c14b8dc2eb6b184bff5ff
2021-09-28 17:41:23 -07:00
Chalard Jean
0d05151b5c
Small doc improvement
...
Test: comment-only change
Bug: 191744296
Change-Id: I80447783c9fd89f3b6685a4276cc555a7075a70f
2021-09-28 15:31:15 +09:00
Tyler Wear
3ec7e6d9fb
Fix NetworkOffer Death link does not exist
...
unregisterNetworkProvider is being called from binderDied()
and handleUnregisterNetworkProvider() at the same time. This results
in NoSuchElementException being thrown.
Check than noi can be removed from network offers before unregistering
death link.
Bug: 196423150
Change-Id: If5bd5f2894fa0509a89340efdc85180c54e72e0e
2021-09-20 10:40:19 -07:00
Chalard Jean
a4ac96cf27
Merge "Add a mode for cell radios unable to time share" am: c80a5d56db am: d4ec13a400
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827923
Change-Id: I76d81c750f00aa4d976b52a2d5cb5a375533f941
2021-09-18 13:06:16 +00:00
Chalard Jean
d4ec13a400
Merge "Add a mode for cell radios unable to time share" am: c80a5d56db
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827923
Change-Id: I5ded48c8498c32977adcfe2363599d6cfa246e1b
2021-09-18 12:50:52 +00:00
Chalard Jean
c80a5d56db
Merge "Add a mode for cell radios unable to time share"
2021-09-18 12:39:24 +00:00
Chalard Jean
0702f98edc
Add a mode for cell radios unable to time share
...
Upon changing the default SIM card, the radio will create a
new connection to the new subscription. If that subscription
works correctly, the stack will prefer it to the old one as
the new subscription will be marked with a Primary policy
flag it its score.
Normally, at this point the old network lingers to give apps
an opportunity to gracefully migrate their connections. But
with some radios, this may have a dramatic effect on the
performance of the new connection.
This patch introduces a flag so that devices with such radios
can be marked. In this case the stack will move to a degraded
mode and eschew the grace delay for apps and give them a hard
break instead, so that the new network can reach a good
performance immediately. Apps with existing connections will
suffer a worse experience.
If there is a request that can only be served by the old
connection, still keep it, as arguably the user still
expects their MMS be sent on the old connection, even if the
new connection doesn't work well until it's done.
Test: new test in this patch, and add relevant tests in both modes
also manually change the value of the flag and run
FrameworksNetTests and CtsNetTestCasesLatestSdk
Bug: 200226979
Change-Id: I4ace82f90e873bf06298cc689bb1d794ed5124bd
2021-09-18 04:03:13 +00:00
Aaron Huang
33c22439a4
Merge "Remove ForceAllNetworkTypes from test" am: f7762c823a am: fed2d0614f
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1824632
Change-Id: Id03c0eb742af83c08cb7ea84eb0ff217b3fab0e0
2021-09-17 12:44:27 +00:00
Aaron Huang
fed2d0614f
Merge "Remove ForceAllNetworkTypes from test" am: f7762c823a
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1824632
Change-Id: Ib5ef798b75c473e4e2c62cf295b55e3669508648
2021-09-17 12:25:04 +00:00
Aaron Huang
f7762c823a
Merge "Remove ForceAllNetworkTypes from test"
2021-09-17 12:08:59 +00:00
Aaron Huang
fc01806b57
Merge "Test a template matches mobile and mobile wildcard" am: 3cbd991ab4 am: 952f97c84b
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1784390
Change-Id: Iac083d8cbb4c77a4f13a20df1ee6a4675d282aa9
2021-09-16 10:18:44 +00:00
Aaron Huang
952f97c84b
Merge "Test a template matches mobile and mobile wildcard" am: 3cbd991ab4
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1784390
Change-Id: Ia33a4d9fb1e543680af7c6a25df619bed80799a9
2021-09-16 10:03:56 +00:00
Aaron Huang
3cbd991ab4
Merge "Test a template matches mobile and mobile wildcard"
2021-09-16 09:42:22 +00:00
Chiachang Wang
97fa4cc109
Merge "Correct the calling method in removeDefaultNetworkActiveListener" am: a6e3069c27 am: 7c04a51a95
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1827914
Change-Id: I7dfc06f15683c4e4502636cc0eab1285d1e6ee02
2021-09-16 06:50:32 +00:00