/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/v2/ |
D | PickerUriResolverV2.java | 45 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/ |
D | CommonPreferenceProvider.java | 45 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/ |
D | CellBroadcastProvider.java | 61 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/ |
D | PickerUriResolverV2Test.java | 28 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/ |
D | UserDictionaryProvider.java | 78 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/ |
D | BatteryUsageContentProvider.java | 67 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/ |
D | PhotoProvider.java | 245 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/ |
D | TestMediaCognitionService.java | 38 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/ |
D | FakeContactsProvider.java | 64 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/ |
D | EnterprisePolicyGuard.java | 48 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()
|
D | EnterpriseContactsCursorWrapper.java | 46 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/ |
D | FakeTvProvider.java | 124 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/ |
D | BlockedNumberProvider.java | 73 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/ |
D | CalendarProvider2.java | 861 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/ |
D | CellBroadcastContentProvider.java | 55 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/ |
D | TvProvider.java | 129 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/ |
D | LegacyApiSupport.java | 78 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()
|
D | ContactsProvider2.java | 326 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 …]
|