Searched refs:parseOptionalDateTaken (Results 1 – 2 of 2) sorted by relevance
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 22 import static com.android.providers.media.scan.ModernMediaScanner.parseOptionalDateTaken; 114 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete() 116 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete() 120 assertEquals(1453972654000L + 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete() 122 assertEquals(1453972654000L - 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Complete() 134 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Gps() 137 assertEquals(1453972654000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Gps() 142 assertEquals(1453972654000L + 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Gps() 145 assertEquals(1453972654000L + 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Gps() 150 assertEquals(1453972654000L - 25200000L, (long) parseOptionalDateTaken(exif, 0L).get()); in testParseDateTaken_Gps() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | ModernMediaScanner.java | 734 parseOptionalDateTaken(exif, lastModifiedTime(file, attrs) * 1000)); in scanItemImage() 816 static @NonNull Optional<Long> parseOptionalDateTaken(@NonNull ExifInterface exif, in parseOptionalDateTaken() method in ModernMediaScanner
|