Home
last modified time | relevance | path

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

123456789

/cts/hostsidetests/backup/fullbackupapp/src/android/cts/backup/fullbackupapp/
DFullbackupTest.java147 assertTrue("File in 'no_backup' did not exist!", mNoBackupFile.exists()); in checkAllFilesExist()
148 assertTrue("File in folder inside 'no_backup' did not exist!", mNoBackupFile2.exists()); in checkAllFilesExist()
149 assertTrue("File in 'files' did not exist!", mDoBackupFile.exists()); in checkAllFilesExist()
150 assertTrue("File in folder inside 'files' did not exist!", mDoBackupFile2.exists()); in checkAllFilesExist()
154 assertFalse("File in 'no_backup' did exist!", mNoBackupFile.exists()); in checkNoFilesExist()
155 assertFalse("File in folder inside 'no_backup' did exist!", mNoBackupFile2.exists()); in checkNoFilesExist()
156 assertFalse("File in 'files' did exist!", mDoBackupFile.exists()); in checkNoFilesExist()
157 assertFalse("File in folder inside 'files' did exist!", mDoBackupFile2.exists()); in checkNoFilesExist()
161 assertFalse("File in 'no_backup' did exist!", mNoBackupFile.exists()); in checkNoBackupFilesDoNotExist()
162 assertFalse("File in folder inside 'no_backup' did exist!", mNoBackupFile2.exists()); in checkNoBackupFilesDoNotExist()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java59 assertFalse("/dev/socket/init_runit", new File("/dev/socket/init_runit").exists()); in testNoRootCmdSocket()
60 assertFalse("/dev/socket/fotabinder", new File("/dev/socket/fotabinder").exists()); in testNoRootCmdSocket()
71 assertFalse("/dev/socket/fota", new File("/dev/socket/fota").exists()); in testNoSystemCmdSocket()
76 assertFalse("/sbin/su", new File("/sbin/su").exists()); in testNoSu()
77 assertFalse("/system/bin/su", new File("/system/bin/su").exists()); in testNoSu()
78 assertFalse("/system/sbin/su", new File("/system/sbin/su").exists()); in testNoSu()
79 assertFalse("/system/xbin/su", new File("/system/xbin/su").exists()); in testNoSu()
80 assertFalse("/vendor/bin/su", new File("/vendor/bin/su").exists()); in testNoSu()
92 assertFalse(f.getAbsolutePath() + " exists", f.exists()); in testNoSuInPath()
166 … assertFalse("/proc/sunxi_debug/sunxi_debug", new File("/proc/sunxi_debug/sunxi_debug").exists()); in testNoSunxiDebug()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
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()
/cts/hostsidetests/backup/FullBackupOnly/src/
DFullBackupOnlyTest.java159 assertTrue("Key/value file did not exist!", mKeyValueBackupFile.exists()); in assertKeyValueFileExists()
163 assertFalse("Key/value file did exist!", mKeyValueBackupFile.exists()); in assertKeyValueFileDoesntExist()
167 assertTrue("File in 'files' did not exist!", mDoBackupFile.exists()); in assertDollyFilesExist()
168 assertTrue("File in folder inside 'files' did not exist!", mDoBackupFile2.exists()); in assertDollyFilesExist()
172 assertFalse("File in 'files' did exist!", mDoBackupFile.exists()); in assertDollyFilesDontExist()
173 assertFalse("File in folder inside 'files' did exist!", mDoBackupFile2.exists()); in assertDollyFilesDontExist()
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/
DIncludeExcludeTest.java221 assertTrue("File did unexpectedly not exist: " + file.getAbsolutePath(), file.exists()); in checkAllFilesExist()
224 assertTrue("File did unexpectedly not exist: " + file.getAbsolutePath(), file.exists()); in checkAllFilesExist()
227 assertTrue("File did unexpectedly not exist: " + file.getAbsolutePath(), file.exists()); in checkAllFilesExist()
234 assertFalse("File did unexpectedly exist: " + file.getAbsolutePath(), file.exists()); in checkNoFilesExist()
237 assertFalse("File did unexpectedly exist: " + file.getAbsolutePath(), file.exists()); in checkNoFilesExist()
240 assertFalse("File did unexpectedly exist: " + file.getAbsolutePath(), file.exists()); in checkNoFilesExist()
247 file.exists()); in checkExcludeFilesDoNotExist()
254 file.exists()); in checkIncludeFilesDoExist()
261 file.exists()); in checkRequireFakeClientSideEncryptionFilesDoExist()
268 file.exists()); in checkRequireFakeClientSideEncryptionFilesDoNotExist()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java91 boolean exists = eventExists(params, mPackagesAdded); in handleMessage()
94 exists ? RESULT_PASS : RESULT_FAIL, 0)); in handleMessage()
99 boolean exists = eventExists(params, mPackagesRemoved); in handleMessage()
102 exists ? RESULT_PASS : RESULT_FAIL, 0)); in handleMessage()
107 boolean exists = eventExists(params, mPackagesChanged); in handleMessage()
110 exists ? RESULT_PASS : RESULT_FAIL, 0)); in handleMessage()
115 boolean exists = eventExists(params, mPackagesAdded); in handleMessage()
118 exists ? RESULT_FAIL : RESULT_PASS, 0)); in handleMessage()
/cts/hostsidetests/backup/ProfileFullBackupApp/src/android/cts/backup/profilefullbackupapp/
DProfileFullBackupRestoreTest.java56 assertThat(mFile1.exists()).isFalse(); in assertFilesDontExist()
57 assertThat(mFile2.exists()).isFalse(); in assertFilesDontExist()
78 assertThat(mFile1.exists()).isTrue(); in assertFilesRestored()
81 assertThat(mFile2.exists()).isTrue(); in assertFilesRestored()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java239 assertThat(otherAppPdf.exists()).isFalse(); in testManageExternalStorageCanDeleteOtherAppsContents()
242 assertThat(otherAppImage.exists()).isFalse(); in testManageExternalStorageCanDeleteOtherAppsContents()
245 assertThat(otherAppMusic.exists()).isFalse(); in testManageExternalStorageCanDeleteOtherAppsContents()
365 assertThat(otherAppPdf.exists()).isTrue(); in testManageExternalStorageCanRenameOtherAppsContents()
471 if (!nomediaDir.exists()) { in testManageExternalStorageDoesntSkipScanningDirtyNomediaDir()
507 if (!nomediaDir.exists()) { in testScanDoesntSkipDirtySubtree()
510 if (!nomediaSubDir.exists()) { in testScanDoesntSkipDirtySubtree()
796 if (!dir.exists()) { in testRenameFromShell()
803 assertFalse(imageFile.exists()); in testRenameFromShell()
805 assertTrue(renamedImageFile.exists()); in testRenameFromShell()
[all …]
/cts/hostsidetests/backup/BackupEligibility/src/
DBackupEligibilityTest.java128 assertTrue("File in 'files' did not exist!", mDoBackupFile.exists()); in assertAllFilesExist()
129 assertTrue("File in folder inside 'files' did not exist!", mDoBackupFile2.exists()); in assertAllFilesExist()
133 assertFalse("File in 'files' did exist!", mDoBackupFile.exists()); in assertNoFilesExist()
134 assertFalse("File in folder inside 'files' did exist!", mDoBackupFile2.exists()); in assertNoFilesExist()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DListQueryHelperTest.java71 bundle().key(BUNDLE_KEY).exists() in matches_contains_doesContain_returnsTrue()
84 bundle().key(BUNDLE_KEY).exists() in matches_contains_doesNotContain_returnsFalse()
96 bundle().key(BUNDLE_KEY).exists() in matches_doesNotContain_doesContain_returnsFalse()
109 bundle().key(BUNDLE_KEY).exists() in matches_doesNotContain_doesNotContain_returnsTrue()
DSetQueryHelperTest.java67 bundle().key(BUNDLE_KEY).exists() in matches_contains_doesContain_returnsTrue()
78 bundle().key(BUNDLE_KEY).exists() in matches_contains_doesNotContain_returnsFalse()
89 bundle().key(BUNDLE_KEY).exists() in matches_doesNotContain_doesContain_returnsFalse()
100 bundle().key(BUNDLE_KEY).exists() in matches_doesNotContain_doesNotContain_returnsTrue()
DPersistableBundleKeyQueryHelperTest.java78 persistableBundleKeyQueryHelper.persistableBundleValue().key(KEY2).exists(); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
90 persistableBundleKeyQueryHelper.persistableBundleValue().key(KEY2).exists(); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse()
101 persistableBundleKeyQueryHelper.exists(); in matches_existsRestriction_meetsRestriction_returnsTrue()
112 persistableBundleKeyQueryHelper.exists(); in matches_existsRestriction_doesNotMeetRestriction_returnsFalse()
DBundleQueryHelperTest.java53 bundleQueryHelper.key(KEY).exists(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
76 bundleQueryHelper.key(KEY).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
77 bundleQueryHelper.key(KEY2).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
DPersistableBundleQueryHelperTest.java52 persistableBundleQueryHelper.key(KEY).exists(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue()
75 persistableBundleQueryHelper.key(KEY).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
76 persistableBundleQueryHelper.key(KEY2).exists(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse()
DBundleKeyQueryHelperTest.java82 bundleKeyQueryHelper.bundleValue().key(KEY2).exists(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue()
94 bundleKeyQueryHelper.bundleValue().key(KEY2).exists(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse()
127 bundleKeyQueryHelper.exists(); in matches_existsRestriction_meetsRestriction_returnsTrue()
138 bundleKeyQueryHelper.exists(); in matches_existsRestriction_doesNotMeetRestriction_returnsFalse()
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DApkPackageNameCheck.java67 if (!testcases.exists()) { in testApkPackageNames()
98 if (!new File(testcases, path + "32").exists() in testApkPackageNames()
99 || !new File(testcases, path + "64").exists()) { in testApkPackageNames()
114 if (!new File(testcases, path).exists()) { in testApkPackageNames()
131 if (!apkFile.exists()) { in testApkPackageNames()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DFileUtils.java77 if (parent != null && !parent.exists()) { in assertDirDoesNotExist()
91 assertThat(directory.exists()).isFalse(); in assertDirDoesNotExist()
114 assertTrue(directory.exists()); in assertFileDoesNotExist()
125 assertTrue(file.exists()); in assertFileExists()
/cts/tests/tests/permission4/src/android/permission4/cts/
DCameraMicIndicatorsPermissionTest.kt164 assertTrue("View with text $APP_LABEL not found", appView.exists()) in testCameraAndMicIndicator()
208 assertTrue("View with text $APP_LABEL not found", appView.exists()) in assertCarIndicatorsShown()
214 assertTrue("View with text $APP_LABEL not found", appView.exists()) in assertCarIndicatorsShown()
231 assertTrue("View with description $micLabel not found", iconView.exists()) in assertPrivacyChipAndIndicatorsPresent()
235 assertTrue("View with text $APP_LABEL not found", iconView.exists()) in assertPrivacyChipAndIndicatorsPresent()
238 assertTrue("View with text $APP_LABEL not found", appView.exists()) in assertPrivacyChipAndIndicatorsPresent()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DScopedStorageDeviceTest.java462 if (!videoFile.exists()) { in testReadWriteFilesInOtherAppExternalDir()
560 assertThat(mediaFile.exists()).isTrue(); in testCantAccessOtherAppsContents()
561 assertThat(nonMediaFile.exists()).isTrue(); in testCantAccessOtherAppsContents()
734 if (!dir.exists()) { in testListDirectoriesWithMediaFiles()
768 if (!dir.exists()) { in testListDirectoriesWithNonMediaFiles()
800 if (!nonmediaFile.exists()) { in testListFilesFromExternalFilesDirectory()
826 if (!videoFile.exists()) { in testListFilesFromExternalMediaDirectory()
850 if (jpgFile.exists()) { in testMetaDataRedaction()
1044 assertThat(file.exists()).isFalse(); in testContentResolverDelete()
1068 assertThat(oldFile.exists()).isFalse(); in testContentResolverUpdate()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java73 assertFalse(mPrefsFile.exists()); in testNoFileInitially()
78 assertFalse(mPrefsFile.exists()); in testCommitCreatesFiles()
80 assertTrue(mPrefsFile.exists()); in testCommitCreatesFiles()
128 assertFalse(mPrefsFile.exists()); in test()
130 assertTrue(mPrefsFile.exists()); in test()
226 assertFalse(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
228 assertTrue(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
239 assertTrue(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java148 if (targetObject.exists()) { in findDocument()
149 boolean targetObjectFullyVisible = !saveButton.exists() in findDocument()
220 assertTrue("CtsLocal root", findRoot("CtsLocal").exists()); in testOpenSimple()
221 assertTrue("CtsCreate root", findRoot("CtsCreate").exists()); in testOpenSimple()
222 assertFalse("CtsGetContent root", findRoot("CtsGetContent").exists()); in testOpenSimple()
526 assertTrue("CtsLocal root", findRoot("CtsLocal").exists()); in testGetContent_rootsShowing()
527 assertTrue("CtsCreate root", findRoot("CtsCreate").exists()); in testGetContent_rootsShowing()
532 if (getContentRoot.exists()) { in testGetContent_rootsShowing()
559 assertTrue(findDocument(queryString).exists()); in testGetContentWithQuery_matchingFileShowing()
562 assertTrue(textField.exists()); in testGetContentWithQuery_matchingFileShowing()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DMediaStoreSaver.java40 if (!picDir.exists() && picDir.mkdirs()) { in savePNG()
46 if (!dir.exists() && !dir.mkdirs()) { in savePNG()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageCrateTest.java52 if (!mCratesRoot.toFile().exists()) { in cleanAllOfCrates()
96 assertThat(cratesRootDir.exists()).isFalse(); in getCrateDir_notInvoke_cratesRootShouldNotExist()
105 assertThat(cratesRootDir.exists()).isTrue(); in getCrateDir_withCrateId_cratesRootExist()
126 assertThat(crateDir.exists()).isTrue(); in getCrateDir_withCrateId_cratePathShouldExist()
350 assertThat(crateDir.exists() && crateDir.isDirectory()).isTrue(); in getCrateDir_withLineFeedCharacter_shouldSuccess()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildDalvikSuite.java240 if (new File(sourceFolder, fileName + ".dfh").exists()) { in generateBuildStepForDependant()
245 if (new File(sourceFolder, fileName + ".d").exists()) { in generateBuildStepForDependant()
258 if (smaliFile.exists()) { in generateBuildStepForDependant()
262 } else if (smalisDir.exists() && smalisDir.isDirectory()) { in generateBuildStepForDependant()
283 if (srcFile.exists()) { in generateBuildStepForDependant()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeTestUtils.java35 if (dir == null || !dir.exists() || file == null || file.exists()) { in compressDirectory()

123456789