Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java183 File imageFile = new File(imageFilePath); in tearDown() local
184 if (imageFile.exists()) { in tearDown()
185 imageFile.delete(); in tearDown()
323 private void testExifInterfaceCommon(File imageFile, ExpectedValue expectedValue) in testExifInterfaceCommon() argument
325 String verboseTag = imageFile.getName(); in testExifInterfaceCommon()
328 ExifInterface exifInterface = new ExifInterface(imageFile.getAbsolutePath()); in testExifInterfaceCommon()
335 in = getContext().getAssets().open(imageFile.getName()); in testExifInterfaceCommon()
345 in = new BufferedInputStream(new FileInputStream(imageFile.getAbsolutePath())); in testExifInterfaceCommon()
355 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); in testExifInterfaceCommon()
365 private void testSaveAttributes_withFileName(File imageFile, ExpectedValue expectedValue) in testSaveAttributes_withFileName() argument
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java130 File imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromPath() local
131 assertTrue(imageFile.createNewFile()); in testCreateFromPath()
132 assertTrue(imageFile.exists()); in testCreateFromPath()
133 writeSampleImage(imageFile); in testCreateFromPath()
135 final String path = imageFile.getPath(); in testCreateFromPath()
138 assertTrue(imageFile.delete()); in testCreateFromPath()
167 File imageFile = null; in testCreateFromStream() local
182 imageFile = new File(mContext.getFilesDir(), "tempimage.jpg"); in testCreateFromStream()
184 writeSampleImage(imageFile); in testCreateFromStream()
186 inputStream = new FileInputStream(imageFile); in testCreateFromStream()
[all …]
/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.java205 File imageFile = new File(path); in testSetImageViewUri() local
208 createSampleImage(imageFile, R.raw.testimage); in testSetImageViewUri()
222 imageFile.delete(); in testSetImageViewUri()