Searched refs:jpgFile (Results 1 – 2 of 2) sorted by relevance
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 972 final File jpgFile = new File(getPicturesDir(), IMAGE_FILE_NAME); in testScanUpdatesMetadataForNewlyAddedFile_hasRW() local 977 FileOutputStream out = new FileOutputStream(jpgFile)) { in testScanUpdatesMetadataForNewlyAddedFile_hasRW() 983 values.put(MediaStore.MediaColumns.DATA, jpgFile.getAbsolutePath()); in testScanUpdatesMetadataForNewlyAddedFile_hasRW() 988 try (Cursor c = TestUtils.queryFile(jpgFile, MediaStore.MediaColumns.DATE_TAKEN)) { in testScanUpdatesMetadataForNewlyAddedFile_hasRW() 995 final Uri scanUri = MediaStore.scanFile(getContentResolver(), jpgFile); in testScanUpdatesMetadataForNewlyAddedFile_hasRW() 999 try (Cursor c = TestUtils.queryFile(jpgFile, MediaStore.MediaColumns.DATE_TAKEN)) { in testScanUpdatesMetadataForNewlyAddedFile_hasRW() 1004 jpgFile.delete(); in testScanUpdatesMetadataForNewlyAddedFile_hasRW()
|
/cts/hostsidetests/scopedstorage/general/src/android/scopedstorage/cts/general/ |
D | ScopedStorageDeviceTest.java | 869 File jpgFile = new File(getPicturesDir(), "img_metadata.jpg"); in testMetaDataRedaction() local 871 if (jpgFile.exists()) { in testMetaDataRedaction() 872 assertThat(jpgFile.delete()).isTrue(); in testMetaDataRedaction() 880 FileOutputStream out = new FileOutputStream(jpgFile)) { in testMetaDataRedaction() 888 HashMap<String, String> exif = getExifMetadataFromFile(jpgFile); in testMetaDataRedaction() 892 readExifMetadataFromTestApp(APP_A_HAS_RES, jpgFile.getPath()); in testMetaDataRedaction() 901 jpgFile.delete(); in testMetaDataRedaction() 2886 final File jpgFile = new File(getPicturesDir(), IMAGE_FILE_NAME); in testScanUpdatesMetadataForRenamedHiddenFile() local 2899 assertCanRenameFile(hiddenFile, jpgFile); in testScanUpdatesMetadataForRenamedHiddenFile() 2901 try (Cursor c = queryFile(jpgFile, MediaStore.MediaColumns.DATE_TAKEN)) { in testScanUpdatesMetadataForRenamedHiddenFile() [all …]
|