android_packages_modules_Co.../tests/unit
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
..
java Move EthernetNetworkFactory to using the NetworkProvider API 2022-05-25 11:50:30 -07:00
jni remove unneeded inclusions of libbpf_android 2022-02-09 22:10:22 -08:00
res/raw [MS59.2] Add unit test for NetworkStatsDataMigrationUtils 2022-01-26 16:53:06 +00:00
Android.bp Revert "Autogenerate connectivity jarjar rules" 2022-05-18 11:43:11 -07:00
AndroidManifest.xml [SettingsProvider] fix connectivity test 2022-04-20 09:29:40 -07:00
AndroidTest.xml [SettingsProvider] fix connectivity test 2022-04-20 09:29:40 -07:00
jarjar-rules.txt Add jarjar rule for com.android.testutils.TestBpfMap 2022-02-03 22:53:07 +01:00
vpn-jarjar-rules.txt Remove unused service and test dependencies 2021-11-19 21:14:39 +09:00