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
Ignore-AOSP-First: Some files are differnet between aosp and
                   sc-dev on frameworkrs/base.
Change-Id: I2f155592b08cdbf259a00b035cacb37ca9847e72
This commit is contained in:
paulhu
2021-04-09 15:55:09 +08:00
committed by Paul Hu
parent 1de2901818
commit e0f3796bbb

View File

@@ -1398,7 +1398,7 @@ public class ConnectivityManagerTest {
return;
}
final int firstSdk = Build.VERSION.FIRST_SDK_INT;
final int firstSdk = Build.VERSION.DEVICE_INITIAL_SDK_INT;
if (firstSdk < Build.VERSION_CODES.Q) {
Log.i(TAG, "testSocketKeepaliveLimitTelephony: skip test for devices launching"
+ " before Q: " + firstSdk);