Home
last modified time | relevance | path

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

1234567

/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.java61 assertFalse("/dev/socket/init_runit", new File("/dev/socket/init_runit").exists()); in testNoRootCmdSocket()
62 assertFalse("/dev/socket/fotabinder", new File("/dev/socket/fotabinder").exists()); in testNoRootCmdSocket()
73 assertFalse("/dev/socket/fota", new File("/dev/socket/fota").exists()); in testNoSystemCmdSocket()
78 assertFalse("/sbin/su", new File("/sbin/su").exists()); in testNoSu()
79 assertFalse("/system/bin/su", new File("/system/bin/su").exists()); in testNoSu()
80 assertFalse("/system/sbin/su", new File("/system/sbin/su").exists()); in testNoSu()
81 assertFalse("/system/xbin/su", new File("/system/xbin/su").exists()); in testNoSu()
82 assertFalse("/vendor/bin/su", new File("/vendor/bin/su").exists()); in testNoSu()
94 assertFalse(f.getAbsolutePath() + " exists", f.exists()); in testNoSuInPath()
168 … assertFalse("/proc/sunxi_debug/sunxi_debug", new File("/proc/sunxi_debug/sunxi_debug").exists()); in testNoSunxiDebug()
DHwRngTest.java62 DEV_HW_RANDOM.exists() ? 1 : 0, in testDeviceFilePresent()
67 DEV_HW_RANDOM.exists() ? 1 : 0, in testDeviceFilePresent()
81 if (!DEV_HW_RANDOM.exists()) { in testConfigurationIfFilePresent()
/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()
233 assertFalse("File did unexpectedly exist: " + file.getAbsolutePath(), file.exists()); in checkNoFilesExist()
236 assertFalse("File did unexpectedly exist: " + file.getAbsolutePath(), file.exists()); in checkNoFilesExist()
239 assertFalse("File did unexpectedly exist: " + file.getAbsolutePath(), file.exists()); in checkNoFilesExist()
246 file.exists()); in checkExcludeFilesDoNotExist()
253 file.exists()); in checkIncludeFilesDoExist()
260 file.exists()); in checkRequireFakeClientSideEncryptionFilesDoExist()
267 file.exists()); in checkRequireFakeClientSideEncryptionFilesDoNotExist()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java90 boolean exists = eventExists(params, mPackagesAdded); in handleMessage()
93 exists ? RESULT_PASS : RESULT_FAIL, 0)); in handleMessage()
98 boolean exists = eventExists(params, mPackagesRemoved); in handleMessage()
101 exists ? RESULT_PASS : RESULT_FAIL, 0)); in handleMessage()
106 boolean exists = eventExists(params, mPackagesChanged); in handleMessage()
109 exists ? RESULT_PASS : RESULT_FAIL, 0)); in handleMessage()
114 boolean exists = eventExists(params, mPackagesAdded); in handleMessage()
117 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/backup/AllowBackup/src/
DAllowBackupTest.java123 assertTrue("File in 'files' did not exist!", mDoBackupFile.exists()); in assertAllFilesExist()
124 assertTrue("File in folder inside 'files' did not exist!", mDoBackupFile2.exists()); in assertAllFilesExist()
128 assertFalse("File in 'files' did exist!", mDoBackupFile.exists()); in assertNoFilesExist()
129 assertFalse("File in folder inside 'files' did exist!", mDoBackupFile2.exists()); in assertNoFilesExist()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java75 assertFalse(mPrefsFile.exists()); in testNoFileInitially()
80 assertFalse(mPrefsFile.exists()); in testCommitCreatesFiles()
82 assertTrue(mPrefsFile.exists()); in testCommitCreatesFiles()
130 assertFalse(mPrefsFile.exists()); in test()
132 assertTrue(mPrefsFile.exists()); in test()
228 assertFalse(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
230 assertTrue(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
241 assertTrue(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DOutOfProcessActivity.java122 return getStartedMarker(sContext).exists(); in startAndWaitOutOfProcessActivity()
140 return file.exists() ? file : null; in waitActivityStopped()
147 return file.exists() ? file : null; in waitActivityStarted()
154 return getStoppedMarker(sContext).exists();
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java150 assertTrue("CtsLocal root", findRoot("CtsLocal").exists()); in testOpenSimple()
151 assertTrue("CtsCreate root", findRoot("CtsCreate").exists()); in testOpenSimple()
152 assertFalse("CtsGetContent root", findRoot("CtsGetContent").exists()); in testOpenSimple()
362 assertTrue("CtsLocal root", findRoot("CtsLocal").exists()); in testGetContent_rootsShowing()
363 assertTrue("CtsCreate root", findRoot("CtsCreate").exists()); in testGetContent_rootsShowing()
364 assertFalse("CtsGetContent root", findRoot("CtsGetContent").exists()); in testGetContent_rootsShowing()
386 assertTrue(findDocument(queryString).exists()); in testGetContentWithQuery_matchingFileShowing()
389 assertTrue(textField.exists()); in testGetContentWithQuery_matchingFileShowing()
592 assertTrue(findDocument("FILE1").exists()); in testOpenDocumentAtInitialLocation()
609 assertTrue(findDocument("FILE4").exists()); in testOpenDocumentTreeAtInitialLocation()
[all …]
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java373 assertTrue(a.exists()); in testCacheBehavior()
374 assertTrue(b.exists()); in testCacheBehavior()
375 assertTrue(c.exists()); in testCacheBehavior()
376 assertFalse(group.exists()); in testCacheBehavior()
377 assertFalse(d.exists()); in testCacheBehavior()
378 assertFalse(e.exists()); in testCacheBehavior()
379 assertFalse(f.exists()); in testCacheBehavior()
380 assertTrue(g.exists()); assertEquals(0, g.length()); in testCacheBehavior()
381 assertTrue(h.exists()); assertEquals(0, h.length()); in testCacheBehavior()
382 assertTrue(i.exists()); assertEquals(0, i.length()); in testCacheBehavior()
/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()
DJarBuildStep.java62 if (!outDir.exists() && !outDir.mkdirs()) { in build()
74 if (!absoluteInputFile.exists()) { in build()
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java194 assertFalse("CE exists", getTestFile(mCe).exists()); in assertLocked()
195 assertTrue("DE exists", getTestFile(mDe).exists()); in assertLocked()
245 ceFile::exists); in assertLocked()
252 assertTrue("CE exists", getTestFile(mCe).exists()); in assertUnlocked()
253 assertTrue("DE exists", getTestFile(mDe).exists()); in assertUnlocked()
302 ceFile::exists); in assertUnlocked()
387 if (probe.exists()) { in awaitBroadcast()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java258 assertTrue("exists", path.exists()); in assertDirReadOnlyAccess()
266 assertFalse(probe.exists()); in assertDirReadOnlyAccess()
277 assertTrue("exists", path.exists()); in assertDirReadWriteAccess()
285 assertTrue(probe.exists()); in assertDirReadWriteAccess()
287 assertFalse(probe.exists()); in assertDirReadWriteAccess()
302 assertFalse(probe.exists()); in assertDirNoAccess()
322 assertFalse(probe.exists()); in assertDirNoWriteAccess()
376 assertFalse(path + " exists!", path.exists()); in assertFileNotPresent()
/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/hostsidetests/theme/app/src/android/theme/app/
DThemeTestUtils.java35 if (dir == null || !dir.exists() || file == null || file.exists()) { in compressDirectory()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteWalTest.java107 assertTrue((new File(db.getPath())).exists()); in prepareDatabase()
108 assertTrue((new File(db.getPath() + SHM_SUFFIX)).exists()); in prepareDatabase()
109 assertTrue((new File(db.getPath() + WAL_SUFFIX)).exists()); in prepareDatabase()
/cts/tests/tests/util/src/android/util/cts/
DPrintStreamPrinterTest.java50 if (!mFile.exists()) { in setup()
57 if (mFile.exists()) { in teardown()
DPrintWriterPrinterTest.java52 if (!mFile.exists()) { in setup()
59 if (mFile.exists()) { in teardown()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java59 assertFalse(sampleFile.exists()); in testSynthesizeToFile()
67 assertTrue("synthesizeToFile() didn't produce a file", sampleFile.exists()); in testSynthesizeToFile()
91 assertFalse(sampleFile.exists()); in testMaxSpeechInputLength()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java69 if (testFile.exists()) { in helpTearDown()
73 if (moveDestFile.exists()) { in helpTearDown()
77 if (testDir.exists()) { in helpTearDown()
219 assertTrue(testFile.exists()); in verifyTriggeredEventsOnDir()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPackageUtil.java41 public static boolean exists(String packageName) { in exists() method in PackageUtil
51 public static boolean exists(String packageName, String sha) { in exists() method in PackageUtil
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java137 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument
142 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState()

1234567