android_packages_modules_Co.../tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Patrick Rohr 0ccff8a30b Move EthernetNetworkFactory to using the NetworkProvider API
This CL makes EthernetNetworkFactory inherit from NetworkProvider rather
than NetworkFactory. The name of the class is purposefully unchanged to
make the code review easier (it will be changed to
EthernetNetworkProvider in a follow up).

As part of the conversion, NetworkInterfaceState now registers a
NetworkOffer when the link comes up and unregisters it when the link
goes down. It updates the existing offer when capabilities change (by
calling registerNetworkOffer with an already registered
NetworkOfferCallback).

This change should fix existing refCount issues. When a NetworkOffer is
first registered, it receives callbacks for all existing requests. This
is the main problem with the NetworkFactory implementation where only
one NetworkOffer is registered when the factory is first created; so
when interfaces come up, they do not receive callbacks for existing
requests.

Test: atest EthernetNetworkTest
Bug: 197548738
Change-Id: I5e8e4673d2ed04bc1a0c8d232a8772edfff65b5d
Merged-In: I5e8e4673d2ed04bc1a0c8d232a8772edfff65b5d
2022-05-25 11:50:30 -07:00
..
common Merge changes from topic "stats-migration" into tm-dev 2022-05-19 14:54:01 +00:00
cts Improve waiting for interface added or removed 2022-05-25 11:50:30 -07:00
deflake DO NOT MERGE: Disable FrameworksNetTests 2021-10-04 18:59:14 +08:00
integration Workaround prebuilt name conflict for service-connectivity 2022-05-20 15:06:27 +00:00
mts bpf_existence_test: block & dscp_policy progs require 5.4+ kernel 2022-05-19 13:52:09 +00:00
native Merge "ConnectivityNativeBinderTest: Check Kernel Version" 2022-04-21 00:00:14 +00:00
smoketest Workaround prebuilt name conflict for service-connectivity 2022-05-20 15:06:27 +00:00
unit Move EthernetNetworkFactory to using the NetworkProvider API 2022-05-25 11:50:30 -07:00