Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 97) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java274 int match = matchUri(uri); in deleteInTransaction() local
275 selection = addIdToSelection(match, selection); in deleteInTransaction()
276 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs); in deleteInTransaction()
277 return deleteCascade(uri, match, selection, selectionArgs); in deleteInTransaction()
293 int match = matchUri(uri); in insertInTransaction() local
294 validateMatchTable(match); in insertInTransaction()
295 String table = getTableFromMatch(match, uri); in insertInTransaction()
317 int match = matchUri(uri); in query() local
318 selection = addIdToSelection(match, selection); in query()
319 selectionArgs = addIdToSelectionArgs(match, uri, selectionArgs); in query()
[all …]
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider.java756 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 == URI_MATCH_BOOKMARKS_SUGGEST);
774 if (match == URI_MATCH_BOOKMARKS_ID || match == URI_MATCH_SEARCHES_ID) {
778 Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_NAMES[match % 10], projection,
831 int match = URI_MATCHER.match(url);
832 switch (match) {
858 int match = URI_MATCHER.match(url);
860 switch (match) {
[all …]
DBrowserProvider2.java831 final int match = URI_MATCHER.match(uri); in getType() local
832 switch (match) { in getType()
882 final int match = URI_MATCHER.match(uri); in query() local
886 switch (match) { in query()
910 if (match == BOOKMARKS_ID) { in query()
916 } else if (match == BOOKMARKS_FOLDER_ID) { in query()
1087 if ((match == LEGACY || match == LEGACY_ID) in query()
1277 final int match = URI_MATCHER.match(uri); in deleteInTransaction() local
1280 switch (match) { in deleteInTransaction()
1420 int match = URI_MATCHER.match(uri); in insertInTransaction() local
[all …]
DSnapshotProvider.java157 final int match = URI_MATCHER.match(uri); in query() local
160 switch (match) { in query()
191 int match = URI_MATCHER.match(uri); in insert() local
193 switch (match) { in insert()
240 int match = URI_MATCHER.match(uri); in delete() local
242 switch (match) { in delete()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java101 int match = sURLMatcher.match(uri); in query() local
103 Log.v(TAG, "Query uri=" + uri + ", match=" + match); in query()
106 switch (match) { in query()
133 + getMessageBoxByMatch(match)); in query()
259 int match = sURLMatcher.match(uri); in getType() local
260 switch (match) { in getType()
312 int match = sURLMatcher.match(uri); in insert() local
314 Log.v(TAG, "Insert uri=" + uri + ", match=" + match); in insert()
318 switch (match) { in insert()
428 if (match == MMS_MSG_PART) { in insert()
[all …]
DTelephonyProvider.java1210 boolean match = false; in separateRowsNeeded()
1218 match = true; in separateRowsNeeded()
1223 if (!match) return false; in separateRowsNeeded()
1560 int match = s_urlMatcher.match(url); in query() local
1561 switch (match) { in query()
1634 if (match != URL_SIMINFO) { in query()
1682 switch (s_urlMatcher.match(url)) { in getType()
1710 int match = s_urlMatcher.match(url); in insert() local
1712 switch (match) in insert()
1860 int match = s_urlMatcher.match(url); in delete() local
[all …]
DSmsProvider.java115 int match = sURLMatcher.match(url); in query() local
116 switch (match) { in query()
403 int match = sURLMatcher.match(url); in insertInner() local
406 switch (match) { in insertInner()
590 int match = sURLMatcher.match(url); in delete() local
592 switch (match) { in delete()
683 switch (sURLMatcher.match(url)) { in update()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java189 int match = sURIMatcher.match(uri); in getType() local
190 switch (match) { in getType()
229 if (sURIMatcher.match(uri) != SHARES) { in insert()
302 int match = sURIMatcher.match(uri); in query() local
303 switch (match) { in query()
381 int match = sURIMatcher.match(uri); in update() local
382 switch (match) { in update()
387 if (match == SHARES) { in update()
395 if (match == SHARES_ID) { in update()
422 int match = sURIMatcher.match(uri); in delete() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryProvider.java171 case 1: return sUriMatcherV1.match(uri); in matchUri()
172 case 2: return sUriMatcherV2.match(uri); in matchUri()
199 final int match = matchUri(uri); in getType() local
200 switch (match) { in getType()
231 final int match = matchUri(uri); in query() local
232 switch (match) { in query()
294 final int match = matchUri(uri); in openAssetFile() local
295 if (DICTIONARY_V1_DICT_INFO != match && DICTIONARY_V2_DATAFILE != match) { in openAssetFile()
437 final int match = matchUri(uri); in delete() local
438 if (DICTIONARY_V1_DICT_INFO == match || DICTIONARY_V2_DATAFILE == match) { in delete()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DTestProvider.java128 int match = sURIMatcher.match(uri); in insert() local
129 if (match == UriMatcher.NO_MATCH) { in insert()
147 final int match = sURIMatcher.match(uri(uri)); in query() local
149 switch (match) { in query()
185 final int match = sURIMatcher.match(uri(uri)); in update() local
188 switch (match) { in update()
226 switch(match) { in update()
/packages/apps/Messaging/build/
Dprocess_style_output.py29 match = PATTERN.match(line) variable
30 if match:
31 filename = match.group("file");
34 message = match.group("message")
37 …print " " + filename + ':' + match.group("line") + (match.group("column") if match.group("column"…
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java120 final int match = sUriMatcher.match(uri); in query() local
125 switch (match) { in query()
172 final int match = sUriMatcher.match(uri); in getType() local
173 switch (match) { in getType()
203 final int match = sUriMatcher.match(uri); in delete() local
204 switch (match) { in delete()
224 final int match = sUriMatcher.match(uri); in update() local
225 switch (match) { in update()
DSuggestionsProvider.java142 String match; in query() local
144 match = cursor.getString(nameIndex); in query()
145 match = !TextUtils.isEmpty(match) ? match : cursor.getString(addressIndex); in query()
148 addRow(new Object[] {0, match, createQuery(match), emptyIcon}); in query()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DRomkanFullKatakana.java187 String match = table.get(key.toString().toLowerCase()); in convert() local
188 if (match != null) { in convert()
190 match = match.toUpperCase(); in convert()
193 if (match.length() == 1) { in convert()
195 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
199 out[0] = new StrSegment(match.substring(0, match.length() - 1), in convert()
201 out[1] = new StrSegment(match.substring(match.length() - 1), in convert()
DRomkan.java183 String match = Romkan.romkanTable.get(key.toString().toLowerCase()); in convert() local
184 if (match != null) { in convert()
186 match = match.toUpperCase(); in convert()
189 if (match.length() == 1) { in convert()
191 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
195 out[0] = new StrSegment(match.substring(0, match.length() - 1), in convert()
197 out[1] = new StrSegment(match.substring(match.length() - 1), in convert()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java478 int match = sURIMatcher.match(uri); in getType() local
479 switch (match) { in getType()
518 int match = sURIMatcher.match(uri); in insert() local
519 if (match != MY_DOWNLOADS) { in insert()
690 notifyContentChanged(uri, match); in insert()
875 int match = sURIMatcher.match(uri); in query() local
876 if (match == -1) { in query()
883 if (match == REQUEST_HEADERS_URI) { in query()
891 SqlSelection fullSelection = getWhereClause(uri, selection, selectionArgs, match); in query()
1106 int match = sURIMatcher.match(uri); in update() local
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java66 int match = sURLMatcher.match(uri); in query() local
67 switch (match) { in query()
111 int match = sURLMatcher.match(uri); in getType() local
112 switch (match) { in getType()
135 switch (sURLMatcher.match(uri)) { in update()
168 switch (sURLMatcher.match(uri)) { in insert()
192 switch (sURLMatcher.match(uri)) { in delete()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java379 public static CharMatcher is(final char match) { in is() argument
382 return c == match; in is()
387 return sequence.toString().replace(match, replacement); in is()
390 return other.matches(match) ? this : NONE; in is()
393 return other.matches(match) ? other : super.or(other); in is()
396 return isNot(match); in is()
399 table.set(match); in is()
413 public static CharMatcher isNot(final char match) {
416 return c != match;
420 return other.matches(match) ? super.and(other) : other;
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DProfileAwareUriMatcher.java115 int match = match(uri); in mapsToProfile() local
116 if (PROFILE_URIS.contains(match)) { in mapsToProfile()
118 } else if (PROFILE_URI_ID_MAP.containsKey(match)) { in mapsToProfile()
119 int idSegment = PROFILE_URI_ID_MAP.get(match); in mapsToProfile()
124 } else if (PROFILE_URI_LOOKUP_KEY_MAP.containsKey(match)) { in mapsToProfile()
125 int lookupKeySegment = PROFILE_URI_LOOKUP_KEY_MAP.get(match); in mapsToProfile()
DLegacyApiSupport.java781 final int match = sUriMatcher.match(uri); in insert() local
783 switch (match) { in insert()
947 int match = sUriMatcher.match(uri); in update() local
949 switch(match) { in update()
971 count = updateAll(uri, match, values, selection, selectionArgs); in update()
982 private int updateAll(Uri uri, final int match, ContentValues values, String selection, in updateAll() argument
993 count += update(match, id, values); in updateAll()
1002 public int update(int match, long id, ContentValues values) { in update() argument
1004 switch(match) { in update()
1527 final int match = sUriMatcher.match(uri); in delete() local
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2200 int match = URI_MATCHER.match(uri); in canonicalize() local
2203 if (match != AUDIO_MEDIA_ID) { in canonicalize()
2233 int match = URI_MATCHER.match(uri); in uncanonicalize() local
2234 if (match != AUDIO_MEDIA_ID) { in uncanonicalize()
2292 int table = URI_MATCHER.match(uri); in query()
2756 switch (URI_MATCHER.match(url)) { in getType()
2858 int match = URI_MATCHER.match(uri); in bulkInsert() local
2859 if (match == VOLUMES) { in bulkInsert()
2872 if (match == AUDIO_PLAYLISTS_ID || match == AUDIO_PLAYLISTS_ID_MEMBERS) { in bulkInsert()
2874 } else if (match == MTP_OBJECT_REFERENCES) { in bulkInsert()
[all …]
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSmsUtils.java79 final Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec() local
81 if (match.matches()) { in extractAddrSpec()
82 return match.group(2); in extractAddrSpec()
99 final Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress() local
100 return match.matches(); in isEmailAddress()
114 final Matcher match = Patterns.PHONE.matcher(number); in isPhoneNumber() local
115 return match.matches(); in isPhoneNumber()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java370 int match = sURIMatcher.match(uri); in findMatch() local
371 if (match < 0) { in findMatch()
374 LogUtils.v(TAG, methodName + ": uri=" + uri + ", match is " + match); in findMatch()
376 return match; in findMatch()
632 final int match = findMatch(uri, "delete"); in delete() local
639 final int table = match >> BASE_SHIFT; in delete()
647 if (match == MESSAGE_ID || match == SYNCED_MESSAGE_ID) { in delete()
652 switch (match) { in delete()
696 switch (match) { in delete()
710 if (match == SYNCED_MESSAGE_ID) { in delete()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
DPduCache.java134 int match = URI_MATCHER.match(uri); in purge() local
135 switch (match) { in purge()
153 purgeByMessageBox(MATCH_TO_MSGBOX_ID_MAP.get(match)); in purge()
188 int match = URI_MATCHER.match(uri); in normalizeKey() local
191 switch (match) { in normalizeKey()
/packages/providers/CalendarProvider/
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)

1234