/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapUtils.java | 6 * you may not use this file except in compliance with the License. 182 public static boolean createProfileVCardFile(File file, Context context) { argument 197 os = new FileOutputStream(file); 200 Log.e(TAG, "Unable to create default contact vcard file", t);
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | BrowserBackupAgent.java | 5 * you may not use this file except in compliance with the License. 52 /** this version num MUST be incremented if the flattened-file schema ever changes */ 66 // Extract the previous bookmark file size & CRC from the saved state 86 * Restore from backup -- reads in the flattened bookmark file as supplied from 98 // Read the flattened bookmark data into a temp file 160 // Whatever happens, delete the temp file 186 // Read the given file from backup to a file, calculating a CRC32 along the way 187 private long copyBackupToFile(BackupDataInput data, File file, int toRead) argument 192 FileOutputStream out = new FileOutputStream(file); [all...] |
/packages/apps/Browser/tests/src/com/android/browser/ |
H A D | PopularUrlsTest.java | 5 * you may not use this file except in compliance with the License. 52 * Iterates over a list of URLs from a file and outputs the time to load each. 326 private RunStatus(File file) throws IOException { argument 327 mFile = file; 349 Log.wtf(TAG, "unexpected data in status file, will start from begining"); 368 public static RunStatus load(String file) throws IOException { argument 369 return new RunStatus(new File(sExternalStorage, file));
|
/packages/apps/Camera/jni/ |
H A D | mosaic_renderer_jni.cpp | 5 * you may not use this file except in compliance with the License. 194 bool checkGLErrorDetail(const char* file, int line, const char* op) { argument 203 LOGE("Error after %s(). glError: %s (0x%x) in line %d of %s", op, err_msg, error, line, file);
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
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...] |
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);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | AttachmentUtilities.java | 5 * you may not use this file except in compliance with the License. 160 * This does not create or write the file, or even the directories. It simply builds 219 // Otherwise, try to find a mime type based upon the file extension 241 * - Use {@link #inferMimeType} for a file: URI. 279 * TODO: Throws an SQLite exception on a missing DB file (e.g. unknown URI) instead of just 316 // Note, delete() throws no exceptions for basic FS errors (e.g. file not found) 317 // it just returns false, which we ignore, and proceed to the next file. 357 for (File file : files) { 358 boolean result = file.delete(); 360 Log.e(Logging.LOG_TAG, "Failed to delete attachment file " 365 copyFile(InputStream in, File file) argument [all...] |
/packages/apps/Email/src/org/apache/commons/io/ |
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...] |
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 | FileCleaningTracker.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
29 * This utility creates a background thread to handle file deletion.
30 * Each file to be deleted is registered with a handler object.
31 * When the handler object is garbage collected, the file is deleted.
63 * Track the specified file, using the provided marker, deleting the file
67 * @param file the file t 71 track(File file, Object marker) argument 85 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...] |
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
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 | AgeFileFilter.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
54 * Constructs a new age file filter for files equal to or older than
64 * Constructs a new age file filter for files on any one side
77 * Constructs a new age file filter for files older than (at or before)
87 * Constructs a new age file filter for files on any one side
99 * Constructs a new age file filter for files older than (at or before)
102 * @param cutoffReference the file whose last modification
110 * Constructs a new age file filte 136 accept(File file) argument [all...] |
H A D | AndFileFilter.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
28 * file filters. This filter returns <code>true</code> if all filters in the
30 * Checking of the file filter list stops when the first filter returns
42 /** The list of file filters. */
70 * Constructs a new file filter that ANDs the result of two other filters.
118 public boolean accept(final File file) {
argument 124 if (!fileFilter.accept(file)) {
135 public boolean accept(final File file, fina argument [all...] |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | NameFileFilter.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
55 * Constructs a new case-sensitive name file filter for a single name.
65 * Construct a new name file filter specifying case-sensitivity.
80 * Constructs a new case-sensitive name file filter for an array of names.
93 * Constructs a new name file filter for an array of names specifying case-sensitivity.
111 * Constructs a new case-sensitive name file filter for a list of names.
122 * Constructs a new name file filter for a list of names specifying case-sensitivity.
141 * @param file th 145 accept(File file) argument 163 accept(File file, String name) argument [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...] |