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.java363 File imageFile = new File(Environment.getExternalStorageDirectory(), fileName); in testExifInterfaceCommon() local
364 String verboseTag = imageFile.getName(); in testExifInterfaceCommon()
367 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testExifInterfaceCommon()
372 exifInterface = new ExifInterface(imageFile); in testExifInterfaceCommon()
378 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); in testExifInterfaceCommon()
388 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); in testExifInterfaceCommon()
401 File imageFile = clone(srcFile); in testSaveAttributes_withFileName() local
402 String verboseTag = imageFile.getName(); in testSaveAttributes_withFileName()
404 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testSaveAttributes_withFileName()
406 exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testSaveAttributes_withFileName()
[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()