From b1dc9fc8d85192872441df13169db50483206ed4 Mon Sep 17 00:00:00 2001 From: Chiachang Wang Date: Fri, 18 Feb 2022 13:22:15 +0800 Subject: [PATCH] Rename getRequiresInternetValidation to isInternetValidationRequired Update naming from getRequiresInternetValidation to isInternedValdiationRequired. This addresses API review feedback. Bug: 220129160 Test: atest FrameworksNetTests CTS-Coverage-Bug: 220129160 Change-Id: I9e25890af6ed73538e9e44381bf05d587808c8de --- core/api/current.txt | 2 +- core/java/android/net/PlatformVpnProfile.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 3a8076c932b72..e53dc71eb600d 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -25311,9 +25311,9 @@ package android.net { public abstract class PlatformVpnProfile { method public final boolean areLocalRoutesExcluded(); - method public final boolean getRequiresInternetValidation(); method public final int getType(); method @NonNull public final String getTypeString(); + method public final boolean isInternetValidationRequired(); field public static final int TYPE_IKEV2_IPSEC_PSK = 7; // 0x7 field public static final int TYPE_IKEV2_IPSEC_RSA = 8; // 0x8 field public static final int TYPE_IKEV2_IPSEC_USER_PASS = 6; // 0x6 diff --git a/core/java/android/net/PlatformVpnProfile.java b/core/java/android/net/PlatformVpnProfile.java index c0fb4cf4f3ddf..6b6f1cad2cd86 100644 --- a/core/java/android/net/PlatformVpnProfile.java +++ b/core/java/android/net/PlatformVpnProfile.java @@ -100,7 +100,7 @@ public abstract class PlatformVpnProfile { * always gain the {@link NetworkCapabilities#NET_CAPABILITY_VALIDATED} capability * immediately after it connects, whether it can reach public Internet destinations or not. */ - public final boolean getRequiresInternetValidation() { + public final boolean isInternetValidationRequired() { return mRequiresInternetValidation; }