Home
last modified time | relevance | path

Searched refs:doesFileExist (Results 1 – 25 of 40) sorted by relevance

12

/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DDeviceStringPusherTest.java64 when(mMockDevice.doesFileExist("file")).thenReturn(false); in testFail()
70 verify(mMockDevice, times(1)).doesFileExist("file"); in testFail()
80 when(mMockDevice.doesFileExist("file")).thenReturn(false); in testDoesntExist()
86 verify(mMockDevice, times(1)).doesFileExist("file"); in testDoesntExist()
97 when(mMockDevice.doesFileExist("file")).thenReturn(true); in testAlreadyExists()
105 verify(mMockDevice, times(1)).doesFileExist("file"); in testAlreadyExists()
DPushFilePreparerTest.java178 when(mMockDevice.doesFileExist("/data/local/tmp/")).thenReturn(true); in testPushDir_RemoteIsDir()
202 when(mMockDevice.doesFileExist("/data/local/tmp/file")).thenReturn(true); in testPushDir_RemoteIsFile()
394 when(mMockDevice.doesFileExist("/data/local/tmp/debugger")).thenReturn(false); in testPush_abiDirectory_noBitness()
427 when(mMockDevice.doesFileExist("/data/local/tmp/folder")).thenReturn(false); in testPush_abiDirectory_noBitness_withModule()
459 when(mMockDevice.doesFileExist("/data/local/tmp/debugger")).thenReturn(false); in testPush_abiDirectory()
497 when(mMockDevice.doesFileExist("/data/local/tmp/lib")).thenReturn(false); in testPush_moduleName_dirs()
666 when(mMockDevice.doesFileExist("/data/local/tmp/lib")).thenReturn(false); in testPush_moduleName_ignored()
705 when(mMockDevice.doesFileExist("/data/local/tmp/lib")).thenReturn(false); in testPush_moduleName_multiAbi()
746 when(mMockDevice.doesFileExist("/data/local/tmp/debugger")).thenReturn(false); in testPush_moduleName_multiabi_files()
785 when(mMockDevice.doesFileExist("/data/local/tmp/lib")).thenReturn(false); in testPush_moduleName_noMatch()
[all …]
DDefaultTestsZipInstallerTest.java148 when(mMockDevice.doesFileExist("data/app")).thenReturn(false); in testPushTestsZipOntoData()
187 when(mMockDevice.doesFileExist("data/app")).thenReturn(true); in testPushTestsZipOntoData_retry()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/
DRustBinaryTestTest.java169 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(false); in testRun_noTestDir()
195 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in testNotFound()
215 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in testNotFound2()
243 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in testRun()
284 when(mMockITestDevice.doesFileExist(modulePath)).thenReturn(true); in testRun_moduleName()
287 when(mMockITestDevice.doesFileExist(notModulePath)).thenReturn(true); in testRun_moduleName()
314 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in testRun_nested()
345 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in testGcovCoverage_GcovPrefixSet()
372 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in doTestFilter()
437 when(mMockITestDevice.doesFileExist(testPath)).thenReturn(true); in testOptions()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestTest.java111 when(mMockITestDevice.doesFileExist(GTest.DEFAULT_NATIVETEST_PATH)).thenReturn(false); in testRun_noTestDir()
114 verify(mMockITestDevice).doesFileExist(GTest.DEFAULT_NATIVETEST_PATH); in testRun_noTestDir()
140 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun_noExecutableFile()
162 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun()
200 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRunFilterAbiPath()
228 when(mMockITestDevice.doesFileExist(modulePath)).thenReturn(true); in testRun_moduleName()
254 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in doTestFilter()
341 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testCommandTooLong()
436 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRunXml()
494 when(mMockITestDevice.doesFileExist(expectedFilterFile)).thenReturn(true); in testFileFilter()
[all …]
DGoogleBenchmarkTestTest.java107 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun()
169 when(mMockITestDevice.doesFileExist(GoogleBenchmarkTest.DEFAULT_TEST_PATH)) in testRun_noBenchmarkDir()
190 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun_withSingleModuleName()
250 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun_withMultipleModuleNames()
302 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun_withRunReportName()
339 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun_exceptionDuringExecShell()
462 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in doTestFilter()
593 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testCommandTooLong()
637 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testRun_withLDLibPath()
DAndroidJUnitTestTest.java354 when(mMockTestDevice.doesFileExist(Mockito.<String>any())).thenReturn(true); in testRun_includeFile()
378 when(mMockTestDevice.doesFileExist(Mockito.<String>any())).thenReturn(false); in testRun_includeFileWithChown()
402 when(mMockTestDevice.doesFileExist(Mockito.<String>any())).thenReturn(true); in testRun_excludeFile()
428 when(mMockTestDevice.doesFileExist(Mockito.<String>any())).thenReturn(true); in testRun_testFileAndFilters()
465 when(mMockTestDevice.doesFileExist(Mockito.<String>any())).thenReturn(true); in testRun_testFileAndFilters_fails()
501 when(mMockTestDevice.doesFileExist(Mockito.<String>any())).thenReturn(true); in testRun_setTestFileOptions()
DArtGTestTest.java72 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testChroot_testRun()
/tools/tradefederation/core/util_apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java72 assertTrue(getDevice().doesFileExist(mCurrentUserStoragePath + tmpFile.getName())); in testPushFile_encode()
89 assertTrue(getDevice().doesFileExist(mCurrentUserStoragePath + tmpFile.getName())); in testPushFile_encode_plus()
103 assertTrue(getDevice().doesFileExist(mCurrentUserStoragePath + tmpFile.getName())); in testPushFile()
118 assertTrue(getDevice().doesFileExist(mCurrentUserStoragePath + tmpFile.getName())); in testDeleteFile()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java162 mTestDevice.doesFileExist(deviceFilePath)); in testPull_NoExist()
172 mTestDevice.doesFileExist(deviceFilePath)); in testPull_NoExistExtStorage()
304 boolean doesFileExist = mTestDevice.doesFileExist(remotePath); in testDoesFileExist_Basic()
306 assertTrue(doesFileExist); in testDoesFileExist_Basic()
324 assertTrue(mTestDevice.doesFileExist(remotePath)); in testDeleteFile_Basic()
328 assertFalse(mTestDevice.doesFileExist(remotePath)); in testDeleteFile_Basic()
348 assertTrue(mTestDevice.doesFileExist(remotePath)); in testDeleteFile_ExtStorage()
352 assertFalse(mTestDevice.doesFileExist(remotePath)); in testDeleteFile_ExtStorage()
DMicrodroidFuncTest.java103 assertTrue(microdroid.doesFileExist(apkPartition)); in testStartAndShutdownMicrodroid()
105 assertTrue(microdroid.doesFileExist(apkIdsigPartition)); in testStartAndShutdownMicrodroid()
108 assertTrue(microdroid.doesFileExist(vmInstancePartition)); in testStartAndShutdownMicrodroid()
DTestDeviceFuncTest.java191 mTestDevice.doesFileExist( in assertWifiApkInstall()
232 mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal()
235 assertTrue(mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal()
273 mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_extStorageVariable()
276 assertTrue(mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_extStorageVariable()
309 mTestDevice.doesFileExist(deviceFilePath)); in testPull_noexist()
331 mTestDevice.doesFileExist(deviceFilePath)); in testPull_nopermissions()
468 assertTrue(mTestDevice.doesFileExist(expectedDeviceFilePath)); in doTestSyncFiles()
481 assertTrue(mTestDevice.doesFileExist(expectedDeviceFilePath2)); in doTestSyncFiles()
526 assertTrue(mTestDevice.doesFileExist(expectedDeviceFilePath)); in testPushDir()
DTestDevicePackageFuncTest.java81 mTestDevice.doesFileExist( in testInstallListUninstall_basic()
146 mTestDevice.doesFileExist( in testInstallListUninstall_forUser()
DTestDeviceShellFuncTest.java73 assumeTrue(mTestDevice.doesFileExist(devicePath)); in testExecuteShellCommand_basic()
114 assumeTrue(mTestDevice.doesFileExist(devicePath)); in testExecuteShellCommandV2_basic()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDeviceStringPusher.java45 if (device.doesFileExist(mFileName)) { in setUp()
DPushFileInvoker.java61 if (!device.doesFileExist(devicePath)) { in setUp()
DFolderSaver.java88 if (!device.doesFileExist(path)) { in tearDown()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/incremental/
DApkChangeDetectorTest.java417 .doesFileExist(ApkChangeDetector.PACKAGE_INSTALLED_FILE_PATH); in ensureIncrementalSetupSupported_returnsFalse_noAccessToSdCardDirectory()
434 .doesFileExist(ApkChangeDetector.PACKAGE_INSTALLED_FILE_PATH); in ensureIncrementalSetupSupported_returnsTrue_installCacheFileExists()
449 .doesFileExist(ApkChangeDetector.PACKAGE_INSTALLED_FILE_PATH); in ensureIncrementalSetupSupported_returnsTrue_canCreateInstallCacheFile()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DCodeCoverageTest.java78 if (getDevice().doesFileExist(mCoverageFile)) { in run()
DGTest.java138 if (getDevice().doesFileExist(filterFile)) { in loadFilter()
450 if (!mDevice.doesFileExist(testPath)) { in run()
DUiAutomatorTest.java325 if (!getDevice().doesFileExist(runnerPath)) { in preTestSetup()
332 if (!getDevice().doesFileExist(jarPath)) { in preTestSetup()
DInstrumentationFileTest.java223 if (mInstrumentationTest.getDevice().doesFileExist(pathToFile)) { in deleteTestFileFromDevice()
DAndroidJUnitTest.java587 boolean filterDirExists = device.doesFileExist(mTestFilterDir); in pushTestFile()
600 boolean filterExists = device.doesFileExist(destination); in pushTestFile()
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java403 assertTrue(mProvider.doesFileExist(devicePath)); in testDoesFileExist()
420 assertFalse(mProvider.doesFileExist(devicePath)); in testDoesFileExist_NotExists()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstaller.java194 if (!device.doesFileExist(fullEscapedPath)) { in deleteDir()

12