Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java153 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromPath() local
154 assertTrue(imageFile.createNewFile()); in testCreateFromPath()
155 assertTrue(imageFile.exists()); in testCreateFromPath()
156 writeSampleImage(imageFile); in testCreateFromPath()
158 final String path = imageFile.getPath(); in testCreateFromPath()
161 assertTrue(imageFile.delete()); in testCreateFromPath()
175 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromIncomplete() local
176 assertTrue(imageFile.createNewFile()); in testCreateFromIncomplete()
177 assertTrue(imageFile.exists()); in testCreateFromIncomplete()
178 try (OutputStream target = new FileOutputStream(imageFile)) { in testCreateFromIncomplete()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java385 File imageFile = new File(Environment.getExternalStorageDirectory(), fileName); in testExifInterfaceCommon() local
386 String verboseTag = imageFile.getName(); in testExifInterfaceCommon()
389 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testExifInterfaceCommon()
394 exifInterface = new ExifInterface(imageFile); in testExifInterfaceCommon()
400 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); in testExifInterfaceCommon()
410 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); in testExifInterfaceCommon()
422 File imageFile = new File(Environment.getExternalStorageDirectory(), fileName); in testExifInterfaceRange() local
425 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); in testExifInterfaceRange()
444 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); in testExifInterfaceRange()
456 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); in testExifInterfaceRange()
[all …]
DHeifWriterTest.java131 File imageFile = new File(imageFilePath); in tearDown() local
132 if (imageFile.exists()) { in tearDown()
133 imageFile.delete(); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java137 File imageFile = (File) getArguments().getSerializable(KEY_IMAGE_FILE); in onCreateDialog() local
144 int orientationInDegree = getOrientationInDegreeFromImage(imageFile); in onCreateDialog()
146 input = new FileInputStream(imageFile); in onCreateDialog()
160 input = new FileInputStream(imageFile); in onCreateDialog()
214 private static int getOrientationInDegreeFromImage(File imageFile) throws IOException { in getOrientationInDegreeFromImage() argument
215 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in getOrientationInDegreeFromImage()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java279 File imageFile = new File(path); in testSetImageViewUri() local
282 createSampleImage(imageFile, R.raw.testimage); in testSetImageViewUri()
296 imageFile.delete(); in testSetImageViewUri()