Home
last modified time | relevance | path

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

12

/cts/tests/tests/provider/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/
DMediaStore_Audio_Genres_MembersTest.java95 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown()
97 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown()
105 Members.getContentUri(mVolumeName, 1), null, in testGetContentUri()
114 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal()
123 assertEquals(ContentUris.withAppendedId(Genres.getContentUri(mVolumeName), genreId), in testStoreAudioGenresMembersExternal()
129 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal()
196 Uri allMembersUri = MediaStore.Audio.Genres.getContentUri(mVolumeName).buildUpon() in testStoreAudioGenresMembersExternal()
223 uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal()
232 Uri members2Uri = Members.getContentUri(mVolumeName, genre2Id); in testStoreAudioGenresMembersExternal()
274 membersUri = Members.getContentUri(mVolumeName, genreId); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Audio_Playlists_MembersTest.java155 final Uri uri = Media.getContentUri(mVolumeName); in tearDown()
166 Members.getContentUri("external", 1337).toString()); in testGetContentUri()
168 Members.getContentUri("internal", 3007).toString()); in testGetContentUri()
227 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsMembersExternal()
235 assertEquals(ContentUris.withAppendedId(Playlists.getContentUri(mVolumeName), playlistId), in testStoreAudioPlaylistsMembersExternal()
239 Uri membersUri = Members.getContentUri(mVolumeName, playlistId); in testStoreAudioPlaylistsMembersExternal()
357 mContentResolver.delete(Media.getContentUri(mVolumeName), 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()
[all …]
DMediaStore_Audio_GenresTest.java76 Genres.getContentUri(mVolumeName), null, null, in testGetContentUri()
86 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal()
113 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId()
128 Uri membersUri = Members.getContentUri(mVolumeName, genreId); in testGetContentUriForAudioId()
DMediaStoreIntentsTest.java62 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
63 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
64 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
DMediaStore_Audio_AlbumsTest.java82 Albums.getContentUri(mVolumeName), null, null, in testGetContentUri()
90 Uri audioAlbumsUri = Albums.getContentUri(mVolumeName); in testStoreAudioAlbums()
177 .insert(MediaStore.Audio.Media.getContentUri(mVolumeName), v); in testAlbumArt()
187 .withAppendedId(MediaStore.Audio.Albums.getContentUri(mVolumeName), albumId); in testAlbumArt()
DMediaStore_Audio_MediaTest.java71 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
78 Media.getContentUri(mVolumeName), null, null, in testGetContentUri()
102 Uri mediaUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia()
147 Uri baseUri = Media.getContentUri(mVolumeName); in testStoreAudioMedia()
DMediaStore_Video_ThumbnailsTest.java94 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
99 Uri internalUri = Thumbnails.getContentUri(MediaStoreAudioTestHelper.INTERNAL_VOLUME_NAME); in testGetContentUri()
100 Uri externalUri = Thumbnails.getContentUri(MediaStoreAudioTestHelper.EXTERNAL_VOLUME_NAME); in testGetContentUri()
184 Files.getContentUri("external"), in testThumbnailGenerationAndCleanup()
DMediaStore_Audio_PlaylistsTest.java73 Playlists.getContentUri(mVolumeName), null, null, in testGetContentUri()
89 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal()
DMediaStore_FilesTest.java80 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
81 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
82 mExternalFiles = MediaStore.Files.getContentUri(mVolumeName); in setUp()
187 final Uri internalFiles = MediaStore.Files.getContentUri(MediaStore.VOLUME_INTERNAL); in testAccessInternal()
DMediaStore_Audio_ArtistsTest.java72 Artists.getContentUri(mVolumeName), null, null, in testGetContentUri()
79 Uri artistsUri = Artists.getContentUri(mVolumeName); in testStoreAudioArtists()
DMediaStore_Audio_Artists_AlbumsTest.java74 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, 1); in testGetContentUri()
89 Uri artistsAlbumsUri = MediaStore.Audio.Artists.Albums.getContentUri(mVolumeName, artistId); in testStoreAudioArtistsAlbums()
DMediaStore_Images_ThumbnailsTest.java115 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
235 Uri fileuri = MediaStore.Files.getContentUri("external", imageId); in testQueryExternalMiniThumbnails()
243 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri("internal"), null, null, in testGetContentUri()
246 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri(mVolumeName), null, null, in testGetContentUri()
348 MediaStore.Files.getContentUri("external"), in testThumbnailGenerationAndCleanup()
DMediaStorePendingTest.java90 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
91 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
92 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
93 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp()
DMediaStore_VideoTest.java68 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
DMediaStore_Video_MediaTest.java91 mExternalVideo = MediaStore.Video.Media.getContentUri(mVolumeName); in setUp()
97 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri()
100 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
DMediaStore_Images_MediaTest.java92 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
210 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri()
213 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
DMediaStore_DownloadsTest.java95 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
96 mExternalDownloads = MediaStore.Downloads.getContentUri(mVolumeName); in setUp()
DMediaStoreAudioTestHelper.java61 final Uri dirUri = MediaStore.Audio.Media.getContentUri(volumeName); in insert()
DMediaStorePlacementTest.java71 mExternalImages = MediaStore.Images.Media.getContentUri(mVolumeName); in setUp()
DMediaStoreTest.java86 mExternalImages = MediaStore.Images.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.java115 mContext.getContentResolver().delete(MediaStore.Audio.Media.getContentUri("external"), in cleanup()
222 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
225 res.delete(MediaStore.Files.getContentUri("external"), in testMediaScanner()
246 c = res.query(MediaStore.Audio.Playlists.Members.getContentUri("external", playlistid), in testMediaScanner()
267 c = res.query(MediaStore.Audio.Playlists.Members.getContentUri("external", playlistid), in testMediaScanner()
319 file1Uri = MediaStore.Files.getContentUri("external", file1id); in testWildcardPaths()
320 file2Uri = MediaStore.Files.getContentUri("external", file2id); in testWildcardPaths()
337 assertEquals(dir1, getRawFile(MediaStore.Files.getContentUri("external", parent1id)) in testWildcardPaths()
339 assertEquals(dir2, getRawFile(MediaStore.Files.getContentUri("external", parent2id)) in testWildcardPaths()
349 res.delete(MediaStore.Files.getContentUri("external", parent1id), null, null); in testWildcardPaths()
[all …]
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java149 MediaStore.Audio.Media.getContentUri(volumeName), id); in getMediaStoreColumnValue()
153 MediaStore.Images.Media.getContentUri(volumeName), id); in getMediaStoreColumnValue()
157 MediaStore.Video.Media.getContentUri(volumeName), id); in getMediaStoreColumnValue()
178 final Uri filesUri = MediaStore.Files.getContentUri( in getMediaType()
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/
DMbmsDownloadReceiverTest.java223 assertEquals(ContentResolver.SCHEME_CONTENT, pathPair.getContentUri().getScheme()); in testRequestNewFileDescriptors()

12