Home
last modified time | relevance | path

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

1234567

/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/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()
428 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExitWhileMoving()
434 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileUponSuspendExitWhileMoving()
471 assertTrue(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
479 assertFalse(getLocationCacheFile().exists()); in testDeletesCacheFileWhenDrivingStateBecomesMoving()
/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/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtStorage.java57 return file.exists(); in doesImageExist()
72 return file.exists() ? file : null; in getImageFile()
102 if (!deviceDirectory.exists()) { in addImage()
135 if (!file.exists()) return; in removeImage()
197 if (!directory.exists()) return; in deleteStorageDirectory()
/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/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/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java250 if (Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))) { in loadConfigData()
502 if (Files.exists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH))) { in backupConfigEncryptionFile()
525 if (!Files.exists(Paths.get(hashFilePathString))) { in compareFileHash()
581 if (!Files.exists(Paths.get(filePathString))) { in readChecksumFile()
601 if (!Files.exists(Paths.get(filePathString))) { in parseConfigFile()
643 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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreServiceTest.java289 Assert.assertFalse(Files.exists(Paths.get(CONFIG_CHECKSUM_ENCRYPTION_PATH))); in testParserFileAfterDisableNiapMode()
290 Assert.assertFalse(Files.exists(Paths.get(CONFIG_FILE_ENCRYPTION_PATH))); in testParserFileAfterDisableNiapMode()
291 Assert.assertFalse(Files.exists(Paths.get(CONFIG_BACKUP_ENCRYPTION_PATH))); in testParserFileAfterDisableNiapMode()
/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/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestExploreIntentChecker.java41 public void setViewHandlerExists(boolean exists) { in setViewHandlerExists() argument
42 mViewHandlerExists = exists; in setViewHandlerExists()
/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/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/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/google/android/car/bugreport/
DZipUtils.java37 if (!file.exists()) { in extractZippedFileToZipStream()
63 if (!file.exists()) { in addFileToZipStream()
/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/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/Camera2/src/com/android/camera/session/
DSessionStorageManagerImpl.java66 if (!sessionDirectory.exists() && !sessionDirectory.mkdirs()) { in getSessionDirectory()
99 if (!tempFile.exists()) { in createTemporaryOutputPath()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DSysfsLifetimeWriteInfoProvider.java63 if (!writefile.exists() || !writefile.isFile()) { in tryParse()
104 if (!fspath.exists() || !fspath.isDirectory()) continue; in load()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DSavedDiscovery.java115 if (!mCacheFile.exists()) { in load()
143 if (mCacheFile.exists()) { in save()

1234567