Searched refs:match (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/core/java/android/os/
H A DPatternMatcher.java26 * Pattern type: the given pattern must exactly match the string it is
32 * Pattern type: the given pattern must match the
40 * In this syntax, you can use the '*' character to match against zero or
42 * character before it is '.' it will match any character. The character
64 public boolean match(String str) { method in class:PatternMatcher
109 static boolean matchPattern(String pattern, String match, int type) { argument
110 if (match == null) return false;
112 return pattern.equals(match);
114 return match.startsWith(pattern);
121 return match
[all...]
H A DUEventObserver.java26 * startObserving() with a match string. The UEvent thread will then call your
27 * onUEvent() method when a UEvent occurs that contains your match string.<p>
86 /** Many to many mapping of string match to observer.
88 * an ArrayList where even elements are the String match and odd
116 public void addObserver(String match, UEventObserver observer) { argument
118 mObservers.add(match);
161 * @param match A substring of the UEvent to match. Use "" to match all
164 public final synchronized void startObserving(String match) { argument
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
H A DSuggestionProvider.java65 int match = sURLMatcher.match(url);
66 switch (match) {
87 int match = sURLMatcher.match(url);
88 switch (match) {
H A DUriMatcherTest.java87 int result = mURLMatcher.match(Uri.parse(uri));
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/
H A DLocalProvider.java90 int match = sURLMatcher.match(url);
91 switch (match) {
119 int match = sURLMatcher.match(url);
120 switch (match) {
134 int match = sURLMatcher.match(url);
136 switch (match) {
/frameworks/base/core/java/android/text/method/
H A DDialerKeyListener.java65 int match = super.lookup(event, content);
67 if (match != 0) {
68 return match;
/frameworks/base/core/java/android/util/
H A DDebugUtils.java58 * @param object any object to match against the ANDROID_OBJECT_FILTER
64 boolean match = false;
88 match |= (value != null ?
101 return match;
/frameworks/base/core/java/android/content/
H A DSyncStateContentProviderHelper.java105 int match = sURIMatcher.match(url);
106 switch (match) {
121 int match = sURIMatcher.match(url);
122 switch (match) {
134 switch (sURIMatcher.match(url)) {
145 switch (sURIMatcher.match(url)) {
H A DIntentFilter.java41 * match against actions, categories, and data (either via its type, scheme,
59 * only match intents that contain no data.
64 * specified must match the contents of the Intent. If you specify a scheme
66 * match; a content: URI will never match because they always have a MIME type
68 * has somewhat special meaning: it will match either an Intent with no URI
70 * then only an Intent with no data or type will match. To specify an authority,
75 * <p>A match is based on the following rules. Note that
76 * for an IntentFilter to match an Intent, three conditions must hold:
77 * the <strong>action</strong> and <strong>category</strong> must match, an
671 public int match(Uri data) { method in class:IntentFilter.AuthorityEntry
1063 public final int match(ContentResolver resolver, Intent intent, method in class:IntentFilter
1098 public final int match(String action, String type, String scheme, method in class:IntentFilter
[all...]
H A DUriMatcher.java72 <p>Then when you need to match match against a URI, call {@link #match}, providing
74 a match. You can use the result to build a query, return a type, insert or
80 int match = sURIMatcher.match(url, NO_MATCH);
81 switch (match)
123 * @param code the code to match for the root URI
142 * Add a URI to match, and the code to return when this URI is
143 * matched. URI nodes may be exact match strin
202 public int match(Uri uri) method in class:UriMatcher
[all...]
H A DSearchRecentSuggestionsProvider.java42 * <i>configures</i> the provider to match the requirements of your searchable activity.</li>
159 * @param authority This must match the authority that you've declared in your manifest.
238 if (mUriMatcher.match(uri) == URI_MATCH_SUGGEST) {
312 if (mUriMatcher.match(uri) == URI_MATCH_SUGGEST) {
/frameworks/base/core/java/com/google/android/mms/util/
H A DPduCache.java120 int match = URI_MATCHER.match(uri);
121 switch (match) {
139 purgeByMessageBox(MATCH_TO_MSGBOX_ID_MAP.get(match));
172 int match = URI_MATCHER.match(uri);
175 switch (match) {
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIccProvider.java93 switch (URL_MATCHER.match(url)) {
140 switch (URL_MATCHER.match(url)) {
159 int match = URL_MATCHER.match(url);
160 switch (match) {
185 switch (match) {
226 int match = URL_MATCHER.match(url);
227 switch (match) {
299 int match
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/content/
H A DMemoryFileProvider.java125 int match = sURLMatcher.match(url);
126 switch (match) {
138 int match = sURLMatcher.match(url);
139 switch (match) {
/frameworks/base/core/java/android/content/pm/
H A DResolveInfo.java21 * The activity that corresponds to this resolution match, if this
28 * The service that corresponds to this resolution match, if this
40 * The declared priority of this match. Comes from the "priority"
55 * IntentFilter. This is a match constant, a combination of
59 public int match; field in class:ResolveInfo
78 * match's label. From the "label" attribute or, if not set, 0.
90 * match's icon. From the "icon" attribute or, if not set, 0.
165 * Return the icon resource identifier to use for this match. If the
166 * match defines an icon, that is used; else if the activity defines
169 * @return The icon associated with this match
[all...]
H A DIPackageManager.aidl170 void addPreferredActivity(in IntentFilter filter, int match,
173 void replacePreferredActivity(in IntentFilter filter, int match,
H A DPackageManager.java897 * must be under a domain you control, with a suffix that will not match
944 * signature: the value is >= 0 if there is a match (or neither package
945 * is signed), or < 0 if there is not a match. The match result can be
972 * signature: the value is >= 0 if there is a match (or neither package
973 * is signed), or < 0 if there is not a match. The match result can be
1114 * Activity. These are ordered from best to worst match -- that
1194 * Retrieve all services that can match the given intent.
1200 * ServiceInfo. These are ordered from best to worst match
1732 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
1752 replacePreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity) argument
[all...]
/frameworks/base/tests/FrameworkTest/tests/src/android/content/
H A DAbstractTableMergerTest.java409 int match = sURIMatcher.match(uri);
410 switch (match) {
427 int match = sURIMatcher.match(uri);
428 switch (match) {
443 int match = sURIMatcher.match(uri);
444 switch (match) {
455 int match
[all...]
/frameworks/base/tools/preload/
H A Dsorttable.js81 if (!headrow[i].className.match(/\bsorttable_nosort\b/)) { // skip this col
82 mtch = headrow[i].className.match(/\bsorttable_([a-z0-9]+)\b/);
173 if (text.match(/^-?[�$�]?[\d,.]+%?$/)) {
179 possdate = text.match(sorttable.DATE_RE)
273 mtch = a[0].match(sorttable.DATE_RE);
278 mtch = b[0].match(sorttable.DATE_RE);
288 mtch = a[0].match(sorttable.DATE_RE);
293 mtch = b[0].match(sorttable.DATE_RE);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiMonitor.java339 Matcher match = mConnectedEventPattern.matcher(data);
340 if (!match.find()) {
343 BSSID = match.group(1);
345 networkId = Integer.parseInt(match.group(2));
/frameworks/base/services/java/com/android/server/
H A DIntentResolver.java201 // the filters that match that MIME type.
210 // completely match or wildcards whose base type matches.
216 // We can match anything with our base type.
237 // the filters that match its scheme (we will further refine matches
288 protected R newResult(F filter, int match) { argument
449 int match;
460 match = filter.match(
462 if (match >= 0) {
463 if (debug) Log.v(TAG, " Filter matched! match
[all...]
/frameworks/base/core/java/android/provider/
H A DTelephony.java1266 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address);
1268 if (match.matches()) {
1269 return match.group(2);
1286 Matcher match = Regex.EMAIL_ADDRESS_PATTERN.matcher(s);
1287 return match.matches();
1301 Matcher match = Regex.PHONE_PATTERN.matcher(number);
1302 return match.matches();
/frameworks/base/core/java/android/text/util/
H A DLinkify.java43 * required. Any pattern match that does not begin with the supplied scheme
135 public final String transformUrl(final Matcher match, String url) {
136 return Regex.digitsAndPlusOnly(match);
142 * what is allowed to match and become a link, and what is not.
145 * http://www.example.com to match, as well as just example.com itelf.
146 * However, you would not want to match against the domain in
148 * might also include a MatchFilter that disallows the match if it is
154 * if the match should be turned into an actionable link.
163 * @return Whether this match should be turned into a link
181 * @param match Th
186 transformUrl(final Matcher match, String url) argument
[all...]
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DSimUnlockScreen.java235 final char match = event.getMatch(DIGITS);
236 if (match != 0) {
237 reportDigit(match - '0');
/frameworks/base/core/java/com/android/internal/app/
H A DResolverActivity.java124 int cat = ri.match&IntentFilter.MATCH_CATEGORY_MASK;
145 if (a.match(data) >= 0) {
158 if (p.match(path)) {
174 if (r.match > bestMatch) bestMatch = r.match;

Completed in 395 milliseconds

12