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

123

/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DTypedUriMatcher.java26 public T match(Uri uri); method in interface:TypedUriMatcher
H A DTypedUriMatcherImpl.java53 public T match(Uri uri) { method in class:TypedUriMatcherImpl
54 int match = mUriMatcher.match(uri);
55 if (match == UriMatcher.NO_MATCH) {
58 return mValues[match];
/packages/apps/Email/src/com/android/email/mail/internet/
H A DEmailHtmlUtil.java36 Matcher match = pattern.matcher(text);
38 if (match.find()) {
42 int start = match.start();
44 end = match.end();
61 } while (match.find());
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileAwareUriMatcher.java58 * @param code the code to match for the root URI
104 * 3. The URI contains lookup key references that match the special profile lookup key.
109 int match = match(uri);
110 if (PROFILE_URIS.contains(match)) {
112 } else if (PROFILE_URI_ID_MAP.containsKey(match)) {
113 int idSegment = PROFILE_URI_ID_MAP.get(match);
118 } else if (PROFILE_URI_LOOKUP_KEY_MAP.containsKey(match)) {
119 int lookupKeySegment = PROFILE_URI_LOOKUP_KEY_MAP.get(match);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DSecureSource.java38 return (SECURE_ALBUM == mMatcher.match(Path.fromString(path)));
43 switch (mMatcher.match(path)) {
H A DComboSource.java44 switch (mMatcher.match(path)) {
/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoProvider.java258 // match against Photos._ID
261 // match against Albums._ID
264 // match against metadata/<Metadata._ID>
267 // match against Accounts._ID
274 int match = matchUri(uri);
275 selection = addIdToSelection(match, selection);
276 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs);
277 return deleteCascade(uri, match, selection, selectionArgs);
293 int match = matchUri(uri);
294 validateMatchTable(match);
350 addIdToSelection(int match, String selection) argument
364 addIdToSelectionArgs(int match, Uri uri, String[] selectionArgs) argument
390 getTableFromMatch(int match, Uri uri) argument
477 deleteCascade(Uri uri, int match, String selection, String[] selectionArgs) argument
506 validateMatchTable(int match) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DSuggestionsProvider.java135 * match.
155 String match;
157 match = cursor.getString(nameIndex);
158 match = !TextUtils.isEmpty(match) ? match : cursor.getString(addressIndex);
161 addRow(new Object[] {0, match, createQuery(match), emptyIcon});
178 // Append the match as well.
H A DEmlAttachmentProvider.java116 final int match = sUriMatcher.match(uri);
120 switch (match) {
145 final int match = sUriMatcher.match(uri);
146 switch (match) {
176 final int match = sUriMatcher.match(uri);
177 switch (match) {
197 final int match
[all...]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
H A DTestProvider.java128 int match = sURIMatcher.match(uri);
129 if (match == UriMatcher.NO_MATCH) {
147 final int match = sURIMatcher.match(uri(uri));
149 switch (match) {
185 final int match = sURIMatcher.match(uri(uri));
188 switch (match) {
226 switch(match) {
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DRomkan.java183 String match = Romkan.romkanTable.get(key.toString().toLowerCase());
184 if (match != null) {
186 match = match.toUpperCase();
189 if (match.length() == 1) {
191 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to);
195 out[0] = new StrSegment(match.substring(0, match.length() - 1),
197 out[1] = new StrSegment(match.substring(match
[all...]
H A DRomkanFullKatakana.java187 String match = table.get(key.toString().toLowerCase());
188 if (match != null) {
190 match = match.toUpperCase();
193 if (match.length() == 1) {
195 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to);
199 out[0] = new StrSegment(match.substring(0, match.length() - 1),
201 out[1] = new StrSegment(match.substring(match
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppProvider.java202 int match = sURIMatcher.match(uri);
203 switch (match) {
235 if (sURIMatcher.match(uri) != SHARES) {
309 int match = sURIMatcher.match(uri);
310 switch (match) {
396 int match = sURIMatcher.match(uri);
397 switch (match) {
[all...]
/packages/providers/CalendarProvider/
H A Dmaketests.py56 m = TIME.match(s[0])
65 m = TIMEZ.match(s[0])
89 re_dtstart = DTSTART_TZID.match(s)
93 re_dtstart = DTSTART.match(s)
96 re_duration = DURATION.match(s)
99 re_rrule = RRULE.match(s)
/packages/apps/Browser/src/com/android/browser/provider/
H A DSnapshotProvider.java157 final int match = URI_MATCHER.match(uri);
160 switch (match) {
191 int match = URI_MATCHER.match(uri);
193 switch (match) {
240 int match = URI_MATCHER.match(uri);
242 switch (match) {
H A DBrowserProvider.java78 // shared suggestion array index, make sure to match COLUMNS
114 // make sure that these match the index of TABLE_NAMES
117 // (id % 10) should match the table name index
452 * 2. If bookmark/history entries has a match, "Search the web" shows up at
756 int match = URI_MATCHER.match(url);
757 if (match == -1) {
761 if (match == URI_MATCH_SUGGEST || match == URI_MATCH_BOOKMARKS_SUGGEST) {
763 return doSuggestQuery(selection, selectionArgs, match
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockProvider.java66 int match = sURLMatcher.match(uri);
67 switch (match) {
111 int match = sURLMatcher.match(uri);
112 switch (match) {
135 switch (sURLMatcher.match(uri)) {
168 switch (sURLMatcher.match(uri)) {
192 switch (sURLMatcher.match(uri)) {
/packages/apps/Dialer/src/com/android/dialer/list/
H A DSmartDialNumberListAdapter.java83 for (SmartDialMatchPosition match:nameMatches) {
84 view.addNameHighlightSequence(match.start, match.end);
87 mNameMatcher.getQuery() + " " + String.valueOf(match.start));
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProvider.java128 int match = sURIMatcher.match(uri);
129 if (match == UriMatcher.NO_MATCH) {
147 final int match = sURIMatcher.match(uri(uri));
149 switch(match) {
185 final int match = sURIMatcher.match(uri(uri));
188 switch(match) {
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DGoogleSuggestionProvider.java75 int match = mUriMatcher.match(uri);
77 if (match == SEARCH_SUGGEST) {
81 } else if (match == SEARCH_SHORTCUT) {
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsProvider.java79 int match = sURLMatcher.match(uri);
81 Log.v(TAG, "Query uri=" + uri + ", match=" + match);
84 switch (match) {
111 + getMessageBoxByMatch(match));
227 int match = sURLMatcher.match(uri);
228 switch (match) {
278 int match
514 getMessageBoxByMatch(int match) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DDictionaryProvider.java111 // The list of word lists served by this provider that match the client request.
165 case 1: return sUriMatcherV1.match(uri);
166 case 2: return sUriMatcherV2.match(uri);
193 final int match = matchUri(uri);
194 switch (match) {
225 final int match = matchUri(uri);
226 switch (match) {
295 final int match = matchUri(uri);
296 if (DICTIONARY_V1_DICT_INFO != match && DICTIONARY_V2_DATAFILE != match) {
[all...]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastContentProvider.java96 int match = sUriMatcher.match(uri);
97 switch (match) {
134 int match = sUriMatcher.match(uri);
135 switch (match) {
176 * @param selection an optional filter to match rows to update.
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
H A DContactPhotoManager.java179 Long match;
183 match = mPhotoIdCache.get(emailAddress);
184 if (match != null) {
185 photoIds.add(match);
186 photoIdMap.put(match, emailAddress);
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java129 switch (sUriMatcher.match(uri)) {
164 switch (sUriMatcher.match(uri)) {
179 if (sUriMatcher.match(uri) != WORDS) {
224 switch (sUriMatcher.match(uri)) {
248 switch (sUriMatcher.match(uri)) {

Completed in 1490 milliseconds

123