Home
last modified time | relevance | path

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

12345

/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java57 assertFalse("/dev/socket/init_runit", new File("/dev/socket/init_runit").exists()); in testNoRootCmdSocket()
58 assertFalse("/dev/socket/fotabinder", new File("/dev/socket/fotabinder").exists()); in testNoRootCmdSocket()
62 assertFalse("/sbin/su", new File("/sbin/su").exists()); in testNoSu()
63 assertFalse("/system/bin/su", new File("/system/bin/su").exists()); in testNoSu()
64 assertFalse("/system/sbin/su", new File("/system/sbin/su").exists()); in testNoSu()
65 assertFalse("/system/xbin/su", new File("/system/xbin/su").exists()); in testNoSu()
66 assertFalse("/vendor/bin/su", new File("/vendor/bin/su").exists()); in testNoSu()
77 assertFalse(f.getAbsolutePath() + " exists", f.exists()); in testNoSuInPath()
DHwRngTest.java58 DEV_HW_RANDOM.exists() ? 1 : 0, in testDeviceFilePresent()
63 DEV_HW_RANDOM.exists() ? 1 : 0, in testDeviceFilePresent()
73 if (!DEV_HW_RANDOM.exists()) { in testConfigurationIfFilePresent()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/build/
DCtsBuildHelper.java108 if (!apkFile.exists()) { in getTestApp()
162 if (!getCtsDir().exists()) { in validateStructure()
166 if (!getTestCasesDir().exists()) { in validateStructure()
171 if (!getTestPlansDir().exists()) { in validateStructure()
/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/theme/app/src/android/theme/app/
DReferenceImagesTest.java42 if (outputZip.exists()) { in testGenerateReferenceImages()
50 assertTrue("Generated reference image ZIP", outputZip.exists()); in testGenerateReferenceImages()
DThemeTestUtils.java35 if (dir == null || !dir.exists() || file == null || file.exists()) { in compressDirectory()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java67 assertFalse(mPrefsFile.exists()); in testNoFileInitially()
72 assertFalse(mPrefsFile.exists()); in testCommitCreatesFiles()
74 assertTrue(mPrefsFile.exists()); in testCommitCreatesFiles()
122 assertFalse(mPrefsFile.exists()); in test()
124 assertTrue(mPrefsFile.exists()); in test()
220 assertFalse(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
222 assertTrue(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
233 assertTrue(mPrefsFile.exists()); in testRedundantCommitWritesFileIfNotAlreadyExisting()
/cts/tests/tests/util/src/android/util/cts/
DPrintStreamPrinterTest.java36 if (!mFile.exists()) { in setUp()
70 if (mFile.exists()) { in tearDown()
DPrintWriterPrinterTest.java38 if (!mFile.exists()) in setUp()
80 if (mFile.exists()) in tearDown()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_FilesTest.java300 assertTrue(sdfile.exists()); in testAccess()
403 + " before running", dir.exists()); in testAccess()
417 assertFalse(dir.getAbsolutePath() + " was created", dir.exists()); in testAccess()
433 assertFalse(file.exists()); in testAccess()
444 assertFalse(file.exists()); in testAccess()
464 assertFalse(dir.exists()); in testAccess()
465 assertFalse(file.exists()); in testAccess()
476 assertFalse(dir.exists()); in testAccess()
477 assertFalse(file.exists()); in testAccess()
479 assertFalse(dir.exists()); in testAccess()
[all …]
DMediaStore_Images_ThumbnailsTest.java137 assertTrue("image file does not exist", new File(imagePath).exists()); in testQueryExternalMiniThumbnails()
162 assertTrue("thumbnail file does not exist", new File(thumbPath).exists()); in testQueryExternalMiniThumbnails()
170 assertFalse("image file should no longer exist", new File(imagePath).exists()); in testQueryExternalMiniThumbnails()
177 assertFalse("thumbnail file should no longer exist", new File(thumbPath).exists()); in testQueryExternalMiniThumbnails()
188 assertTrue("image file does not exist", new File(imagePath).exists()); in testQueryExternalMiniThumbnails()
191 assertFalse("image file should no longer exist", new File(imagePath).exists()); in testQueryExternalMiniThumbnails()
206 assertTrue("thumbnail file does not exist", new File(thumbPath).exists()); in testQueryExternalMiniThumbnails()
214 assertFalse("thumbnail file should no longer exist", new File(thumbPath).exists()); in testQueryExternalMiniThumbnails()
215 assertTrue("image file should still exist", new File(imagePath).exists()); in testQueryExternalMiniThumbnails()
/cts/tests/tests/os/src/android/os/cts/
DFileObserverTest.java54 if (mTestFile != null && mTestFile.exists()) { in tearDown()
58 if (mMoveDestFile != null && mMoveDestFile.exists()) { in tearDown()
62 if (mTestDir != null && mTestDir.exists()) { in tearDown()
128 assertTrue(mTestFile.exists()); in testFileObserver()
DUsbDebuggingTest.java33 assertFalse(keys.exists()); in testUsbDebugging()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanReservedTest.java30 assertFalse(filename + " must not exist", new File(filename).exists()); in assertNoFile()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java133 assertTrue("CtsLocal root", findRoot("CtsLocal").exists()); in testOpenSimple()
134 assertTrue("CtsCreate root", findRoot("CtsCreate").exists()); in testOpenSimple()
135 assertFalse("CtsGetContent root", findRoot("CtsGetContent").exists()); in testOpenSimple()
293 assertTrue("CtsLocal root", findRoot("CtsLocal").exists()); in testGetContent()
294 assertTrue("CtsCreate root", findRoot("CtsCreate").exists()); in testGetContent()
295 assertTrue("CtsGetContent root", findRoot("CtsGetContent").exists()); in testGetContent()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DWifiTest.java113 private boolean awaitNetworkState(String ssid, boolean exists) { in awaitNetworkState() argument
118 if ((getNetworkForSsid(ssid) != null) == exists) { in awaitNetworkState()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java96 assertFalse(probe.exists()); in testWriteExternalStorageDirs()
255 if (test.exists()) { in testVerifyNoMediaCreated()
289 if (testProbe.exists() || testUserProbe.exists()) { in testSecondaryMountPointsNotWritable()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java58 assertFalse(sampleFile.exists()); in testSynthesizeToFile()
64 assertTrue("synthesizeToFile() didn't produce a file", sampleFile.exists()); in testSynthesizeToFile()
DTextToSpeechTest.java122 assertFalse(sampleFile.exists()); in testSynthesizeToFile()
129 assertTrue("synthesizeToFile() didn't produce a file", sampleFile.exists()); in testSynthesizeToFile()
/cts/tests/tests/app/src/android/app/cts/
DDownloadManagerTest.java212 if (uriLocation.exists()) { in testDownloadManagerDestination()
217 if (extFileLocation.exists()) { in testDownloadManagerDestination()
224 if (publicLocation.exists()) { in testDownloadManagerDestination()
269 if (noExtLocation.exists()) { in testDownloadManagerDestinationExtension()
275 if (wrongExtLocation.exists()) { in testDownloadManagerDestinationExtension()
441 assertTrue(location.exists()); in assertSuccessfulDownload()
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java62 if (!new UiObject(new UiSelector().packageName(PKG_NAME)).exists()) in setUp()
101 if (!listView.exists()) in testListScrollAndSelect()
213 getObjectByText("After").exists()); in testSelectAfterContentChanged()
249 assertFalse("Wait for exist must return false after press back", result.exists()); in testDeviceSoftKeys()
391 assertFalse("Object is reported as existing", obj.exists()); in testExceptionObjectNotFound()
413 if (new UiObject(new UiSelector().packageName("android")).exists()) { in testUiWatcher()
755 assertTrue("Screenshot file not detected in store", storePath.exists()); in testTakeScreenShots()
770 assertTrue("Object with selector resource-id not found", toggleButton.exists()); in testSelectorResourceId()
1020 if (!listView.exists()) in openTest()
1067 if (!getObjectByText("Action results").exists() || !getObjectByText(txt).exists()) { in verifyDialogActionResults()
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java54 if (!file.exists()) { in readFile()
/cts/tools/signature-tools/src/signature/io/html/
DHtmlDeltaExternalizer.java53 if (!directory.exists()) { in externalize()
78 if (!file.exists()) { in externalize()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java128 assertTrue(imageFile.exists()); in testCreateFromPath()
195 if (emptyFile.exists()) { in testCreateFromStream()
198 if (imageFile.exists()) { in testCreateFromStream()
242 if (emptyFile.exists()) { in testCreateFromResourceStream1()
245 if (imageFile.exists()) { in testCreateFromResourceStream1()
292 if (emptyFile.exists()) { in testCreateFromResourceStream2()
295 if (imageFile.exists()) { in testCreateFromResourceStream2()
/cts/tools/vm-tests-tf/src/util/build/
DJillBuildStep.java36 if (!outDir.exists() && !outDir.mkdirs()) { in build()

12345