Searched refs:versionString (Results 1 – 4 of 4) sorted by relevance
76 protected static int resolveVersionString(String versionString) { in resolveVersionString() argument79 return Integer.parseInt(versionString); in resolveVersionString()83 Field versionField = VersionCodes.class.getField(versionString.toUpperCase()); in resolveVersionString()88 Field versionField = Build.VERSION_CODES.class.getField(versionString.toUpperCase()); in resolveVersionString()92 String.format("Failed to parse version string %s", versionString), e); in resolveVersionString()
61 public static Version parse(String versionString) { in parse() argument62 if (TextUtils.isEmpty(versionString)) { in parse()66 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in parse()79 public static boolean isValidVersion(String versionString) { in isValidVersion() argument80 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in isValidVersion()
62 final String versionString = matcher.group(3).trim(); in testPackageServiceDump() local79 assertEquals(testPackage.getVersionString(), versionString); in testPackageServiceDump() local
897 private int parseSystemOsVersion(String versionString) { in parseSystemOsVersion() argument898 Matcher matcher = OS_VERSION_STRING_PATTERN.matcher(versionString); in parseSystemOsVersion()