/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | BaseVoicemailProviderTest.java | 5 * you may not use this file except in compliance with the License. 125 for (File file : input.listFiles()) { 126 recursiveDeleteAll(file); 140 for (File file : input.listFiles()) { 141 results.addAll(findAllFiles(file));
|
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
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/apps/Gallery2/src/com/android/gallery3d/data/ |
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/apps/VoiceDialer/src/com/android/voicedialer/ |
H A D | VoiceDialerTester.java | 5 * you may not use this file except in compliance with the License. 47 public WavFile(File file) { argument 48 mFile = file; 144 * Called to step to the next WAV file in the test set. 160 // report for each file 167 // summary reports by file name 192 public boolean accept(File file) { 193 return fn.equals(file.getName()); 214 public boolean accept(File file) { 215 return file [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
H A D | AttachmentProvider.java | 5 * you may not use this file except in compliance with the License. 49 * A simple ContentProvider that allows file access to Email's attachments. 51 * The URI scheme is as follows. For raw file access: 83 for (File file : files) { 84 String filename = file.getName(); 86 file.delete(); 129 * Open an attachment file. There are two "formats" - "raw", which returns an actual file, 173 File file = new File(dir, filename); 174 if (!file [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | ExpandableBinaryDictionary.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 60 * A static map of locks, each of which controls access to a single binary dictionary file. They 87 /** Controls access to the shared binary dictionary file across multiple instances. */ 104 * Indicates that the source dictionary content has changed and a rebuild of the binary file is 106 * from file. Note that the shared binary dictionary is locked when this is called. 268 * Loads the current binary dictionary from internal storage. Assumes the dictionary file 278 final File file = new File(mContext.getFilesDir(), mFilename); 279 final String filename = file.getAbsolutePath(); 280 final long length = file.length(); 313 final File file [all...] |
H A D | UserHistoryDictionary.java | 5 * use this file except in compliance with the License. You may obtain a copy of 254 // Load the dictionary from binary file 257 final File file = new File(getContext().getFilesDir(), fileName); 258 final byte[] buffer = new byte[(int)file.length()]; 259 inStream = new FileInputStream(file); 264 Log.e(TAG, "when loading: file not found" + e); 334 final File file = new File(mContext.getFilesDir(), fileName); 338 out = new FileOutputStream(file); 343 Log.e(TAG, "IO Exception while writing file: " + e);
|
/packages/apps/Mms/src/com/android/mms/ |
H A D | TempFileProvider.java | 19 * The TempFileProvider manages a uri, backed by a file, for passing to the camera app for 20 * capturing pictures and videos and storing the data in a file in the messaging app. 68 File file = new File(fileName); 70 // make sure the path is valid and directories created for this file. 71 File parentFile = file.getParentFile(); 78 pfd = ParcelFileDescriptor.open(file, 96 // wants a file descriptor to write image data to. 116 * This is the scrap file we use to store the media attachment when the user 119 * to this file. It's named '.temp.jpg' so Gallery won't pick it up. 130 * renameScrapFile renames the single scrap file t [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | UtilityMediumTests.java | 5 * you may not use this file except in compliance with the License. 115 // Generate a file name in our data directory, and use that for contentUri 116 File file = mMockContext.getFileStreamPath("test.att"); 117 // Delete the file if it already exists 118 if (file.exists()) { 119 assertTrue(file.delete()); 121 // Should return false, because the file doesn't exist 124 assertTrue(file.createNewFile()); 125 // Put something in the file 126 FileWriter writer = new FileWriter(file); [all...] |
/packages/inputmethods/LatinIME/native/jni/ |
H A D | com_android_inputmethod_latin_BinaryDictionary.cpp | 5 * you may not use this file except in compliance with the License. 82 FILE *file = 0; local 83 file = fopen(sourceDirChars, "rb"); 84 if (file == 0) { 93 int ret = fseek(file, (long)dictOffset, SEEK_SET); 98 ret = fread(dictBuf, sizeof(char) * dictSize, 1, file); 103 ret = fclose(file);
|
/packages/apps/Launcher2/tests/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/experimental/BugReportSender/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/experimental/ExampleImsFramework/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/experimental/LoaderApp/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/inputmethods/LatinIME/tools/dicttool/etc/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/inputmethods/LatinIME/tools/maketext/etc/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | StorageManager.java | 5 * you may not use this file except in compliance with the License. 106 * from the file system and 118 * remove spurious files from the file system 201 // is there enough space in the file system of the given param 'root'. 274 // put a bit of margin (in case creating the file grows the system by a few blocks) 296 // Can't create download directory, e.g. because a file called "download" 343 File file = new File(data); 345 Log.d(Constants.TAG, "purging " + file.getAbsolutePath() + " for " 346 + file.length() + " bytes"); 348 totalFreed += file [all...] |
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
H A D | Recorder.java | 5 * you may not use this file except in compliance with the License. 83 File file = new File(samplePath); 84 if (!file.exists()) 87 && mSampleFile.getAbsolutePath().compareTo(file.getAbsolutePath()) == 0) 91 mSampleFile = file; 120 * Resets the recorder state. If a sample was recorded, the file is deleted. 135 * Resets the recorder state. If a sample was recorded, the file is left on disk and will
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageMeasurement.java | 5 * you may not use this file except in compliance with the License. 483 for (File file : files) { 484 final String path = file.getAbsolutePath(); 485 final String name = file.getName(); 490 if (file.isFile()) { 491 final long fileSize = file.length(); 494 } else if (file.isDirectory()) { 495 final long dirSize = getDirectorySize(imcs, file); 499 // Non directory, non file: not listed
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Thumbnail.java | 5 * you may not use this file except in compliance with the License. 52 // whether this thumbnail is read from file 102 // Stores the bitmap to the specified file. 103 public void saveTo(File file) { argument 109 f = new FileOutputStream(file); 116 Log.e(TAG, "Fail to store bitmap. path=" + file.getPath(), e); 125 // Loads the data from the specified file. 127 public static Thumbnail loadFrom(File file) { argument 135 f = new FileInputStream(file); 275 // Assume this is a corrupt video file [all...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
H A D | ImportVCardActivity.java | 5 * you may not use this file except in compliance with the License. 83 * an Account and posssibly a file if there's no Uri is given from its caller Activity. 265 // it is not from local storage (e.g. "file:///...") but from some special 270 // We may be able to read content of each vCard file during copying them 278 Log.e(LOG_TAG, "Maybe the file is in wrong format", e); 290 final File file = context.getFileStreamPath(filename); 291 if (!file.exists()) { 341 Log.e(LOG_TAG, "Maybe the file is in wrong format", e); 582 // Some file is selected. 606 * a vCard file i [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BlobCache.java | 5 * you may not use this file except in compliance with the License. 19 // It consists of three files: one index file and two data files. One of the 22 // point the active file and the inactive file are swapped, and the new active 23 // file is truncated to empty (and the index for that file is also cleared). 27 // The index file format: (all numbers are stored in little-endian) 40 // file. The offset is 0 when the slot is free. Note that 0 is a valid value 44 // Each data file stores data for one region. The data file i 488 getBlob(RandomAccessFile file, int offset, LookupRequest req) argument [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | BlobCache.java | 5 * you may not use this file except in compliance with the License. 19 // It consists of three files: one index file and two data files. One of the 22 // point the active file and the inactive file are swapped, and the new active 23 // file is truncated to empty (and the index for that file is also cleared). 27 // The index file format: (all numbers are stored in little-endian) 40 // file. The offset is 0 when the slot is free. Note that 0 is a valid value 44 // Each data file stores data for one region. The data file i 477 getBlob(RandomAccessFile file, int offset, LookupRequest req) argument [all...] |
/packages/apps/BasicSmsReceiver/tests/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License.
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | BluetoothPbapUtils.java | 6 * you may not use this file except in compliance with the License. 182 public static boolean createProfileVCardFile(File file, Context context) { argument 197 os = new FileOutputStream(file); 200 Log.e(TAG, "Unable to create default contact vcard file", t);
|