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

1234567891011>>

/packages/apps/Messaging/tools/messagegen/
H A Dlistimages5 # you may not use this file except in compliance with the License.
16 for file in `ls *.jpg *.gif`;
18 dimension=`identify -format "%w %h" $file`
19 size=`stat -c%s $file`
20 echo "$file $dimension $size"
/packages/services/Car/tools/emulator/
H A Dvhal_const_generate.py6 # you may not use this file except in compliance with the License.
32 print("# Copyright (C) %s The Android Open Source Project" % year, file=dest)
33 print("#", file=dest)
34 print("# Licensed under the Apache License, Version 2.0 (the \"License\");", file=dest)
35 print("# you may not use this file except in compliance with the License.", file=dest)
36 print("# You may obtain a copy of the License at", file=dest)
37 print("#", file=dest)
38 print("# http://www.apache.org/licenses/LICENSE-2.0", file=dest)
39 print("#", file
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DFiles.java5 * you may not use this file except in compliance with the License.
28 public static void deleteRecursively(File file) { argument
29 if (file.isDirectory()) {
30 for (File child : file.listFiles()) {
34 file.delete();
/packages/inputmethods/LatinIME/native/jni/src/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/Bluetooth/tests/unit/src/com/android/bluetooth/
H A DFileSystemWriteTest.java5 * you may not use this file except in compliance with the License.
38 File file = new File("/data/misc/bluetooth/test.file");
39 Assert.assertTrue("File not created", file.createNewFile());
40 file.delete();
42 Assert.fail("Exception creating file /data/misc/bluetooth/test.file: " + e);
49 File file = new File("/data/misc/bluedroid/test.file");
50 Assert.assertTrue("File not created", file
[all...]
/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();
/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/StorageManager/src/com/android/storagemanager/deletionhelper/
H A DDownloadsFilePreference.java5 * you may not use this file except in compliance with the License.
28 * DownloadsFilePreference is a preference representing a file in the Downloads folder with a
29 * checkbox that represents if the file should be deleted.
34 public DownloadsFilePreference(Context context, File file, IconProvider iconProvider) { argument
36 mFile = file;
38 setTitle(file.getName());
39 setItemSize(file.length());
45 // We turn off persistence because we need the file preferences to reset their check when
62 File file = getFile();
65 int comparison = Long.compare(otherFile.length(), file
[all...]
/packages/apps/DevCamera/src/com/android/devcamera/
H A DMediaSaver.java5 * you may not use this file except in compliance with the License.
63 File file;
66 file = new File(filename);
67 if (!file.createNewFile()) {
72 FileOutputStream fos = new FileOutputStream(file);
90 bytesWritten, file, (t1 - t0) * 0.001));
92 Log.e(TAG, "Error creating new file: ", e);
104 File file;
108 file = new File(filename);
109 if (file
138 insertImage(ContentResolver cr, File file) argument
[all...]
/packages/apps/StorageManager/src/com/android/storagemanager/utils/
H A DIconProvider.java5 * you may not use this file except in compliance with the License.
26 * IconProvider is a class for getting file icons. It is strongly based upon the DocumentsUI
37 * Returns an icon which represents a file with the given MIME type.
39 * @param mimeType The MIME type of the file.
46 public static String getMimeType(File file) { argument
47 String name = file.getName();
60 public static boolean isImageType(File file) { argument
61 String mimeType = getMimeType(file);
/packages/apps/TV/tuner/tests/testing/src/com/android/tv/tuner/testing/buffer/
H A DVerySlowSampleChunk.java5 * you may not use this file except in compliance with the License.
33 File file,
37 samplePool, file, startPositionUs, System.currentTimeMillis(), chunkCallback);
43 File file,
47 super(samplePool, file, startPositionUs, createdTimeMs, chunkCallback);
31 createSampleChunk( SamplePool samplePool, File file, long startPositionUs, ChunkCallback chunkCallback) argument
41 VerySlowSampleChunk( SamplePool samplePool, File file, long startPositionUs, long createdTimeMs, ChunkCallback chunkCallback) argument
/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...]
/packages/inputmethods/LatinIME/native/jni/src/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/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
H A DBinaryTempFileBody.java5 * you may not use this file except in compliance with the License.
33 * A Body that is backed by a temp file. The Body exposes a getOutputStream method that allows the
34 * user to write to the temp file. After the write the body is available via getInputStream and
36 * closed the file is deleted and the Body should be considered disposed of.
39 private File file; field in class:BinaryTempFileBody
43 * file. Note that this file will be deleted after it is read.
45 * @param filePath The file containing the data to be stored on disk temporarily
48 file = new File(filePath);
52 file
[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.
60 final ConcreteFile file = new ConcreteFile(child);
61 if (uid == -1 || file.stat.st_uid == uid) {
62 files.add(file);
73 * Concrete file on disk that has a backing device and inode. Faster than
77 public final File file; field in class:StorageUtils.ConcreteFile
80 public ConcreteFile(File file) throws ErrnoException { argument
81 this.file = file;
82 this.stat = Os.lstat(file
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DStubProvider.java5 * you may not use this file except in compliance with the License.
127 final File file = new File(getContext().getCacheDir(), rootId);
128 if (file.mkdir()) {
129 Log.i(TAG, "Created new root directory @ " + file.getPath());
131 final RootInfo rootInfo = new RootInfo(file, getSize(rootId));
174 final StubDocument file = mStorage.get(documentId);
175 if (file == null) {
178 includeDocument(result, file);
186 return FileUtils.contains(parentDocument.file, childDocument.file);
670 removeChildrenRecursively(File file) argument
777 RootInfo(File file, long capacity) argument
798 public final File file; field in class:StubProvider.StubDocument
806 StubDocument(File file, String mimeType, List<String> streamTypes, int flags, StubDocument parent) argument
817 StubDocument(File file, RootInfo rootInfo) argument
827 createRootDocument(File file, RootInfo rootInfo) argument
831 createRegularDocument( File file, String mimeType, StubDocument parent) argument
842 createDocumentWithFlags( File file, String mimeType, StubDocument parent, int flags, List<String> streamTypes) argument
848 createVirtualDocument( File file, String mimeType, List<String> streamTypes, StubDocument parent) argument
869 getDocumentIdForFile(File file) argument
[all...]

Completed in 409 milliseconds

1234567891011>>