/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | DeviceStringPusherTest.java | 64 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()
|
D | PushFilePreparerTest.java | 178 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 …]
|
D | DefaultTestsZipInstallerTest.java | 148 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/ |
D | RustBinaryTestTest.java | 169 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/ |
D | GTestTest.java | 111 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 …]
|
D | GoogleBenchmarkTestTest.java | 107 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()
|
D | AndroidJUnitTestTest.java | 354 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()
|
D | ArtGTestTest.java | 72 when(mMockITestDevice.doesFileExist(nativeTestPath)).thenReturn(true); in testChroot_testRun()
|
/tools/tradefederation/core/util_apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/ |
D | ContentProviderTest.java | 72 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/ |
D | TestDeviceFileFuncTest.java | 162 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()
|
D | MicrodroidFuncTest.java | 103 assertTrue(microdroid.doesFileExist(apkPartition)); in testStartAndShutdownMicrodroid() 105 assertTrue(microdroid.doesFileExist(apkIdsigPartition)); in testStartAndShutdownMicrodroid() 108 assertTrue(microdroid.doesFileExist(vmInstancePartition)); in testStartAndShutdownMicrodroid()
|
D | TestDeviceFuncTest.java | 191 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()
|
D | TestDevicePackageFuncTest.java | 81 mTestDevice.doesFileExist( in testInstallListUninstall_basic() 146 mTestDevice.doesFileExist( in testInstallListUninstall_forUser()
|
D | TestDeviceShellFuncTest.java | 73 assumeTrue(mTestDevice.doesFileExist(devicePath)); in testExecuteShellCommand_basic() 114 assumeTrue(mTestDevice.doesFileExist(devicePath)); in testExecuteShellCommandV2_basic()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | DeviceStringPusher.java | 45 if (device.doesFileExist(mFileName)) { in setUp()
|
D | PushFileInvoker.java | 61 if (!device.doesFileExist(devicePath)) { in setUp()
|
D | FolderSaver.java | 88 if (!device.doesFileExist(path)) { in tearDown()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/incremental/ |
D | ApkChangeDetectorTest.java | 417 .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/ |
D | CodeCoverageTest.java | 78 if (getDevice().doesFileExist(mCoverageFile)) { in run()
|
D | GTest.java | 138 if (getDevice().doesFileExist(filterFile)) { in loadFilter() 450 if (!mDevice.doesFileExist(testPath)) { in run()
|
D | UiAutomatorTest.java | 325 if (!getDevice().doesFileExist(runnerPath)) { in preTestSetup() 332 if (!getDevice().doesFileExist(jarPath)) { in preTestSetup()
|
D | InstrumentationFileTest.java | 223 if (mInstrumentationTest.getDevice().doesFileExist(pathToFile)) { in deleteTestFileFromDevice()
|
D | AndroidJUnitTest.java | 587 boolean filterDirExists = device.doesFileExist(mTestFilterDir); in pushTestFile() 600 boolean filterExists = device.doesFileExist(destination); in pushTestFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 403 assertTrue(mProvider.doesFileExist(devicePath)); in testDoesFileExist() 420 assertFalse(mProvider.doesFileExist(devicePath)); in testDoesFileExist_NotExists()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | DefaultTestsZipInstaller.java | 194 if (!device.doesFileExist(fullEscapedPath)) { in deleteDir()
|