No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xiao Ma b60e77f257 Unicast state of existing ethernet interfaces when registering new Ethernet Listener.
When adding a listener via the addInterfaceStateListener API, the
expectation is that ethernet service calls that listener immediately
with a list of all interfaces and their respective state. However,
this doesn't work as expectation due to the EthernetManager stores
all registered listeners within one global service listener class,
the new registered listener will be invoked until the state of any
interface has changed.

Instead of storing all registered listeners within one global service
listener class, associate each new registered listener to an instance
of IEthernetServiceListener, and pass it to the EthernetService, that
will be invoked when iterating the state of all existing interfaces.

In order to avoid the scanning of all registered listeners, that would
be slow if there are lots of registered callbacks, moving the service
listener to the ListenerInfo class, where the service listener can
access the executor and listener passed from the caller naturely,
unnecessary to iterate the whole list.

Bug: 229125889
Test: atest android.net.cts.EthernetManagerTest --iterations
Change-Id: I111eba78d1066794c414ab5fb4a31258ea311413
(cherry picked from commit bb9a49cf72)
Merged-In: I111eba78d1066794c414ab5fb4a31258ea311413
2022-04-30 14:42:45 +00:00
bpf_progs adjust for new T bpfloader net_shared location 2022-04-23 09:03:06 +00:00
framework Merge "Add a method to create a TAP interface with a given interface name." am: 7d7e7cd1fe am: 3c78a24a9a 2022-04-22 13:40:03 +00:00
framework-t Unicast state of existing ethernet interfaces when registering new Ethernet Listener. 2022-04-30 14:42:45 +00:00
nearby Merge "Enforce permission check in NearbyService" into tm-dev 2022-04-29 00:20:47 +00:00
netd BpfHandler: only allow to tag INET/INET6 socket 2022-03-07 16:04:32 +08:00
service adjust for new T bpfloader net_shared location am: 0736d7bd91 am: 96706b661f 2022-04-23 09:56:33 +00:00
service-t adjust for new T bpfloader net_shared location am: 0736d7bd91 am: 96706b661f 2022-04-23 09:56:33 +00:00
tests Unicast state of existing ethernet interfaces when registering new Ethernet Listener. 2022-04-30 14:42:45 +00:00
Tethering Merge "Remove NetworkPermissionConfig package" into tm-dev 2022-04-25 04:05:19 +00:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Add additional IPsec owners 2021-12-08 06:57:51 +00:00
OWNERS_core_networking add prohr to OWNERS_core_networking 2022-01-11 18:54:31 +00:00
OWNERS_core_networking_xts Add an OWNERS_core_networking_xts for CTS/GTS/... and use it. 2022-01-18 01:42:39 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING ConnectivityCoverageTests refactoring 2022-04-06 19:35:28 +09:00