Searched refs:file (Results 1 - 25 of 205) sorted by relevance

123456789

/packages/apps/OMA-DM/engine/dmlib/tool-src/dmt_gen_tool/com/mot/dm/io/
H A DFNode.java5 * you may not use this file except in compliance with the License.
39 private final File file; field in class:FNode
43 file = new File(path);
46 protected FNode(File file) { argument
47 this.file = file;
51 return this.file;
59 File[] children = file.listFiles();
73 return file.isDirectory();
80 return file
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/
H A Dsparse_table_dict_content.cpp5 * you may not use this file except in compliance with the License.
27 bool SparseTableDictContent::flush(FILE *const file) const {
28 if (!DictFileWritingUtils::writeBufferToFileTail(file, &mExpandableLookupTableBuffer)) {
31 if (!DictFileWritingUtils::writeBufferToFileTail(file, &mExpandableAddressTableBuffer)) {
34 if (!DictFileWritingUtils::writeBufferToFileTail(file, &mExpandableContentBuffer)) {
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
H A DEmptyFileFilter.java3 * 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 DAbstractFileFilter.java3 * 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 DNotFileFilter.java3 * 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 DCanWriteFileFilter.java3 * 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 DDirectoryFileFilter.java3 * 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 DFileFileFilter.java3 * 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 DHiddenFileFilter.java3 * 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 DCanReadFileFilter.java3 * 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 DDelegateFileFilter.java3 * 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 DSizeFileFilter.java3 * 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...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DLockableFileWriter.java3 * 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 DFileWriterWithEncoding.java3 * 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/UnifiedEmail/src/org/apache/commons/io/
H A DFileCleaner.java3 * 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.
49 * Track the specified file, using the provided marker, deleting the file
53 * @param file the file t
59 track(File file, Object marker) argument
75 track(File file, Object marker, FileDeleteStrategy deleteStrategy) argument
[all...]
H A DFileUtils.java3 * 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
48 * General file manipulation utilities.
52 * <li>writing to a file
53 * <li>reading from a file
59 * <li>comparing file content
60 * <li>file last changed date
114 * Opens a {@link FileInputStream} for the specified file, providing better
115 * error messages than simply calling <code>new FileInputStream(file)</cod
131 openInputStream(File file) argument
166 openOutputStream(File file) argument
221 touch(File file) argument
1004 deleteQuietly(File file) argument
1071 waitFor(File file, int seconds) argument
1103 readFileToString(File file, String encoding) argument
1123 readFileToString(File file) argument
1136 readFileToByteArray(File file) argument
1157 readLines(File file, String encoding) argument
1176 readLines(File file) argument
1211 lineIterator(File file, String encoding) argument
1234 lineIterator(File file) argument
1251 writeStringToFile(File file, String data, String encoding) argument
1268 writeStringToFile(File file, String data) argument
1283 writeByteArrayToFile(File file, byte[] data) argument
1308 writeLines(File file, String encoding, Collection<Object> lines) argument
1322 writeLines(File file, Collection<Object> lines) argument
1342 writeLines(File file, String encoding, Collection<Object> lines, String lineEnding) argument
1363 writeLines(File file, Collection<Object> lines, String lineEnding) argument
1383 forceDelete(File file) argument
1407 forceDeleteOnExit(File file) argument
1549 isFileNewer(File file, File reference) argument
1572 isFileNewer(File file, Date date) argument
1591 isFileNewer(File file, long timeMillis) argument
1616 isFileOlder(File file, File reference) argument
1639 isFileOlder(File file, Date date) argument
1658 isFileOlder(File file, long timeMillis) argument
1680 checksumCRC32(File file) argument
1703 checksum(File file, Checksum checksum) argument
[all...]
H A DDirectoryWalker.java3 * 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAssetFileAddress.java5 * you may not use this file except in compliance with the License.
25 * As opposed to a normal file, an asset is usually represented as a contiguous byte array in
26 * the package file. Open it correctly thus requires the name of the package it is in, but
27 * also the offset in the file and the length of this data. This class encapsulates these three.
40 public static AssetFileAddress makeFromFile(final File file) { argument
41 if (!file.isFile()) return null;
42 return new AssetFileAddress(file.getAbsolutePath(), 0L, file.length());
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Ddict_file_writing_utils.cpp5 * you may not use this file except in compliance with the License.
90 /* static */ bool DictFileWritingUtils::writeBufferToFileTail(FILE *const file, argument
96 if (fwrite(bufferSize, SIZE_OF_BUFFER_SIZE_FIELD, 1 /* count */, file) < 1) {
99 return writeBufferToFile(file, buffer);
110 FILE *const file = fdopen(fd, "wb"); local
111 if (!file) {
112 AKLOGE("fdopen failed for the file %s. errno: %d", filePath, errno);
116 if (!writeBufferToFile(file, buffer)) {
117 fclose(file);
119 AKLOGE("Buffer cannot be written to the file
129 writeBufferToFile(FILE *const file, const BufferWithExtendableBuffer *const buffer) argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DStorageUtils.java5 * you may not use this file except in compliance with the License.
66 * Minimum age for a file to be considered for deletion.
156 return (int) (lhs.file.lastModified() - rhs.file.lastModified());
161 for (ConcreteFile file : files) {
164 if (now - file.file.lastModified() < MIN_DELETE_AGE) {
165 Slog.d(TAG, "Skipping recently modified " + file.file);
167 final long len = file
188 getDeviceId(File file) argument
237 public final File file; field in class:StorageUtils.ConcreteFile
240 ConcreteFile(File file) argument
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DDictDecoder.java5 * you may not use this file except in compliance with the License.
36 // TODO: Straighten out responsibility for the buffer's file pointer.
40 * Reads and returns the file header.
71 * @throws IOException if the file can't be read.
72 * @throws UnsupportedFormatException if the format of the file is not recognized.
79 * Reads unigrams and bigrams from the binary file.
85 * @throws IOException if the file can't be read.
86 * @throws UnsupportedFormatException if the format of the file is not recognized.
114 * Opens the dictionary file and makes DictBuffer.
129 public DictBuffer getDictionaryBuffer(final File file) argument
143 getDictionaryBuffer(final File file) argument
172 getDictionaryBuffer(final File file) argument
199 getDictionaryBuffer(final File file) argument
[all...]
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DUtil.java5 * 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/providers/MediaProvider/src/com/android/providers/media/
H A DMediaUpgradeReceiver.java5 * 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/apps/Camera2/src/com/android/camera/util/
H A DFileUtil.java5 * you may not use this file except in compliance with the License.
24 * Common file operations.
53 * @param file The file to read
54 * @return The content of the file
57 public static byte[] readFileToByteArray(File file) throws IOException { argument
58 int length = (int) file.length();
60 FileInputStream stream = new FileInputStream(file);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DFileUtils.java5 * use this file except in compliance with the License. You may obtain a copy of
47 for (final File file : files) {
48 if (!deleteRecursively(file)) {

Completed in 2153 milliseconds

123456789