Home
last modified time | relevance | path

Searched refs:Images (Results 1 – 25 of 60) sorted by relevance

123

/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DLocalSource.java71 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()
130 MediaStore.Images.Media.BUCKET_ID, MediaStore.Images.Media.BUCKET_DISPLAY_NAME}; in openCursor()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DPhotoDataQuery.java26 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
53 MediaStore.Images.ImageColumns.WIDTH, // 7, int
[all …]
DDataUtils.java31 MediaStore.Images.Media.DATA in getPathFromURI()
38 int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); in getPathFromURI()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java40 import android.provider.MediaStore.Images;
59 private static final Uri STORAGE_URI = Images.Media.EXTERNAL_CONTENT_URI;
61 = Images.Thumbnails.EXTERNAL_CONTENT_URI;
230 values.put(Images.Media.TITLE, title); in addImage()
235 values.put(Images.Media.DISPLAY_NAME, filename); in addImage()
236 values.put(Images.Media.DATE_TAKEN, dateTaken); in addImage()
237 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in addImage()
238 values.put(Images.Media.ORIENTATION, degree[0]); in addImage()
239 values.put(Images.Media.DATA, filePath); in addImage()
242 values.put(Images.Media.LATITUDE, location.getLatitude()); in addImage()
[all …]
DBitmapManager.java22 import android.provider.MediaStore.Images;
128 Images.Thumbnails.cancelThumbnailRequest(cr, -1, t.getId()); in cancelThreadDecoding()
156 return Images.Thumbnails.getThumbnail(cr, origId, t.getId(), in getThumbnail()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java28 import android.provider.MediaStore.Images;
29 import android.provider.MediaStore.Images.ImageColumns;
364 Images.Media.EXTERNAL_CONTENT_URI, values); in processAndSaveImage()
439 Images.Media.EXTERNAL_CONTENT_URI, values); in processAndSaveImage()
679 Images.Media.EXTERNAL_CONTENT_URI, values); in linkNewFileToUri()
700 values.put(Images.Media.TITLE, file.getName()); in getContentValues()
701 values.put(Images.Media.DISPLAY_NAME, file.getName()); in getContentValues()
702 values.put(Images.Media.MIME_TYPE, "image/jpeg"); in getContentValues()
703 values.put(Images.Media.DATE_TAKEN, time); in getContentValues()
704 values.put(Images.Media.DATE_MODIFIED, time); in getContentValues()
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DMediaSaver.java141 values.put(MediaStore.Images.Media.TITLE, file.getName()); in insertImage()
142 values.put(MediaStore.Images.Media.DISPLAY_NAME, file.getName()); in insertImage()
143 values.put(MediaStore.Images.Media.DESCRIPTION, file.getName()); in insertImage()
144 values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg"); in insertImage()
145 values.put(MediaStore.Images.Media.DATA, file.getAbsolutePath()); in insertImage()
147 values.put(MediaStore.Images.Media.DATE_ADDED, System.currentTimeMillis()); in insertImage()
148 values.put(MediaStore.Images.Media.DATE_TAKEN, System.currentTimeMillis()); in insertImage()
151 cr.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); in insertImage()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DPickImageInfo.java57 Cursor cursor = MediaStore.Images.Media.query(context.getContentResolver(), in getThumbnailOfLastPhoto()
58 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in getThumbnailOfLastPhoto()
59 new String[] { MediaStore.Images.ImageColumns._ID, in getThumbnailOfLastPhoto()
60 MediaStore.Images.ImageColumns.DATE_TAKEN}, in getThumbnailOfLastPhoto()
61 null, null, MediaStore.Images.ImageColumns.DATE_TAKEN + " DESC LIMIT 1"); in getThumbnailOfLastPhoto()
67 thumb = MediaStore.Images.Thumbnails.getThumbnail(context.getContentResolver(), in getThumbnailOfLastPhoto()
68 id, MediaStore.Images.Thumbnails.MINI_KIND, null); in getThumbnailOfLastPhoto()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DImageCategory.java74 MediaStore.Images.ImageColumns._ID, in getThumbnail()
75 MediaStore.Images.ImageColumns.DATE_TAKEN, in getThumbnail()
77 String sortOrder = MediaStore.Images.ImageColumns.DATE_TAKEN + " DESC"; in getThumbnail()
79 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in getThumbnail()
89 … Uri.parse(MediaStore.Images.Media.EXTERNAL_CONTENT_URI + "/" + cursor.getString(0))); in getThumbnail()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalImage.java28 import android.provider.MediaStore.Images;
29 import android.provider.MediaStore.Images.ImageColumns;
117 Uri uri = Images.Media.EXTERNAL_CONTENT_URI; in LocalImage()
268 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in delete()
278 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in rotate()
292 values.put(Images.Media.SIZE, fileSize); in rotate()
303 values.put(Images.Media.ORIENTATION, rotation); in rotate()
310 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getContentUri()
DLocalAlbum.java25 import android.provider.MediaStore.Images;
26 import android.provider.MediaStore.Images.ImageColumns;
74 mBaseUri = Images.Media.EXTERNAL_CONTENT_URI; in LocalAlbum()
104 return MediaStore.Images.Media.EXTERNAL_CONTENT_URI.buildUpon() in getContentUri()
175 baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getMediaItemById()
DBucketHelper.java9 import android.provider.MediaStore.Images;
10 import android.provider.MediaStore.Images.ImageColumns;
114 jc, resolver, Images.Media.EXTERNAL_CONTENT_URI, buckets); in loadBucketEntriesFromImagesAndVideoTable()
195 resolver, Images.Media.EXTERNAL_CONTENT_URI, bucketId); in getBucketName()
DSecureAlbum.java22 import android.provider.MediaStore.Images;
49 {Images.Media.EXTERNAL_CONTENT_URI, Video.Media.EXTERNAL_CONTENT_URI};
62 mShowUnlockItem = (!isCameraBucketEmpty(Images.Media.EXTERNAL_CONTENT_URI) in SecureAlbum()
170 Images.Media.EXTERNAL_CONTENT_URI, mMinImageId, mMaxImageId); in updateExistingItems()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java58 import android.provider.MediaStore.Images.ImageColumns;
301 MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY, 42)); in testCreateRequest()
509 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Simple()
538 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Primary()
546 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_Secondary()
553 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_InvalidNames()
579 … buildFile(MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidTypes()
589 buildFile(MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY), in testBuildData_InvalidSecondaryTypes()
604 Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testBuildData_EmptyTypes()
631 final Uri uri = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY); in testEnsureFileColumns_InvalidMimeType_targetSdkQ()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DMyPhotosViewHolder.java77 MediaStore.Images.ImageColumns._ID, in fetchThumbnail()
78 MediaStore.Images.ImageColumns.DATE_TAKEN, in fetchThumbnail()
80 String sortOrder = MediaStore.Images.ImageColumns.DATE_TAKEN + " DESC LIMIT 1"; in fetchThumbnail()
82 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in fetchThumbnail()
92 … MediaStore.Images.Media.EXTERNAL_CONTENT_URI + "/" + cursor.getString(0))); in fetchThumbnail()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java590 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common()
593 uri = ContentUris.withAppendedId(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testScan_Common()
611 .query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null)) { in testScan_Common()
621 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Common()
665 assertQueryCount(2, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir()
671 assertQueryCount(1, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir()
676 assertQueryCount(2, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_Dir()
693 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_MaxExcludeNomediaDirs_DoesNotThrowException()
695 assertQueryCount(1, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_MaxExcludeNomediaDirs_DoesNotThrowException()
717 assertQueryCount(0, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); in testScan_Nomedia_File()
[all …]
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java22 import android.provider.MediaStore.Images;
84 Cursor c = Images.Media.query( in getBucketIds()
104 ? Images.Media.BUCKET_ID + " = '" + mBucketId + "'" in whereClause()
114 Cursor c = Images.Media.query( in createCursor()
DImage.java29 import android.provider.MediaStore.Images;
30 import android.provider.MediaStore.Images.ImageColumns;
157 Images.Thumbnails.MINI_KIND, options, false); in thumbBitmap()
DVideoObject.java25 import android.provider.MediaStore.Images;
113 id, Images.Thumbnails.MICRO_KIND, null, true); in miniThumbBitmap()
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DPublicVolumeTest.java75 MediaStore.Images.Media.getContentUri(volumeName), values); in testIncludeRecentlyUnmountedVolumes()
90 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
98 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
106 try (Cursor c = contentResolver.query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in testIncludeRecentlyUnmountedVolumes()
/packages/apps/Camera2/src/com/android/camera/session/
DPlaceholderManager.java185 MediaStore.Images.Media.DATE_TAKEN, MediaStore.Images.Media.DISPLAY_NAME, in createSessionFromUri()
192 int dateIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_TAKEN); in createSessionFromUri()
193 int nameIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DISPLAY_NAME); in createSessionFromUri()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java59 import android.provider.MediaStore.Images;
60 import android.provider.MediaStore.Images.ImageColumns;
419 Images.Media.EXTERNAL_CONTENT_URI, ident.id); in getUriForDocumentId()
489 query = Images.Media.EXTERNAL_CONTENT_URI; in getDocumentMetadataFromIndex()
618 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument()
621 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument()
627 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryDocument()
630 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryDocument()
730 cursor = resolver.query(Images.Media.EXTERNAL_CONTENT_URI, in queryChildDocuments()
733 result.setNotificationUri(resolver, Images.Media.EXTERNAL_CONTENT_URI); in queryChildDocuments()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java27 import android.provider.MediaStore.Images;
28 import android.provider.MediaStore.Images.ImageColumns;
165 bitmap = Images.Thumbnails.getThumbnail(resolver, image.id, in getLastThumbnail()
166 Images.Thumbnails.MINI_KIND, null); in getLastThumbnail()
196 Uri baseUri = Images.Media.EXTERNAL_CONTENT_URI; in getLastImageThumbnail()
DStorage.java25 import android.provider.MediaStore.Images;
26 import android.provider.MediaStore.Images.ImageColumns;
89 uri = resolver.insert(Images.Media.EXTERNAL_CONTENT_URI, values); in addImage()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java75 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in onCreate()
89 MediaStore.Images.Media.EXTERNAL_CONTENT_URI, in respondPhoto()

123