Home
last modified time | relevance | path

Searched refs:jpgFile (Results 1 – 2 of 2) sorted by relevance

/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/
DLegacyStorageTest.java905 final File jpgFile = new File(getPicturesDir(), IMAGE_FILE_NAME); in testScanUpdatesMetadataForNewlyAddedFile_hasRW() local
910 FileOutputStream out = new FileOutputStream(jpgFile)) { in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
916 values.put(MediaStore.MediaColumns.DATA, jpgFile.getAbsolutePath()); in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
921 try (Cursor c = TestUtils.queryFile(jpgFile, MediaStore.MediaColumns.DATE_TAKEN)) { in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
928 final Uri scanUri = MediaStore.scanFile(getContentResolver(), jpgFile); in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
932 try (Cursor c = TestUtils.queryFile(jpgFile, MediaStore.MediaColumns.DATE_TAKEN)) { in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
937 jpgFile.delete(); in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java848 File jpgFile = new File(getPicturesDir(), "img_metadata.jpg"); in testMetaDataRedaction() local
850 if (jpgFile.exists()) { in testMetaDataRedaction()
851 assertThat(jpgFile.delete()).isTrue(); in testMetaDataRedaction()
859 FileOutputStream out = new FileOutputStream(jpgFile)) { in testMetaDataRedaction()
867 HashMap<String, String> exif = getExifMetadata(jpgFile); in testMetaDataRedaction()
871 readExifMetadataFromTestApp(APP_A_HAS_RES, jpgFile.getPath()); in testMetaDataRedaction()
880 jpgFile.delete(); in testMetaDataRedaction()
2692 final File jpgFile = new File(getPicturesDir(), IMAGE_FILE_NAME); in testScanUpdatesMetadataForRenamedHiddenFile() local
2705 assertCanRenameFile(hiddenFile, jpgFile); in testScanUpdatesMetadataForRenamedHiddenFile()
2707 try (Cursor c = queryFile(jpgFile, MediaStore.MediaColumns.DATE_TAKEN)) { in testScanUpdatesMetadataForRenamedHiddenFile()
[all …]