Nucca Chen
f9e96b9ce9
Merge "Provide a easy way to access bpf maps from java" am: 12067258b2 am: 5a90ec8297
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1498277
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I07d7df06f0623b176094c15e0e9c2e24e0b1c078
2021-01-12 09:00:30 +00:00
Nucca Chen
5a90ec8297
Merge "Provide a easy way to access bpf maps from java" am: 12067258b2
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1498277
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id80e11ce843b4b2ef8578ee6b72368450288afaa
2021-01-12 08:22:36 +00:00
Nucca Chen
12067258b2
Merge "Provide a easy way to access bpf maps from java"
2021-01-12 08:06:03 +00:00
Remi NGUYEN VAN
a8208c50f8
Merge "Revert^2 "Add service-connectivity to tethering APEX"" am: 73fa31b404 am: f3b8223844
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1542627
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I14b6da2e75fce0274e64701cf79dca46abad0f60
2021-01-12 02:21:57 +00:00
Remi NGUYEN VAN
f3b8223844
Merge "Revert^2 "Add service-connectivity to tethering APEX"" am: 73fa31b404
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1542627
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I15564a42939ccdc54954e4d130b6236bde94864b
2021-01-12 02:05:58 +00:00
Remi NGUYEN VAN
73fa31b404
Merge "Revert^2 "Add service-connectivity to tethering APEX""
2021-01-12 01:35:30 +00:00
markchien
7052688dde
Provide a easy way to access bpf maps from java
...
A wrapper for bpf map opening, reading/writing, and iteration.
Bug: 173167302
Test: atest BpfMapTest
Change-Id: I792b41978b322c9e4969cd7b6c35d6978ab86bc4
2021-01-11 17:43:27 +08:00
lucaslin
5970ac8892
Move BaseNetdUnsolicitedEventListener to frameworks/libs/net am: ee661dfb59 am: 8c250ac624
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1517960
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I859a59302fb71fae2da2ca229c706ff6c1f16408
2021-01-11 02:22:44 +00:00
lucaslin
8c250ac624
Move BaseNetdUnsolicitedEventListener to frameworks/libs/net am: ee661dfb59
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1517960
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iabf789de27e571c05bacb912d9c59a4357ffb549
2021-01-11 02:05:04 +00:00
lucaslin
ee661dfb59
Move BaseNetdUnsolicitedEventListener to frameworks/libs/net
...
Move BaseNetdUnsolicitedEventListener to frameworks/libs/net and
create a new library - netd-client for using.
Also remove netd_aidl_interface-unstable-java since netd-client
links to the stable one.
Bug: 174837473
Test: Manual test and check the log.
Change-Id: Id65142b8c13a6cccbfe387d4ab757967497546e6
2021-01-08 01:55:53 +00:00
Remi NGUYEN VAN
2812f607a0
Revert^2 "Add service-connectivity to tethering APEX"
...
Add the connectivity service JAR to the tethering APEX.
This change should not be released in monthly updates until the
modularization work is done, so will be reverted in module release
branches.
This rolls forward the change. The original topic was reverted because
of a bad merged-in clause; this is fixed and re-verified in this topic.
Test: Boot, wifi connects and has internet access
Bug: 171540887
Change-Id: Ib0ac49609e444a53a6fee4575f5078e15f364eef
2021-01-08 01:24:36 +00:00
Sudheer Shanka
da74e5086d
Merge "Increase the wait timeout for meteredness to change." am: edb6669cf1 am: eccfb47e5b
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1538985
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I7f843b19c377d54a9a6957080ccc93fe91e082e5
2021-01-07 23:34:37 +00:00
Sudheer Shanka
eccfb47e5b
Merge "Increase the wait timeout for meteredness to change." am: edb6669cf1
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1538985
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I9908365b2393fd718bd1a5cda4d6839bc96eb869
2021-01-07 23:15:29 +00:00
Sudheer Shanka
edb6669cf1
Merge "Increase the wait timeout for meteredness to change."
2021-01-07 22:56:48 +00:00
Treehugger Robot
42e3663c76
Merge "Revert "Add service-connectivity to tethering APEX"" am: 4f430ae5ec am: 67650555b1
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1541543
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I77fdad4bf192ba260118f6ef2b7c2fd0b2ae3b3d
2021-01-07 18:48:00 +00:00
Treehugger Robot
67650555b1
Merge "Revert "Add service-connectivity to tethering APEX"" am: 4f430ae5ec
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1541543
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic9c9262fde00878772232e0428688a1b0e285fa9
2021-01-07 17:58:14 +00:00
Treehugger Robot
4f430ae5ec
Merge "Revert "Add service-connectivity to tethering APEX""
2021-01-07 15:25:03 +00:00
Pete Bentley
850ca6f6b4
Revert "Add service-connectivity to tethering APEX"
...
Revert "Set setCurrentProxyScriptUrl as public"
Revert submission 1532910-connectivity_jar_in_apex
Reason for revert: Breaks boot tests: b/176969905
Reverted Changes:
Ie41a5b569:Set setCurrentProxyScriptUrl as public
Id7b6a4664:Move service-connectivity to the tethering APEX
Ia7cb83834:Add service-connectivity to tethering APEX
Change-Id: I9f31d4810a92e620f02cc8d24bdf18fe28001a2b
2021-01-07 13:51:18 +00:00
Lorenzo Colitti
4b2bf51ef9
Merge "Add service-connectivity to tethering APEX" am: 7998551cdc am: 3ebe8d0394
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1488520
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I5f1f8a73b73277709568a79b623fa88f13b95179
2021-01-07 09:49:41 +00:00
Lorenzo Colitti
3ebe8d0394
Merge "Add service-connectivity to tethering APEX" am: 7998551cdc
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1488520
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I6c0d1b1c0247d66f9a962da824da73d05101774c
2021-01-07 09:26:30 +00:00
Lorenzo Colitti
7998551cdc
Merge "Add service-connectivity to tethering APEX"
2021-01-07 08:34:25 +00:00
Remi NGUYEN VAN
bd5cc4231d
Add service-connectivity to tethering APEX
...
Add the connectivity service JAR to the tethering APEX.
This change should not be released in monthly updates until the
modularization work is done, so will be reverted in module release
branches.
Test: Boot, wifi connects and has internet access
Bug: 171540887
Merged-In: Ic496cd62be8c90928ccc619519ebe517beea78f0
Change-Id: Ia7cb83834b854e8c495c4ef17ec69ad032509208
2021-01-07 06:17:33 +00:00
Lorenzo Colitti
efb9125a7f
Merge "Migrate away from AsyncChannel in NetworkAgent" am: c9c51b665d am: 39364945d5
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1484018
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie74232c341548340fd893783c8b7186f3f3cb2aa
2021-01-06 14:44:24 +00:00
Lorenzo Colitti
39364945d5
Merge "Migrate away from AsyncChannel in NetworkAgent" am: c9c51b665d
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1484018
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I7f81328223159acda1e642823ff7fd0a4df939b9
2021-01-06 14:26:24 +00:00
Lorenzo Colitti
c9c51b665d
Merge "Migrate away from AsyncChannel in NetworkAgent"
2021-01-06 14:10:21 +00:00
Sudheer Shanka
796f29c09e
Increase the wait timeout for meteredness to change.
...
Bug: 170241174
Bug: 174808291
Test: atest CtsHostsideNetworkTests:HostsideRestrictBackgroundNetworkTests
Change-Id: I3af17819a403958d88a30af7f6346e5bb96b2828
2021-01-05 06:37:56 +00:00
Chalard Jean
4f896db6ff
Migrate away from AsyncChannel in NetworkAgent
...
Use two oneway binder interfaces instead.
The interfaces post messages to handlers as was implemented before, but
provide a more strictly defined interface, with less hops between
NetworkAgent, AsyncChannel, and ConnectivityService.
Test: atest FrameworksNetTests CtsNetTestCasesLatestSdk
Merged-In: Ica51d0179bcb3b4e314d2c3e85709aead6ca5657
Change-Id: Ica51d0179bcb3b4e314d2c3e85709aead6ca5657
2020-12-25 11:11:32 +09:00
Treehugger Robot
8e1e05ec1e
Merge "Also update connected clients for local only tethering" am: 561f38a799 am: 1b1c4adab5
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1531561
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I04ef025ed537623511a3d346d4c59d6efb6bef3f
2020-12-23 12:31:53 +00:00
Treehugger Robot
1b1c4adab5
Merge "Also update connected clients for local only tethering" am: 561f38a799
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1531561
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iac33537cf02456f4e1fce918ecfa7106749fcfd0
2020-12-23 12:14:19 +00:00
Treehugger Robot
561f38a799
Merge "Also update connected clients for local only tethering"
2020-12-23 11:36:34 +00:00
markchien
f50f05ebcb
Also update connected clients for local only tethering
...
mForwardedDownstreams is the set of downstreams who wanted upstream.
In other word, it don't contains localOnly tethering(e.g. local only
hotspot, wifi p2p tethering). Changing the list from mForwardedDownstreams
to mNotifyList make both tethered and localOnly tethering have connected
clients callback.
Bug: 172290164
Test: atest TetheringTests
Change-Id: I58fdb28efc616b00d63a1c237ea93aee4d8f2dcd
2020-12-22 23:23:09 +08:00
Chalard Jean
f0c1648742
Merge "Move module utils to the module package." am: fab11bb263 am: e3db31f347
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1531558
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I0d9c29e041caba754e4cb72167678234707484d3
2020-12-21 06:33:30 +00:00
Chalard Jean
e3db31f347
Merge "Move module utils to the module package." am: fab11bb263
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1531558
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I3ef4ad9424dbe2ab620562276ba93da296e232b7
2020-12-21 06:11:51 +00:00
Chalard Jean
fab11bb263
Merge "Move module utils to the module package."
2020-12-21 05:35:09 +00:00
Remi NGUYEN VAN
bc1e892463
Fix timeout on NetworkAgentTest callback am: abb46bef36 am: 44cc38ce67
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1530739
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I7b96c910b95684b27ef8db2fa53c1b88953b6111
2020-12-21 05:21:03 +00:00
Remi NGUYEN VAN
44cc38ce67
Fix timeout on NetworkAgentTest callback am: abb46bef36
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1530739
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ide74cc0ae04e6ab900ec56bcaaf3f69c15c9679e
2020-12-21 05:03:19 +00:00
Remi NGUYEN VAN
abb46bef36
Fix timeout on NetworkAgentTest callback
...
All callbacks in the class use the DEFAULT_TIMEOUT_MS, except for this recently
added test.
The test is currently flaky in various branches.
Fixes: 174716714
Fixes: 174691729
Change-Id: I9f4446bb83eb4402c912292ac31d46e1d2cb6a52
Test: TH
2020-12-16 06:29:20 +00:00
Chalard Jean
d2df5729f6
Move module utils to the module package.
...
Test: FrameworksWifiTest FrameworksNetTest
Merged-In: Ib04bebb061dc64d6d685116b596fb3179d5b959a
Change-Id: I9118da3898d864c7bf0ed7bc9d94b94343c4a084
2020-12-16 11:44:34 +09:00
Remi NGUYEN VAN
d2c83f152a
Move cts/net/TEST_MAPPING to toplevel am: 9b6b353b5d am: 69963e8600
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1529961
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2133df5a4f651c80e25d9af7d13a1bac04cd2d0d
2020-12-16 02:33:13 +00:00
Remi NGUYEN VAN
69963e8600
Move cts/net/TEST_MAPPING to toplevel am: 9b6b353b5d
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1529961
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I0219dd593ea4139529b5432f900487a9c8247bdc
2020-12-16 01:56:10 +00:00
Remi NGUYEN VAN
9b6b353b5d
Move cts/net/TEST_MAPPING to toplevel
...
The tests should just be run on any change in packages/modules/Connectivity,
not just changes in the CTS package.
Change-Id: I1c86c402f39a8a9b84e7422445df289c3ea7842f
Test: TEST_MAPPING needs to be verified by TH
2020-12-15 09:39:58 +00:00
Orion Hodson
136538db89
Merge "Use libnetjniutils for JNI File Descriptor info" am: b5e3c63b72 am: 25bb834e23
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1519500
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I39de6d056c4ab4d2e44171069a5c2575f2b71376
2020-12-15 07:24:46 +00:00
Orion Hodson
25bb834e23
Merge "Use libnetjniutils for JNI File Descriptor info" am: b5e3c63b72
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1519500
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib025d1c3725aaf5eca31a3f954a363ebc9b7a1fb
2020-12-15 06:45:35 +00:00
Orion Hodson
b5e3c63b72
Merge "Use libnetjniutils for JNI File Descriptor info"
2020-12-15 06:25:38 +00:00
Lorenzo Colitti
2ed0825b76
Merge changes from topic "cs-generalize-underlying-networks" am: 678d27faca am: 7c822d82b7
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1526361
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I70bfb5b05c834e42a4560ad82b5d816ba0dec395
2020-12-14 06:11:47 +00:00
Lorenzo Colitti
7c822d82b7
Merge changes from topic "cs-generalize-underlying-networks" am: 678d27faca
...
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1526361
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie5815ada76edd5d34c8cb8a184e7b1bc59fee005
2020-12-14 05:59:51 +00:00
Lorenzo Colitti
678d27faca
Merge changes from topic "cs-generalize-underlying-networks"
...
* changes:
Update NetworkAgentTest to support generalized underlying networks.
Minor fixes to NetworkAgentTest.
2020-12-14 05:19:49 +00:00
Lorenzo Colitti
ed1211d2d8
Update NetworkAgentTest to support generalized underlying networks.
...
Currently, when an agent calls setUnderlyingNetworks, the
transports of the network are hardcoded to TRANSPORT_VPN only.
This is being fixed in another CL in this topic. The new code
reports the same transports sent by the agent.
This test registers an agent with TRANSPORT_TEST|TRANSPORT_VPN.
Update the test to expect both transports in the callbacks it
receives.
Bug: 173331190
Test: passes when run with other CL in topic
Change-Id: Iede61d74fa02a4fec1f345f6d18835c1acab7337
2020-12-12 22:57:06 +09:00
Lorenzo Colitti
cc3e994f16
Minor fixes to NetworkAgentTest.
...
- Use a more realistic routing config (instead of a LinkAddress
with prefix length 0, an address with a mask of 32 and a
default route).
- Use InetAddresses to parse IP addresses since it's a public API.
- Import the NET_CAPABILITY_xxx and TRANSPORT_xxx constants for
readability.
Bug: 173331190
Test: test-only change
Change-Id: I9703d7dd5781f60fb3d531267d3f5370cbccd64f
2020-12-12 22:57:05 +09:00
Orion Hodson
e5bd0dba21
Use libnetjniutils for JNI File Descriptor info
...
Drops use of deprecated API in libnativehelper and uses a common
helper that will be stable across releases.
Bug: 158749603
Test: m
Change-Id: Ic1a1811ffb9a1c207f562a180417e99df31e3502
2020-12-11 22:48:10 +00:00