Home
last modified time | relevance | path

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

12345678

/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/DocumentsUI/tests/common/com/android/documentsui/bots/
DSearchBot.java74 assertTrue(fragmentSearchView.exists()); in clickIcon()
107 assertTrue(textField.exists()); in assertInputEquals()
115 assertTrue(textField.exists()); in assertInputFocused()
119 public void assertInputExists(boolean exists) in assertInputExists() argument
121 assertEquals(exists, findSearchViewTextField().exists()); in assertInputExists()
128 assertTrue(textField.exists()); in assertFragmentInputFocused()
132 public void assertFragmentInputExists(boolean exists) in assertFragmentInputExists() argument
134 assertEquals(exists, findFragmentSearchViewTextField().exists()); in assertFragmentInputExists()
DDirectoryListBot.java86 if (!findDocument(label).exists()) { in assertDocumentsPresent()
99 if (findDocument(label).exists()) { in assertDocumentsAbsent()
109 …public void assertDocumentsCountOnList(boolean exists, int count) throws UiObjectNotFoundException… in assertDocumentsCountOnList() argument
111 assertEquals(exists, docsList.exists()); in assertDocumentsCountOnList()
112 if(docsList.exists()) { in assertDocumentsCountOnList()
126 assertTrue(messageTextView.exists()); in assertHasMessage()
128 assertFalse(messageTextView.exists()); in assertHasMessage()
149 assertTrue(messageTextView.exists()); in assertPlaceholderMessageText()
279 if (!findDocument(label).exists()) { in hasDocuments()
/packages/services/Car/car_product/build/
Dcar.mk62 $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
63 $(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk)
64 $(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk)
65 $(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk)
66 $(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk)
67 $(call inherit-product-if-exists, external/noto-fonts/fonts.mk)
68 $(call inherit-product-if-exists, external/roboto-fonts/fonts.mk)
69 $(call inherit-product-if-exists, external/hyphenation-patterns/patterns.mk)
70 $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
71 $(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java240 assertThat(getLocationCacheFile().exists()).isFalse(); in testDoesNotLoadLocationWhenNoFileExists()
389 assertFalse(getLocationCacheFile().exists()); in testDoesNotStoreNullLocation()
407 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenLocationIsDisabled()
413 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenLocationIsDisabled()
430 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExit()
447 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
455 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java86 assertFalse(a.exists()); in testPruneThumbnails()
87 assertFalse(b.exists()); in testPruneThumbnails()
88 assertTrue(c.exists()); in testPruneThumbnails()
89 assertFalse(d.exists()); in testPruneThumbnails()
/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/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java65 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument
71 args.putBoolean(ARG_EXISTS, exists); in show()
90 boolean exists = args.getBoolean(ARG_EXISTS); in onCreateDialog()
92 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfigDialogFragment.java65 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument
71 args.putBoolean(ARG_EXISTS, exists); in show()
90 boolean exists = args.getBoolean(ARG_EXISTS); in onCreateDialog()
92 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog()
/packages/services/Telephony/src/com/android/phone/
DCallTime.java200 if (file.exists() == false) { in startTrace()
208 if (file.exists() == true) { in startTrace()
213 if (file.exists() == true) { in startTrace()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/
DDataExporter.java102 if (!directory.exists()) { in ensureOutputDirectory()
112 return getOutputDirectory(context).exists(); in dumpFileExists()
120 if (!file.exists()) return; in removeFileOrDirectory()
/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/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DMigrateSystemAppsSnapshotTaskTest.java116 assertFalse(SystemAppsSnapshot.getFolder(mContext).exists()); in testRun_nothingToMigrate()
182 assertFalse(legacyFolder.exists()); in assertFilesAreMigrated()
183 assertTrue(newFolder.exists()); in assertFilesAreMigrated()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DDbDowngradeHelperTest.java71 assertFalse(mSchemaFile.exists()); in testDowngradeSchemaMatchesVersion()
86 assertFalse(mSchemaFile.exists()); in testUpdateSchemaFile()
89 assertTrue(mSchemaFile.exists()); in testUpdateSchemaFile()
/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/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/services/BuiltInPrintService/src/com/android/bips/util/
DFileUtils.java59 Log.d(TAG, "Testing file " + dir + " exists=" + dir.exists() in makeDirectory()
62 if (dir.exists()) { in makeDirectory()
/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/apps/Car/Settings/src/com/android/car/settings/system/
DLicenseHtmlLoader.java73 if (file.exists() && file.length() != 0) { in getVaildXmlFiles()
86 if (cachedHtmlFile.exists() && cachedHtmlFile.length() != 0) { in isCachedHtmlFileOutdated()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java114 assertFalse(new File(mTempSystemCarDir, CONFIG_FILENAME_PRODUCTION).exists()); in testSaveConfig_WriteStagedFile()
169 assertFalse(staged.exists()); in testLoadConfig_PromoteStagedFileWhenParked()
184 assertTrue(staged.exists()); in testLoadConfig_NoPromoteStagedFileWhenMoving()
/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/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()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapTempFileLiteral.java101 if (!isDestroyed() && file.exists()) { in destroy()
117 return file.exists(); in tempFileExistsForTest()
/packages/apps/Camera2/src/com/android/camera/session/
DSessionStorageManagerImpl.java66 if (!sessionDirectory.exists() && !sessionDirectory.mkdirs()) { in getSessionDirectory()
99 if (!tempFile.exists()) { in createTemporaryOutputPath()

12345678