Merge "Rename getVpnRequiresValidation to isVpnValidationRequired" am: 978370cb9c
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1991612 Change-Id: I89009e076a9d94d07f7fff30ff146d616bd89bfc
This commit is contained in:
@@ -128,8 +128,8 @@ package android.net {
|
||||
|
||||
public final class NetworkAgentConfig implements android.os.Parcelable {
|
||||
method @Nullable public String getSubscriberId();
|
||||
method public boolean getVpnRequiresValidation();
|
||||
method public boolean isBypassableVpn();
|
||||
method public boolean isVpnValidationRequired();
|
||||
}
|
||||
|
||||
public static final class NetworkAgentConfig.Builder {
|
||||
|
||||
@@ -250,7 +250,7 @@ public final class NetworkAgentConfig implements Parcelable {
|
||||
|
||||
/**
|
||||
* Whether network validation should be performed for this VPN network.
|
||||
* {@see #getVpnRequiresValidation}
|
||||
* {@see #isVpnValidationRequired}
|
||||
* @hide
|
||||
*/
|
||||
private boolean mVpnRequiresValidation = false;
|
||||
@@ -265,7 +265,7 @@ public final class NetworkAgentConfig implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi(client = MODULE_LIBRARIES)
|
||||
public boolean getVpnRequiresValidation() {
|
||||
public boolean isVpnValidationRequired() {
|
||||
return mVpnRequiresValidation;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ class NetworkAgentConfigTest {
|
||||
assertEquals("TEST_NETWORK", config.getLegacyTypeName())
|
||||
if (isAtLeastT()) {
|
||||
assertTrue(config.areLocalRoutesExcludedForVpn())
|
||||
assertTrue(config.getVpnRequiresValidation())
|
||||
assertTrue(config.isVpnValidationRequired())
|
||||
}
|
||||
if (isAtLeastS()) {
|
||||
assertEquals(testExtraInfo, config.getLegacyExtraInfo())
|
||||
|
||||
Reference in New Issue
Block a user