/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
H A D | EmptyFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
69 * Checks to see if the file is empty.
71 * @param file the file or directory to check
72 * @return <code>true</code> if the file or directory
75 public boolean accept(File file) {
argument 76 if (file.isDirectory()) {
77 File[] files = file [all...] |
H A D | AbstractFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
38 * @param file the File to check
39 * @return true if this file matches the test
41 public boolean accept(File file) {
argument 42 return accept(file.getParentFile(), file.getName());
50 * @return true if this file matches the test
57 * Provide a String representaion of this file filte [all...] |
H A D | NotFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
36 * Constructs a new file filter that NOTs the result of another filters.
51 * @param file the File to check
54 public boolean accept(File file) {
argument 55 return ! filter.accept(file);
61 * @param file the File directory
65 public boolean accept(File file, String name) {
argument 66 return ! filter.accept(file, nam [all...] |
H A D | CanWriteFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
70 * Checks to see if the file can be written to.
72 * @param file the File to check
73 * @return <code>true</code> if the file can be
76 public boolean accept(File file) {
argument 77 return file.canWrite();
|
H A D | DirectoryFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
64 * Checks to see if the file is a directory.
66 * @param file the File to check
67 * @return true if the file is a directory
69 public boolean accept(File file) {
argument 70 return file.isDirectory();
|
H A D | FileFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
41 /** Singleton instance of file filter */
51 * Checks to see if the file is a file.
53 * @param file the File to check
54 * @return true if the file is a file
56 public boolean accept(File file) {
argument [all...] |
H A D | HiddenFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
66 * Checks to see if the file is hidden.
68 * @param file the File to check
69 * @return <code>true</code> if the file is
72 public boolean accept(File file) {
argument 73 return file.isHidden();
|
H A D | CanReadFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
82 * Checks to see if the file can be read.
84 * @param file the File to check.
85 * @return <code>true</code> if the file can be
88 public boolean accept(File file) {
argument 89 return file.canRead();
|
H A D | DelegateFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
40 * Constructs a delegate file filter around an existing FilenameFilter.
53 * Constructs a delegate file filter around an existing FileFilter.
68 * @param file the file to check
71 public boolean accept(File file) {
argument 73 return fileFilter.accept(file);
75 return super.accept(file);
[all...] |
H A D | SizeFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
49 * Constructs a new size file filter for files equal to or
60 * Constructs a new size file filter for files based on a certain size
78 * Checks to see if the size of the file is favorable.
81 * file <b>IS NOT</b> selected.
83 * file <b>IS</b> selected.
85 * @param file the File to check
88 public boolean accept(File file) {
argument [all...] |
H A D | FalseFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
23 * A file filter that always returns false.
54 * @param file the file to check
57 public boolean accept(File file) {
argument
|
H A D | IOFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
39 * @param file the File to check
40 * @return true if this file matches the test
42 public boolean accept(File file);
argument 51 * @return true if this file matches the test
|
H A D | TrueFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
23 * A file filter that always returns true.
54 * @param file the file to check
57 public boolean accept(File file) {
argument
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
H A D | LockableFileWriter.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
32 * cross thread file lock handling.
35 * that will use a lock file to prevent duplicate writes.
37 * By default, the file will be overwritten, but this may be changed to append.
54 /** The extension for the lock file. */
59 /** The lock file. */
64 * If the file exists, it is overwritten.
66 * @param fileName the file t 107 LockableFileWriter(File file) argument 119 LockableFileWriter(File file, boolean append) argument 132 LockableFileWriter(File file, boolean append, String lockDir) argument 144 LockableFileWriter(File file, String encoding) argument 158 LockableFileWriter(File file, String encoding, boolean append, String lockDir) argument 230 initWriter(File file, String encoding, boolean append) argument [all...] |
H A D | FileWriterWithEncoding.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
38 * By default, the file will be overwritten, but this may be changed to append.
58 * Constructs a FileWriterWithEncoding with a file encoding.
60 * @param filename the name of the file to write to, not null
62 * @throws NullPointerException if the file name or encoding is null
70 * Constructs a FileWriterWithEncoding with a file encoding.
72 * @param filename the name of the file to write to, not null
75 * @throws NullPointerException if the file nam 140 FileWriterWithEncoding(File file, String encoding) argument 153 FileWriterWithEncoding(File file, String encoding, boolean append) argument 166 FileWriterWithEncoding(File file, Charset encoding) argument 179 FileWriterWithEncoding(File file, Charset encoding, boolean append) argument 192 FileWriterWithEncoding(File file, CharsetEncoder encoding) argument 205 FileWriterWithEncoding(File file, CharsetEncoder encoding, boolean append) argument 222 initWriter(File file, Object encoding, boolean append) argument [all...] |
/packages/apps/Email/src/org/apache/commons/io/ |
H A D | FileCleaner.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
25 * This utility creates a background thread to handle file deletion.
26 * Each file to be deleted is registered with a handler object.
27 * When the handler object is garbage collected, the file is deleted.
48 * Track the specified file, using the provided marker, deleting the file
52 * @param file the file t 57 track(File file, Object marker) argument 72 track(File file, Object marker, FileDeleteStrategy deleteStrategy) argument [all...] |
H A D | FileUtils.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
46 * General file manipulation utilities.
50 * <li>writing to a file
51 * <li>reading from a file
57 * <li>comparing file content
58 * <li>file last changed date
111 * Opens a {@link FileInputStream} for the specified file, providing better
112 * error messages than simply calling <code>new FileInputStream(file)</cod 128 openInputStream(File file) argument 163 openOutputStream(File file) argument 218 touch(File file) argument 1000 deleteQuietly(File file) argument 1067 waitFor(File file, int seconds) argument 1099 readFileToString(File file, String encoding) argument 1119 readFileToString(File file) argument 1132 readFileToByteArray(File file) argument 1153 readLines(File file, String encoding) argument 1172 readLines(File file) argument 1207 lineIterator(File file, String encoding) argument 1230 lineIterator(File file) argument 1247 writeStringToFile(File file, String data, String encoding) argument 1264 writeStringToFile(File file, String data) argument 1279 writeByteArrayToFile(File file, byte[] data) argument 1304 writeLines(File file, String encoding, Collection<Object> lines) argument 1318 writeLines(File file, Collection<Object> lines) argument 1338 writeLines(File file, String encoding, Collection<Object> lines, String lineEnding) argument 1359 writeLines(File file, Collection<Object> lines, String lineEnding) argument 1379 forceDelete(File file) argument 1403 forceDeleteOnExit(File file) argument 1545 isFileNewer(File file, File reference) argument 1568 isFileNewer(File file, Date date) argument 1587 isFileNewer(File file, long timeMillis) argument 1612 isFileOlder(File file, File reference) argument 1635 isFileOlder(File file, Date date) argument 1654 isFileOlder(File file, long timeMillis) argument 1676 checksumCRC32(File file) argument 1699 checksum(File file, Checksum checksum) argument [all...] |
H A D | DirectoryWalker.java | 3 * contributor license agreements. See the NOTICE file distributed with
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
76 * protected void handleFile(File file, int depth, Collection results) {
77 * // delete file and add to list of deleted
78 * file.delete();
79 * results.add(file);
119 * // Combine the directory and file filters using an OR condition
131 * express constructs like 'any file in directories named docs'.
206 * private void handleIsCancelled(File file, in 393 checkIfCancelled(File file, int depth, Collection results) argument 434 handleIsCancelled( File file, int depth, Collection results) argument 517 handleFile(File file, int depth, Collection results) argument 572 private File file; field in class:DirectoryWalker.CancelException 583 CancelException(File file, int depth) argument 596 CancelException(String message, File file, int depth) argument [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | Util.java | 5 * you may not use this file except in compliance with the License. 78 static byte[] readFile(File file) { argument 80 byte[] data = new byte[(int) file.length()]; 81 FileInputStream fis = new FileInputStream(file); 86 Log.w(TAG, "cert file read error: " + e); 91 static boolean deleteFile(File file) { argument 92 if ((file != null) && !file.delete()) { 93 Log.w(TAG, "cannot delete cert: " + file);
|
H A D | CertFile.java | 5 * you may not use this file except in compliance with the License. 93 * Called when an error occurs when reading a certificate file. 125 * Invokes {@link CertInstaller} to install the certificate(s) in the file. 127 * @param file the certificate file 129 protected void installFromFile(File file) { argument 130 Log.d(TAG, "install cert from " + file); 132 String fileName = file.getName(); 137 if (file.exists()) { 138 if (file 159 accept(File file) argument [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaUpgradeReceiver.java | 5 * you may not use this file except in compliance with the License. 64 String file = files[i]; 65 if (MediaProvider.isMediaDatabaseName(file)) { 73 Slog.i(TAG, "---> Start upgrade of media database " + file); 77 context, file, MediaProvider.isInternalMediaDatabaseName(file), 81 Log.wtf(TAG, "Error during upgrade of media db " + file, t); 87 Slog.i(TAG, "<--- Finished upgrade of media database " + file
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | PhotoStore.java | 5 * use this file except in compliance with the License. You may obtain a copy of 53 /** The file path for photo storage. */ 86 for (File file : files) { 87 cleanupFile(file); 119 for (File file : files) { 121 Entry entry = new Entry(file); 124 // Not a valid photo store entry - delete the file. 125 cleanupFile(file); 165 * @return The photo file ID associated with the file, o 226 cleanupFile(File file) argument 287 Entry(File file) argument [all...] |
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStreamTest.java | 5 * you may not use this file except in compliance with the License. 34 File file = File.createTempFile("exif_test", ".jpg"); 51 FileOutputStream outputStream = new FileOutputStream(file); 57 // Re-decode the temp file and check the data. 58 reDecodeInputStream = new FileInputStream(file); 62 // Re-parse the temp file the check EXIF tag 63 reParseInputStream = new FileInputStream(file);
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | CallTime.java | 5 * you may not use this file except in compliance with the License. 198 File file = PhoneGlobals.getInstance().getDir ("phoneTrace", Context.MODE_PRIVATE); 199 if (file.exists() == false) { 200 file.mkdirs(); 202 String baseName = file.getPath() + File.separator + "callstate"; 206 file = new File(dataFile); 207 if (file.exists() == true) { 208 file.delete(); 211 file = new File(keyFile); 212 if (file [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | FileCache.java | 5 * you may not use this file except in compliance with the License. 79 for (File file : rootDir.listFiles()) { 80 String name = file.getName(); 81 if (file.isFile() && name.startsWith(FILE_PREFIX) 82 && name.endsWith(FILE_POSTFIX)) file.delete(); 100 public void store(String downloadUrl, File file) { argument 103 Utils.assertTrue(file.getParentFile().equals(mRootDir)); 107 entry.filename = file.getName(); 108 entry.size = file.length(); 111 file [all...] |