Home
last modified time | relevance | path

Searched refs:imageFile (Results 1 – 7 of 7) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DItemsProviderTest.java145 File imageFile = assertCreateNewImage(cameraDir); in testGetCategories_camera() local
149 imageFile.delete(); in testGetCategories_camera()
205 File imageFile = assertCreateNewImage(picturesDir); in testGetCategories_not_videos() local
209 imageFile.delete(); in testGetCategories_not_videos()
225 File imageFile = assertCreateNewImage(screenshotsDir); in testGetCategories_screenshots() local
246 imageFile.delete(); in testGetCategories_screenshots()
266 File imageFile = assertCreateNewImage(cameraDir); in testGetCategories_not_screenshots() local
270 imageFile.delete(); in testGetCategories_not_screenshots()
286 final File imageFile = assertCreateNewImage(picturesDir); in testGetCategories_favorites() local
287 setIsFavorite(imageFile); in testGetCategories_favorites()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cluster/
DClusterContentProvider.java58 File imageFile = new File( in openFile() local
63 if (!imageFile.exists()) { in openFile()
69 Files.copy(inputStream, imageFile.toPath(), in openFile()
75 imageFile = new File( in openFile()
79 ParcelFileDescriptor image = ParcelFileDescriptor.open(imageFile, in openFile()
/packages/apps/StorageManager/tests/unit/src/com/android/storagemanager/deletionhelper/
DFetchDownloadsLoaderTest.java100 File imageFile = temporaryFolder.newFile("test.gif"); in testFetchesThumbnailsForImages() local
101 imageFile.setLastModified(0); in testFetchesThumbnailsForImages()
103 FileWriter fileWriter = new FileWriter(imageFile); in testFetchesThumbnailsForImages()
112 assertTrue(result.thumbnails.containsKey(imageFile)); in testFetchesThumbnailsForImages()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionPreferenceGroupTest.java71 File imageFile = new File(mTempDir, "test.bmp"); in thumbnailsArePopulated() local
72 result.files.add(imageFile); in thumbnailsArePopulated()
73 result.thumbnails.put(imageFile, Bitmap.createBitmap(1, 1, Bitmap.Config.RGB_565)); in thumbnailsArePopulated()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionType.java186 public @Nullable Bitmap getCachedThumbnail(File imageFile) { in getCachedThumbnail() argument
190 return mThumbnails.get(imageFile); in getCachedThumbnail()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/testutils/
DCommonUtils.java69 File imageFile = new File(mPath); in takeScreenshot() local
71 FileOutputStream outputStream = new FileOutputStream(imageFile); in takeScreenshot()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DEmbmsTestDownloadApp.java411 File imageFile = new File(fileLocation.getPath()); in onDownloadDone() local
412 if (!imageFile.exists()) { in onDownloadDone()