Home
last modified time | relevance | path

Searched refs:getContentUri (Results 1 – 25 of 40) sorted by relevance

12

/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_SimRecordsMultiSimTest.java86 try (Cursor sim1Cursor = query(SimRecords.getContentUri(mSubscriptionId1, EF_ADN), in queryAdn_returnsCursorWithRecordsFromCorrectSim()
88 Cursor sim2Cursor = query(SimRecords.getContentUri(mSubscriptionId2, EF_ADN), in queryAdn_returnsCursorWithRecordsFromCorrectSim()
111 Uri uriSim1 = mResolver.insert(SimRecords.getContentUri(mSubscriptionId1, EF_ADN), values); in insertAdn_returnsUriForCorrectSim()
114 Uri uriSim2 = mResolver.insert(SimRecords.getContentUri(mSubscriptionId2, EF_ADN), values); in insertAdn_returnsUriForCorrectSim()
147 try (Cursor cursor1 = query(SimRecords.getContentUri(mSubscriptionId1, EF_ADN), projection); in updateAdn_updatesCorrectRecord()
148 Cursor cursor2 = query(SimRecords.getContentUri(mSubscriptionId2, EF_ADN), in updateAdn_updatesCorrectRecord()
163 try (Cursor cursor1 = query(SimRecords.getContentUri(mSubscriptionId1, EF_ADN), null); in deleteAdn_deletesCorrectRecord()
164 Cursor cursor2 = query(SimRecords.getContentUri(mSubscriptionId2, EF_ADN), null)) { in deleteAdn_deletesCorrectRecord()
175 try (Cursor cursor1 = query(SimRecords.getContentUri(mSubscriptionId1, EF_ADN), null); in deleteAdn_deletesCorrectRecord()
176 Cursor cursor2 = query(SimRecords.getContentUri(mSubscriptionId2, EF_ADN), null)) { in deleteAdn_deletesCorrectRecord()
[all …]
DSimPhonebookContract_SimRecordsNoSimTest.java77 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_ADN))).isEqualTo( in getType_recordsDir()
80 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_FDN))).isEqualTo( in getType_recordsDir()
83 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_SDN))).isEqualTo( in getType_recordsDir()
103 SimRecords.getContentUri(1, ElementaryFiles.EF_ADN).buildUpon().appendPath( in getType_invalidUri_returnsNull()
110 () -> query(SimRecords.getContentUri(MISSING_SIM_SUBSCRIPTION_ID, EF_ADN), null) in query_nonExistentSim_throwsIllegalArgumentException()
115 () -> query(SimRecords.getContentUri(MISSING_SIM_SUBSCRIPTION_ID, EF_FDN), null) in query_nonExistentSim_throwsIllegalArgumentException()
120 () -> query(SimRecords.getContentUri(MISSING_SIM_SUBSCRIPTION_ID, EF_SDN), null) in query_nonExistentSim_throwsIllegalArgumentException()
127 assertThrows(IllegalArgumentException.class, () -> query(SimRecords.getContentUri(1, in query_invalidUri_throwsIllegalArgumentException()
163 SimRecords.getContentUri(MISSING_SIM_SUBSCRIPTION_ID, EF_FDN), values)); in insert_nonAdnDirUris_throwsUnsupportedOperationException()
167 SimRecords.getContentUri(MISSING_SIM_SUBSCRIPTION_ID, EF_SDN), values)); in insert_nonAdnDirUris_throwsUnsupportedOperationException()
[all …]
DSimPhonebookContract_ContentNotificationsTest.java96 mResolver.getType(SimPhonebookContract.SimRecords.getContentUri(1, EF_ADN)); in setUp()
116 mResolver.insert(SimPhonebookContract.SimRecords.getContentUri(mSubId, EF_ADN), values); in insert_notifiesObserver()
128 SimPhonebookContract.SimRecords.getContentUri(mSubId, EF_ADN), values); in update_notifiesObserver()
146 SimPhonebookContract.SimRecords.getContentUri(mSubId, EF_ADN), values); in delete_notifiesObserver()
DSimPhonebookContract_ElementaryFilesTest.java167 Uri itemUri = mResolver.insert(SimRecords.getContentUri(mValidSubscriptionId, EF_ADN), in query_nonEmptySim_countIsCorrect()
169 mResolver.insert(SimRecords.getContentUri(mValidSubscriptionId, EF_ADN), values); in query_nonEmptySim_countIsCorrect()
170 mResolver.insert(SimRecords.getContentUri(mValidSubscriptionId, EF_ADN), values); in query_nonEmptySim_countIsCorrect()
DSimsCleanupRule.java76 SimPhonebookContract.SimRecords.getContentUri(subscriptionId, mEfType), in clearEf()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_TestDataBuilder.java64 protected abstract Uri getContentUri(); in getContentUri() method in ContactsContract_TestDataBuilder.Builder
96 mUri = ContentUris.withAppendedId(getContentUri(), mId); in getUri()
128 mUri = mProvider.insert(getContentUri(), mValues); in insertDependent()
129 assertNotNull("Could not insert a row in " + getContentUri(), mUri); in insertDependent()
188 mCursor = mProvider.query(getContentUri(), null, in loadUsingValues()
192 fail("No data rows for " + getContentUri() + "[" + mValues.toString() + "]"); in loadUsingValues()
268 protected Uri getContentUri() { in getContentUri() method in ContactsContract_TestDataBuilder.TestRawContact
291 protected Uri getContentUri() { in getContentUri() method in ContactsContract_TestDataBuilder.TestContact
317 protected Uri getContentUri() { in getContentUri() method in ContactsContract_TestDataBuilder.TestGroup
331 protected Uri getContentUri() { in getContentUri() method in ContactsContract_TestDataBuilder.TestData
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Audio_Genres_MembersTest.java96 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown()
98 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown()
106 Members.getContentUri(mVolumeName, 1), null, in testGetContentUri()
116 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal()
125 assertEquals(ContentUris.withAppendedId(Genres.getContentUri(mVolumeName), genreId), in testStoreAudioGenresMembersExternal()
131 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal()
198 Uri allMembersUri = MediaStore.Audio.Genres.getContentUri(mVolumeName).buildUpon() in testStoreAudioGenresMembersExternal()
225 uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal()
234 Uri members2Uri = Members.getContentUri(mVolumeName, genre2Id); in testStoreAudioGenresMembersExternal()
276 membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Audio_GenresTest.java76 Genres.getContentUri(mVolumeName), null, null, in testGetContentUri()
87 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal()
115 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId()
130 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testGetContentUriForAudioId()
DMediaStore_Audio_MediaTest.java83 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
84 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
91 Media.getContentUri(mVolumeName), null, null, in testGetContentUri()
95 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri()
96 Media.getContentUri(mVolumeName, 42)); in testGetContentUri()
113 assertEquals(Media.getContentUri("0000-0000"), in testGetContentUriForPath()
122 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia()
168 Uri baseUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia()
DMediaStoreIntentsTest.java66 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
67 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
68 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
DMediaStore_Audio_Playlists_MembersTest.java157 final Uri uri = Media.getContentUri(mVolumeName); in tearDown()
168 Members.getContentUri("external", 1337).toString()); in testGetContentUri()
170 Members.getContentUri("internal", 3007).toString()); in testGetContentUri()
228 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsMembersExternal()
236 assertEquals(ContentUris.withAppendedId(Playlists.getContentUri(mVolumeName), playlistId), in testStoreAudioPlaylistsMembersExternal()
240 Uri membersUri = Members.getContentUri(mVolumeName, playlistId); in testStoreAudioPlaylistsMembersExternal()
392 uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsMembersExternal()
400 Uri members2Uri = Members.getContentUri(mVolumeName, playlist2Id); in testStoreAudioPlaylistsMembersExternal()
444 membersUri = Members.getContentUri(mVolumeName, playlistId); in testStoreAudioPlaylistsMembersExternal()
461 mContentResolver.delete(Media.getContentUri(mVolumeName), in testStoreAudioPlaylistsMembersExternal()
[all …]
DMediaStoreNotificationTest.java74 mSpecificImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
75 mSpecificFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
76 mGenericImages = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL); in setUp()
77 mGenericFiles = MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL); in setUp()
DMediaStore_Audio_PlaylistsTest.java74 Playlists.getContentUri(mVolumeName), null, null, in testGetContentUri()
87 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal()
123 .insert(MediaStore.Audio.Playlists.getContentUri(mVolumeName), values); in testName()
DMediaStore_Audio_AlbumsTest.java85 Albums.getContentUri(mVolumeName), null, null, in testGetContentUri()
93 Uri audioAlbumsUri = Albums.getContentUri(mVolumeName); in testStoreAudioAlbums()
180 .insert(MediaStore.Audio.Media.getContentUri(mVolumeName), v); in testAlbumArt()
190 .withAppendedId(MediaStore.Audio.Albums.getContentUri(mVolumeName), albumId); in testAlbumArt()
DMediaStore_Video_ThumbnailsTest.java98 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
103 Uri internalUri = Thumbnails.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME); in testGetContentUri()
104 Uri externalUri = Thumbnails.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME); in testGetContentUri()
188 Files.getContentUri("external"), in testThumbnailGenerationAndCleanup()
DMediaStore_Audio_Artists_AlbumsTest.java80 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, 1); in testGetContentUri()
95 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, artistId); in testStoreAudioArtistsAlbums()
170 final Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, in testDifferentArtistInSameAlbum()
178 final Uri artistsAlbumsSameArtistUri = MediaStore.Audio.Artists.Albums.getContentUri( in testDifferentArtistInSameAlbum()
186 final Uri artistsAlbumsOtherArtistUri = MediaStore.Audio.Artists.Albums.getContentUri( in testDifferentArtistInSameAlbum()
DMediaStore_FilesTest.java87 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
88 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
89 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
171 assertEquals(ContentUris.withAppendedId(MediaStore.Files.getContentUri(mVolumeName), 42), in testGetContentUri()
172 MediaStore.Files.getContentUri(mVolumeName, 42)); in testGetContentUri()
197 final Uri internalFiles = MediaStore.Files.getContentUri(MediaStore.VOLUME_INTERNAL); in testAccessInternal()
DMediaStore_Audio_ArtistsTest.java74 Artists.getContentUri(mVolumeName), null, null, in testGetContentUri()
81 Uri artistsUri = Artists.getContentUri(mVolumeName); in testStoreAudioArtists()
DMediaStore_DownloadsTest.java100 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
101 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
102 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp()
148 assertEquals(ContentUris.withAppendedId(Downloads.getContentUri(mVolumeName), 42), in testGetContentUri()
149 Downloads.getContentUri(mVolumeName, 42)); in testGetContentUri()
DMediaStore_Video_MediaTest.java94 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
95 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
102 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri()
105 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
109 assertEquals(ContentUris.withAppendedId(Media.getContentUri(mVolumeName), 42), in testGetContentUri()
110 Media.getContentUri(mVolumeName, 42)); in testGetContentUri()
DMediaStore_Images_ThumbnailsTest.java122 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
241 Uri fileuri = MediaStore.Files.getContentUri("external", imageId); in testQueryExternalMiniThumbnails()
249 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri("internal"), null, null, in testGetContentUri()
252 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri(mVolumeName), null, null, in testGetContentUri()
354 MediaStore.Files.getContentUri("external"), in testThumbnailGenerationAndCleanup()
DMediaStore_VideoTest.java71 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputContentInfoTest.java45 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testInputContentInfo()
58 assertEquals(info.getContentUri(), targetInfo.getContentUri()); in testInputContentInfo()
74 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testOptionalConstructorParam()
/cts/tests/tests/media/src/android/media/cts/
DMediaScannerTest.java138 mContext.getContentResolver().delete(MediaStore.Audio.Media.getContentUri("external"), in cleanup()
245 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
248 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
269 c = res.query(MediaStore.Audio.Playlists.Members.getContentUri("external", playlistid), in testMediaScanner()
290 c = res.query(MediaStore.Audio.Playlists.Members.getContentUri("external", playlistid), in testMediaScanner()
342 file1Uri = MediaStore.Files.getContentUri("external", file1id); in testWildcardPaths()
343 file2Uri = MediaStore.Files.getContentUri("external", file2id); in testWildcardPaths()
360 assertEquals(dir1, getRawFile(MediaStore.Files.getContentUri("external", parent1id)) in testWildcardPaths()
362 assertEquals(dir2, getRawFile(MediaStore.Files.getContentUri("external", parent2id)) in testWildcardPaths()
372 res.delete(MediaStore.Files.getContentUri("external", parent1id), null, null); in testWildcardPaths()
[all …]
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java407 MediaStore.Files.getContentUri(sStorageVolumeName), values); in insertFileFromExternalMedia()
412 MediaStore.Files.getContentUri(sStorageVolumeName), values)); in insertFile()
634 return getContentResolver().insert(MediaStore.Files.getContentUri(sStorageVolumeName), in insertFileUsingDataColumn()
642 return MediaStore.Images.Media.getContentUri(sStorageVolumeName); in getImageContentUri()
653 return getContentResolver().update(MediaStore.Files.getContentUri(sStorageVolumeName), in renameWithMediaProvider()
664 final Uri contentUri = MediaStore.Files.getContentUri(sStorageVolumeName); in getFileUri()
728 MediaStore.Video.Media.getContentUri(sStorageVolumeName), file, in queryVideoFile()
739 MediaStore.Images.Media.getContentUri(sStorageVolumeName), file, in queryImageFile()
789 MediaStore.Files.getContentUri(sStorageVolumeName), extras)).isEqualTo(1); in deleteWithMediaProvider()
1523 return queryFile(getContentResolver(), MediaStore.Files.getContentUri(sStorageVolumeName), in queryFileExcludingPending()
[all …]

12