android_packages_modules_Co.../framework-t
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xiao Ma bb9a49cf72 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
2022-04-28 18:59:44 +09:00
..
api Make some NetworkStats APIs system-current 2022-04-11 18:45:36 +08:00
jni Move socket tagging implementation to mainline. 2022-01-30 15:59:44 +09:00
src/android Unicast state of existing ethernet interfaces when registering new Ethernet Listener. 2022-04-28 18:59:44 +09:00
Android.bp Use Sources.bp for building 2022-03-25 14:58:43 +00:00
Sources.bp Remove unused empty filegroups from connectivityT package. 2022-04-04 07:00:59 +00:00