Change naming of excludeLocalRoutes

Address API review feedback to change naming of
setExcludedLocalRoutesVpn and getter.

Bug: 217742354
Test: atest FrameworksNetTests
Change-Id: I57bbf55c7aba1c86ec8687d2431a50b37e63c6d0
This commit is contained in:
Chiachang Wang
2022-02-08 15:45:11 +08:00
parent 4b66d4e244
commit f890874970
4 changed files with 8 additions and 8 deletions

View File

@@ -244,7 +244,7 @@ public final class NetworkAgentConfig implements Parcelable {
* @return whether local traffic is excluded from the VPN network.
* @hide
*/
public boolean getExcludeLocalRouteVpn() {
public boolean areLocalRoutesExcludedForVpn() {
return excludeLocalRouteVpn;
}
@@ -472,7 +472,7 @@ public final class NetworkAgentConfig implements Parcelable {
*/
@NonNull
@SystemApi(client = MODULE_LIBRARIES)
public Builder setExcludeLocalRoutesVpn(boolean excludeLocalRoutes) {
public Builder setLocalRoutesExcludedForVpn(boolean excludeLocalRoutes) {
mConfig.excludeLocalRouteVpn = excludeLocalRoutes;
return this;
}