Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 111) sorted by relevance

12345

/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileUtils.java132 if (file.exists()) { in openInputStream()
167 if (file.exists()) { in openOutputStream()
176 if (parent != null && parent.exists() == false) { in openOutputStream()
222 if (!file.exists()) { in touch()
419 boolean file1Exists = file1.exists(); in contentEquals()
420 if (file1Exists != file2.exists()) { in contentEquals()
587 if (destDir.exists() && destDir.isDirectory() == false) { in copyFileToDirectory()
639 if (srcFile.exists() == false) { in copyFile()
648 if (destFile.getParentFile() != null && destFile.getParentFile().exists() == false) { in copyFile()
653 if (destFile.exists() && destFile.canWrite() == false) { in copyFile()
[all …]
DFileDeleteStrategy.java73 if (fileToDelete == null || fileToDelete.exists() == false) { in deleteQuietly()
94 if (fileToDelete.exists() && doDelete(fileToDelete) == false) { in delete()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DSimpleTempStorage.java67 } while (p.exists() && count > 0); in createTempPath()
69 if (p.exists() || !p.mkdirs()) { in createTempPath()
96 } while (f.exists() && count > 0); in createTempFile()
98 if (f.exists()) { in createTempFile()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java154 if (!saveDirectory.exists()) in getFinalSaveDirectory()
199 if (auxDir.exists()) { in deleteAuxFiles()
477 if (!auxDiretory.exists()) { in moveSrcToAuxIfNeeded()
487 if (!noMedia.exists()) { in moveSrcToAuxIfNeeded()
510 if (!newSrcFile.exists()) { in moveSrcToAuxIfNeeded()
682 if (oldSelectedFile.exists()) { in linkNewFileToUri()
/packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
DListener.java117 boolean exists = mRankingMap.getRanking(delta.mSbn.getKey(), mTmpRanking);
118 if (!exists) {
136 boolean exists = mRankingMap.getRanking(delta.mSbn.getKey(), mTmpRanking);
137 if (exists) {
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java447 if (!remoteFolder.exists()) { in synchronizeMailboxGeneric()
1105 if (!remoteFolder.exists()) { in processPendingDataChange()
1140 if (!remoteFolder.exists()) { in processPendingDataChange()
1202 if (!remoteFolder.exists()) { in processPendingMoveToTrash()
1221 if (!remoteTrashFolder.exists()) { in processPendingMoveToTrash()
1230 if (remoteTrashFolder.exists()) { in processPendingMoveToTrash()
1289 if (!remoteTrashFolder.exists()) { in processPendingDeleteFromTrash()
1332 if (!remoteFolder.exists()) { in processPendingAppend()
DImapTempFileLiteral.java108 if (!isDestroyed() && mFile.exists()) { in destroy()
124 return mFile.exists(); in tempFileExistsForTest()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.java877 boolean exists = false; in jj_add_error_token()
881 exists = true; in jj_add_error_token()
884 exists = false; in jj_add_error_token()
888 if (exists) break; in jj_add_error_token()
891 if (!exists) jj_expentries.addElement(jj_expentry); in jj_add_error_token()
/packages/services/Telephony/src/com/android/phone/
DCallTime.java199 if (file.exists() == false) { in startTrace()
207 if (file.exists() == true) { in startTrace()
212 if (file.exists() == true) { in startTrace()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java105 if (!directory.exists()) { in ensureOutputDirectory()
115 return getOutputDirectory(context).exists(); in dumpFileExists()
123 if (!file.exists()) return; in removeFileOrDirectory()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoStoreTest.java134 assertTrue(storedFile.exists()); in runStorageTestForResource()
179 assertTrue(new File(entry.path).exists()); in testRemoveEntry()
184 assertFalse(new File(entry.path).exists()); in testRemoveEntry()
/packages/apps/Browser/src/com/android/browser/provider/
DSnapshotProvider.java122 if (dbPath.exists()) return; in migrateToDataFolder()
124 if (oldPath.exists()) { in migrateToDataFolder()
225 if (f.exists()) { in deleteDataFiles()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTests.java187 assertTrue("check exisiting of " + dictFile, dictFile.exists()); in testRandomWords()
231 assertTrue("check exisiting of " + dictFile, dictFile.exists()); in testStressTestForSwitchingLanguagesAndAddingWords()
251 assertTrue("check exisiting of " + dictFile, dictFile.exists()); in testAddManyWords()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDeleteNonRequiredAppsTask.java104 return getSystemAppsFile(context, userId).exists(); in shouldDeleteNonRequiredApps()
130 if (!systemAppsFile.exists()) { in deleteNonRequiredApps()
276 if (!systemAppsFile.exists()) { in readSystemApps()
/packages/apps/Gallery/src/com/android/camera/
DImageManager.java155 if ((!nnnAAAAA.exists()) && (!nnnAAAAA.mkdir())) { in ensureOSXCompatibleFolder()
209 if (!dir.exists()) dir.mkdirs(); in addImage()
452 if (f.exists()) { in checkFsWritable()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java544 if (!file.exists()) { in createDefaultFolders()
624 if (origFile.exists() && origFile.length() > 0) { in onCreate()
1226 if (thumbsfolder.exists()) { in updateDatabase()
2956 if (file.exists()) { in insertDirectory()
3214 if (file.exists()) { in insertFile()
3653 if (nomedia.exists()) { in processNewNoMediaPath()
3662 if (nomedia.exists()) { in processNewNoMediaPath()
3811 if (file.exists()) { in ensureFileExists()
3826 if (!directory.exists()) in ensureFileExists()
4760 if (! parent.exists()) { in checkLeadingPathComponentsWorldExecutable()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/
DSizeFileComparator.java111 size1 = sumDirectoryContents && file1.exists() ? FileUtils.sizeOfDirectory(file1) : 0; in compare()
117 size2 = sumDirectoryContents && file2.exists() ? FileUtils.sizeOfDirectory(file2) : 0; in compare()
/packages/apps/Nfc/src/com/android/nfc/beam/
DBeamTransferManager.java271 if (file.exists()) file.delete(); in cancel()
515 while (dstFile.exists()) { in generateUniqueDestination()
530 while (newFile.exists()) { in generateMultiplePath()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapTempFileLiteral.java105 if (!isDestroyed() && mFile.exists()) { in destroy()
121 return mFile.exists(); in tempFileExistsForTest()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactEntryListAdapter.java369 public void setProfileExists(boolean exists) { in setProfileExists() argument
370 mProfileExists = exists; in setProfileExists()
372 if (exists) { in setProfileExists()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsState.java254 if (mApkFile.exists()) { in getIcon()
263 if (mApkFile.exists()) { in getIcon()
282 if (!mApkFile.exists()) { in loadLabel()
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java1546 if (file.exists()) { in testCreateUniqueFile()
1845 assertTrue(dbFile.exists()); in testDatabaseCorruptionRecovery()
1848 assertFalse(dbFile.exists()); in testDatabaseCorruptionRecovery()
1854 assertTrue(dbFile.exists()); in testDatabaseCorruptionRecovery()
1911 assertTrue(dbFile.exists()); in testBodyDatabaseCorruptionRecovery()
1914 assertFalse(dbFile.exists()); in testBodyDatabaseCorruptionRecovery()
1920 assertTrue(dbFile.exists()); in testBodyDatabaseCorruptionRecovery()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtilsTests.java83 assertFalse(dictFile0.exists()); in testRenameDictionary()
84 assertTrue(dictFile1.exists()); in testRenameDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DCursorAnchorInfoCompatWrapper.java88 return sCursorAnchorInfoClass.exists() && mInstance != null; in isAvailable()
99 if (!sCursorAnchorInfoClass.exists()) { in fromObject()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java274 assertTrue(mFolder.exists()); in testStoreFoldersFunctions()
275 assertTrue(folderMixedCaseInbox.exists()); in testStoreFoldersFunctions()
276 assertFalse(folderNotInbox.exists()); in testStoreFoldersFunctions()

12345