diff options
| author | Junyu Lai <junyulai@google.com> | 2019-06-19 07:21:45 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-06-19 07:21:45 -0700 |
| commit | 6ff00fee75a7c4de4f3f4e72a8d34ed5610fd2e0 (patch) | |
| tree | fec3bce27467c2094918047c98cf4b2a376b3a35 /core/java/android | |
| parent | 056eeae27cd6aeef8c2b64f62bca7df48f62e7a4 (diff) | |
| parent | 579a99e55839e576893b945e1fff3aeed82c68f8 (diff) | |
Merge "Move the test of minimum supported keepalive slots to CTS"
am: 579a99e558
Change-Id: Id8083b442a1ef47c06d5779d460724e07118389b
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/net/util/KeepaliveUtils.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/java/android/net/util/KeepaliveUtils.java b/core/java/android/net/util/KeepaliveUtils.java index 569fed1fc994..bfc4563fbf8f 100644 --- a/core/java/android/net/util/KeepaliveUtils.java +++ b/core/java/android/net/util/KeepaliveUtils.java @@ -34,9 +34,6 @@ public final class KeepaliveUtils { public static final String TAG = "KeepaliveUtils"; - // Minimum supported keepalive count per transport if the network supports keepalive. - public static final int MIN_SUPPORTED_KEEPALIVE_COUNT = 3; - public static class KeepaliveDeviceConfigurationException extends AndroidRuntimeException { public KeepaliveDeviceConfigurationException(final String msg) { super(msg); @@ -84,10 +81,7 @@ public final class KeepaliveUtils { throw new KeepaliveDeviceConfigurationException("Invalid transport " + transport); } - // Customized values should be either 0 to indicate the network doesn't support - // keepalive offload, or a positive value that is at least - // MIN_SUPPORTED_KEEPALIVE_COUNT if supported. - if (supported != 0 && supported < MIN_SUPPORTED_KEEPALIVE_COUNT) { + if (supported < 0) { throw new KeepaliveDeviceConfigurationException( "Invalid supported count " + supported + " for " + NetworkCapabilities.transportNameOf(transport)); |
