Home
last modified time | relevance | path

Searched refs:dateTakenMs (Results 1 – 10 of 10) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/
DPickerDbTestUtils.java139 public static Cursor getMediaCursor(String id, long dateTakenMs, long generationModified, in getMediaCursor() argument
160 String.valueOf(dateTakenMs), in getMediaCursor()
177 public static Cursor getAlbumCursor(String albumId, long dateTakenMs, String coverId, in getAlbumCursor() argument
191 String.valueOf(dateTakenMs), in getAlbumCursor()
204 long dateTakenMs, in getAlbumMediaCursor() argument
226 String.valueOf(dateTakenMs), in getAlbumMediaCursor()
239 public static Cursor getLocalMediaCursor(String localId, long dateTakenMs) { in getLocalMediaCursor() argument
240 return getMediaCursor(localId, dateTakenMs, GENERATION_MODIFIED, toMediaStoreUri(localId), in getLocalMediaCursor()
245 public static Cursor getAlbumMediaCursor(String localId, String cloudId, long dateTakenMs) { in getAlbumMediaCursor() argument
246 return getAlbumMediaCursor(cloudId, dateTakenMs, GENERATION_MODIFIED, in getAlbumMediaCursor()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPickerProviderMediaGenerator.java412 public final long dateTakenMs; field in PickerProviderMediaGenerator.TestMedia
441 this.dateTakenMs = System.currentTimeMillis(); in TestMedia()
458 String.valueOf(dateTakenMs), in toArray()
472 String.valueOf(dateTakenMs), in toAlbumMediaArray()
510 long dateTakenMs = 0; in toArray() local
516 dateTakenMs = m.dateTakenMs; in toArray()
527 String.valueOf(dateTakenMs), in toArray()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DNotificationContentObserver.java65 void onNotificationReceived(String dateTakenMs, String albumId); in onNotificationReceived() argument
161 String dateTakenMs = uri.getLastPathSegment(); in onChange() local
165 mUrisToCallback.get(keys).onNotificationReceived(dateTakenMs, albumId); in onChange()
DPickerSyncController.java1603 @Nullable String dateTakenMs) { in buildNotificationUri() argument
1606 dateTakenMs, "Cannot notify subscribers without a date taken timestamp."); in buildNotificationUri()
1640 builder.appendPath(dateTakenMs); in buildNotificationUri()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/
DPhotosTabAdapterTest.java109 final long dateTakenMs = mediaItems.get(mediaItems.size() - 1).getDateTaken(); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem() local
111 final Item lastItem = generateJpegItem(lastItemId, dateTakenMs, /* generationModified */ 1); in test_exceedMinCount_sameDay_hasRecentItemNoDateItem()
203 final long dateTakenMs = System.currentTimeMillis() in generateFakeImageItem() local
205 return generateJpegItem(id, dateTakenMs, /* generationModified */ 1L); in generateFakeImageItem()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DExternalDbFacadeTest.java1209 long dateTakenMs) { in assertMediaColumns() argument
1210 assertMediaColumns(facade, cursor, id, dateTakenMs, IS_FAVORITE); in assertMediaColumns()
1214 long dateTakenMs, int isFavorite) { in assertMediaColumns() argument
1215 assertMediaColumns(facade, cursor, id, dateTakenMs, isFavorite, IMAGE_MIME_TYPE); in assertMediaColumns()
1219 long dateTakenMs, int isFavorite, String mimeType) { in assertMediaColumns() argument
1240 .isEqualTo(dateTakenMs); in assertMediaColumns()
1278 String displayName, long dateTakenMs, long count) { in assertAlbumColumns() argument
1291 .that(cursor.getLong(dateTakenIndex)).isEqualTo(dateTakenMs); in assertAlbumColumns()
1312 private static ContentValues getContentValues(long dateTakenMs, long generation) { in getContentValues() argument
1315 cv.put(MediaColumns.DATE_TAKEN, dateTakenMs); in getContentValues()
DSelectionTest.java580 final long dateTakenMs = System.currentTimeMillis() + Long.parseLong(id) in generateFakeImageItem() local
583 return generateJpegItem(id, dateTakenMs, /* generationModified */ 1L); in generateFakeImageItem()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DTestableContentObserverCallback.java35 public void onNotificationReceived(String dateTakenMs, String albumId) { in onNotificationReceived() argument
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelTest.java449 final long dateTakenMs = System.currentTimeMillis() in generateFakeImageItem() local
451 return ModelTestUtils.generateJpegItem(id, dateTakenMs, /* generationModified */ 1L); in generateFakeImageItem()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModel.java227 (dateTakenMs, albumId) -> { in PickerViewModel()