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

/packages/apps/Email/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/Email/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.java52 * <li>make a directory including parent directories
118 * An exception is thrown if the file object exists but is a directory.
124 * @throws IOException if the file object is a directory
131 throw new IOException("File '" + file + "' exists but is a directory");
145 * creating the parent directory if it does not exist.
150 * The parent directory will be created if it does not exist.
152 * An exception is thrown if the file object exists but is a directory.
154 * An exception is thrown if the parent directory cannot be created.
158 * @throws IOException if the file object is a directory
160 * @throws IOException if a parent directory need
251 innerListFiles(Collection<File> files, File directory, IOFileFilter filter) argument
290 listFiles( File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) argument
337 iterateFiles( File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) argument
369 listFiles( File directory, String[] extensions, boolean recursive) argument
394 iterateFiles( File directory, String[] extensions, boolean recursive) argument
972 deleteDirectory(File directory) argument
1024 cleanDirectory(File directory) argument
1418 deleteDirectoryOnExit(File directory) argument
1434 cleanDirectoryOnExit(File directory) argument
1474 forceMkdir(File directory) argument
1501 sizeOfDirectory(File directory) argument
[all...]
/packages/apps/Email/tests/src/com/android/email/provider/
H A DProviderTestUtils.java454 * Create a temporary EML file based on {@code msg} in the directory {@code directory}.
456 public static Uri createTempEmlFile(Context context, Message msg, File directory) argument
459 File outputFile = File.createTempFile("message", "tmp", directory);
/packages/apps/Gallery/src/com/android/camera/
H A DImageManager.java198 // directory and filename). Also add an entry to the media store for
204 Location location, String directory, String filename,
209 String filePath = directory + "/" + filename;
211 File dir = new File(directory);
213 File file = new File(directory, filename);
453 // It's important not to put it in the root directory which may have a
457 File directory = new File(directoryName);
458 if (!directory.isDirectory()) {
459 if (!directory.mkdirs()) {
203 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.java571 * Creates a new empty file with a unique name in the given directory by appending a hyphen and
576 public static File createUniqueFile(File directory, String filename) throws IOException { argument
577 return createUniqueFileInternal(NewFileCreator.DEFAULT, directory, filename);
581 File directory, String filename) throws IOException {
582 File file = new File(directory, filename);
598 file = new File(directory, String.format(format, i));
580 createUniqueFileInternal(NewFileCreator nfc, File directory, String filename) argument

Completed in 170 milliseconds