Home
last modified time | relevance | path

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

12345678

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java118 assertFalse(exists(a)); in testPruneThumbnails()
119 assertFalse(exists(b)); in testPruneThumbnails()
120 assertTrue(exists(c)); in testPruneThumbnails()
121 assertFalse(exists(d)); in testPruneThumbnails()
132 assertFalse(exists(a)); in testPruneThumbnails()
133 assertFalse(exists(b)); in testPruneThumbnails()
134 assertFalse(exists(c)); in testPruneThumbnails()
135 assertFalse(exists(d)); in testPruneThumbnails()
220 assertFalse(exists(file)); in delete()
227 assertTrue(exists(file)); in touch()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSearchBot.java107 findSearchHistoryView().exists()); in assertSearchHistoryVisible()
111 findSearchHistoryView().exists()); in assertSearchHistoryVisible()
119 assertTrue(textField.exists()); in assertInputEquals()
127 assertTrue(textField.exists()); in assertInputFocused()
131 public void assertInputExists(boolean exists) in assertInputExists() argument
133 assertEquals(exists, findSearchViewTextField().exists()); in assertInputExists()
DDirectoryListBot.java88 if (!findDocument(label).exists()) { in assertDocumentsPresent()
101 if (findDocument(label).exists()) { in assertDocumentsAbsent()
111 …public void assertDocumentsCountOnList(boolean exists, int count) throws UiObjectNotFoundException… in assertDocumentsCountOnList() argument
113 assertEquals(exists, docsList.exists()); in assertDocumentsCountOnList()
114 if(docsList.exists()) { in assertDocumentsCountOnList()
128 assertTrue(messageTextView.exists()); in assertHasMessage()
130 assertFalse(messageTextView.exists()); in assertHasMessage()
151 assertTrue(messageTextView.exists()); in assertPlaceholderMessageText()
288 if (!findDocument(label).exists()) { in hasDocuments()
/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DDirectoryTests.java31 assertTrue(f.exists()); in testStatsActiveMetricDirectoryExists()
38 assertTrue(f.exists()); in testStatsDataDirectoryExists()
45 assertTrue(f.exists()); in testStatsMetadataDirectoryExists()
52 assertTrue(f.exists()); in testStatsServiceDirectoryExists()
59 assertTrue(f.exists()); in testTrainInfoDirectoryExists()
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/util/
DCommonUtilsTest.java41 assertThat(file.exists()).isFalse(); in deleteDirOrFile_file()
50 assertThat(dir.exists()).isFalse(); in deleteDirOrFile_Dir()
62 assertThat(dir.exists()).isTrue(); in deleteDirOrFile_unreadableDir()
76 assertThat(dir.exists()).isTrue(); in deleteDirOrFile_unreadableSubDir()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java238 assertThat(getLocationCacheFile().exists()).isFalse(); in testDoesNotLoadLocationWhenNoFileExists()
387 assertFalse(getLocationCacheFile().exists()); in testDoesNotStoreNullLocation()
405 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenLocationIsDisabled()
411 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenLocationIsDisabled()
426 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExitWhileMoving()
432 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExitWhileMoving()
469 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
477 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java62 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument
68 args.putBoolean(ARG_EXISTS, exists); in show()
88 boolean exists = args.getBoolean(ARG_EXISTS); in onCreateDialog()
90 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java423 if (!nomediaFile.getParentFile().exists()) { in assertVisibleFolder()
427 if (!nomediaFile.exists()) { in assertVisibleFolder()
429 assertTrue(nomediaFile.exists()); in assertVisibleFolder()
955 assertThat(audio.exists()).isTrue(); in testScan_deleteStaleRowWithExpiredPendingFile()
969 assertThat(audio.exists()).isFalse(); in testScan_deleteStaleRowWithExpiredPendingFile()
997 assertThat(audio.exists()).isTrue(); in testScan_keepStaleRowWithNonExpiredPendingFile()
1011 assertThat(audio.exists()).isFalse(); in testScan_keepStaleRowWithNonExpiredPendingFile()
1039 assertThat(audio.exists()).isTrue(); in testScan_deleteStaleRowWithExpiredTrashedFile()
1053 assertThat(audio.exists()).isFalse(); in testScan_deleteStaleRowWithExpiredTrashedFile()
1081 assertThat(audio.exists()).isTrue(); in testScan_deleteStaleRowWithNonExpiredTrashedFile()
[all …]
/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/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestExploreIntentChecker.java41 public void setViewHandlerExists(boolean exists) { in setViewHandlerExists() argument
42 mViewHandlerExists = exists; in setViewHandlerExists()
/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/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/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreServiceTest.java289 Assert.assertFalse(Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
290 Assert.assertFalse(Files.exists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
291 Assert.assertFalse(Files.exists(Paths.get(CONFIG_BACKUP_ENCRYPTION_PATH))); in testParserFileAfterDisableCommonCriteriaMode()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java250 if (Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))) { in loadConfigData()
507 if (Files.exists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH))) { in backupConfigEncryptionFile()
530 if (!Files.exists(Paths.get(hashFilePathString))) { in compareFileHash()
598 if (!Files.exists(Paths.get(filePathString))) { in readChecksumFile()
618 if (!Files.exists(Paths.get(filePathString))) { in parseConfigFile()
660 if (!Files.exists(Paths.get(filePathString))) { in loadEncryptionFile()
/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/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastDatabaseHelper.java184 if (!oldDb.exists()) { in tryToMigrateV13()
191 if (!newDb.exists() || oldDb.lastModified() > newDb.lastModified()) { in tryToMigrateV13()
195 if (newDb.exists()) newDb.delete(); in tryToMigrateV13()
/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/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/
DTranscodeTest.java274 assertFalse(modernFile.exists()); in testDeleteTranscodedFile_FilePath()
278 assertFalse(modernFile.exists()); in testDeleteTranscodedFile_FilePath()
298 assertTrue(destFile.exists()); in testRenameTranscodedFile_FilePath()
299 assertFalse(modernFile.exists()); in testRenameTranscodedFile_FilePath()
303 assertTrue(destFile.exists()); in testRenameTranscodedFile_FilePath()
304 assertFalse(modernFile.exists()); in testRenameTranscodedFile_FilePath()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DLicenseHtmlLoader.java79 if (file.exists() && file.length() != 0) { in getVaildXmlFiles()
92 if (cachedHtmlFile.exists() && cachedHtmlFile.length() != 0) { in isCachedHtmlFileOutdated()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DZipUtils.java37 if (!file.exists()) { in extractZippedFileToZipStream()
63 if (!file.exists()) { in addFileToZipStream()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DRotationWallpaperUpdateReceiver.java63 if (context.getFileStreamPath(ROTATING_WALLPAPER_FILE_PATH).exists()) { in onReceive()
69 if (wallpaperFile.exists()) { in onReceive()
/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