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

123456789

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/
H A Dsingle_dict_content.h5 * you may not use this file except in compliance with the License.
55 bool flush(FILE *const file) const {
56 return DictFileWritingUtils::writeBufferToFileTail(file, &mExpandableContentBuffer);
H A Dterminal_position_lookup_table.cpp5 * you may not use this file except in compliance with the License.
53 bool TerminalPositionLookupTable::flushToFile(FILE *const file) const {
55 // table and write the new table to the file.
66 return lookupTableToWrite.flush(file);
70 return flush(file);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoStore.java5 * use this file except in compliance with the License. You may obtain a copy of
55 /** The file path for photo storage. */
90 for (File file : files) {
91 cleanupFile(file);
123 for (File file : files) {
125 Entry entry = new Entry(file);
128 // Not a valid photo store entry - delete the file.
129 cleanupFile(file);
169 * @return The photo file ID associated with the file, o
230 cleanupFile(File file) argument
291 Entry(File file) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
H A DFalseFileFilter.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
23 * A file filter that always returns false.
54 * @param file the file to check
57 public boolean accept(File file) { argument
H A DIOFileFilter.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
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 DTrueFileFilter.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
23 * A file filter that always returns true.
54 * @param file the file to check
57 public boolean accept(File file) { argument
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...]
/packages/services/Telephony/src/com/android/phone/
H A DCallTime.java5 * 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 DFileCache.java5 * 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...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictUtils.java5 * you may not use this file except in compliance with the License.
65 public static DictEncoder getDictEncoder(final File file, final FormatOptions formatOptions) { argument
67 if (!file.isDirectory()) {
68 file.mkdir();
70 return new Ver4DictEncoder(file);
72 return new Ver2DictEncoder(file);
/packages/apps/UnifiedEmail/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.
52 * Compress all files under the app data dir into a single zip file, and return the content://
53 * URI to the file, which can be read via {@link DumpFileProvider}.
76 /** @return long random string for a file name */
89 throw new IllegalArgumentException(".. path specifier not allowed. Bad file name: " +
95 " files are supported. Bad file name: " + fileName);
122 private static void removeFileOrDirectory(File file) { argument
123 if (!file.exists()) return;
125 if (file
[all...]
H A DDumpFileProvider.java5 * you may not use this file except in compliance with the License.
73 /** @return file content */
82 final File file = DataExporter.getOutputFile(getContext(), fileName);
83 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
107 // Just return the requested path as the display name. We don't care if the file
111 final File file = DataExporter.getOutputFile(getContext(), fileName);
113 if (file.exists()) {
114 b.add(file.length());
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Ddict_file_writing_utils.h5 * you may not use this file except in compliance with the License.
41 static bool writeBufferToFileTail(FILE *const file,
63 static bool writeBufferToFile(FILE *const file,
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadDrmHelper.java5 * you may not use this file except in compliance with the License.
46 * Modifies the file extension for a DRM Forward Lock file NOTE: This
47 * function shouldn't be called if the file shouldn't be DRM converted
62 * Return the original MIME type of the given file, using the DRM framework
63 * if the file is protected content.
65 public static String getOriginalMimeType(Context context, File file, String currentMime) { argument
68 final String rawFile = file.toString();
H A DDownloadIdleService.java5 * you may not use this file except in compliance with the License.
144 final File file = new File(path);
146 fromDb.add(new ConcreteFile(file));
149 final String state = Environment.getExternalStorageState(file);
157 Slog.d(TAG, "Missing " + file + ", deleting " + id);
178 for (ConcreteFile file : fromDisk) {
179 if (!fromDb.contains(file)) {
180 Slog.d(TAG, "Missing db entry, deleting " + file.file);
181 file
[all...]
/packages/apps/UnifiedEmail/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DBinaryDictionaryUtilsTests.java5 * you may not use this file except in compliance with the License.
49 final File file = getDictFile(dictId);
50 FileUtils.deleteRecursively(file);
59 if (BinaryDictionaryUtils.createEmptyDictFile(file.getAbsolutePath(), FormatSpec.VERSION4,
61 return file;
63 throw new IOException("Empty dictionary " + file.getAbsolutePath()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
H A Dver4_dict_buffers.cpp5 * you may not use this file except in compliance with the License.
60 AKLOGE("The dict body file is corrupted.");
65 AKLOGE("The dict body file is corrupted.");
101 // Write header file.
104 AKLOGE("Dictionary header file %s%s cannot be written.", tmpDirPath,
109 // Write body file.
122 FILE *const file = fdopen(fd, "wb"); local
123 if (!file) {
124 AKLOGE("fdopen failed for the file %s. errno: %d", bodyFilePath, errno);
129 if (!flushDictBuffers(file)) {
[all...]
/packages/apps/OMA-DM/engine/dmlib/tool-src/dmt_gen_tool/com/mot/dm/tool/
H A DZip.java18 throw new Exception("Input file doesn't directory: " + inputDir);
23 throw new Exception("Output file is not zip: " + outputFile);
116 private void addFileToZip(File file, ZipOutputStream out) throws Exception { argument
121 Util.verbose("Adding: " + file);
123 String zipEntryName = file.getAbsolutePath();
126 if (file.isDirectory() && !zipEntryName.endsWith("/")) {
131 if (file.isFile()) {
132 FileInputStream fi = new FileInputStream(file);
/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/
H A DFrameBuffer.h9 extern bool checkGLErrorDetail(const char* file, int line, const char* op);

Completed in 510 milliseconds

123456789