Searched refs:file (Results 26 - 50 of 143) sorted by relevance

123456

/packages/apps/Email/src/org/apache/james/mime4j/util/
H A DSimpleTempStorage.java3 * or more contributor license agreements. See the NOTICE file *
5 * regarding copyright ownership. The ASF licenses this file *
7 * "License"); you may not use this file except in compliance *
99 throw new IOException("Creating temp file failed: "
100 + "Unable to find unique file name");
188 private File file = null; field in class:SimpleTempStorage.SimpleTempFile
190 private SimpleTempFile(File file) { argument
191 this.file = file;
192 this.file
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java5 * you may not use this file except in compliance with the License.
37 * Compress all files under the app data dir into a single zip file.
51 * Compress all files under the app data dir into a single zip file, and return the content://
52 * URI to the file, which can be read via {@link DumpFileProvider}.
75 /** @return long random string for a file name */
107 private static void removeFileOrDirectory(File file) { argument
108 if (!file.exists()) return;
110 if (file.isFile()) {
111 Log.i(TAG, "Removing " + file);
112 file
[all...]
H A DDumpFileProvider.java5 * you may not use this file except in compliance with the License.
73 /** @return file content */
79 final File file = DataExporter.getOutputFile(getContext(), extractFileName(uri));
80 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
101 // Just return the requested path as the display name. We don't care if the file
105 final File file = DataExporter.getOutputFile(getContext(), extractFileName(uri));
107 if (file.exists()) {
108 b.add(file.length());
/packages/apps/Email/src/org/apache/commons/io/filefilter/
H A DAgeFileFilter.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
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 DOrFileFilter.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
28 * file filters. This filter returns <code>true</code> if any filters in the
30 * Checking of the file filter list stops when the first filter returns
42 /** The list of file filters. */
58 * @param fileFilters the file filters for this filter, copied, null ignored
70 * Constructs a new file filter that ORs the result of two other filters.
117 public boolean accept(final File file) { argument
120 if (fileFilter.accept(file)) {
131 accept(final File file, final String name) argument
[all...]
H A DNameFileFilter.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
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 DPrefixFileFilter.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
56 * Constructs a new Prefix file filter for a single prefix.
66 * Constructs a new Prefix file filter for a single prefix
83 * Constructs a new Prefix file filter for any of an array of prefixes.
96 * Constructs a new Prefix file filter for any of an array of prefixes
116 * Constructs a new Prefix file filter for a list of prefixes.
127 * Constructs a new Prefix file filter for a list of prefixes
147 * @param file th
151 accept(File file) argument
169 accept(File file, String name) argument
[all...]
H A DSuffixFileFilter.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
57 * Constructs a new Suffix file filter for a single extension.
67 * Constructs a new Suffix file filter for a single extension
84 * Constructs a new Suffix file filter for an array of suffixs.
97 * Constructs a new Suffix file filter for an array of suffixs
117 * Constructs a new Suffix file filter for a list of suffixes.
128 * Constructs a new Suffix file filter for a list of suffixes
148 * @param file th
152 accept(File file) argument
170 accept(File file, String name) argument
[all...]
H A DAndFileFilter.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
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...]
/packages/inputmethods/PinyinIME/
H A DAndroid.mk22 # Make sure our dictionary file is not compressed, so we can read it with
23 # a raw file descriptor.
/packages/apps/Email/src/org/apache/commons/io/
H A DFileCleaningTracker.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
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...]
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertFileList.java5 * you may not use this file except in compliance with the License.
87 File file = new File(Environment.getExternalStorageDirectory(),
89 if (file.isDirectory()) {
90 Log.w(TAG, "impossible to pick a directory! " + file);
93 installFromFile(file);
123 for (File file : allFiles) {
125 pref.setTitle(file.getCanonicalPath().substring(prefixEnd));
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DUserHistoryDictIOUtilsTests.java5 * you may not use this file except in compliance with the License.
134 private void writeDictToFile(final File file, argument
137 final FileOutputStream out = new FileOutputStream(file);
142 Log.e(TAG, "IO exception while writing file: " + e);
146 private void readDictFromFile(final File file, final OnAddWordListener listener) { argument
150 inStream = new FileInputStream(file);
151 final byte[] buffer = new byte[(int)file.length()];
157 Log.e(TAG, "file not found: " + e);
189 File file = null;
191 file
[all...]
/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/
H A DFrameBuffer.h9 extern bool checkGLErrorDetail(const char* file, int line, const char* op);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java5 * 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/Camera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java5 * you may not use this file except in compliance with the License.
69 File file = new File(Environment.getExternalStorageDirectory(),
75 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
85 // Verify the jpeg file
86 int fileLength = (int) file.length();
89 stream = new BufferedInputStream(new FileInputStream(file));
93 file.delete();
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
H A DImageCaptureIntentTest.java5 * you may not use this file except in compliance with the License.
74 File file = new File(Environment.getExternalStorageDirectory(),
80 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
90 // Verify the jpeg file
91 int fileLength = (int) file.length();
94 stream = new BufferedInputStream(new FileInputStream(file));
98 file.delete();
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictIOTests.java5 * you may not use this file except in compliance with the License.
103 private FusionDictionaryBufferInterface getBuffer(final File file, final int bufferType) { argument
106 inStream = new FileInputStream(file);
108 final byte[] array = new byte[(int)file.length()];
113 FileChannel.MapMode.READ_ONLY, 0, file.length());
181 private long timeWritingDictToFile(final File file, final FusionDictionary dict, argument
187 final FileOutputStream out = new FileOutputStream(file);
196 Log.e(TAG, "IO exception while writing file: " + e);
245 private long timeReadingAndCheckDict(final File file, final List<String> words, argument
249 final FusionDictionaryBufferInterface buffer = getBuffer(file, bufferTyp
375 timeAndCheckReadUnigramsAndBigramsBinary(final File file, final List<String> words, final SparseArray<List<Integer>> bigrams, final int bufferType) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadCache.java5 * you may not use this file except in compliance with the License.
96 File file = new File(cursor.getString(QUERY_INDEX_DATA));
102 entry = new Entry(id, file);
137 // Finally, we need to download the file ....
188 private synchronized long insertEntry(String url, File file) { argument
189 long size = file.length();
194 values.put(Columns.DATA, file.getAbsolutePath());
235 for (File file : mRoot.listFiles()) {
236 if (!file.delete()) {
237 Log.w(TAG, "fail to remove: " + file
[all...]
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
H A DBugReportListActivity.java5 * you may not use this file except in compliance with the License.
109 File file = mFiles.get(position);
111 intent.putExtra("subject", file.getName());
113 intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(file));
114 if (file.getName().endsWith(".gz")) {
116 } else if (file.getName().endsWith(".txt")) {
139 File file = mFiles.get(info.position);
141 intent.setDataAndType(Uri.fromFile(file), "vnd.android/bugreport");
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DUploaderService.java5 * use this file except in compliance with the License. You may obtain a copy of
136 for (final File file : files) {
137 if (!uploadFile(file)) {
143 private boolean uploadFile(File file) { argument
144 Log.d(TAG, "attempting upload of " + file.getAbsolutePath());
146 final int contentLength = (int) file.length();
150 fileInputStream = new FileInputStream(file);
172 file.delete();
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DTestUtils.java5 * you may not use this file except in compliance with the License.
95 File file = File.createTempFile(prefix, suffix, context.getCacheDir());
96 FileOutputStream fos = new FileOutputStream(file);
99 return file.getAbsolutePath();
101 return "[Failed to write to file: " + e.getMessage() + "]";
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
H A DGalleryWidgetMigrator.java5 * you may not use this file except in compliance with the License.
109 for (File file : files) {
110 if (file.isDirectory() && !entries.isEmpty()) {
111 String path = file.getAbsolutePath();
125 updatePath(file, entries, dbHelper); // recursion
/packages/apps/Phone/src/com/android/phone/sip/
H A DSipProfileDb.java5 * you may not use this file except in compliance with the License.
62 private void deleteProfile(File file) { argument
63 if (file.isDirectory()) {
64 for (File child : file.listFiles()) deleteProfile(child);
66 file.delete();
/packages/inputmethods/LatinIME/tests/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
26 # Do not compress test data file

Completed in 599 milliseconds

123456