summaryrefslogtreecommitdiff
path: root/framework/src/android/net/NetworkAgentConfig.java
Commit message (Collapse)AuthorAgeFilesLines
* Add protection for setLocalRoutesExcludedForVpnChiachang Wang2022-03-101-0/+5
| | | | | | | | | | | | | setLocalRoutesExcludedForVpn() was added in T for local route exclusion in VPN. It relies on the behavior change in netd which is inside platform and will not be updated with mainline update. Add protection on setLocalRoutesExcludedForVpn to prevent the API misused on SDK before T. Bug: 223356811 Test: atest FrameworksNetTests Change-Id: Ic2927f5c335ddd0c3defd4c377542ce6907ab435
* Rename getVpnRequiresValidation to isVpnValidationRequiredChiachang Wang2022-03-021-2/+2
| | | | | | | | | Update API name from getVpnRequiresValidation to isVpnValidationRequired according to API review feedback. Test: atest FrameworksNetTests Bug: 220129160 Change-Id: I1025f4c35b320c14e872eaffd7ed82658a5f3d0c
* Change naming of excludeLocalRoutesChiachang Wang2022-02-091-2/+2
| | | | | | | | | Address API review feedback to change naming of setExcludedLocalRoutesVpn and getter. Bug: 217742354 Test: atest FrameworksNetTests Change-Id: I57bbf55c7aba1c86ec8687d2431a50b37e63c6d0
* Add and implement API for VpnManagers to request validationChiachang Wang2022-02-081-2/+50
| | | | | | | | | | This adds a new API that lets VPN apps using VpnManager request that the platform run its basic validation check on the resulting network. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I00092eee857d3e33529b19461cfd5dd060a0fe20
* Expose local route exclusion API in NetworkAgentConfigChiachang Wang2022-01-271-1/+3
| | | | | | | | Bug: 184750836 Test: make update-api Test: atest FrameworksNetTests Change-Id: I70470ab3a945570a23607e39d18f9825d9e1d7aa CTS-Coverage-Bug: 184750836
* Allow VPN network agent to exclude local trafficChiachang Wang2021-12-281-2/+32
| | | | | | | | | | Add API to allow network agent to set whether the local traffic is excluded from the network. This commit is nonfunctional currently but only storing the boolean inside the NAI. Bug: 184750836 Test: atest FrameworksNetTests Change-Id: I3799216ac8fdf22eb4bcabc6c6136d8edbf69360
* Rename APIs in NetworkAgentConfig.BuilderChiachang Wang2021-04-121-8/+10
| | | | | | | | | | | As API review feedback, rename disableProvisioningNotification() to setEnabledProvisioningNotification and disableNat64Detection() to setEnabledNat64Detection. Also, update code in caller side accordingly. Bug: 184735772 Test: make update-api ; atest FrameworksNetTests Change-Id: If7305634863d1503c967e5593ebd0c8af2174bea
* [TL02]Remove hidden API usage of NetworkAgentlifr2021-03-291-3/+42
| | | | | | | | | | | | The connection service will become the mainline module. Remove the hidden API usage of NetworkAgent. Bug: 170598012 CTS-Coverage-Bug: 170598012 Test: atest FrameworksNetTests FrameworksTelephonyTests atest FrameworksWifiTests Change-Id: I4e4040ae7f94bdf479c7df9ec2ffabafbe06331c Merged-In: I4e4040ae7f94bdf479c7df9ec2ffabafbe06331c
* Have a new method in NetworkAgentConfig.Builder to set allowBypasslucaslin2021-03-231-0/+23
| | | | | | | | | Have a new method in NetworkAgentConfig.Builder for Vpn to set allowBypass. Bug: 182963397 Test: m Change-Id: I3f244464438325ee7f8a1b953d3fb28186293628
* [NS03] Mix in other CS-managed propertiesChalard Jean2021-03-191-1/+2
| | | | | | | | These properties are necessary to figure out the maximum score of a network. Test: FrameworksNetTests Change-Id: I48dce20ad4a80597039393dca607e8da829b2a61
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-0/+440
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