summaryrefslogtreecommitdiff
path: root/framework/src/android/net/IpPrefix.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "Unhide IpPrefix(InetAddress, int)""Taras Antoshchuk2021-12-191-2/+0
| | | | | | | | This reverts commit 758ead6dd362f8b7c665603fb9d85038b3f72f27. Reason for revert: Re-landing changes not related to postsubmit failure Change-Id: I2f705549d85af4ba45dc294e0a86d757490b1cd7
* Revert "Unhide IpPrefix(InetAddress, int)"Ayush Sharma2021-12-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | Revert "Add APIs that allow to exclude routes from VPN" Revert "Suppress NewApi warnings for @SystemApi -> public APIs" Revert "Add VpnServiceBuilderShim for VpnService.Builder" Revert submission 1551943-vpn-impl Reason for revert: <DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules_x86_64-userdebug&lkgb=8007224&lkbb=8008168&fkbb=8007902 >, bug b/210979001 Reverted Changes: I0e7aa077a:Add VpnServiceBuilderShim for VpnService.Builder Ib12f5ab39:Suppress NewApi warnings for @SystemApi -> public ... I59b9185cf:Unhide RouteInfo#getType and related fields Ie5b62b2b2:Unhide IpPrefix(InetAddress, int) I993a32d40:Add CTS tests for exclude VPN routes APIs Ib24b2d3fb:Suppress NewApi warnings for @SystemApi -> public ... Ic3b10464a:Add APIs that allow to exclude routes from VPN Change-Id: Id0c373fb042a98c1c68807acf7fcfe456520ebe2 BUG: 210979001
* Unhide IpPrefix(InetAddress, int)Taras Antoshchuk2021-12-131-2/+0
| | | | | | | | | Unhide IpPrefix constructor to allow its usage with the new VpnService.Builder#excludeRoute(IpPrefix) method. Bug: 186082280 Test: atest IpPrefixTest Change-Id: Ie5b62b2b206def1be53a41219681b4a8bc06c1d2
* Replace InetAddress#parseNumericAddresspaulhu2021-03-121-1/+1
| | | | | | | | | | | | | | | | -Connectivity is becoming a mainline module in S but mainline modules are not allowed to use non-formal APIs. Thus, replace non-formal API InetAddress#parseNumericAddress to InetAddresses#parseNumericAddress. - Add deprecated method legacyParseIpAndMask() for IpPrefix and LinkAddress. Because InetAddresses#parseNumericAddress has a little different behavior in some case, but these two classes should keep working as before. So these two classes will use the new deprecated method. Bug: 181756157 Test: FrameworksNetTests Change-Id: I1c96b75f0b8d5e93304a39b4a8c8849964e5e810
* Merge "Move shared methods to net shared lib"Chiachang Wang2021-02-231-3/+5
|\
| * Move shared methods to net shared libChiachang Wang2021-02-031-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The NetworkUtils.getNetworkPart() method is used by Settings and wifi. NetworkUtils is inside the incoming connectivity module. It will become inaccessible outside the module, so move the shared methods to shared lib and also move the related helper method. The corresponding usgae is also updated. Bug: 172183305 Test: atest FrameworksNetTests Change-Id: I47410afa27aad61f63759df41be959f323c1d100
* | Add @Nullable to Object#equals()Roman Kalukiewicz2021-02-051-1/+2
|/ | | | | | | | | | | | This is a partial cherry-pick of change: I5eedb571c9d78862115dfdc5dae1cf2a35343580 for connectivity classes. Bug: 170883422 Test: m Merged-In: I5eedb571c9d78862115dfdc5dae1cf2a35343580 Change-Id: I7dc661863b73f4198ddb4f3a1566583d0f07db3c
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-0/+300
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