Lines Matching defs:scheme

40  * match against actions, categories, and data (either via its type, scheme,
61 * itself divided into three attributes: type, scheme, authority, and path.
63 * specified must match the contents of the Intent. If you specify a scheme
66 * that is supplied by their content provider. Specifying a type with no scheme
86 * <strong>data scheme+authority+path</strong> if specified) must match
104 * Intent data's scheme.
105 * The Intent scheme is determined by calling {@link Intent#getData}
107 * <em>Note that scheme matching here is <b>case sensitive</b>, unlike
112 * the Intent's data scheme specific part <em>and</em> one of the data schemes in the filter
113 * has matched the Intent, <em>or</em> no scheme specific parts were supplied in the filter.
114 * The Intent scheme specific part is determined by calling
116 * <em>Note that scheme specific part matching is <b>case sensitive</b>.</em>
128 * Intent's data path <em>and</em> both a scheme and authority in the filter
148 private static final String SCHEME_STR = "scheme";
204 * The filter matched an intent with the same data URI scheme.
208 * The filter matched an intent with the same data URI scheme and
213 * The filter matched an intent with the same data URI scheme and
218 * The filter matched an intent with the same data URI scheme,
223 * The filter matched an intent with the same data URI scheme and
224 * scheme specific part.
516 * one of these types <em>or</em> a matching scheme. If no data types
589 * Add a new Intent data scheme to match against. If any schemes are
594 * <p><em>Note: scheme matching in the Android framework is
600 * @param scheme Name of the scheme to match, i.e. "http".
604 public final void addDataScheme(String scheme) {
606 if (!mDataSchemes.contains(scheme)) {
607 mDataSchemes.add(scheme.intern());
619 * Return a data scheme in the filter.
626 * Is the given data scheme included in the filter? Note that if the
627 * filter does not include any scheme, false will <em>always</em> be
630 * @param scheme The data scheme to look for.
632 * @return True if the scheme is explicitly mentioned in the filter.
634 public final boolean hasDataScheme(String scheme) {
635 return mDataSchemes != null && mDataSchemes.contains(scheme);
721 * Add a new Intent data "scheme specific part" to match against. The filter must
723 * scheme specific part to be considered. If any scheme specific parts are
725 * them. If no scheme specific parts are included, then only the scheme must match.
727 * <p>The "scheme specific part" that this matches against is the string returned
733 * are empty, so this is the only way to match against the non-scheme part.</p>
735 * @param ssp Either a raw string that must exactly match the scheme specific part
758 * Return the number of data scheme specific parts in the filter.
765 * Return a data scheme specific part in the filter.
772 * Is the given data scheme specific part included in the filter? Note that if the
773 * filter does not include any scheme specific parts, false will <em>always</em> be
776 * @param data The scheme specific part that is being looked for.
778 * @return Returns true if the data string matches a scheme specific part listed in the
796 * Return an iterator over the filter's data scheme specific parts.
807 * them. If no authorities are included, then only the scheme must match.
876 * them. If no paths are included, then only the scheme/authority must
925 * @param data The data path to look for. This is without the scheme
954 * the data scheme -- unlike {@link #matchData}, the authority will match
955 * regardless of whether there is a matching scheme.
978 * Match this filter against an Intent's data (type, scheme and path). If
982 * it will implicitly match intents with no scheme, or the schemes "content:"
988 * scheme the authority is in. To match against a data path, both a scheme
994 * <p><em>Note: MIME type, Uri scheme, and host name matching in the
1003 * @param scheme The desired data scheme to look for, as returned by
1011 * or {@link #NO_MATCH_DATA} if the scheme/path didn't match.
1015 public final int matchData(String type, String scheme, Uri data) {
1027 if (schemes.contains(scheme != null ? scheme : "")) {
1063 // or with a scheme: URI. This is to give a convenience for
1067 if (scheme != null && !"".equals(scheme)
1068 && !"content".equals(scheme)
1069 && !"file".equals(scheme)) {
1186 * {@link #NO_MATCH_DATA} if the scheme/path didn't match,
1211 * @param scheme The data scheme to match against (Intent.getScheme()).
1220 * {@link #NO_MATCH_DATA} if the scheme/path didn't match,
1231 public final int match(String action, String type, String scheme,
1239 int dataMatch = matchData(type, scheme, data);
1247 Log.v(logTag, "No matching scheme/path " + data