Home
last modified time | relevance | path

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

12345

/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/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java140 int match = sURLMatcher.match(url); in query() local
141 SQLiteDatabase db = getReadableDatabase(match); in query()
142 switch (match) { in query()
265 if (match == SMS_ALL_ICC) { in query()
276 match == SMS_ALL_ICC ? ICC_URI : ICC_SUBID_URI); in query()
286 if (match == SMS_ICC) { in query()
298 match == SMS_ICC ? ICC_URI : ICC_SUBID_URI); in query()
333 private SQLiteOpenHelper getDBOpenHelper(int match) { in getDBOpenHelper() argument
335 if (match == SMS_RAW_MESSAGE || match == SMS_RAW_MESSAGE_PERMANENT_DELETE) { in getDBOpenHelper()
527 final boolean notifyIfNotDefault = sURLMatcher.match(url) != SMS_RAW_MESSAGE; in bulkInsert()
[all …]
DMmsProvider.java105 int match = sURLMatcher.match(uri); in query() local
107 Log.v(TAG, "Query uri=" + uri + ", match=" + match); in query()
110 switch (match) { in query()
137 + getMessageBoxByMatch(match)); in query()
263 int match = sURLMatcher.match(uri); in getType() local
264 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()
435 if (match == MMS_MSG_PART) { in insert()
[all …]
DCarrierIdProvider.java223 final int match = s_urlMatcher.match(uri); in query() local
224 switch (match) { in query()
245 final int match = s_urlMatcher.match(uri); in insert() local
246 switch (match) { in insert()
273 final int match = s_urlMatcher.match(uri); in delete() local
274 switch (match) { in delete()
300 final int match = s_urlMatcher.match(uri); in update() local
301 switch (match) { in update()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java169 int match = sURIMatcher.match(uri); in getType() local
170 switch (match) { in getType()
205 if (sURIMatcher.match(uri) != SHARES) { in insert()
273 int match = sURIMatcher.match(uri); in query() local
274 switch (match) { in query()
347 int match = sURIMatcher.match(uri); in update() local
348 switch (match) { in update()
353 if (match == SHARES) { in update()
361 if (match == SHARES_ID) { in update()
384 int match = sURIMatcher.match(uri); in delete() local
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java154 int match = sURIMatcher.match(uri); in query() local
155 switch (match) { in query()
194 int match = sURIMatcher.match(uri); in getType() local
195 switch (match) { in getType()
214 switch (sURIMatcher.match(uri)) { in update()
240 switch (sURIMatcher.match(uri)) { in insert()
261 switch (sURIMatcher.match(uri)) { in delete()
300 final int match = sURIMatcher.match(uri); in notifyChange() local
302 if (match == ALARMS || match == INSTANCES || match == ALARMS_ID || match == INSTANCES_ID) { in notifyChange()
DClockProvider.kt160 when (sURIMatcher.match(uri)) { in query()
192 return when (sURIMatcher.match(uri)) { in getType()
210 when (sURIMatcher.match(uri)) { in update()
234 val rowId: Long = when (sURIMatcher.match(uri)) { in insert()
250 when (sURIMatcher.match(uri)) { in delete()
286 val match: Int = sURIMatcher.match(uri) in notifyChange() constant
288 if (match == ALARMS || match == INSTANCES || match == ALARMS_ID || match == INSTANCES_ID) { in notifyChange()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java94 int match = uriMatcher.match(uri); in query() local
95 switch (match) { in query()
152 int match = uriMatcher.match(uri); in insert() local
153 switch (match) { in insert()
194 final int match = uriMatcher.match(uri); in delete() local
195 switch (match) { in delete()
234 int match = uriMatcher.match(uri); in update() local
235 switch (match) { in update()
290 int match = uriMatcher.match(operation.getUri()); in applyBatch() local
291 switch (match) { in applyBatch()
/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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java166 int match = sUriMatcher.match(uri); in getType() local
167 switch (match) { in getType()
199 int match = sUriMatcher.match(uri); in query() local
200 switch (match) { in query()
226 switch (sUriMatcher.match(uri)) { in insert()
256 switch (sUriMatcher.match(uri)) { in delete()
278 switch (sUriMatcher.match(uri)) { in update()
347 int match = sUriMatcher.match(uri); in checkReadPermission() local
348 switch (match) { in checkReadPermission()
/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()
122 Matcher match = Patterns.PHONE.matcher(number); in isPhoneNumber() local
123 if (!match.matches()) { in isPhoneNumber()
124 match = PHONE_NUMBER_STARTING_WITH_STAR_PATTERN.matcher(number); in isPhoneNumber()
125 return match.matches(); in isPhoneNumber()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberProvider.java68 final int match = uriMatcher.match(uri); in query() local
69 switch (match) { in query()
125 final int match = uriMatcher.match(uri); in delete() local
126 switch (match) { in delete()
146 final int match = uriMatcher.match(uri); in update() local
147 switch (match) { in update()
/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/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()
DContactMetadataProvider.java135 final int match = sURIMatcher.match(uri); in query() local
136 switch (match) { in query()
162 int match = sURIMatcher.match(uri); in getType() local
163 switch (match) { in getType()
186 final int matchedUriId = sURIMatcher.match(uri); in insert()
217 final int matchedUriId = sURIMatcher.match(uri); in delete()
265 final int matchedUriId = sURIMatcher.match(uri); in update()
346 final int matchUri = sURIMatcher.match(uri); in updateOrInsertDataToMetadataSync()
/packages/services/BuiltInPrintService/jni/lib/
Dplugin_db.c102 _plugin_db_t *match = NULL; in plugin_search() local
112 use = ((match == NULL) || (_plugin[i].priority < match->priority)); in plugin_search()
114 match = &_plugin[i]; in plugin_search()
123 return ((match != NULL) ? match->plugin : NULL); in plugin_search()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DTypedUriMatcherImpl.java53 public T match(Uri uri) { in match() method in TypedUriMatcherImpl
54 int match = mUriMatcher.match(uri); in match() local
55 if (match == UriMatcher.NO_MATCH) { in match()
58 return mValues[match]; in match()
/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)
/packages/apps/TV/common/src/com/android/tv/common/
DCommonPreferenceProvider.java140 int match = sUriMatcher.match(uri); in query() local
141 if (match != MATCH_PREFERENCE && match != MATCH_PREFERENCE_KEY) { in query()
160 switch (sUriMatcher.match(uri)) { in getType()
181 if (sUriMatcher.match(uri) != MATCH_PREFERENCE) { in insert()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java119 final int match = sUriMatcher.match(uri); in getType() local
120 switch (match) { in getType()
134 final int match = sUriMatcher.match(uri); in insert() local
135 switch (match) { in insert()
197 final int match = sUriMatcher.match(uri); in delete() local
199 switch (match) { in delete()
255 final int match = sUriMatcher.match(uri); in query() local
257 switch (match) { in query()
/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/services/Car/service/src/com/android/car/storagemonitoring/
DUfsWearInformationProvider.java80 MatchResult match = scanner.match(); in load() local
81 if (match.groupCount() != 2) { in load()
84 String name = match.group(1); in load()
85 String value = "0x" + match.group(2); in load()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java609 final int match = matchUri(uri, true); in acceptWithExpansion() local
610 acceptWithExpansionInternal(consumer, uri, match); in acceptWithExpansion()
628 acceptWithExpansionInternal(consumer, builder.build(), match); in acceptWithExpansion()
635 private static void acceptWithExpansionInternal(Consumer<Uri> consumer, Uri uri, int match) { in acceptWithExpansionInternal() argument
641 switch (match) { in acceptWithExpansionInternal()
680 switch (match) { in acceptWithExpansionInternal()
1558 final int match = matchUri(uri, allowHidden); in canonicalize() local
1566 switch (match) { in canonicalize()
1597 final int match = matchUri(uri, allowHidden); in uncanonicalize() local
1609 switch (match) { in uncanonicalize()
[all …]
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelephonyThreadsCompat.java153 Matcher match = Patterns.EMAIL_ADDRESS.matcher(s); in isEmailAddress() local
154 return match.matches(); in isEmailAddress()
161 Matcher match = NAME_ADDR_EMAIL_PATTERN.matcher(address); in extractAddrSpec() local
163 if (match.matches()) { in extractAddrSpec()
164 return match.group(2); in extractAddrSpec()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java690 int match = sURIMatcher.match(uri); in getType() local
691 switch (match) { in getType()
769 int match = sURIMatcher.match(uri); in insert() local
770 if (match != MY_DOWNLOADS) { in insert()
978 notifyContentChanged(uri, match); in insert()
1348 int match = sURIMatcher.match(uri); in query() local
1349 if (match == -1) { in query()
1356 if (match == MY_DOWNLOADS_ID_HEADERS || match == ALL_DOWNLOADS_ID_HEADERS) { in query()
1366 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in query()
1378 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in query()
[all …]

12345