summaryrefslogtreecommitdiff
path: root/common/device/android/net/NetworkFactory.java
Commit message (Collapse)AuthorAgeFilesLines
* Support both R and S+ in NetworkFactoryChalard Jean2021-05-031-255/+47
| | | | | | | | | | | | | | | | | | | | | | NetworkFactory needs to be backwards compatible as it is statically linked by the Wifi module, which needs to run on both R and S. To achieve this, maintain 2 separate implementations called NetworkFactoryImpl (S+) and NetworkFactoryLegacyImpl (R). NetworkFactory itself becomes a shim that delegates to one of these implementations depending on the device's SDK version. Ignore-AOSP-First: Merge in internal first to fix S-on-R test breakages. Bug: 183902758 Test: ClientModeImplTest OemWifiNetworkFactoryTest TelephonyNetworkFactoryTest UntrustedWifiNetworkFactoryTest WifiNetworkFactoryTest Change-Id: I6a08f39ad1633dd7c1582c362c97821e24ce6683
* [NS05] Implement NetworkScore in NetworkFactoryChalard Jean2021-03-251-120/+133
| | | | | Test: FrameworksNetTests FrameworksWifiTests NetworkStackTests Change-Id: I6ec7b49bef74b030687c16bce14c2522431018ab
* Remove unused methodsChalard Jean2021-03-231-15/+3
| | | | | | | Ignore-AOSP-First: mainline-prod in the critical path Test: FrameworksNetTests NetworkStackTests Bug: 167544279 Change-Id: If1b23e27d8fb2b3b484466245268eb6787e58818
* Fix an embarrassing bug... again.Chalard Jean2021-01-151-1/+1
| | | | | | | | | | For the same reason as aosp/1549479, the old method needs to call the new one. It's not enough that they have the same implementation ; when NF calls the old one, it needs to indeed call the overridden new version. Test: TH Change-Id: I5e8700fc7455317da382f2328e3f548b3392ca41
* [NS01.5] Fix an embarrassing bugChalard Jean2021-01-131-2/+2
| | | | | | | | | | | | | The existing implementations override the function with the int, so the default impl of the function with the int has to call the new one, not the other way around. Otherwise, when implementations are migrated to overriding the new one the old code continues to call the function with the int and that wouldn't work as expected if it didn't call the newly overridden method. Test: TH Change-Id: Ic31cec6481781e0185a0ba150be52390597737e7
* [NS01] Add scoreless methods for non-score usersChalard Jean2021-01-121-2/+14
| | | | | Test: FrameworksNetTests NetworkStackTests Change-Id: I9ebd5cf17ec96b3e7c09ff041d65ee88d0b37cbf
* Move utilities to libs/netChalard Jean2020-07-301-0/+410
These files used to be in the network stack directory, but the libs directory is a much more suitable place for them. Also fix a typo : ConcurrentIntepreter → ConcurrentInterpreter Also move {FdEvents,Packet}Reader to internal annotations. That's what they should have been using in the first place anyway. Note that this does not fix preupload issues reported by checkstyle to make review easier. The fixes are in a followup patch to this one. Test: checkbuild Change-Id: I675077fd42cbb092c0e6bd56571f2fc022e582fd