Loading Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ java_library { "NetworkStackApi31Shims", "framework-bluetooth", "framework-connectivity", "framework-connectivity-tiramisu.stubs.module_lib", "framework-connectivity-t.stubs.module_lib", "framework-tethering", ], sdk_version: "module_current", Loading apishim/29/com/android/networkstack/apishim/api29/Ikev2VpnProfileShimImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -25,10 +25,10 @@ import com.android.networkstack.apishim.common.UnsupportedApiLevelException; */ public class Ikev2VpnProfileShimImpl<T> implements Ikev2VpnProfileShim<T> { /** * @see Ikev2VpnProfile#getRequiresInternetValidation(boolean) * @see Ikev2VpnProfile#isInternetValidationRequired(boolean) */ @Override public boolean getRequiresInternetValidation(T profile) public boolean isInternetValidationRequired(T profile) throws UnsupportedApiLevelException { throw new UnsupportedApiLevelException("Only supported from API level 33."); } Loading apishim/29/com/android/networkstack/apishim/api29/NetworkAgentConfigShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ import com.android.networkstack.apishim.common.NetworkAgentConfigShim; */ public class NetworkAgentConfigShimImpl implements NetworkAgentConfigShim { @Override public boolean getVpnRequiresValidation() { public boolean isVpnValidationRequired() { return false; } } apishim/33/com/android/networkstack/apishim/Ikev2VpnProfileShimImpl.java +3 −3 Original line number Diff line number Diff line Loading @@ -44,10 +44,10 @@ public class Ikev2VpnProfileShimImpl } /** * @see Ikev2VpnProfile#getRequiresInternetValidation() * @see Ikev2VpnProfile#isInternetValidationRequired() */ @Override public boolean getRequiresInternetValidation(@NonNull final Ikev2VpnProfile profile) { return profile.getRequiresInternetValidation(); public boolean isInternetValidationRequired(@NonNull final Ikev2VpnProfile profile) { return profile.isInternetValidationRequired(); } } apishim/33/com/android/networkstack/apishim/NetworkAgentConfigShimImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -46,11 +46,11 @@ public class NetworkAgentConfigShimImpl } @Override public boolean getVpnRequiresValidation() { public boolean isVpnValidationRequired() { if (null == mNetworkAgentConfig) { return false; } else { return mNetworkAgentConfig.getVpnRequiresValidation(); return mNetworkAgentConfig.isVpnValidationRequired(); } } Loading Loading
Android.bp +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ java_library { "NetworkStackApi31Shims", "framework-bluetooth", "framework-connectivity", "framework-connectivity-tiramisu.stubs.module_lib", "framework-connectivity-t.stubs.module_lib", "framework-tethering", ], sdk_version: "module_current", Loading
apishim/29/com/android/networkstack/apishim/api29/Ikev2VpnProfileShimImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -25,10 +25,10 @@ import com.android.networkstack.apishim.common.UnsupportedApiLevelException; */ public class Ikev2VpnProfileShimImpl<T> implements Ikev2VpnProfileShim<T> { /** * @see Ikev2VpnProfile#getRequiresInternetValidation(boolean) * @see Ikev2VpnProfile#isInternetValidationRequired(boolean) */ @Override public boolean getRequiresInternetValidation(T profile) public boolean isInternetValidationRequired(T profile) throws UnsupportedApiLevelException { throw new UnsupportedApiLevelException("Only supported from API level 33."); } Loading
apishim/29/com/android/networkstack/apishim/api29/NetworkAgentConfigShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ import com.android.networkstack.apishim.common.NetworkAgentConfigShim; */ public class NetworkAgentConfigShimImpl implements NetworkAgentConfigShim { @Override public boolean getVpnRequiresValidation() { public boolean isVpnValidationRequired() { return false; } }
apishim/33/com/android/networkstack/apishim/Ikev2VpnProfileShimImpl.java +3 −3 Original line number Diff line number Diff line Loading @@ -44,10 +44,10 @@ public class Ikev2VpnProfileShimImpl } /** * @see Ikev2VpnProfile#getRequiresInternetValidation() * @see Ikev2VpnProfile#isInternetValidationRequired() */ @Override public boolean getRequiresInternetValidation(@NonNull final Ikev2VpnProfile profile) { return profile.getRequiresInternetValidation(); public boolean isInternetValidationRequired(@NonNull final Ikev2VpnProfile profile) { return profile.isInternetValidationRequired(); } }
apishim/33/com/android/networkstack/apishim/NetworkAgentConfigShimImpl.java +2 −2 Original line number Diff line number Diff line Loading @@ -46,11 +46,11 @@ public class NetworkAgentConfigShimImpl } @Override public boolean getVpnRequiresValidation() { public boolean isVpnValidationRequired() { if (null == mNetworkAgentConfig) { return false; } else { return mNetworkAgentConfig.getVpnRequiresValidation(); return mNetworkAgentConfig.isVpnValidationRequired(); } } Loading