No description. Add one?
- Java 78%
- Kotlin 11.8%
- AIDL 4.4%
- C++ 3.7%
- C 1.5%
- Other 0.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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 |
||
| bpf_progs | ||
| framework | ||
| framework-t | ||
| nearby | ||
| netd | ||
| service | ||
| service-t | ||
| tests | ||
| Tethering | ||
| .gitignore | ||
| OWNERS | ||
| OWNERS_core_networking | ||
| OWNERS_core_networking_xts | ||
| PREUPLOAD.cfg | ||
| TEST_MAPPING | ||