Home
last modified time | relevance | path

Searched refs:resolveVersionString (Results 1 – 2 of 2) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DApiLevelUtil.java46 return isBefore(resolveVersionString(version)); in isBefore()
55 return isAfter(resolveVersionString(version)); in isAfter()
64 return isAtLeast(resolveVersionString(version)); in isAtLeast()
73 return isAtMost(resolveVersionString(version)); in isAtMost()
86 return isFirstApiBefore(resolveVersionString(version)); in isFirstApiBefore()
95 return isFirstApiAfter(resolveVersionString(version)); in isFirstApiAfter()
103 return isFirstApiAtLeast(resolveVersionString(version)); in isFirstApiAtLeast()
111 return isFirstApiAtMost(resolveVersionString(version)); in isFirstApiAtMost()
130 protected static int resolveVersionString(String versionString) { in resolveVersionString() method in ApiLevelUtil
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DApiLevelUtilTest.java66 assertEquals(ApiLevelUtil.resolveVersionString("GINGERBREAD_MR1"), 10); in testResolveVersionString()
67 assertEquals(ApiLevelUtil.resolveVersionString("10"), 10); in testResolveVersionString()
68 assertEquals(ApiLevelUtil.resolveVersionString("HONEYCOMB"), 11); in testResolveVersionString()
69 assertEquals(ApiLevelUtil.resolveVersionString("11"), 11); in testResolveVersionString()
70 assertEquals(ApiLevelUtil.resolveVersionString("honeycomb_mr1"), 12); in testResolveVersionString()
71 assertEquals(ApiLevelUtil.resolveVersionString("12"), 12); in testResolveVersionString()
76 ApiLevelUtil.resolveVersionString("GINGERBEARD"); in testResolveMisspelledVersionString()