Home
last modified time | relevance | path

Searched refs:imagefile (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DImageSwitcherTest.java125 File imagefile = new File(dbDir, "tempimage.jpg"); in testSetImageURI() local
126 if (imagefile.exists()) { in testSetImageURI()
127 imagefile.delete(); in testSetImageURI()
129 createSampleImage(imagefile, R.raw.testimage); in testSetImageURI()
132 Uri uri = Uri.parse(imagefile.getPath()); in testSetImageURI()
143 createSampleImage(imagefile, R.raw.scenery); in testSetImageURI()
144 uri = Uri.parse(imagefile.getPath()); in testSetImageURI()
154 imagefile.delete(); in testSetImageURI()
182 private void createSampleImage(File imagefile, int resid) { in createSampleImage() argument
184 OutputStream target = new FileOutputStream(imagefile)) { in createSampleImage()
DImageViewTest.java116 private void createSampleImage(File imagefile, int resid) { in createSampleImage() argument
118 OutputStream target = new FileOutputStream(imagefile)) { in createSampleImage()
247 File imagefile = new File(dbDir, "tempimage.jpg"); in testSetImageURI() local
248 if (imagefile.exists()) { in testSetImageURI()
249 imagefile.delete(); in testSetImageURI()
251 createSampleImage(imagefile, R.raw.testimage); in testSetImageURI()
252 final String path = imagefile.getPath(); in testSetImageURI()
DRemoteViewsTest.java586 File imagefile = new File(path); in testSetUri() local
589 createSampleImage(imagefile, R.raw.testimage); in testSetUri()
608 imagefile.delete(); in testSetUri()
922 private void createSampleImage(File imagefile, int resid) throws IOException { in createSampleImage() argument
924 OutputStream target = new FileOutputStream(imagefile)) { in createSampleImage()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java80 File imagefile = new File(dbDir, "animated.gif"); in testDecodeFile() local
81 if (imagefile.exists()) { in testDecodeFile()
82 imagefile.delete(); in testDecodeFile()
84 writeSampleImage(imagefile); in testDecodeFile()
85 mMovie = Movie.decodeFile(imagefile.getPath()); in testDecodeFile()
92 private void writeSampleImage(File imagefile) throws Exception { in writeSampleImage() argument
94 OutputStream target = new FileOutputStream(imagefile)) { in writeSampleImage()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java183 private void writeSampleImage(File imagefile) throws IOException { in writeSampleImage() argument
185 OutputStream target = new FileOutputStream(imagefile)) { in writeSampleImage()
DDrawableTest.java205 private void writeSampleImage(File imagefile) throws IOException { in writeSampleImage() argument
207 OutputStream target = new FileOutputStream(imagefile)) { in writeSampleImage()