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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user