Searched refs:imageFile (Results 1 – 5 of 5) sorted by relevance
153 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromPath() local154 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() local176 assertTrue(imageFile.createNewFile()); in testCreateFromIncomplete()177 assertTrue(imageFile.exists()); in testCreateFromIncomplete()178 try (OutputStream target = new FileOutputStream(imageFile)) { in testCreateFromIncomplete()[all …]
385 File imageFile = new File(Environment.getExternalStorageDirectory(), fileName); in testExifInterfaceCommon() local386 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() local425 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 …]
131 File imageFile = new File(imageFilePath); in tearDown() local132 if (imageFile.exists()) { in tearDown()133 imageFile.delete(); in tearDown()
137 File imageFile = (File) getArguments().getSerializable(KEY_IMAGE_FILE); in onCreateDialog() local144 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() argument215 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in getOrientationInDegreeFromImage()
279 File imageFile = new File(path); in testSetImageViewUri() local282 createSampleImage(imageFile, R.raw.testimage); in testSetImageViewUri()296 imageFile.delete(); in testSetImageViewUri()