Searched refs:matchAgainst (Results 1 - 2 of 2) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DConstants.java285 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { argument
286 for (String matchType : matchAgainst) {
294 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument
295 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"),
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DMimeUtility.java319 * Returns true if the given mimeType matches the matchAgainst specification. The comparison
320 * ignores case and the matchAgainst string may include "*" for a wildcard (e.g. "image/*").
323 * @param matchAgainst A MIME type to check against. May include wildcards.
326 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument
327 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"),
333 * Returns true if the given mimeType matches any of the matchAgainst specifications. The
334 * comparison ignores case and the matchAgainst strings may include "*" for a wildcard
338 * @param matchAgainst An array of MIME types to check against. May include wildcards.
339 * @return true if the mimeType matches any of the matchAgainst strings
341 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { argument
[all...]

Completed in 61 milliseconds