summaryrefslogtreecommitdiff
path: root/framework/src/android/net/NetworkProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Add documentationChalard Jean2021-04-151-1/+9
| | | | | | Bug: 185121472 Test: doc-only change Change-Id: I5fd68b209959043f6fe15ac34629c51233fea596
* [NS05] Feed network offer callbacksChalard Jean2021-03-251-14/+20
| | | | | | | | | | | | 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 Change-Id: I0fe911eef2483ecbac48c733d56283b81538690a
* [NS04.8] Address comments from NS04 and NS04.5Chalard Jean2021-03-251-26/+27
| | | | | | Bug: 167544279 Test: ConnectivityServiceTest Change-Id: Ia930b3d3e723075cb47e267d589c576ee2d4490f
* [NS04.5] Have NetworkOffer embark a provider IDChalard Jean2021-03-231-1/+5
| | | | | | | | | | ...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 Change-Id: I975a9439021c7fa511c50ac982819b6dd146291e
* [NS04] Introduce Network Offers and their callbacksChalard Jean2021-03-231-1/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces the concept of a network offer that providers send to Connectivity to register for relevant requests. This lets them see only requests that they can hope to satisfy considering their capabilities and score filters. This is meant to replace the filtering mechanism currently implemented by NetworkFactory. The reason for replacing this mechanism is that the old mechanism does caps and score filtering on the factory side, which requires these two filters to be contextless and available system-wide, including in separate processes from the system server. These constraints severely limit and complexify in particular what the score comparisons may look like. In the past the score comparison was only integer-based, making the code duplication not much of a problem, but as this scheme is becoming unsustainable by spreading the complexity of the selection across the entire stack, a centralized mechanism is now necessary. This patch only introduces the new objects and has CS keep track of them, but does not actually use them yet. Followup patches will implement the logic of calling the offer callbacks. Test: FrameworksNetTests NetworkStackTests FrameworksWifiTests Bug: 167544279 Change-Id: Idec1fe8eb4ac6f562bf098e3dd470f11024d04f2
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-0/+162
Files that are planned to be part of the connectivity module are grouped in packages/Connectivity, so they can be built separately and moved in one operation with their history into packages/modules/Connectivity. This places the files in the existing framework-connectivity-sources filegroup instead of the current framework-core-sources filegroup. Both are used the same way in framework-non-updatable-sources. Bug: 171540887 Test: m Change-Id: I62d9d91574ace6f5c4624035d190260c3126b91e