summaryrefslogtreecommitdiff
path: root/service/src/com/android/server/connectivity/NetworkOffer.java
Commit message (Collapse)AuthorAgeFilesLines
* Improve dumpsys logs for NetworkProvider and NetworkOfferJunyu Lai2022-04-201-1/+7
| | | | | | | | | | | | | | | | It will look like below: NetworkProviders for: 2: WIFI_AWARE_FACTORY 1: Ethernet Network Offers: NetworkOffer [ Provider Id (1) Score(...) Caps [...] Needed by [1, 2, 3]] NetworkOffer [ Provider Id (2) Score(...) Caps [...] Needed by [4, 5, 6]] Test: manual Bug: 227408533 Change-Id: I84cb03757877d7127d39c359010c8092a8ca87d9
* Consider NetworkOffer is unneeded if it cannot satisfy the requestJunyu Lai2021-06-281-1/+1
| | | | | | | | | | | | | | | | | | | Currently, to prevent from network connect-teardown-loops that caused by inaccurate reports, e.g. the provider always provides a better network than the offer, the NetworkOffer is considered needed if its provider is currently serving the request. This is because there is no accurate way to know whether the offer is corresponding to the network that is currently serving the request. However, if the offer cannot even satisfies the request, consider the offer is needed does not make any sense. Since it can never be the one that currently serving the request, nor be the one that might beat current satisfier. Test: android.net.NetworkProviderTest Bug: 189074532 Change-Id: Ie3ea59f980c3767782b8e6b03e401c02f664f9bd
* Fix a bug where updates of offers won't find existing offersChalard Jean2021-06-081-1/+1
| | | | | | | | | | | | .equals() only work on cross-process Binder instances if casted to a Binder instance first. Bug: 184281544 Test: ConnectivityServiceTest. CTS test for this specific issue to come Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Merged-In: I7b9e0df21a3cca59659867a75792289ddee2f1d7 Change-Id: I7b9e0df21a3cca59659867a75792289ddee2f1d7 (cherry-picked from ag/14125149)
* [NS12] Address comments on NS09Chalard Jean2021-06-081-1/+1
| | | | | | | | | Test: ConnectivityServiceTest Fixes: 184507247 Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Merged-In: Ic4500dc85507fa68538c9ec179ec6eb4f44c5022 Change-Id: Ic4500dc85507fa68538c9ec179ec6eb4f44c5022 (cherry-picked from ag/14091168)
* [NS09] Implement the new ranking codeChalard Jean2021-06-071-1/+15
| | | | | | | | | | | | At this stage, this is turned off. Unit tests will be in a followup change. Test: In a followup Bug: 167544279 Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Merged-In: I4448a3546fbc1a3dddf757982c031c5f39ba2889 Change-Id: I4448a3546fbc1a3dddf757982c031c5f39ba2889 (cherry-picked from ag/14010222 with fixes)
* [NS05] Feed network offer callbacksChalard Jean2021-06-071-21/+62
| | | | | | | | | | | | | | | The design is very simply expressed : An offer is needed for a request if and only if that offer might beat the satisfier for that request. The implementation of "might beat" is NetworkRanker#mightBeat. Test: FrameworksNetTests FrameworksWifiTests NetworkStackTests Bug: 167544279 Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Merged-In: I0fe911eef2483ecbac48c733d56283b81538690a Change-Id: I0fe911eef2483ecbac48c733d56283b81538690a (cherry-picked from 7b6a33bd504e88ac051db9511eafe915d80e7539)
* [NS04.5] Have NetworkOffer embark a provider IDChalard Jean2021-06-041-4/+3
| | | | | | | | | | | | | ...instead of a Messenger. This will be useful later to compare whether a given offer is offered by the same provider satisfying a request. Bug: 167544279 Test: ConnectivityServiceTest Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f Merged-In: I975a9439021c7fa511c50ac982819b6dd146291e Change-Id: I975a9439021c7fa511c50ac982819b6dd146291e (cherry-picked from 148dcce559737eab50d7a08b84b81d6a42690702)
* Move connectivity sources to packages/ConnectivityRemi NGUYEN VAN2021-05-131-0/+94
The service-connectivity sources should be in packages/modules/Connectivity. Move them to frameworks/base/packages/Connectivity, so that the whole directory can be moved to the dedicated packages/modules/Connectivity git project. Bug: 186628461 Test: m Merged-In: I26d1a274058fa38763ad4f605549d880865b4d76 Change-Id: Ie0562db92ebee269b901926d763ae907bde61b98