Searched defs:directory (Results 1 - 7 of 7) sorted by relevance

/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DDeferredFileOutputStream.java82 * The directory to use for temporary files.
84 private File directory; field in class:DeferredFileOutputStream
119 * @param directory Temporary file directory.
123 public DeferredFileOutputStream(int threshold, String prefix, String suffix, File directory) argument
131 this.directory = directory;
163 outputFile = File.createTempFile(prefix, suffix, directory);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DDirectoryWalker.java29 * Abstract class that walks through a directory hierarchy and provides
65 * protected boolean handleDirectory(File directory, int depth, Collection results) {
67 * if (".svn".equals(directory.getName())) {
68 * directory.delete();
119 * // Combine the directory and file filters using an OR condition
226 * protected boolean handleDirectory(File directory, int depth, Collection results) throws IOException {
227 * // cancel if hidden directory
228 * if (directory.isHidden()) {
258 * The limit on the directory depth to walk.
287 * Construct an instance with a directory an
350 walk(File directory, int depth, Collection results) argument
488 handleDirectory(File directory, int depth, Collection results) argument
503 handleDirectoryStart(File directory, int depth, Collection results) argument
531 handleRestricted(File directory, int depth, Collection results) argument
545 handleDirectoryEnd(File directory, int depth, Collection results) argument
[all...]
H A DFileUtils.java54 * <li>make a directory including parent directories
121 * An exception is thrown if the file object exists but is a directory.
127 * @throws IOException if the file object is a directory
134 throw new IOException("File '" + file + "' exists but is a directory");
148 * creating the parent directory if it does not exist.
153 * The parent directory will be created if it does not exist.
155 * An exception is thrown if the file object exists but is a directory.
157 * An exception is thrown if the parent directory cannot be created.
161 * @throws IOException if the file object is a directory
163 * @throws IOException if a parent directory need
254 innerListFiles(Collection<File> files, File directory, IOFileFilter filter) argument
293 listFiles( File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) argument
340 iterateFiles( File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) argument
372 listFiles( File directory, String[] extensions, boolean recursive) argument
397 iterateFiles( File directory, String[] extensions, boolean recursive) argument
976 deleteDirectory(File directory) argument
1028 cleanDirectory(File directory) argument
1422 deleteDirectoryOnExit(File directory) argument
1438 cleanDirectoryOnExit(File directory) argument
1478 forceMkdir(File directory) argument
1505 sizeOfDirectory(File directory) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java464 * Create a temporary EML file based on {@code msg} in the directory {@code directory}.
466 public static Uri createTempEmlFile(Context context, Message msg, File directory) argument
469 File outputFile = File.createTempFile("message", "tmp", directory);
/packages/apps/Gallery/src/com/android/camera/
H A DImageManager.java195 // directory and filename). Also add an entry to the media store for
201 Location location, String directory, String filename,
206 String filePath = directory + "/" + filename;
208 File dir = new File(directory);
210 File file = new File(directory, filename);
439 // It's important not to put it in the root directory which may have a
443 File directory = new File(directoryName);
444 if (!directory.isDirectory()) {
445 if (!directory.mkdirs()) {
200 addImage(ContentResolver cr, String title, long dateTaken, Location location, String directory, String filename, Bitmap source, byte[] jpegData, int[] degree) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
H A DImportVCardActivity.java210 * Caches given vCard files into a local directory, and sends actual import request to
666 private void getVCardFileRecursively(File directory) argument
672 // e.g. secured directory may return null toward listFiles().
673 final File[] files = directory.listFiles();
675 final String currentDirectoryPath = directory.getCanonicalPath();
679 Log.w(LOG_TAG, "listFiles() returned null (directory: " + directory + ")");
683 for (File file : directory.listFiles()) {
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DUtility.java563 * Creates a new empty file with a unique name in the given directory by appending a hyphen and
568 public static File createUniqueFile(File directory, String filename) throws IOException { argument
569 return createUniqueFileInternal(NewFileCreator.DEFAULT, directory, filename);
573 File directory, String filename) throws IOException {
574 File file = new File(directory, filename);
590 file = new File(directory, String.format(format, i));
572 createUniqueFileInternal(NewFileCreator nfc, File directory, String filename) argument

Completed in 566 milliseconds