Home
last modified time | relevance | path

Searched refs:MediaStore (Results 1 – 25 of 174) sorted by relevance

1234567

/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java24 import android.provider.MediaStore;
65 mContentResolver.registerContentObserver(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in AudioStore()
82 Uri contentUri = MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI; in load()
84 MediaStore.Audio.Artists._ID in load()
86 String sortOrder = MediaStore.Audio.Artists._ID; in load()
90 int idColumn = cursor.getColumnIndexOrThrow(MediaStore.Audio.Artists._ID); in load()
106 Uri contentUri = MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI; in load()
108 MediaStore.Audio.Albums._ID, in load()
109 MediaStore.Audio.Media.ARTIST_ID // TODO MediaStore.Audio.Albums.ARTIST_ID in load()
111 String sortOrder = MediaStore.Audio.Albums._ID; in load()
[all …]
DVideoStore.java25 import android.provider.MediaStore;
76 mContentResolver.registerContentObserver(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in VideoStore()
103 Uri contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; in load()
107 MediaStore.Video.Media._ID, in load()
108 MediaStore.Video.Media.MIME_TYPE, in load()
110 MediaStore.Video.Media.DISPLAY_NAME in load()
114 MediaStore.Video.Media._ID, in load()
115 MediaStore.Video.Media.MIME_TYPE, in load()
116 MediaStore.Video.Media.DATA in load()
119 String sortOrder = MediaStore.Video.Media._ID; in load()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java55 import android.provider.MediaStore;
56 import android.provider.MediaStore.Audio.AudioColumns;
57 import android.provider.MediaStore.Files.FileColumns;
58 import android.provider.MediaStore.Images.ImageColumns;
59 import android.provider.MediaStore.MediaColumns;
131 MediaStore.getExternalVolumeNames(InstrumentationRegistry.getTargetContext()) in testCuttlefish()
173 final Uri probe = MediaStore.AUTHORITY_URI.buildUpon() in testSchema()
174 .appendPath(MediaStore.VOLUME_EXTERNAL).appendEncodedPath(path).build(); in testSchema()
188 .acquireContentProviderClient(MediaStore.AUTHORITY)) { in testLocale()
197 .acquireContentProviderClient(MediaStore.AUTHORITY)) { in testDump()
[all …]
DResolvePlaylistTest.java31 import android.provider.MediaStore;
115 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL), in doPlaylist()
116 new String[] { MediaStore.Files.FileColumns._ID }, in doPlaylist()
117 MediaStore.Files.FileColumns.MEDIA_TYPE + "=" in doPlaylist()
118 + MediaStore.Files.FileColumns.MEDIA_TYPE_PLAYLIST, null, null)) { in doPlaylist()
123 final Uri membersUri = MediaStore.Audio.Playlists.Members in doPlaylist()
124 .getContentUri(MediaStore.VOLUME_EXTERNAL, playlistId); in doPlaylist()
126 MediaStore.MediaColumns.DISPLAY_NAME in doPlaylist()
127 }, null, null, MediaStore.Audio.Playlists.Members.PLAY_ORDER + " ASC")) { in doPlaylist()
147 MediaStore.MediaColumns.DISPLAY_NAME in doPlaylist()
[all …]
DIdleServiceTest.java22 import static android.provider.MediaStore.MediaColumns.DATE_EXPIRES;
39 import android.provider.MediaStore;
96 MediaStore.waitForIdle(resolver); in testPruneThumbnails()
104 final Uri uri = MediaStore.scanFile(resolver, file); in testPruneThumbnails()
108 MediaStore.waitForIdle(resolver); in testPruneThumbnails()
149 final Uri uri = MediaStore.scanFile(resolver, file); in testExtendTrashedItemExpiresOverOneWeek()
151 MediaStore.waitForIdle(resolver); in testExtendTrashedItemExpiresOverOneWeek()
155 queryArgs.putInt(MediaStore.QUERY_ARG_MATCH_TRASHED, MediaStore.MATCH_INCLUDE); in testExtendTrashedItemExpiresOverOneWeek()
187 final Uri uri = MediaStore.scanFile(resolver, file); in testDeleteExpiredTrashedItem()
189 MediaStore.waitForIdle(resolver); in testDeleteExpiredTrashedItem()
[all …]
/packages/providers/MediaProvider/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1 Landroid/provider/MediaStore$Audio$AudioColumns;->ALBUM_ARTIST:Ljava/lang/String;
2 Landroid/provider/MediaStore$Audio$AudioColumns;->COMPILATION:Ljava/lang/String;
3 Landroid/provider/MediaStore$Audio$AudioColumns;->GENRE:Ljava/lang/String;
4 Landroid/provider/MediaStore$Audio$AudioColumns;->TITLE_RESOURCE_URI:Ljava/lang/String;
5 Landroid/provider/MediaStore$Audio$Media;->EXTERNAL_PATHS:[Ljava/lang/String;
6 Landroid/provider/MediaStore$Audio$Radio;-><init>()V
7 Landroid/provider/MediaStore$Files;->getDirectoryUri(Ljava/lang/String;)Landroid/net/Uri;
8 Landroid/provider/MediaStore$Images$Media;->StoreThumbnail(Landroid/content/ContentResolver;Landroi…
9 Landroid/provider/MediaStore$InternalThumbnails;-><init>()V
10 Landroid/provider/MediaStore$InternalThumbnails;->cancelThumbnailRequest(Landroid/content/ContentRe…
[all …]
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java19 import static android.provider.MediaStore.rewriteToLegacy;
46 import android.provider.MediaStore;
47 import android.provider.MediaStore.Audio.AudioColumns;
48 import android.provider.MediaStore.DownloadColumns;
49 import android.provider.MediaStore.Files.FileColumns;
50 import android.provider.MediaStore.Images.ImageColumns;
51 import android.provider.MediaStore.MediaColumns;
52 import android.provider.MediaStore.Video.VideoColumns;
96 private String mVolumeName = MediaStore.VOLUME_EXTERNAL_PRIMARY;
115 mExternalAudio = MediaStore.Audio.Media.getContentUri(mVolumeName); in setUp()
[all …]
DPublicVolumePlaylistTest.java19 import static android.provider.MediaStore.VOLUME_EXTERNAL;
20 import static android.provider.MediaStore.VOLUME_EXTERNAL_PRIMARY;
38 import android.provider.MediaStore;
72 values.put(MediaStore.MediaColumns.DISPLAY_NAME, "Playlist " + System.nanoTime()); in testEjectedVolume()
73 values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/x-mpegurl"); in testEjectedVolume()
77 MediaStore.waitForIdle(contentResolver); in testEjectedVolume()
79 final Uri externalPlaylists = MediaStore.Audio.Playlists in testEjectedVolume()
85 final Uri members = MediaStore.Audio.Playlists.Members in testEjectedVolume()
91 for (String volumeName : MediaStore.getExternalVolumeNames(context)) { in testEjectedVolume()
93 values.put(MediaStore.MediaColumns.DISPLAY_NAME, "Song " + System.nanoTime()); in testEjectedVolume()
[all …]
DPublicVolumeTest.java34 import android.provider.MediaStore;
65 MediaStore.waitForIdle(contentResolver); in testIncludeRecentlyUnmountedVolumes()
69 for (String volumeName : MediaStore.getExternalVolumeNames(context)) { in testIncludeRecentlyUnmountedVolumes()
72 values.put(MediaStore.MediaColumns.DISPLAY_NAME, displayName + ".jpeg"); in testIncludeRecentlyUnmountedVolumes()
75 MediaStore.Images.Media.getContentUri(volumeName), values); in testIncludeRecentlyUnmountedVolumes()
82 final int volumeCount = MediaStore.getExternalVolumeNames(context).size(); in testIncludeRecentlyUnmountedVolumes()
86 MediaStore.MediaColumns.DISPLAY_NAME + " LIKE ?"); in testIncludeRecentlyUnmountedVolumes()
90 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
91 new String[]{MediaStore.MediaColumns._ID}, extras, null)) { in testIncludeRecentlyUnmountedVolumes()
98 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
[all …]
DClientPlaylistTest.java19 import static android.provider.MediaStore.VOLUME_EXTERNAL;
20 import static android.provider.MediaStore.VOLUME_EXTERNAL_PRIMARY;
21 import static android.provider.MediaStore.VOLUME_INTERNAL;
36 import android.provider.MediaStore;
37 import android.provider.MediaStore.Audio.Playlists;
38 import android.provider.MediaStore.MediaColumns;
74 private final Uri mExternalAudio = MediaStore.Audio.Media
76 private final Uri mExternalPlaylists = MediaStore.Audio.Playlists
132 final Uri membersUri = MediaStore.Audio.Playlists.Members in testAdd()
166 MediaStore.Audio.Playlists.getContentUri(VOLUME_EXTERNAL), playlistId); in testMove()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java22 import android.provider.MediaStore;
71 Uri uri = internal ? MediaStore.Images.Media.INTERNAL_CONTENT_URI in findAlbums()
72 : MediaStore.Images.Media.EXTERNAL_CONTENT_URI; in findAlbums()
73 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.BUCKET_ID, in findAlbums()
74 MediaStore.Images.Media.BUCKET_DISPLAY_NAME, MediaStore.Images.Media.DATE_TAKEN}; in findAlbums()
80 int dataIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATA); in findAlbums()
81 int bucketIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_ID); in findAlbums()
82 int nameIndex = cursor.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME); in findAlbums()
83 int updatedIndex = cursor.getColumnIndex(MediaStore.Images.Media.DATE_TAKEN); in findAlbums()
129 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in openCursor()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DPhotoDataQuery.java20 import android.provider.MediaStore;
26 public static final String QUERY_ORDER = MediaStore.Images.ImageColumns._ID + " DESC";
27 public static final Uri CONTENT_URI = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
46 MediaStore.Images.ImageColumns._ID, // 0, int
47 MediaStore.Images.ImageColumns.TITLE, // 1, string
48 MediaStore.Images.ImageColumns.MIME_TYPE, // 2, string
49 MediaStore.Images.ImageColumns.DATE_TAKEN, // 3, int
50 MediaStore.Images.ImageColumns.DATE_MODIFIED, // 4, int
51 MediaStore.Images.ImageColumns.DATA, // 5, string
52 MediaStore.Images.ImageColumns.ORIENTATION, // 6, int, 0, 90, 180, 270
[all …]
DVideoDataQuery.java20 import android.provider.MediaStore;
23 public static final Uri CONTENT_URI = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
42 MediaStore.Video.VideoColumns._ID, // 0, int
43 MediaStore.Video.VideoColumns.TITLE, // 1, string
44 MediaStore.Video.VideoColumns.MIME_TYPE, // 2, string
45 MediaStore.Video.VideoColumns.DATE_TAKEN, // 3, int
46 MediaStore.Video.VideoColumns.DATE_MODIFIED, // 4, int
47 MediaStore.Video.VideoColumns.DATA, // 5, string
48 MediaStore.Video.VideoColumns.WIDTH, // 6, int
49 MediaStore.Video.VideoColumns.HEIGHT, // 7, int
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java64 import android.provider.MediaStore;
65 import android.provider.MediaStore.Audio.AudioColumns;
66 import android.provider.MediaStore.MediaColumns;
558 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter()
560 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter()
562 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter()
566 assertQueryCount(1, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter()
570 assertQueryCount(0, MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI in testFilter()
574 assertQueryCount(0, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter()
576 assertQueryCount(0, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI in testFilter()
[all …]
DMediaScannerTest.java19 import static android.provider.MediaStore.VOLUME_EXTERNAL;
38 import android.provider.MediaStore;
39 import android.provider.MediaStore.MediaColumns;
84 .resolveContentProvider(MediaStore.AUTHORITY, 0); in IsolatedContext()
112 mResolver.addProvider(MediaStore.AUTHORITY, mProvider); in IsolatedContext()
127 MediaStore.waitForIdle(mResolver); in IsolatedContext()
174 MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in testCorrectness()
175 MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in testCorrectness()
176 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testCorrectness()
261 getCount(context, MediaStore.Files.getContentUri(VOLUME_EXTERNAL)), in getCounts()
[all …]
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java29 import android.provider.MediaStore;
30 import android.provider.MediaStore.Files.FileColumns;
91 return MediaStore.createWriteRequest(getContentResolver(), mRequestItems.get()); in onCreate()
94 return MediaStore.createTrashRequest(getContentResolver(), mRequestItems.get(), true); in onCreate()
97 return MediaStore.createTrashRequest(getContentResolver(), mRequestItems.get(), false); in onCreate()
100 return MediaStore.createDeleteRequest(getContentResolver(), mRequestItems.get()); in onCreate()
103 return MediaStore.createFavoriteRequest(getContentResolver(), mRequestItems.get(), in onCreate()
107 return MediaStore.createFavoriteRequest(getContentResolver(), mRequestItems.get(), in onCreate()
118 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in doInBackground()
125 mAudio.add(MediaStore.Audio.Media in doInBackground()
[all …]
/packages/providers/MediaProvider/apex/framework/api/
Dcurrent.txt4 public final class MediaStore {
5 ctor public MediaStore();
80 public static final class MediaStore.Audio {
81 ctor public MediaStore.Audio();
85 public static interface MediaStore.Audio.AlbumColumns {
99 …public static final class MediaStore.Audio.Albums implements android.provider.BaseColumns android.…
100 ctor public MediaStore.Audio.Albums();
109 public static interface MediaStore.Audio.ArtistColumns {
116 …public static final class MediaStore.Audio.Artists implements android.provider.BaseColumns android…
117 ctor public MediaStore.Audio.Artists();
[all …]
Dremoved.txt4 …public static interface MediaStore.Audio.AudioColumns extends android.provider.MediaStore.MediaCol…
11 …public static interface MediaStore.DownloadColumns extends android.provider.MediaStore.MediaColumn…
15 …public static interface MediaStore.Files.FileColumns extends android.provider.MediaStore.MediaColu…
19 …public static interface MediaStore.Images.ImageColumns extends android.provider.MediaStore.MediaCo…
27 public static interface MediaStore.MediaColumns extends android.provider.BaseColumns {
31 …public static interface MediaStore.Video.VideoColumns extends android.provider.MediaStore.MediaCol…
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
DAudioPlayerActivity.java24 import android.provider.MediaStore;
53 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in start()
63 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, in start()
67 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Albums.CONTENT_TYPE); in start()
74 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, in start()
78 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Artists.CONTENT_TYPE); in start()
85 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, in start()
89 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Genres.CONTENT_TYPE); in start()
96 Uri uri = ContentUris.withAppendedId(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in start()
100 intent.setDataAndTypeAndNormalize(uri, MediaStore.Audio.Playlists.CONTENT_TYPE); in start()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DDatabaseHelper.java43 import android.provider.MediaStore;
44 import android.provider.MediaStore.Audio;
45 import android.provider.MediaStore.Downloads;
46 import android.provider.MediaStore.Files.FileColumns;
47 import android.provider.MediaStore.Images;
48 import android.provider.MediaStore.MediaColumns;
49 import android.provider.MediaStore.Video;
187 mVolumeName = internal ? MediaStore.VOLUME_INTERNAL : MediaStore.VOLUME_EXTERNAL; in DatabaseHelper()
200 mFilterVolumeNames.add(MediaStore.VOLUME_INTERNAL); in DatabaseHelper()
202 mFilterVolumeNames.add(MediaStore.VOLUME_EXTERNAL_PRIMARY); in DatabaseHelper()
[all …]
DMediaProvider.java31 import static android.provider.MediaStore.MATCH_DEFAULT;
32 import static android.provider.MediaStore.MATCH_EXCLUDE;
33 import static android.provider.MediaStore.MATCH_INCLUDE;
34 import static android.provider.MediaStore.MATCH_ONLY;
35 import static android.provider.MediaStore.QUERY_ARG_DEFER_SCAN;
36 import static android.provider.MediaStore.QUERY_ARG_MATCH_FAVORITE;
37 import static android.provider.MediaStore.QUERY_ARG_MATCH_PENDING;
38 import static android.provider.MediaStore.QUERY_ARG_MATCH_TRASHED;
39 import static android.provider.MediaStore.QUERY_ARG_RELATED_URI;
40 import static android.provider.MediaStore.getVolumeName;
[all …]
DMediaService.java34 import android.provider.MediaStore;
115 .acquireContentProviderClient(MediaStore.AUTHORITY)) { in onLocaleChanged()
122 .acquireContentProviderClient(MediaStore.AUTHORITY)) { in onPackageOrphaned()
133 .acquireContentProviderClient(MediaStore.AUTHORITY)) { in onMediaMountedBroadcast()
161 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in onScanVolume()
170 if (!MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in onScanVolume()
177 .acquireContentProviderClient(MediaStore.AUTHORITY)) { in onScanVolume()
184 values.put(MediaStore.MEDIA_SCANNER_VOLUME, volumeName); in onScanVolume()
185 Uri scanUri = resolver.insert(MediaStore.getMediaScannerUri(), values); in onScanVolume()
192 if (MediaStore.VOLUME_INTERNAL.equals(volumeName)) { in onScanVolume()
[all …]
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java29 import android.provider.MediaStore;
30 import android.provider.MediaStore.Video.VideoColumns;
51 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in setUp()
97 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraOutput()
136 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraSizeLimit()
137 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); in testExtraSizeLimit()
138 mIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // use low quality to speed up in testExtraSizeLimit()
158 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraDurationLimit()
159 mIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, durationLimit); in testExtraDurationLimit()
180 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DVideoCaptureIntentTest.java31 import android.provider.MediaStore;
32 import android.provider.MediaStore.Video.VideoColumns;
58 mIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); in setUp()
104 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraOutput()
159 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraSizeLimit()
160 mIntent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, sizeLimit); in testExtraSizeLimit()
161 mIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // use low quality to speed up in testExtraSizeLimit()
181 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri); in testExtraDurationLimit()
182 mIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, durationLimit); in testExtraDurationLimit()
203 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoader.java35 import android.provider.MediaStore;
36 import android.provider.MediaStore.Files.FileColumns;
37 import android.provider.MediaStore.MediaColumns;
89 result.imagesSize = getFilesSize(info.id, MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in getStorageResultsForUsers()
91 result.videosSize = getFilesSize(info.id, MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in getStorageResultsForUsers()
93 result.audioSize = getFilesSize(info.id, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in getStorageResultsForUsers()
103 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL), in getStorageResultsForUsers()
107 trashQueryArgs.putInt(MediaStore.QUERY_ARG_MATCH_TRASHED, MediaStore.MATCH_ONLY); in getStorageResultsForUsers()
109 MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL), trashQueryArgs); in getStorageResultsForUsers()

1234567