/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | EmlMessageLoader.java | 6 * you may not use this file except in compliance with the License. 38 * Loader that builds a ConversationMessage from an EML file Uri. 59 LogUtils.e(LOG_TAG, e, "Could not find eml file at uri: %s", mEmlFileUri); 69 LogUtils.e(LOG_TAG, e, "Could not read eml file"); 72 LogUtils.e(LOG_TAG, e, "Error in parsing eml file"); 83 for (final File file : cacheFiles) { 84 if (file.getName().startsWith("body")) { 85 final boolean deleted = file.delete(); 87 LogUtils.d(LOG_TAG, "Failed to delete temp file" + file [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
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 | WildcardFileFilter.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 146 * @param dir the file directory 163 * @param file the file to check 167 public boolean accept(File file) { argument 168 String name = file.getName(); 178 * Provide a String representaion of this file filter.
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/ |
H A D | terminal_position_lookup_table.h | 5 * you may not use this file except in compliance with the License. 49 bool flushToFile(FILE *const file) const;
|
H A D | shortcut_dict_content.h | 5 * you may not use this file except in compliance with the License. 56 bool flushToFile(FILE *const file) const { 57 return flush(file);
|
H A D | language_model_dict_content.h | 5 * you may not use this file except in compliance with the License. 50 bool save(FILE *const file) const;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | DeleteNonRequiredAppsTask.java | 5 * you may not use this file except in compliance with the License. 109 File file = new File(mContext.getFilesDir() + File.separator + "system_apps" 111 file.getParentFile().mkdirs(); // Creating the folder if it does not exist 116 // If this userId was a managed profile before, file may exist. In this case, we ignore 117 // what is in this file. 120 if (file.exists()) { 121 previousApps = readSystemApps(file); 123 // If for some reason, the system apps have not been written to file before, we will 125 writeSystemApps(currentApps, file); 130 writeSystemApps(currentApps, file); 238 writeSystemApps(Set<String> packageNames, File file) argument 258 readSystemApps(File file) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/session/ |
H A D | SessionStorageManagerImpl.java | 5 * you may not use this file except in compliance with the License. 91 public boolean accept(File file) { 92 return file.isDirectory();
|
/packages/experimental/PrintService2/src/foo/bar/printservice2/ |
H A D | MyPrintService.java | 68 final File file = new File(getFilesDir(), info.getLabel() + ".pdf"); 69 if (file.exists()) { 70 file.delete(); 79 out = new BufferedOutputStream(new FileOutputStream(file)); 109 file.setExecutable(true, false); 110 file.setWritable(true, false); 111 file.setReadable(true, false); 114 intent.setDataAndType(Uri.fromFile(file), "application/pdf");
|
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
H A D | ImageCaptureIntentTest.java | 5 * 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/Camera2/tests/src/com/android/camera/functional/ |
H A D | ImageCaptureIntentTest.java | 5 * 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/Camera2/tests_camera/src/com/android/camera/functional/ |
H A D | ImageCaptureIntentTest.java | 5 * 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 D | ImageCaptureIntentTest.java | 5 * 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/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadCache.java | 5 * 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...] |
H A D | DownloadUtils.java | 5 * you may not use this file except in compliance with the License. 34 public static boolean requestDownload(JobContext jc, URL url, File file) { argument 37 fos = new FileOutputStream(file);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
H A D | BinaryDictDecoderEncoderTests.java | 5 * you may not use this file except in compliance with the License. 167 // The following is useful to dump the dictionary into a textual file, but it can't compile 175 private long timeWritingDictToFile(final File file, final FusionDictionary dict, argument 181 final DictEncoder dictEncoder = BinaryDictUtils.getDictEncoder(file, formatOptions); 184 // If you need to dump the dict to a textual file, uncomment the line below and the 186 // dumpToCombinedFileForDebug(file, "/tmp/foo"); 190 Log.e(TAG, "IO exception while writing file", e); 242 private long timeReadingAndCheckDict(final File file, final List<String> words, argument 249 final DictDecoder dictDecoder = BinaryDictIOUtils.getDictDecoder(file, 0, file 402 timeAndCheckReadUnigramsAndBigramsBinary(final File file, final List<String> words, final SparseArray<List<Integer>> bigrams, final int bufferType, final boolean checkProbability) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | AttachmentUtils.java | 5 * you may not use this file except in compliance with the License. 82 * Return a friendly localized file type for this attachment, or the empty string if 85 * @return friendly file type or empty string 95 // finally, give up and just show the file extension 104 // show '$EXTENSION File' for unknown file types 160 * Cache the file specified by the given attachment. This will attempt to use any 166 * @return String file path for the cached attachment 186 File file = null; 189 file = File.createTempFile(dateFormat.format(new Date()), ".attachment", cacheDir); 195 // Get the input stream from the file descripto [all...] |
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
H A D | BugReportListActivity.java | 5 * 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | TestUtils.java | 5 * 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() + "]";
|
H A D | BaseVoicemailProviderTest.java | 5 * you may not use this file except in compliance with the License. 123 for (File file : input.listFiles()) { 124 recursiveDeleteAll(file); 138 for (File file : input.listFiles()) { 139 results.addAll(findAllFiles(file));
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | ThreadingTest.java | 5 * you may not use this file except in compliance with the License. 91 final String file = d.first.getStringField(DownloadManager.COLUMN_LOCAL_FILENAME); 92 if (!seenFiles.add(file)) { 93 fail("Another download already claimed " + file);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | SaveImage.java | 5 * you may not use this file except in compliance with the License. 127 * @param destination Destinaton File, if this is null, a new file will be 189 // Construct the auxiliary directory given the source file's path. 214 for (File file : auxFiles) { 215 file.delete(); 237 public boolean putPanoramaXMPData(File file, Object xmp) { argument 239 return XmpUtilHelper.writeXMPMeta(file.getAbsolutePath(), xmp); 256 Log.w(LOGTAG, "Cannot find file: " + source, e); 266 public boolean putExifData(File file, ExifInterface exif, Bitmap image, argument 271 s = exif.getExifWriterStream(file 666 linkNewFileToUri(Context context, Uri sourceUri, File file, long time, boolean deleteOriginal) argument 689 updateFile(Context context, Uri sourceUri, File file, long time) argument 695 getContentValues(Context context, Uri sourceUri, File file, long time) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | BinaryDictionaryUtils.java | 5 * you may not use this file except in compliance with the License. 78 for (final File file : dictFile.listFiles()) { 79 if (!file.isFile()) { 82 final String fileName = file.getName(); 85 if (!file.renameTo(new File(dictFile, newFileName))) {
|
/packages/inputmethods/LatinIME/tests/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License. 24 # Do not compress test data file
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
H A D | SipProfileDb.java | 5 * 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();
|