Lines Matching refs:file
61 File file; in saveJpeg() local
65 file = new File(filename); in saveJpeg()
66 if (file.createNewFile()) { in saveJpeg()
72 OutputStream os = new FileOutputStream(file); in saveJpeg()
81 insertImage(resolver, file); in saveJpeg()
86 jpegData.length, file, (t1 - t0) * 0.001, (t2 - t1) * 0.001) ); in saveJpeg()
95 public static void insertImage(ContentResolver cr, File file) { in insertImage() argument
98 values.put(MediaStore.Images.Media.TITLE, file.getName()); in insertImage()
99 values.put(MediaStore.Images.Media.DISPLAY_NAME, file.getName()); in insertImage()
100 values.put(MediaStore.Images.Media.DESCRIPTION, file.getName()); in insertImage()
102 values.put(MediaStore.Images.Media.DATA, file.getAbsolutePath()); in insertImage()
110 Log.w(TAG, "Error updating media store for " + file, e); in insertImage()