Rename getVpnRequiresValidation to isVpnValidationRequired
Update API name from getVpnRequiresValidation to isVpnValidationRequired according to API review feedback. Test: atest FrameworksNetTests Bug: 220129160 Change-Id: I1025f4c35b320c14e872eaffd7ed82658a5f3d0c
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