/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | DirectoryWalker.java | 29 * 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 D | FileUtils.java | 54 * <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/UnifiedEmail/src/org/apache/commons/io/output/ |
H A D | DeferredFileOutputStream.java | 82 * 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | BinaryDictionaryGetter.java | 70 * Generates a unique temporary file name in the app cache directory. 75 final File directory = new File(DictionaryInfoUtils.getWordListTempDirectory(context)); 76 if (!directory.exists()) { 77 if (!directory.mkdirs()) { 78 Log.e(TAG, "Could not create the temporary directory"); 84 return File.createTempFile("xxx" + safeId, null, directory).getAbsolutePath(); 165 for (File directory : directoryList) { 166 if (!directory.isDirectory()) continue; 168 DictionaryInfoUtils.getWordListIdFromFileName(directory.getName()); 171 final File[] wordLists = directory [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | PhoneNumberListAdapter.java | 134 final DirectoryPartition directory = getExtendedDirectoryFromId(directoryId); 135 final String contentUri = directory.getContentUri(); 137 throw new IllegalStateException("Extended directory must have a content URL: " 138 + directory); 143 String.valueOf(getDirectoryResultLimit(directory))); 361 final DirectoryPartition directory = (DirectoryPartition) getPartition(partition); 362 bindPhoneNumber(view, cursor, directory.isDisplayNumber()); 460 * a. The highest directory id so that we can assign unused id's to the extended directories. 461 * b. The index of the last non-remote directory. This is where we will insert extended 501 final DirectoryPartition directory [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
H A D | DataExporter.java | 86 // Do not allow queries to use relative paths to leave the root directory. Otherwise they 104 final File directory = getOutputDirectory(context); 105 if (!directory.exists()) { 106 directory.mkdir(); 149 // Don't need the cache directory, which also contains the dump files. 153 // This check is redundant as the output directory should be in the cache dir,
|
/packages/apps/DeskClock/ |
H A D | Android.mk | 4 # include res directory from timepicker
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageManager.java | 195 // 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
|
H A D | CropImage.java | 352 File directory = new File(oldPath.getParent()); 362 String candidate = directory.toString() 378 directory.toString(), fileName + "-" + x + ".jpg",
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | DictionaryInfoUtils.java | 100 * Escapes a string for any characters that may be suspicious for a file or directory name. 125 * Helper method to get the top level cache directory. 132 * Helper method to get the top level temp directory. 183 * Find out the cache directory associated with a specific locale. 189 final File directory = new File(absoluteDirectoryName); 190 if (!directory.exists()) { 191 if (!directory.mkdirs()) { 192 Log.e(TAG, "Could not create the directory for locale" + locale); 205 * The file name is pretty much an URL-encoded version of the id inside a directory 210 * @param context the context to use for getting the directory [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactBrowseListFragment.java | 441 DirectoryPartition directory = (DirectoryPartition) partition; 442 if (directory.getDirectoryId() == mSelectedContactDirectoryId) { 443 directoryLoading = directory.isLoading(); 526 * and to save bandwidth on directory queries.
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | EmlAttachmentProvider.java | 250 * from cache to the external downloads directory (usually the sd card). 427 // we want the root of the downloads directory if the attachment is 431 final File directory = new File(directoryPath); 432 if (!directory.exists()) { 433 directory.mkdirs(); 439 * Returns the root directory for the attachments for the specific uri. 446 * Returns the cache directory for eml attachment files. 453 * Recursively delete the directory at the passed file path. 460 * Recursively deletes a file or directory.
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
H A D | ImportVCardActivity.java | 210 * 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 D | Utility.java | 563 * 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
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
H A D | ProviderTestUtils.java | 464 * 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);
|
H A D | ProviderTests.java | 1569 File directory = Environment.getExternalStorageDirectory(); 1576 File file = new File(directory, fileNames[i]);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | EmailContent.java | 1420 File directory = Environment.getExternalStorageDirectory(); 1421 File file = new File(directory, filename); 1434 file = new File(directory, name + '-' + i + extension);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactsProvider2.java | 3351 null, -1 /* directory ID */, null); 4454 selection, selectionArgs, null, -1 /* directory ID */, null); 4994 String directory = getQueryParameter(uri, ContactsContract.DIRECTORY_PARAM_KEY); 4995 if (directory == null) { 4999 } else if (directory.equals("0")) { 5003 } else if (directory.equals("1")) { 5009 DirectoryInfo directoryInfo = getDirectoryAuthority(directory); 5011 Log.e(TAG, "Invalid directory ID: " + uri); 5106 * Reads and caches directory information for the database.
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaProvider.java | 2907 if (LOCAL_LOGV) Log.v(TAG, "inserting directory " + path); 3615 * @param path The path to the new .nomedia file or hidden directory 3654 * a directory from hidden to non-hidden in the MediaScanner and MtpDatabase, 3774 // we will not attempt to create the first directory in the path 3779 File directory = new File(directoryPath); 3780 if (!directory.exists()) 4147 // the directory name as a prefix 4153 // MtpDatabase will rename the directory first, so we test the new file name 4168 // first rename the row for the directory 4173 // update the paths of any files and folders contained in the directory [all...] |