Home
last modified time | relevance | path

Searched refs:sUriMatcher (Results 1 – 18 of 18) sorted by relevance

/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/
DPickerUriResolverV2.java45 static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in PickerUriResolverV2
62 sUriMatcher.addURI(MediaStore.AUTHORITY, BASE_PICKER_PATH + MEDIA_PATH_SEGMENT, in sUriMatcher.addURI()
64 sUriMatcher.addURI(MediaStore.AUTHORITY, BASE_PICKER_PATH + ALBUM_PATH_SEGMENT, in sUriMatcher.addURI()
66 sUriMatcher.addURI( in sUriMatcher.addURI()
71 sUriMatcher.addURI( in sUriMatcher.addURI()
88 final int query = sUriMatcher.match(uri); in query()
/packages/apps/TV/common/src/com/android/tv/common/
DCommonPreferenceProvider.java45 private static final UriMatcher sUriMatcher; field in CommonPreferenceProvider
50 sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
51 sUriMatcher.addURI(AUTHORITY, "preferences", MATCH_PREFERENCE); in sUriMatcher.addURI()
52 sUriMatcher.addURI(AUTHORITY, "preferences/*", MATCH_PREFERENCE_KEY); in sUriMatcher.addURI()
140 int match = sUriMatcher.match(uri); in query()
160 switch (sUriMatcher.match(uri)) { in getType()
181 if (sUriMatcher.match(uri) != MATCH_PREFERENCE) { in insert()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java61 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in CellBroadcastProvider
136 sUriMatcher.addURI(AUTHORITY, null, ALL); in sUriMatcher.addURI()
137 sUriMatcher.addURI(AUTHORITY, "history", MESSAGE_HISTORY); in sUriMatcher.addURI()
138 sUriMatcher.addURI(AUTHORITY, "displayed", MESSAGE_DISPLAYED); in sUriMatcher.addURI()
163 int match = sUriMatcher.match(uri); in getType()
196 int match = sUriMatcher.match(uri); in query()
223 switch (sUriMatcher.match(uri)) { in insert()
267 switch (sUriMatcher.match(uri)) { in delete()
290 switch (sUriMatcher.match(uri)) { in update()
388 int match = sUriMatcher.match(uri); in checkReadPermission()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/
DPickerUriResolverV2Test.java28 assertEquals(PickerUriResolverV2.sUriMatcher.match( in testMediaQuery()
36 assertEquals(PickerUriResolverV2.sUriMatcher.match( in testAlbumQuery()
44 assertEquals(PickerUriResolverV2.sUriMatcher.match( in testAlbumContentQuery()
52 assertEquals(PickerUriResolverV2.sUriMatcher.match( in testAvailableProvidersQuery()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java78 private static final UriMatcher sUriMatcher; field in UserDictionaryProvider
85 sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
86 sUriMatcher.addURI(AUTHORITY, "words", WORDS); in sUriMatcher.addURI()
87 sUriMatcher.addURI(AUTHORITY, "words/#", WORD_ID); in sUriMatcher.addURI()
162 switch (sUriMatcher.match(uri)) { in query()
197 switch (sUriMatcher.match(uri)) { in getType()
212 if (sUriMatcher.match(uri) != WORDS) { in insert()
267 switch (sUriMatcher.match(uri)) { in delete()
296 switch (sUriMatcher.match(uri)) { in update()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProvider.java67 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in BatteryUsageContentProvider
70 sUriMatcher.addURI( in sUriMatcher.addURI()
74 sUriMatcher.addURI( in sUriMatcher.addURI()
78 sUriMatcher.addURI( in sUriMatcher.addURI()
82 sUriMatcher.addURI( in sUriMatcher.addURI()
86 sUriMatcher.addURI( in sUriMatcher.addURI()
90 sUriMatcher.addURI( in sUriMatcher.addURI()
94 sUriMatcher.addURI( in sUriMatcher.addURI()
135 switch (sUriMatcher.match(uri)) { in query()
165 switch (sUriMatcher.match(uri)) { in insert()
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java245 protected static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in PhotoProvider
257 sUriMatcher.addURI(AUTHORITY, Photos.TABLE, MATCH_PHOTO); in sUriMatcher.addURI()
259 sUriMatcher.addURI(AUTHORITY, Photos.TABLE + "/#", MATCH_PHOTO_ID); in sUriMatcher.addURI()
260 sUriMatcher.addURI(AUTHORITY, Albums.TABLE, MATCH_ALBUM); in sUriMatcher.addURI()
262 sUriMatcher.addURI(AUTHORITY, Albums.TABLE + "/#", MATCH_ALBUM_ID); in sUriMatcher.addURI()
263 sUriMatcher.addURI(AUTHORITY, Metadata.TABLE, MATCH_METADATA); in sUriMatcher.addURI()
265 sUriMatcher.addURI(AUTHORITY, Metadata.TABLE + "/#", MATCH_METADATA_ID); in sUriMatcher.addURI()
266 sUriMatcher.addURI(AUTHORITY, Accounts.TABLE, MATCH_ACCOUNT); in sUriMatcher.addURI()
268 sUriMatcher.addURI(AUTHORITY, Accounts.TABLE + "/#", MATCH_ACCOUNT_ID); in sUriMatcher.addURI()
435 int match = sUriMatcher.match(uri); in matchUri()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/mediacognitionservices/
DTestMediaCognitionService.java38 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in TestMediaCognitionService
40 sUriMatcher.addURI("media", "test_image/#", TEST_IMAGE);
42 sUriMatcher.addURI("media", "test_image_large_data/#", TEST_IMAGE_LARGE_DATA);
60 switch (sUriMatcher.match(request.getUri())) { in onProcessMedia()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProvider.java64 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in FakeContactsProvider
75 sUriMatcher.addURI(AUTHORITY, "contacts", CONTACTS); in sUriMatcher.addURI()
76 sUriMatcher.addURI(AUTHORITY, "contacts/#", CONTACTS_ID); in sUriMatcher.addURI()
77 sUriMatcher.addURI(AUTHORITY, "deleted_contacts", DELETED_CONTACTS); in sUriMatcher.addURI()
78 sUriMatcher.addURI(AUTHORITY, "data", DATA); in sUriMatcher.addURI()
79 sUriMatcher.addURI(AUTHORITY, "data/phones", PHONE); in sUriMatcher.addURI()
80 sUriMatcher.addURI(AUTHORITY, "data/emails", EMAIL); in sUriMatcher.addURI()
81 sUriMatcher.addURI(AUTHORITY, "data/postals", POSTAL); in sUriMatcher.addURI()
428 int match = sUriMatcher.match(uri); in query()
487 if (sUriMatcher.match(uri) != CONTACTS_ID) { in delete()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterprisePolicyGuard.java48 private static final ProfileAwareUriMatcher sUriMatcher = ContactsProvider2.sUriMatcher; field in EnterprisePolicyGuard
68 final int uriCode = sUriMatcher.match(uri); in isCrossProfileAllowed()
144 final int uriCode = sUriMatcher.match(uri); in isCrossProfileDirectorySupported()
149 final int uriCode = sUriMatcher.match(uri); in isValidEnterpriseUri()
DEnterpriseContactsCursorWrapper.java46 private static final UriMatcher sUriMatcher = ContactsProvider2.sUriMatcher; field in EnterpriseContactsCursorWrapper
176 final int uriCode = sUriMatcher.match(Uri.parse(thumbnailUri)); in getCorpThumbnailUri()
201 final int uriCode = sUriMatcher.match(Uri.parse(photoUri)); in getCorpDisplayPhotoUri()
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeTvProvider.java124 private static final UriMatcher sUriMatcher; field in FakeTvProvider
158 sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
159 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "channel", MATCH_CHANNEL); in sUriMatcher.addURI()
160 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "channel/#", MATCH_CHANNEL_ID); in sUriMatcher.addURI()
161 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "channel/#/logo", MATCH_CHANNEL_ID_LOGO); in sUriMatcher.addURI()
162 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "passthrough/*", MATCH_PASSTHROUGH_ID); in sUriMatcher.addURI()
163 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "program", MATCH_PROGRAM); in sUriMatcher.addURI()
164 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "program/#", MATCH_PROGRAM_ID); in sUriMatcher.addURI()
165 sUriMatcher.addURI(TvContractCompat.AUTHORITY, "watched_program", MATCH_WATCHED_PROGRAM); in sUriMatcher.addURI()
166 sUriMatcher.addURI( in sUriMatcher.addURI()
[all …]
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java73 private static final UriMatcher sUriMatcher; field in BlockedNumberProvider
86 sUriMatcher = new UriMatcher(0);
87 sUriMatcher.addURI(BlockedNumberContract.AUTHORITY, "blocked", BLOCKED_LIST); in sUriMatcher.addURI()
88 sUriMatcher.addURI(BlockedNumberContract.AUTHORITY, "blocked/#", BLOCKED_ID); in sUriMatcher.addURI()
122 final int match = sUriMatcher.match(uri); in getType()
137 final int match = sUriMatcher.match(uri); in insert()
200 final int match = sUriMatcher.match(uri); in delete()
258 final int match = sUriMatcher.match(uri); in query()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java861 final int match = sUriMatcher.match(uri); in shouldSyncFor()
1001 final int match = sUriMatcher.match(uri); in queryInternal()
1658 int match = sUriMatcher.match(url); in getType()
2354 final int match = sUriMatcher.match(uri); in insertInTransactionInner()
3344 final int match = sUriMatcher.match(uri); in deleteInTransactionInner()
4223 final int match = sUriMatcher.match(uri); in updateInTransactionInner()
4902 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in CalendarProvider2
4915 sUriMatcher.addURI(CalendarContract.AUTHORITY, "instances/when/*/*", INSTANCES); in sUriMatcher.addURI()
4916 sUriMatcher.addURI(CalendarContract.AUTHORITY, "instances/whenbyday/*/*", INSTANCES_BY_DAY); in sUriMatcher.addURI()
4917 sUriMatcher.addURI(CalendarContract.AUTHORITY, "instances/search/*/*/*", INSTANCES_SEARCH); in sUriMatcher.addURI()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java55 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in CellBroadcastContentProvider
79 sUriMatcher.addURI(CB_AUTHORITY, null, CB_ALL); in sUriMatcher.addURI()
80 sUriMatcher.addURI(CB_AUTHORITY, "#", CB_ALL_ID); in sUriMatcher.addURI()
159 int match = sUriMatcher.match(uri); in query()
197 int match = sUriMatcher.match(uri); in getType()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java129 private static final UriMatcher sUriMatcher; field in TvProvider
161 sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
162 sUriMatcher.addURI(TvContract.AUTHORITY, "channel", MATCH_CHANNEL); in sUriMatcher.addURI()
163 sUriMatcher.addURI(TvContract.AUTHORITY, "channel/#", MATCH_CHANNEL_ID); in sUriMatcher.addURI()
164 sUriMatcher.addURI(TvContract.AUTHORITY, "channel/#/logo", MATCH_CHANNEL_ID_LOGO); in sUriMatcher.addURI()
165 sUriMatcher.addURI(TvContract.AUTHORITY, "passthrough/*", MATCH_PASSTHROUGH_ID); in sUriMatcher.addURI()
166 sUriMatcher.addURI(TvContract.AUTHORITY, "program", MATCH_PROGRAM); in sUriMatcher.addURI()
167 sUriMatcher.addURI(TvContract.AUTHORITY, "program/#", MATCH_PROGRAM_ID); in sUriMatcher.addURI()
168 sUriMatcher.addURI(TvContract.AUTHORITY, "watched_program", MATCH_WATCHED_PROGRAM); in sUriMatcher.addURI()
169 sUriMatcher.addURI(TvContract.AUTHORITY, "watched_program/#", MATCH_WATCHED_PROGRAM_ID); in sUriMatcher.addURI()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java78 private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in LegacyApiSupport
267 UriMatcher matcher = sUriMatcher;
754 final int match = sUriMatcher.match(uri); in insert()
920 int match = sUriMatcher.match(uri); in update()
1468 final int match = sUriMatcher.match(uri); in delete()
1555 final int match = sUriMatcher.match(uri); in query()
1970 int match = sUriMatcher.match(uri); in getType()
DContactsProvider2.java326 public static final ProfileAwareUriMatcher sUriMatcher = field in ContactsProvider2
1168 final UriMatcher matcher = sUriMatcher;
2301 return sUriMatcher.mapsToProfile(uri); in mapsToProfileDb()
2319 int match = sUriMatcher.match(uri); in mapsToProfileDbWithInsertedValues()
2364 .setUriType(sUriMatcher.match(uri)) in insert()
2404 .setUriType(sUriMatcher.match(uri)) in update()
2443 .setUriType(sUriMatcher.match(uri)) in delete()
2955 final int match = sUriMatcher.match(uri); in insertInTransaction()
3871 final int match = sUriMatcher.match(uri); in deleteInTransaction()
4346 final int match = sUriMatcher.match(uri); in updateInTransaction()
[all …]