Home
last modified time | relevance | path

Searched refs:dateTaken (Results 1 – 22 of 22) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/
DItemTest.java60 final long dateTaken = 12345678L; in testConstructor() local
64 final Cursor cursor = generateCursorForItem(id, mimeType, dateTaken, generationModified, in testConstructor()
71 assertThat(item.getDateTaken()).isEqualTo(dateTaken); in testConstructor()
87 final long dateTaken = 12345678L; in testConstructor_differentUser() local
91 final Cursor cursor = generateCursorForItem(id, mimeType, dateTaken, generationModified, in testConstructor_differentUser()
99 assertThat(item.getDateTaken()).isEqualTo(dateTaken); in testConstructor_differentUser()
116 final long dateTaken = 12345678L; in testIsImage() local
120 final Item item = generateItem(id, mimeType, dateTaken, generationModified, duration); in testIsImage()
132 final long dateTaken = 12345678L; in testIsVideo() local
136 final Item item = generateItem(id, mimeType, dateTaken, generationModified, duration); in testIsVideo()
[all …]
DModelTestUtils.java35 public static Item generateItem(String id, String mimeType, long dateTaken, in generateItem() argument
37 return new Item(id, mimeType, dateTaken, generationModified, duration, in generateItem()
53 public static Item generateSpecialFormatItem(String id, String mimeType, long dateTaken, in generateSpecialFormatItem() argument
55 return new Item(id, mimeType, dateTaken, generationModified, duration, in generateSpecialFormatItem()
61 public static Item generateJpegItem(String id, long dateTaken, long generationModified) { in generateJpegItem() argument
62 return generateItem(id, MIME_TYPE_JPEG, dateTaken, generationModified, /* duration */ 1000); in generateJpegItem()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBucketHelper.java94 int dateTaken = cursor.getInt(INDEX_DATE_TAKEN); in updateBucketEntriesFromTable() local
99 entry.dateTaken = dateTaken; in updateBucketEntriesFromTable()
101 entry.dateTaken = Math.max(entry.dateTaken, dateTaken); in updateBucketEntriesFromTable()
125 return b.dateTaken - a.dateTaken; in loadBucketEntriesFromImagesAndVideoTable()
206 public int dateTaken; field in BucketHelper.BucketEntry
/packages/apps/Gallery/src/com/android/camera/gallery/
DVideoList.java61 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); in loadImageFromCursor() local
62 if (dateTaken == 0) { in loadImageFromCursor()
63 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000; in loadImageFromCursor()
73 mimeType, dateTaken, title); in loadImageFromCursor()
DImageList.java123 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN); in loadImageFromCursor() local
124 if (dateTaken == 0) { in loadImageFromCursor()
125 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000; in loadImageFromCursor()
135 contentUri(id), dataPath, mimeType, dateTaken, title, in loadImageFromCursor()
DVideoObject.java47 String mimeType, long dateTaken, String title) { in VideoObject() argument
49 mimeType, dateTaken, title); in VideoObject()
DImage.java47 String mimeType, long dateTaken, String title, in Image() argument
50 mimeType, dateTaken, title); in Image()
DBaseImage.java60 long dateTaken, String title) { in BaseImage() argument
68 mDateTaken = dateTaken; in BaseImage()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DOther.java88 public boolean setDateTaken(long dateTaken) { in setDateTaken() argument
89 if (dateTaken == mDateTaken) { in setDateTaken()
92 mDateTaken = dateTaken; in setDateTaken()
DVideoStore.java257 long dateTaken = cursor.getLong(dateTakenColumn); in loadData() local
258 updated |= other.setDateTaken(dateTaken); in loadData()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java164 if (image != null && (video == null || image.dateTaken >= video.dateTaken)) { in getLastThumbnail()
182 public Media(long id, int orientation, long dateTaken, Uri uri) { in Media() argument
185 this.dateTaken = dateTaken; in Media()
191 public final long dateTaken; field in Thumbnail.Media
DUtil.java588 public static String createJpegName(long dateTaken) { in createJpegName() argument
590 return sImageFileNamer.generateName(dateTaken); in createJpegName()
701 public String generateName(long dateTaken) { in generateName() argument
702 Date date = new Date(dateTaken); in generateName()
707 if (dateTaken / 1000 == mLastDate / 1000) { in generateName()
711 mLastDate = dateTaken; in generateName()
DVideoCamera.java344 private String createName(long dateTaken) { in createName() argument
345 Date date = new Date(dateTaken); in createName()
1393 long dateTaken = System.currentTimeMillis(); in generateVideoFilename() local
1394 String title = createName(dateTaken); in generateVideoFilename()
1402 mCurrentVideoValues.put(Video.Media.DATE_TAKEN, dateTaken); in generateVideoFilename()
2410 long dateTaken = System.currentTimeMillis(); in storeImage() local
2411 String title = Util.createJpegName(dateTaken); in storeImage()
2414 Uri uri = Storage.addImage(mContentResolver, title, dateTaken, loc, orientation, data, in storeImage()
DCamera.java850 long dateTaken; field in Camera.SaveRequest
894 r.dateTaken = System.currentTimeMillis(); in addImage()
935 storeImage(r.data, r.loc, r.width, r.height, r.dateTaken, in run()
992 int height, long dateTaken, int previewWidth) { in storeImage() argument
993 String title = Util.createJpegName(dateTaken); in storeImage()
995 Uri uri = Storage.addImage(mContentResolver, title, dateTaken, in storeImage()
/packages/apps/Camera2/src/com/android/camera/
DPanoUtil.java23 public static String createName(String format, long dateTaken) { in createName() argument
24 Date date = new Date(dateTaken); in createName()
DVideoModule.java318 private String createName(long dateTaken) { in createName() argument
319 Date date = new Date(dateTaken); in createName()
1220 long dateTaken = System.currentTimeMillis(); in generateVideoValues() local
1221 String title = createName(dateTaken); in generateVideoValues()
1227 mCurrentVideoValues.put(Video.Media.DATE_TAKEN, dateTaken); in generateVideoValues()
1228 mCurrentVideoValues.put(MediaColumns.DATE_MODIFIED, dateTaken / 1000); in generateVideoValues()
1937 long dateTaken = System.currentTimeMillis(); in storeImage() local
1938 String title = CameraUtil.instance().createJpegName(dateTaken); in storeImage()
1950 getServices().getMediaSaver().addImage(data, title, dateTaken, loc, orientation, exif, in storeImage()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoUtil.java23 public static String createName(String format, long dateTaken) { in createName() argument
24 Date date = new Date(dateTaken); in createName()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/
DItem.java80 public Item(String id, String mimeType, long dateTaken, long generationModified, long duration, in Item() argument
84 mDateTaken = dateTaken; in Item()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java747 public String createJpegName(long dateTaken) { in createJpegName() argument
749 return mImageFileNamer.generateName(dateTaken); in createJpegName()
1031 public String generateName(long dateTaken) { in generateName() argument
1032 Date date = new Date(dateTaken); in generateName()
1037 if (dateTaken / 1000 == mLastDate / 1000) { in generateName()
1041 mLastDate = dateTaken; in generateName()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/
DPickerDataLayerV2Test.java1593 Long dateTaken, String mimeType) { in assertMediaCursor() argument
1594 assertMediaCursor(cursor, id, authority, dateTaken, mimeType, in assertMediaCursor()
1599 Long dateTaken, String mimeType, String intent) { in assertMediaCursor() argument
1613 .isEqualTo(dateTaken); in assertMediaCursor()
1629 Long dateTaken, String coverMediaId) { in assertAlbumCursor() argument
1633 assertAlbumCursor(cursor, albumId, authority, dateTaken, coverMediaId, mediaSource); in assertAlbumCursor()
1637 Long dateTaken, String coverMediaId, MediaSource mediaSource) { in assertAlbumCursor() argument
1651 .isEqualTo(dateTaken); in assertAlbumCursor()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java200 public static Uri addImage(ContentResolver cr, String title, long dateTaken, in addImage() argument
236 values.put(Images.Media.DATE_TAKEN, dateTaken); in addImage()
DMenuHelper.java430 long dateTaken = image.getDateTaken(); in onDetailsClicked()
431 if (dateTaken != 0) { in onDetailsClicked()