Expose local route exclusion API in NetworkAgentConfig
Bug: 184750836 Test: make update-api Test: atest FrameworksNetTests Change-Id: I70470ab3a945570a23607e39d18f9825d9e1d7aa CTS-Coverage-Bug: 184750836
This commit is contained in:
@@ -127,6 +127,7 @@ package android.net {
|
|||||||
|
|
||||||
public static final class NetworkAgentConfig.Builder {
|
public static final class NetworkAgentConfig.Builder {
|
||||||
method @NonNull public android.net.NetworkAgentConfig.Builder setBypassableVpn(boolean);
|
method @NonNull public android.net.NetworkAgentConfig.Builder setBypassableVpn(boolean);
|
||||||
|
method @NonNull public android.net.NetworkAgentConfig.Builder setExcludeLocalRoutesVpn(boolean);
|
||||||
method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
|
method @NonNull public android.net.NetworkAgentConfig.Builder setSubscriberId(@Nullable String);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -425,8 +425,10 @@ public final class NetworkAgentConfig implements Parcelable {
|
|||||||
* Sets whether the local traffic is exempted from VPN.
|
* Sets whether the local traffic is exempted from VPN.
|
||||||
*
|
*
|
||||||
* @return this builder, to facilitate chaining.
|
* @return this builder, to facilitate chaining.
|
||||||
* @hide TODO(184750836): Unhide once the implementation is completed.
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@NonNull
|
||||||
|
@SystemApi(client = MODULE_LIBRARIES)
|
||||||
public Builder setExcludeLocalRoutesVpn(boolean excludeLocalRoutes) {
|
public Builder setExcludeLocalRoutesVpn(boolean excludeLocalRoutes) {
|
||||||
mConfig.excludeLocalRouteVpn = excludeLocalRoutes;
|
mConfig.excludeLocalRouteVpn = excludeLocalRoutes;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user