Searched refs:versionString (Results 1 – 4 of 4) sorted by relevance
130 protected static int resolveVersionString(String versionString) { in resolveVersionString() argument133 return Integer.parseInt(versionString); in resolveVersionString()137 Field versionField = VersionCodes.class.getField(versionString.toUpperCase()); in resolveVersionString()142 Field versionField = Build.VERSION_CODES.class.getField(versionString.toUpperCase()); in resolveVersionString()146 String.format("Failed to parse version string %s", versionString), e); in resolveVersionString()
63 public static Version parse(String versionString) { in parse() argument64 if (TextUtils.isEmpty(versionString)) { in parse()68 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in parse()81 public static boolean isValidVersion(String versionString) { in isValidVersion() argument82 Matcher matcher = Pattern.compile(VERSION_PATTERN_STRING).matcher(versionString); in isValidVersion()
169 private int convertVersion(String versionString) { in convertVersion() argument170 if (versionString == null) { in convertVersion()176 String[] parts = versionString.split("\\."); in convertVersion()
1378 private int parseSystemOsVersion(String versionString) { in parseSystemOsVersion() argument1379 Matcher matcher = OS_VERSION_STRING_PATTERN.matcher(versionString); in parseSystemOsVersion()