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 …]
363 File imageFile = new File(Environment.getExternalStorageDirectory(), fileName); in testExifInterfaceCommon() local364 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() local402 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 …]
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()