Merge "Rename getVpnRequiresValidation to isVpnValidationRequired"
This commit is contained in:
@@ -128,8 +128,8 @@ package android.net {
|
|||||||
|
|
||||||
public final class NetworkAgentConfig implements android.os.Parcelable {
|
public final class NetworkAgentConfig implements android.os.Parcelable {
|
||||||
method @Nullable public String getSubscriberId();
|
method @Nullable public String getSubscriberId();
|
||||||
method public boolean getVpnRequiresValidation();
|
|
||||||
method public boolean isBypassableVpn();
|
method public boolean isBypassableVpn();
|
||||||
|
method public boolean isVpnValidationRequired();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class NetworkAgentConfig.Builder {
|
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.
|
* Whether network validation should be performed for this VPN network.
|
||||||
* {@see #getVpnRequiresValidation}
|
* {@see #isVpnValidationRequired}
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
private boolean mVpnRequiresValidation = false;
|
private boolean mVpnRequiresValidation = false;
|
||||||
@@ -265,7 +265,7 @@ public final class NetworkAgentConfig implements Parcelable {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi(client = MODULE_LIBRARIES)
|
@SystemApi(client = MODULE_LIBRARIES)
|
||||||
public boolean getVpnRequiresValidation() {
|
public boolean isVpnValidationRequired() {
|
||||||
return mVpnRequiresValidation;
|
return mVpnRequiresValidation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class NetworkAgentConfigTest {
|
|||||||
assertEquals("TEST_NETWORK", config.getLegacyTypeName())
|
assertEquals("TEST_NETWORK", config.getLegacyTypeName())
|
||||||
if (isAtLeastT()) {
|
if (isAtLeastT()) {
|
||||||
assertTrue(config.areLocalRoutesExcludedForVpn())
|
assertTrue(config.areLocalRoutesExcludedForVpn())
|
||||||
assertTrue(config.getVpnRequiresValidation())
|
assertTrue(config.isVpnValidationRequired())
|
||||||
}
|
}
|
||||||
if (isAtLeastS()) {
|
if (isAtLeastS()) {
|
||||||
assertEquals(testExtraInfo, config.getLegacyExtraInfo())
|
assertEquals(testExtraInfo, config.getLegacyExtraInfo())
|
||||||
|
|||||||
Reference in New Issue
Block a user