Home
last modified time | relevance | path

Searched refs:VERSION (Results 1 – 25 of 47) sorted by relevance

12

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DApiLevelUtil.java29 return Build.VERSION.SDK_INT < version; in isBefore()
33 return Build.VERSION.SDK_INT < resolveVersionString(version); in isBefore()
37 return Build.VERSION.SDK_INT > version; in isAfter()
41 return Build.VERSION.SDK_INT > resolveVersionString(version); in isAfter()
45 return Build.VERSION.SDK_INT >= version; in isAtLeast()
49 return Build.VERSION.SDK_INT > resolveVersionString(version); in isAtLeast()
53 return Build.VERSION.SDK_INT <= version; in isAtMost()
57 return Build.VERSION.SDK_INT <= resolveVersionString(version); in isAtMost()
61 return Build.VERSION.SDK_INT; in getApiLevel()
65 return Build.VERSION.CODENAME.equalsIgnoreCase(name.trim()); in codenameEquals()
[all …]
DPropertyUtil.java80 return (firstApiLevel == INT_VALUE_IF_UNSET) ? Build.VERSION.SDK_INT : firstApiLevel; in getFirstApiLevel()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DGenericDeviceInfo.java82 store.addResult(BUILD_VERSION_RELEASE, Build.VERSION.RELEASE); in collectDeviceInfo()
83 store.addResult(BUILD_VERSION_SDK, Build.VERSION.SDK); in collectDeviceInfo()
88 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in collectDeviceInfo()
94 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in collectDeviceInfo()
95 store.addResult(BUILD_VERSION_BASE_OS, Build.VERSION.BASE_OS); in collectDeviceInfo()
96 store.addResult(BUILD_VERSION_SECURITY_PATCH, Build.VERSION.SECURITY_PATCH); in collectDeviceInfo()
DVintfDeviceInfo.java38 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { in collectDeviceInfo()
69 if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O_MR1) { in collectDeviceInfo()
DVintfFilesCollector.java46 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { in testCollectVintfFiles()
DFeatureDeviceInfo.java56 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { in collectDeviceInfo()
/cts/tests/tests/os/src/android/os/cts/
DBuildVersionTest.java47 assertAnyOf("BUILD.VERSION.RELEASE", Build.VERSION.RELEASE, getExpectedReleases()); in testReleaseVersion()
48 assertEquals("Build.VERSION.SDK", "" + EXPECTED_SDK, Build.VERSION.SDK); in testReleaseVersion()
49 assertEquals("Build.VERSION.SDK_INT", EXPECTED_SDK, Build.VERSION.SDK_INT); in testReleaseVersion()
53 assertNotEmpty(Build.VERSION.INCREMENTAL); in testIncremental()
79 assertEquals(Build.VERSION.RELEASE, devicePlatform[1]); in testBuildFingerprint()
DBuildTest.java19 import static android.os.Build.VERSION.CODENAME;
261 "Current SDK version " + Build.VERSION.SDK_INT in testSdkInt()
263 Build.VERSION.SDK_INT >= Build.VERSION_CODES.BASE); in testSdkInt()
265 "First SDK version " + Build.VERSION.FIRST_SDK_INT in testSdkInt()
267 Build.VERSION.FIRST_SDK_INT >= Build.VERSION_CODES.BASE); in testSdkInt()
269 "Current SDK version " + Build.VERSION.SDK_INT in testSdkInt()
270 + " must be at least first SDK version " + Build.VERSION.FIRST_SDK_INT, in testSdkInt()
271 Build.VERSION.SDK_INT >= Build.VERSION.FIRST_SDK_INT); in testSdkInt()
DSecurityPatchTest.java47 mBuildSecurityPatch = Build.VERSION.SECURITY_PATCH; in setUp()
61 if (Build.VERSION.FIRST_SDK_INT <= Build.VERSION_CODES.O) { in testVendorSecurityPatchFound()
76 if (Build.VERSION.FIRST_SDK_INT <= Build.VERSION_CODES.O) { in testSecurityPatchesFormat()
111 if (Build.VERSION.FIRST_SDK_INT <= Build.VERSION_CODES.O) { in testSecurityPatchDates()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsReport.java88 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { in generateResult()
95 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { in generateResult()
96 versionBaseOs = Build.VERSION.BASE_OS; in generateResult()
97 versionSecurityPatch = Build.VERSION.SECURITY_PATCH; in generateResult()
107 Build.VERSION.RELEASE, Integer.toString(Build.VERSION.SDK_INT), in generateResult()
108 versionSecurityPatch, Build.VERSION.INCREMENTAL); in generateResult()
/cts/tests/tests/dpi/src/android/dpi/cts/
DDefaultManifestAttributesSdkTest.java36 assertEquals(Build.VERSION.SDK_INT, getAppInfo().targetSdkVersion); in testPackageHasExpectedSdkVersion()
/cts/tests/tests/media/assets/
Dprog_index.m3u83 #EXT-X-VERSION:3
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
DWifiHelper.java31 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) { in isWifiConnected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleSecureConnectionPriorityClientTestActivity.java42 return (Build.VERSION.SDK_INT > Build.VERSION_CODES.M); in shouldRebootBluetoothAfterTest()
DBleSecureEncryptedClientTestActivity.java42 return (Build.VERSION.SDK_INT > Build.VERSION_CODES.M); in shouldRebootBluetoothAfterTest()
DBleSecureClientStartActivity.java48 return (Build.VERSION.SDK_INT > Build.VERSION_CODES.M); in shouldRebootBluetoothAfterTest()
/cts/tests/tests/content/src/android/content/res/cts/
DPrivateAttributeTest.java33 if (!Build.VERSION.CODENAME.equals("REL")) { in testNoAttributesAfterLastPublicAttribute()
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DSensorDeviceInfo.java42 private static final String VERSION = "version"; field in SensorDeviceInfo
77 store.addResult(VERSION, sensor.getVersion()); in collectDeviceInfo()
/cts/suite/audio_quality/test/
DTaskTest.cpp126 const android::String8 VERSION("version"); in TEST_F() local
128 ASSERT_TRUE(!task->findStringAttributePublic(VERSION, read)); in TEST_F()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
DNfcTestActivity.java64 if ("MNC".equals(Build.VERSION.CODENAME) || Build.VERSION.SDK_INT >= 23) { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DTestReport.java102 xml.attribute(null, "release", Build.VERSION.RELEASE); in getContents()
103 xml.attribute(null, "sdk", Integer.toString(Build.VERSION.SDK_INT)); in getContents()
/cts/hostsidetests/theme/app/src/android/theme/app/
DGenerateImagesActivity.java25 import android.os.Build.VERSION;
150 if (theme.apiLevel > VERSION.SDK_INT) { in generateNextImage()
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DApiLevelUtilTest.java36 int version = Build.VERSION.SDK_INT; in testComparisonByInt()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java87 addResult(VERSION_RELEASE, Build.VERSION.RELEASE); in onStart()
88 addResult(VERSION_SDK, Build.VERSION.SDK); in onStart()
89 addResult(VERSION_BASE_OS, Build.VERSION.BASE_OS); in onStart()
90 addResult(VERSION_SECURITY_PATCH, Build.VERSION.SECURITY_PATCH); in onStart()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDynamicSensorDiscoveryTestActivity.java60 if (mSensorManager == null || !(Build.VERSION.SDK_INT > Build.VERSION_CODES.M || in activitySetUp()
61 Build.VERSION.CODENAME.startsWith("N") /* useful when N in dev */) ) { in activitySetUp()

12