summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/IpSecAlgorithmTest.java
diff options
context:
space:
mode:
authorpaulhu <paulhu@google.com>2021-04-09 15:55:09 +0800
committerRemi NGUYEN VAN <reminv@google.com>2021-07-05 14:18:26 +0900
commitbee1c6d9cd956899f910945a1ce123219cc2bde0 (patch)
tree7ab9b4f1e8d3d9ccca8301b069a65c316577fa2b /tests/unit/java/android/net/IpSecAlgorithmTest.java
parentf15f2769b49ffaf99058a8841d2e822b59f16a39 (diff)
Replace FIRST_SDK_INT to DEVICE_INITIAL_SDK_INT in Connectivity
Replace all FIRST_SDK_INT usage in Connectivity because it has been renamed to DEVICE_INITIAL_SDK_INT. Bug: 184735771 Test: m CtsNetTestCases Merged-In: I2f155592b08cdbf259a00b035cacb37ca9847e72 (clean cherry-pick) Change-Id: I2f155592b08cdbf259a00b035cacb37ca9847e72
Diffstat (limited to 'tests/unit/java/android/net/IpSecAlgorithmTest.java')
-rw-r--r--tests/unit/java/android/net/IpSecAlgorithmTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/java/android/net/IpSecAlgorithmTest.java b/tests/unit/java/android/net/IpSecAlgorithmTest.java
index cac8c2d941..c2a759b83a 100644
--- a/tests/unit/java/android/net/IpSecAlgorithmTest.java
+++ b/tests/unit/java/android/net/IpSecAlgorithmTest.java
@@ -123,7 +123,7 @@ public class IpSecAlgorithmTest {
@Test
public void testValidationForAlgosAddedInS() throws Exception {
- if (Build.VERSION.FIRST_SDK_INT <= Build.VERSION_CODES.R) {
+ if (Build.VERSION.DEVICE_INITIAL_SDK_INT <= Build.VERSION_CODES.R) {
return;
}
@@ -196,13 +196,13 @@ public class IpSecAlgorithmTest {
private static Set<String> getMandatoryAlgos() {
return CollectionUtils.filter(
ALGO_TO_REQUIRED_FIRST_SDK.keySet(),
- i -> Build.VERSION.FIRST_SDK_INT >= ALGO_TO_REQUIRED_FIRST_SDK.get(i));
+ i -> Build.VERSION.DEVICE_INITIAL_SDK_INT >= ALGO_TO_REQUIRED_FIRST_SDK.get(i));
}
private static Set<String> getOptionalAlgos() {
return CollectionUtils.filter(
ALGO_TO_REQUIRED_FIRST_SDK.keySet(),
- i -> Build.VERSION.FIRST_SDK_INT < ALGO_TO_REQUIRED_FIRST_SDK.get(i));
+ i -> Build.VERSION.DEVICE_INITIAL_SDK_INT < ALGO_TO_REQUIRED_FIRST_SDK.get(i));
}
@Test