Home
last modified time | relevance | path

Searched refs:version (Results 1 – 25 of 609) sorted by relevance

12345678910>>...25

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DApiLevelUtil.java34 private static void verifyVersion(int version) { in verifyVersion() argument
35 if (version == Build.VERSION_CODES.CUR_DEVELOPMENT) { in verifyVersion()
36 throw new RuntimeException("Invalid version: " + version); in verifyVersion()
40 public static boolean isBefore(int version) { in isBefore() argument
41 verifyVersion(version); in isBefore()
42 return Build.VERSION.SDK_INT < version; in isBefore()
45 public static boolean isBefore(String version) { in isBefore() argument
46 return isBefore(resolveVersionString(version)); in isBefore()
49 public static boolean isAfter(int version) { in isAfter() argument
50 verifyVersion(version); in isAfter()
[all …]
/cts/tests/tests/car/src/android/car/cts/
DApiVersionTest.java48 ApiVersion<?> version = version(42, 108); in testGetters() local
50 assertWithMessage("%s.getMajorVersion()", version) in testGetters()
51 .that(version.getMajorVersion()).isEqualTo(42); in testGetters()
52 assertWithMessage("%s.getMinorVersion()", version) in testGetters()
53 .that(version.getMinorVersion()).isEqualTo(108); in testGetters()
58 ApiVersion<?> version = version(42); in testGetters_majorOnlyConstructor() local
60 assertWithMessage("%s.getMajorVersion()", version) in testGetters_majorOnlyConstructor()
61 .that(version.getMajorVersion()).isEqualTo(42); in testGetters_majorOnlyConstructor()
62 assertWithMessage("%s.getMinorVersion()", version) in testGetters_majorOnlyConstructor()
63 .that(version.getMinorVersion()).isEqualTo(0); in testGetters_majorOnlyConstructor()
[all …]
DPlatformVersionTest.java37 PlatformVersion version = PlatformVersion.VERSION_CODES.TIRAMISU_0; in testTiramisu_0() local
39 assertWithMessage("TIRAMISU_0").that(version).isNotNull(); in testTiramisu_0()
40 expectWithMessage("TIRAMISU_0.major").that(version.getMajorVersion()) in testTiramisu_0()
42 expectWithMessage("TIRAMISU_0.minor").that(version.getMinorVersion()) in testTiramisu_0()
47 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_0)) in testTiramisu_0()
50 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_1)) in testTiramisu_0()
53 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_2)) in testTiramisu_0()
56 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.TIRAMISU_3)) in testTiramisu_0()
59 .that(version.isAtLeast(PlatformVersion.VERSION_CODES.UPSIDE_DOWN_CAKE_0)) in testTiramisu_0()
64 expectWithMessage("TIRAMISU_0 from enum").that(fromEnum).isSameInstanceAs(version); in testTiramisu_0()
[all …]
DCarVersionTest.java36 CarVersion version = CarVersion.VERSION_CODES.TIRAMISU_0; in testTiramisu_0() local
38 assertWithMessage("TIRAMISU_0").that(version).isNotNull(); in testTiramisu_0()
39 expectWithMessage("TIRAMISU_0.major").that(version.getMajorVersion()) in testTiramisu_0()
41 expectWithMessage("TIRAMISU_0.minor").that(version.getMinorVersion()) in testTiramisu_0()
46 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_0)) in testTiramisu_0()
49 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_1)) in testTiramisu_0()
52 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_2)) in testTiramisu_0()
55 .that(version.isAtLeast(CarVersion.VERSION_CODES.TIRAMISU_3)) in testTiramisu_0()
58 .that(version.isAtLeast(CarVersion.VERSION_CODES.UPSIDE_DOWN_CAKE_0)) in testTiramisu_0()
63 expectWithMessage("TIRAMISU_0 from enum").that(fromEnum).isSameInstanceAs(version); in testTiramisu_0()
[all …]
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DApiLevelUtilTest.java37 int version = Build.VERSION.SDK_INT; in testComparisonByInt() local
39 assertFalse(ApiLevelUtil.isBefore(version - 1)); in testComparisonByInt()
40 assertFalse(ApiLevelUtil.isBefore(version)); in testComparisonByInt()
41 assertTrue(ApiLevelUtil.isBefore(version + 1)); in testComparisonByInt()
43 assertTrue(ApiLevelUtil.isAfter(version - 1)); in testComparisonByInt()
44 assertFalse(ApiLevelUtil.isAfter(version)); in testComparisonByInt()
45 assertFalse(ApiLevelUtil.isAfter(version + 1)); in testComparisonByInt()
47 assertTrue(ApiLevelUtil.isAtLeast(version - 1)); in testComparisonByInt()
48 assertTrue(ApiLevelUtil.isAtLeast(version)); in testComparisonByInt()
49 assertFalse(ApiLevelUtil.isAtLeast(version + 1)); in testComparisonByInt()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/
DAndroid.bp58 "--version-code 100",
59 "--version-name OneHundred",
60 "--replace-version",
81 "--version-code 100",
83 "--version-name OneHundredRevisionTwelve",
84 "--replace-version",
95 // Define a variant with a different version code
102 "--version-code 101",
103 "--version-name OneHundredOne",
104 "--replace-version",
[all …]
/cts/tests/security/src/android/keystore/cts/
DAttestationPackageInfo.java29 private final long version; field in AttestationPackageInfo
31 public AttestationPackageInfo(String packageName, long version) { in AttestationPackageInfo() argument
33 this.version = version; in AttestationPackageInfo()
52 version = Asn1Utils.getLongFromAsn1(sequence.getObjectAt(VERSION_INDEX)); in AttestationPackageInfo()
60 return version; in getVersion()
73 res = Long.compare(version, other.version); in compareTo()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/requiredsplittype/
DAndroid.bp29 "--version-code 100",
30 "--version-name OneHundredRevisionTwelve",
31 "--replace-version",
48 "--version-code 100",
50 "--version-name OneHundredRevisionTen",
51 "--replace-version",
68 "--version-code 100",
70 "--version-name OneHundredRevisionTen",
71 "--replace-version",
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java267 Log.d(TAG, feature.name + "=" + feature.version); in setup()
272 Log.d(TAG, feature.name + "=0x" + Integer.toHexString(feature.version)); in setup()
277 Log.d(TAG, feature.name + "=" + feature.version); in setup()
282 Log.d(TAG, feature.name + "=" + feature.version); in setup()
329 " version " + mVulkanHardwareLevel.version + " is not one of the defined " + in testVulkanHardwareFeatures()
331 mVulkanHardwareLevel.version >= 0 && mVulkanHardwareLevel.version <= 1); in testVulkanHardwareFeatures()
333 " version 0x" + Integer.toHexString(mVulkanHardwareVersion.version) + " is not" + in testVulkanHardwareFeatures()
335 isHardwareVersionAllowed(mVulkanHardwareVersion.version)); in testVulkanHardwareFeatures()
338 " version " + mVulkanHardwareCompute.version + in testVulkanHardwareFeatures()
340 mVulkanHardwareCompute.version == 0); in testVulkanHardwareFeatures()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature_warm/
DAndroid.bp42 "--version-code 100",
43 "--version-name OneHundred",
44 "--replace-version",
64 "--version-code 100",
66 "--version-name OneHundredRevisionTwelve",
67 "--replace-version",
97 "--version-code 100",
99 "--version-name OneHundredRevisionTen",
100 "--replace-version",
/cts/tests/tests/libnativehelper/jni/
Djni_invocation_api_ndk_test.cpp27 vm_args.version = JNI_VERSION_1_6; in TEST_F()
43 vm_args.version = JNI_VERSION_1_6; in TEST_F()
58 for (jint version : versions) { in TEST_F() local
59 EXPECT_EQ(JNI_OK, vmBuf[0]->GetEnv(reinterpret_cast<void**>(&env), version)) in TEST_F()
60 << " for JNI version " << std::hex << version; in TEST_F()
/cts/tools/release-parser/tests/resources/
Dbuild.prop6 ro.build.version.incremental=4904810
7 ro.build.version.sdk=28
8 ro.build.version.preview_sdk=0
9 ro.build.version.codename=REL
10 ro.build.version.all_codenames=REL
11 ro.build.version.release=9
12 ro.build.version.security_patch=2018-08-05
13 ro.build.version.base_os=
14 ro.build.version.min_supported_target_sdk=17
Dandroid.hardware.vulkan.version.xml.pb.txt1 name: "android.hardware.vulkan.version.xml"
10 name: "android.hardware.vulkan.version"
12 name: "version"
Dbuild.prop.pb.txt10 key: "ro.build.version.all_codenames"
18 key: "ro.build.version.codename"
22 key: "ro.build.version.release"
158 key: "ro.build.version.sdk"
162 key: "ro.build.version.min_supported_target_sdk"
170 key: "ro.build.version.incremental"
174 key: "ro.build.version.preview_sdk"
182 key: "ro.build.version.base_os"
186 key: "ro.build.version.security_patch"
/cts/libs/kernelinfo/src/com/android/cts/kernelinfo/
DKernelInfo.kt46 private fun getVersionFromString(version: String): Pair<Int, Int> { in getVersionFromString()
49 val m = versionPattern.matcher(version) in getVersionFromString()
51 fail("Cannot parse kernel version: $version") in getVersionFromString()
81 fun isKernelVersionGreaterThan(version: String): Boolean { in isKernelVersionGreaterThan()
83 return compareMajorMinorVersion(actualVersion, version) > 0 in isKernelVersionGreaterThan()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DPingReflector.java48 int version = mBuf[0] >> 4; in run() local
49 if (version != 4) { in run()
50 Log.e(TAG, "Received packet version: " + version + ". Ignoring."); in run()
54 processPacket(mBuf, version, len, 0); in run()
63 private void processPacket(byte[] buf, int version, int len, int hdrLen) throws IOException { in processPacket() argument
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpMessagesGenerator.java84 Version version = ulpPdu.setVersionToNewInstance(); in generateSuplStartLocalLocationMessage() local
85 version.setMinToNewInstance().setInteger(BigInteger.ZERO); in generateSuplStartLocalLocationMessage()
86 version.setMajToNewInstance().setInteger(BigInteger.valueOf(2)); in generateSuplStartLocalLocationMessage()
87 version.setServindToNewInstance().setInteger(BigInteger.ZERO); in generateSuplStartLocalLocationMessage()
88 ulpPdu.setVersion(version); in generateSuplStartLocalLocationMessage()
155 Version version = ulpPdu.setVersionToNewInstance(); in generateSuplPositionInitLocalLocationMessage() local
156 version.setMinToNewInstance().setInteger(BigInteger.ZERO); in generateSuplPositionInitLocalLocationMessage()
157 version.setMajToNewInstance().setInteger(BigInteger.valueOf(2)); in generateSuplPositionInitLocalLocationMessage()
158 version.setServindToNewInstance().setInteger(BigInteger.ZERO); in generateSuplPositionInitLocalLocationMessage()
159 ulpPdu.setVersion(version); in generateSuplPositionInitLocalLocationMessage()
[all …]
/cts/common/device-side/bedstead/testapp/
DAndroid.bp99 version: {
174 defaults: ["mts-target-sdk-version-current"],
185 defaults: ["mts-target-sdk-version-current"],
197 defaults: ["mts-target-sdk-version-current"],
210 defaults: ["mts-target-sdk-version-current"],
223 defaults: ["mts-target-sdk-version-current"],
236 defaults: ["mts-target-sdk-version-current"],
248 defaults: ["mts-target-sdk-version-current"],
260 defaults: ["mts-target-sdk-version-current"],
272 defaults: ["mts-target-sdk-version-current"],
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java57 int version = featureInfo.version; in collectDeviceInfo() local
58 addFeature(store, featureInfo.name, type, true, version); in collectDeviceInfo()
115 int version) throws Exception { in addFeature() argument
120 store.addResult("version", version); in addFeature()
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/
DAndroid.bp32 // This is the first version of the test app signed with the initial signing
49 // This is the second version of the test app signed with the rotated signing
50 // key with an updated version number. This app is intended to verify that an
69 // This is the third version of the test app signed with the same rotated
89 // This is the second version of the test app signed with the rotated signing
90 // key targeting SDK version 33 for rotation with an updated version number.
112 // This is the third version of the test app signed with the same rotated
113 // signing key as v2 and targeting SDK version 33 for rotation. This app
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/mips64/
DAndroid.bp37 "--version-code 100",
38 "--replace-version",
54 "--version-code 100",
55 "--replace-version",
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/arm64-v8a/
DAndroid.bp38 "--version-code 100",
39 "--replace-version",
55 "--version-code 100",
56 "--replace-version",
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/mips/
DAndroid.bp37 "--version-code 100",
38 "--replace-version",
54 "--version-code 100",
55 "--replace-version",
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/x86/
DAndroid.bp37 "--version-code 100",
38 "--replace-version",
54 "--version-code 100",
55 "--replace-version",
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/armeabi-v7a/
DAndroid.bp37 "--version-code 100",
38 "--replace-version",
54 "--version-code 100",
55 "--replace-version",

12345678910>>...25