Home
last modified time | relevance | path

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

12345678910>>...13

/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/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/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DFilePathAccessTestUtils.java58 public static void assertDirectoryAccess(File dir, boolean exists, boolean canWrite) in assertDirectoryAccess() argument
63 assertThat(dir.isDirectory()).isEqualTo(exists); in assertDirectoryAccess()
65 assertAccess(dir, exists, exists, exists && canWrite); in assertDirectoryAccess()
68 public static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite) in assertAccess() argument
70 assertAccess(file, exists, canRead, canWrite, true /* checkExists */); in assertAccess()
88 private static void assertAccess(File file, boolean exists, boolean canRead, boolean canWrite, in assertAccess() argument
91 assertThat(file.exists()).isEqualTo(exists); in assertAccess()
97 assertThat(file.canExecute()).isEqualTo(exists); in assertAccess()
110 assertAccess(file, F_OK, exists); in assertAccess()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstallDontKillTest.java104 assertThat(new File(mOldPath).exists()).isFalse(); in testDontKill_pathsDeletedAfterSmallDelay()
105 assertThat(new File(mPathAfterFirstSplitInstall).exists()).isFalse(); in testDontKill_pathsDeletedAfterSmallDelay()
116 assertThat(new File(mOldPath, BASE_SPLIT_NAME).exists()).isTrue(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
117 assertThat(new File(mOldPath, SPLIT_NAME_1).exists()).isTrue(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
118 assertThat(new File(mOldPath, SPLIT_NAME_2).exists()).isTrue(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
119 assertThat(new File(mPathAfterFirstSplitInstall, BASE_SPLIT_NAME).exists()).isTrue(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
120 assertThat(new File(mPathAfterFirstSplitInstall, SPLIT_NAME_1).exists()).isTrue(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
121 assertThat(new File(mPathAfterFirstSplitInstall, SPLIT_NAME_2).exists()).isTrue(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
124 assertThat(new File(mOldPath).exists()).isFalse(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
125 assertThat(new File(mPathAfterFirstSplitInstall).exists()).isFalse(); in testDontKill_pathsNotDeletedAfterAdjustedDelay()
[all …]
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DAtomicFileHelperTest.java65 assertTrue(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithPreExistedBaseFile()
67 assertFalse(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithPreExistedBaseFile()
75 if (baseFile.exists()) { in testAtomicFileWithNonExistedBaseFile()
82 assertFalse(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithNonExistedBaseFile()
88 assertTrue(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithNonExistedBaseFile()
99 assertFalse(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithNonExistedBaseFile()
107 if (baseFile.exists()) { in testAtomicFileWithFailedWrite()
114 assertFalse(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithFailedWrite()
120 assertFalse(AtomicFileHelper.exists(atomicFile)); in testAtomicFileWithFailedWrite()
128 if (baseFile.exists()) { in testAtomicFileRewrite()
[all …]
/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/tests/PhotoPicker/src/android/photopicker/cts/util/
DUiAssertionUtils.java51 .exists()).isTrue(); in assertThatShowsPickerUi()
58 assertThat(new UiObject(new UiSelector().text("Videos")).exists()).isTrue(); in assertThatShowsPickerUi()
60 assertThat(new UiObject(new UiSelector().text("Photos")).exists()).isTrue(); in assertThatShowsPickerUi()
62 assertThat(new UiObject(new UiSelector().text("Albums")).exists()).isTrue(); in assertThatShowsPickerUi()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/settings/
DIsThereTextExplainingThatAnITAdminHasLimitedThisFunctionalityStepAutomation.java33 new UiSelector().textContains("contact your IT admin")).exists() in automate()
35 new UiSelector().textContains("Not allowed by your organization")).exists() in automate()
37 new UiSelector().textContains("disabled by admin")).exists(); in automate()
/cts/apps/CameraITS/utils/
Dui_interaction_utils.py65 if not object_to_await.wait.exists(UI_OBJECT_WAIT_TIME_SECONDS):
76 ui_object_visible = ui_object.wait.exists(UI_OBJECT_WAIT_TIME_SECONDS)
104 res=CAPTURE_BUTTON_RESOURCE_ID).wait.exists(
132 if not dut.ui(desc=ui_facing_description).wait.exists(
193 if dut.ui(text=AGREE_BUTTON).wait.exists(
196 if dut.ui(text=OK_BUTTON_TXT).wait.exists(
199 if dut.ui(text=DONE_BUTTON_TXT).wait.exists(
/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/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/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/interactive/automation/src/main/java/com/android/interactive/steps/settings/password/
DSetPin15911591StepAutomation.java48 while (nextButton.exists()) { in automate()
58 while (confirmButton.exists()) { in automate()
66 while (doneButton.exists()) { in automate()
DSetPin1591StepAutomation.java48 while (nextButton.exists()) { in automate()
58 while (confirmButton.exists()) { in automate()
66 while (doneButton.exists()) { in automate()
DSetPin4444StepAutomation.java50 while (nextButton.exists()) { in automate()
60 while (confirmButton.exists()) { in automate()
68 while (doneButton.exists()) { in automate()
DIsItPossibleToSetNoScreenLockOrPasswordStepAutomation.java37 .className(TextView.class).text("None")).exists()) { in automate()
47 .className(TextView.class).text("None")).exists(); in automate()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DPersistableBundleKeyQueryHelperTest.java87 persistableBundleKeyQueryHelper.persistableBundleValue().key(KEY2).exists(); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue()
99 persistableBundleKeyQueryHelper.persistableBundleValue().key(KEY2).exists(); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse()
110 persistableBundleKeyQueryHelper.exists(); in matches_existsRestriction_meetsRestriction_returnsTrue()
121 persistableBundleKeyQueryHelper.exists(); in matches_existsRestriction_doesNotMeetRestriction_returnsFalse()
172 persistableBundleKeyQueryHelper.exists(); in isEmptyQuery_hasExistsQuery_returnsFalse()
/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/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/sharesheet/
DAreThereWorkAndPersonalTabsStepAutomation.java37 new UiSelector().text("Personal").className(Button.class)).exists()) in automate()
42 new UiSelector().text("Work").className(Button.class)).exists()) in automate()
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/steps/enterprise/launcher/
DAreThereWorkAndPersonalTabsStepAutomation.java38 Button.class)).exists()) in automate()
43 new UiSelector().text("Work").className(Button.class)).exists()) in automate()
DIsAppShownInPersonalAppsStepAutomation.java55 …oking for app " + mAppLabel + " in personal, found " + match + "(exists: " + match.exists() + ")"); in automate()
56 return match.exists(); in automate()
/cts/apps/CameraITS/tools/
Drun_all_unit_tests.py31 self.assertTrue(os.path.exists(scene_path),
40 self.assertTrue(os.path.exists(test_path),
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCloneProfileTest.java77 assertThat(cloneUser.exists()).isTrue(); in createCloneProfile_noDeviceOwner_succeeds()
89 assertThat(cloneProfile.exists()).isTrue(); in createCloneProfile_deviceHasWorkProfile_succeeds()
101 assertThat(cloneProfile.exists()).isTrue(); in createCloneProfile_deviceHasOrganizationOwnedWorkProfile_succeeds()

12345678910>>...13