Searched refs:matchAgainst (Results 1 - 3 of 3) sorted by relevance
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | Constants.java | 298 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { argument 299 for (String matchType : matchAgainst) { 307 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument 308 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"),
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | MimeUtility.java | 284 * Returns true if the given mimeType matches the matchAgainst specification. The comparison 285 * ignores case and the matchAgainst string may include "*" for a wildcard (e.g. "image/*"). 288 * @param matchAgainst A MIME type to check against. May include wildcards. 291 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument 292 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"), 298 * Returns true if the given mimeType matches any of the matchAgainst specifications. The 299 * comparison ignores case and the matchAgainst strings may include "*" for a wildcard 303 * @param matchAgainst An array of MIME types to check against. May include wildcards. 304 * @return true if the mimeType matches any of the matchAgainst strings 306 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { argument [all...] |
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
H A D | MimeUtility.java | 283 * Returns true if the given mimeType matches the matchAgainst specification. The comparison 284 * ignores case and the matchAgainst string may include "*" for a wildcard (e.g. "image/*"). 287 * @param matchAgainst A MIME type to check against. May include wildcards. 290 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument 291 Pattern p = Pattern.compile(matchAgainst.replaceAll("\\*", "\\.\\*"), 297 * Returns true if the given mimeType matches any of the matchAgainst specifications. The 298 * comparison ignores case and the matchAgainst strings may include "*" for a wildcard 302 * @param matchAgainst An array of MIME types to check against. May include wildcards. 303 * @return true if the mimeType matches any of the matchAgainst strings 305 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { argument [all...] |
Completed in 552 milliseconds