Searched refs:exists (Results 1 - 25 of 96) sorted by relevance

1234

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DFileDeleteStrategy.java73 if (fileToDelete == null || fileToDelete.exists() == false) {
94 if (fileToDelete.exists() && doDelete(fileToDelete) == false) {
110 * @param fileToDelete the file to delete, exists, not null
143 * if the file exists.
H A DFileUtils.java121 * An exception is thrown if the file object exists but is a directory.
122 * An exception is thrown if the file exists but cannot be read.
132 if (file.exists()) {
134 throw new IOException("File '" + file + "' exists but is a directory");
155 * An exception is thrown if the file object exists but is a directory.
156 * An exception is thrown if the file exists but cannot be written to.
167 if (file.exists()) {
169 throw new IOException("File '" + file + "' exists but is a directory");
176 if (parent != null && parent.exists() == false) {
211 * a new file with size 0 or, if the file exists alread
[all...]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/
H A DSizeFileComparator.java111 size1 = sumDirectoryContents && file1.exists() ? FileUtils.sizeOfDirectory(file1) : 0;
117 size2 = sumDirectoryContents && file2.exists() ? FileUtils.sizeOfDirectory(file2) : 0;
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
H A DSimpleTempStorage.java67 } while (p.exists() && count > 0);
69 if (p.exists() || !p.mkdirs()) {
96 } while (f.exists() && count > 0);
98 if (f.exists()) {
/packages/apps/Email/src/com/android/email/mail/store/imap/
H A DImapTempFileLiteral.java105 if (!isDestroyed() && mFile.exists()) {
121 return mFile.exists();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DUsabilityStudyLogUtils.java82 if ((mFile == null || !mFile.exists())
83 && (mDirectory != null && mDirectory.exists())) {
232 if (!destFile.exists()) {
263 if (mFile != null && mFile.exists()) {
286 if (mFile.exists()) {
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
H A DDataExporter.java105 if (!directory.exists()) {
115 return getOutputDirectory(context).exists();
123 if (!file.exists()) return;
H A DDumpFileProvider.java108 // really exists.
113 if (file.exists()) {
/packages/services/Telephony/src/com/android/phone/
H A DCallTime.java199 if (file.exists() == false) {
207 if (file.exists() == true) {
212 if (file.exists() == true) {
/packages/apps/Email/src/com/android/email/service/
H A DImapTempFileLiteral.java108 if (!isDestroyed() && mFile.exists()) {
124 return mFile.exists();
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMockFolder.java52 public boolean exists() { method in class:MockFolder
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
H A DFileUtils.java59 if (dir != null && !dir.exists()) {
102 if (!mf.exists()) {
194 if (!mf.exists()) {
263 if (!moviesDirectory.exists()) {
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarUpgradeReceiver.java68 if (context.getDatabasePath(helper.getDatabaseName()).exists()) {
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
H A DLockableFileWriter.java64 * If the file exists, it is overwritten.
101 * If the file exists, it is overwritten.
195 if (!lockDir.exists()) {
214 lockFile.getAbsolutePath() + " exists");
231 boolean fileExistedAlready = file.exists();
/packages/services/Telephony/src/com/android/phone/sip/
H A DSipProfileDb.java73 if (!f.exists()) f.mkdirs();
114 if (!f.exists()) continue;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
H A DDevice.java57 if (f.exists()) {
72 LogUtils.w(Logging.LOG_TAG, f.getAbsolutePath() + ": File exists, but can't read?" +
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
H A DFolder.java103 public abstract boolean exists() throws MessagingException; method in class:Folder
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
H A DResearchLogDirectory.java59 if (!mFilesDir.exists()) {
/packages/apps/Browser/src/com/android/browser/provider/
H A DSnapshotProvider.java122 if (dbPath.exists()) return;
124 if (oldPath.exists()) {
225 if (f.exists()) {
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
H A DUserHistoryDictionaryTests.java161 assertTrue(dictFile.exists());
207 assertTrue(file.exists());
232 assertTrue(dictFile.exists());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoStoreTest.java134 assertTrue(storedFile.exists());
179 assertTrue(new File(entry.path).exists());
184 assertFalse(new File(entry.path).exists());
/packages/apps/Camera2/src/com/android/camera/crop/
H A DSaveImage.java140 if (!saveDirectory.exists())
185 if (auxDir.exists()) {
290 if (!auxDiretory.exists()) {
300 if (!noMedia.exists()) {
323 if (!newSrcFile.exists()) {
473 if (oldSelectedFile.exists()) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DVer4DictEncoder.java199 if (mDictDir.exists()) mDictDir.delete();
202 if (!trieFile.exists()) trieFile.createNewFile();
203 if (!freqFile.exists()) freqFile.createNewFile();
204 if (!terminalAddressTableFile.exists()) terminalAddressTableFile.createNewFile();
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DVer3DictDecoderTests.java120 assertTrue(testFile.exists());
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppReceiveFileInfo.java214 if (!new File(fullfilename).exists()) {
234 if (!new File(fullfilename).exists()) {
237 if (V) Log.v(Constants.TAG, "file with sequence number " + sequence + " exists");

Completed in 588 milliseconds

1234