Home
last modified time | relevance | path

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

12345678910>>...17

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DApiLevelUtil.java28 public static boolean isBefore(int version) { in isBefore() argument
29 return Build.VERSION.SDK_INT < version; in isBefore()
32 public static boolean isBefore(String version) { in isBefore() argument
33 return Build.VERSION.SDK_INT < resolveVersionString(version); in isBefore()
36 public static boolean isAfter(int version) { in isAfter() argument
37 return Build.VERSION.SDK_INT > version; in isAfter()
40 public static boolean isAfter(String version) { in isAfter() argument
41 return Build.VERSION.SDK_INT > resolveVersionString(version); in isAfter()
44 public static boolean isAtLeast(int version) { in isAtLeast() argument
45 return Build.VERSION.SDK_INT >= version; in isAtLeast()
[all …]
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DApiLevelUtilTest.java36 int version = Build.VERSION.SDK_INT; in testComparisonByInt() local
38 assertFalse(ApiLevelUtil.isBefore(version - 1)); in testComparisonByInt()
39 assertFalse(ApiLevelUtil.isBefore(version)); in testComparisonByInt()
40 assertTrue(ApiLevelUtil.isBefore(version + 1)); in testComparisonByInt()
42 assertTrue(ApiLevelUtil.isAfter(version - 1)); in testComparisonByInt()
43 assertFalse(ApiLevelUtil.isAfter(version)); in testComparisonByInt()
44 assertFalse(ApiLevelUtil.isAfter(version + 1)); in testComparisonByInt()
46 assertTrue(ApiLevelUtil.isAtLeast(version - 1)); in testComparisonByInt()
47 assertTrue(ApiLevelUtil.isAtLeast(version)); in testComparisonByInt()
48 assertFalse(ApiLevelUtil.isAtLeast(version + 1)); in testComparisonByInt()
[all …]
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DPacketReflector.java72 private static void swapAddresses(byte[] buf, int version) { in swapAddresses() argument
74 switch(version) { in swapAddresses()
91 private void processTcpPacket(byte[] buf, int version, int len, int hdrLen) { in processTcpPacket() argument
97 swapAddresses(buf, version); in processTcpPacket()
105 private void processUdpPacket(byte[] buf, int version, int len, int hdrLen) { in processUdpPacket() argument
111 swapAddresses(buf, version); in processUdpPacket()
121 private void processIcmpPacket(byte[] buf, int version, int len, int hdrLen) { in processIcmpPacket() argument
127 if (!(version == 4 && type == ICMP_ECHO) && in processIcmpPacket()
128 !(version == 6 && type == ICMPV6_ECHO_REQUEST)) { in processIcmpPacket()
137 swapAddresses(buf, version); in processIcmpPacket()
[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/tests/tests/graphics/src/android/graphics/cts/
DVulkanFeaturesTest.java83 Log.d(TAG, feature.name + "=" + feature.version); in setup()
88 Log.d(TAG, feature.name + "=0x" + Integer.toHexString(feature.version)); in setup()
93 Log.d(TAG, feature.name + "=" + feature.version); in setup()
131 " version " + mVulkanHardwareLevel.version + " is not one of the defined " + in testVulkanHardwareFeatures()
133 mVulkanHardwareLevel.version >= 0 && mVulkanHardwareLevel.version <= 1); in testVulkanHardwareFeatures()
135 " version 0x" + Integer.toHexString(mVulkanHardwareVersion.version) + " is not" + in testVulkanHardwareFeatures()
137 isHardwareVersionAllowed(mVulkanHardwareVersion.version)); in testVulkanHardwareFeatures()
140 " version " + mVulkanHardwareCompute.version + in testVulkanHardwareFeatures()
142 mVulkanHardwareCompute.version == 0); in testVulkanHardwareFeatures()
150 " version " + mVulkanHardwareLevel.version + " doesn't match best physical device " + in testVulkanHardwareFeatures()
[all …]
/cts/hostsidetests/appsecurity/test-apps/SplitApp/
DAndroid.mk38 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version
69 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundredRevisionTwelve --replace-version
99 LOCAL_AAPT_FLAGS := --version-code 101 --version-name OneHundredOne --replace-version
129 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version
DNativeTemplate.mk26 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/tests/tests/opengl/src/android/opengl/cts/
DEgl14Utils.java49 String version = GLES20.glGetString(GLES20.GL_VERSION); in getMajorVersion() local
51 Matcher matcher = pattern.matcher(version); in getMajorVersion()
86 static EGLContext createEglContext(EGLDisplay eglDisplay, EGLConfig eglConfig, int version) { in createEglContext() argument
87 int[] contextAttributes = { EGL14.EGL_CONTEXT_CLIENT_VERSION, version, EGL14.EGL_NONE }; in createEglContext()
127 static EGLConfig getEglConfig(EGLDisplay eglDisplay, int version) { in getEglConfig() argument
130 if (version == 3) { in getEglConfig()
/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/hostsidetests/appsecurity/test-apps/SplitApp/feature/
DAndroid.mk28 LOCAL_AAPT_FLAGS := --version-code 100 --version-name OneHundred --replace-version
/cts/suite/audio_quality/lib/src/task/
DTaskBatch.cpp56 android::String8 version; in run() local
58 if (!findStringAttribute(STR_NAME, name) || !findStringAttribute(STR_VERSION, version)) { in run()
62 version.string()); in run()
/cts/tests/tests/location/src/android/location/cts/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/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/SplitApp/libs/x86/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/x86_64/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/mips64/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/armeabi/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/mips/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/arm64-v8a/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/hostsidetests/appsecurity/test-apps/SplitApp/libs/armeabi-v7a/
DAndroid.mk30 LOCAL_AAPT_FLAGS := --version-code 100 --replace-version
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/
DScriptC_set_target_api_15.java45 public void invoke_check(int version) { in invoke_check() argument
47 check_fp.addI32(version); in invoke_check()
DScriptC_set_target_api_13.java45 public void invoke_check(int version) { in invoke_check() argument
47 check_fp.addI32(version); in invoke_check()
DScriptC_set_target_api_18.java45 public void invoke_check(int version) { in invoke_check() argument
47 check_fp.addI32(version); in invoke_check()
DScriptC_set_target_api_14.java45 public void invoke_check(int version) { in invoke_check() argument
47 check_fp.addI32(version); in invoke_check()
DScriptC_set_target_api_11.java45 public void invoke_check(int version) { in invoke_check() argument
47 check_fp.addI32(version); in invoke_check()

12345678910>>...17