/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 122 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_RemoteIsDir() local 124 File testFile = new File(testsDir, "perf_test"); in testPushFile_RemoteIsDir() 138 FileUtil.recursiveDelete(testsDir); in testPushFile_RemoteIsDir() 146 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_duplicateKey() local 148 File testFile = new File(testsDir, "perf_test"); in testPushFile_duplicateKey() 169 FileUtil.recursiveDelete(testsDir); in testPushFile_duplicateKey() 177 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsDir() local 179 File testFile = new File(testsDir, "perf_test"); in testPushDir_RemoteIsDir() 197 FileUtil.recursiveDelete(testsDir); in testPushDir_RemoteIsDir() 205 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsFile() local [all …]
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/ |
D | TestInformation.java | 202 File testsDir = mExecutionFiles.get(hostOrTarget); in getFromEnv() local 203 if (testsDir != null && testsDir.exists()) { in getFromEnv() 204 File file = FileUtil.findFile(testsDir, fileName); in getFromEnv() 213 File testsDir = mExecutionFiles.get(FilesKey.TESTS_DIRECTORY); in getFromTestsDir() local 214 if (testsDir != null && testsDir.exists()) { in getFromTestsDir() 215 File file = FileUtil.findFile(testsDir, fileName); in getFromTestsDir() 221 file = getBuildInfo().stageRemoteFile(fileName, testsDir); in getFromTestsDir() 233 File testsDir = mDependenciesFolder; in getFromDependencyFolder() local 234 if (testsDir != null && testsDir.exists()) { in getFromDependencyFolder() 235 File file = FileUtil.findFile(testsDir, fileName); in getFromDependencyFolder()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BuildTestsZipUtils.java | 70 File testsDir = null; in getApkFile() local 72 testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in getApkFile() 73 if (testsDir != null && testsDir.exists()) { in getApkFile() 74 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, "DATA", "app")); in getApkFile() 75 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, "DATA", "app", apkBase)); in getApkFile() 77 FileUtil.getFileForPath(testsDir, "DATA", "priv-app", apkBase)); in getApkFile() 78 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, apkBase)); in getApkFile() 82 File testcasesSubDir = FileUtil.findFile(testsDir, apkBase); in getApkFile() 91 expandedTestDirs.add(testsDir); in getApkFile() 146 if (testsDir != null) { in getApkFile() [all …]
|
D | SystemUtil.java | 138 File testsDir = deviceBuildInfo.getTestsDir(); in getTestCasesDirs() local 140 if (testsDir != null) { in getTestCasesDirs() 143 testsDir, in getTestCasesDirs() 144 FileUtil.getFileForPath(testsDir, HOST_TESTCASES), in getTestCasesDirs() 145 FileUtil.getFileForPath(testsDir, TARGET_TESTCASES))); in getTestCasesDirs()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollectorTest.java | 585 File testsDir = null; in testResolveRelativeFilePath_withDeviceBuildInfo() local 587 testsDir = FileUtil.createTempDir("tests_dir"); in testResolveRelativeFilePath_withDeviceBuildInfo() 588 File hostTestCasesDir = FileUtil.getFileForPath(testsDir, "host/testcases"); in testResolveRelativeFilePath_withDeviceBuildInfo() 594 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo() 607 FileUtil.recursiveDelete(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo() 618 File testsDir = null; in testUnableResolveRelativeFilePath_withDeviceBuildInfo() local 620 testsDir = FileUtil.createTempDir("tests_dir"); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 621 File hostTestCasesDir = FileUtil.getFileForPath(testsDir, "host/testcases"); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 628 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() 640 FileUtil.recursiveDelete(testsDir); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | InstallAllTestZipAppsSetup.java | 102 File testsDir; in setUp() local 104 testsDir = extractZip(testsZip); in setUp() 115 installApksRecursively(testsDir, device); in setUp() 117 FileUtil.recursiveDelete(testsDir); in setUp() 170 File testsDir = null; in extractZip() local 172 testsDir = FileUtil.createTempDir("tests-zip_"); in extractZip() 173 ZipUtil2.extractZip(zip, testsDir); in extractZip() 175 FileUtil.recursiveDelete(testsDir); in extractZip() 178 return testsDir; in extractZip()
|
D | TestSystemAppInstallSetup.java | 71 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in setUp() local 72 if (testsDir == null || !testsDir.exists()) { in setUp() 81 File testAppFile = FileUtil.getFileForPath(testsDir, "DATA", "app", testAppName); in setUp()
|
D | TestFilePushSetup.java | 90 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in getLocalPathForFilename() local 91 if (testsDir != null && testsDir.exists()) { in getLocalPathForFilename() 92 dirs.add(FileUtil.getFileForPath(testsDir, "DATA")); in getLocalPathForFilename()
|
D | AllTestAppsInstallSetup.java | 87 File testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in setUp() local 88 if (testsDir == null || !testsDir.exists()) { in setUp() 98 installApksRecursively(testsDir, device); in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 223 File testsDir = FileUtil.createTempDir("executable-tests-dir"); in testRunHostExecutable_search() local 224 File tmpBinary = FileUtil.createTempFile("test-executable", "", testsDir); in testRunHostExecutable_search() 227 info.setTestsDir(testsDir, "testversion"); in testRunHostExecutable_search() 249 FileUtil.recursiveDelete(testsDir); in testRunHostExecutable_search() 255 File testsDir = FileUtil.createTempDir("executable-tests-dir"); in testRunHostExecutable_notFound() local 256 File tmpBinary = FileUtil.createTempFile("test-executable", "", testsDir); in testRunHostExecutable_notFound() 259 info.setTestsDir(testsDir, "testversion"); in testRunHostExecutable_notFound() 284 FileUtil.recursiveDelete(testsDir); in testRunHostExecutable_notFound()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 206 File testsDir = null; in setTestsDir() local 210 testsDir = mTestDir; in setTestsDir() 214 testsDir = findFileInDir(mTestDirPattern); in setTestsDir() 216 if (testsDir != null) { in setTestsDir() 217 buildInfo.setTestsDir(testsDir, buildInfo.getBuildId()); in setTestsDir() 218 CLog.d("Using test files from %s", testsDir.getAbsolutePath()); in setTestsDir()
|
D | DeviceBuildInfo.java | 139 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument 140 setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, version); in setTestsDir()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 789 File testsDir = ((IDeviceBuildInfo) info).getTestsDir(); 790 if (testsDir != null && testsDir.exists()) { 795 testsDir, 807 testsDir, 820 IDeviceBuildInfo info, File testsDir, EnvVariable var, String baseName) { 824 File varDir = FileUtil.getFileForPath(testsDir, path); 838 File subDir = FileUtil.createTempDir(baseName, testsDir);
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTest.java | 79 File testsDir = null; in findFiles() local 81 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findFiles() 90 } else if (testsDir == null) { in findFiles() 94 paths = testsDir + "\n"; in findFiles() 99 Set<File> candidates = FileUtil.findFilesObject(testsDir, baseName); in findFiles() 117 res = FileUtil.findFile(testsDir, baseName); in findFiles()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | TfSuiteRunner.java | 100 File testsDir = deviceBuildInfo.getTestsDir(); in loadTests() local 101 if (testsDir != null) { in loadTests() 109 ZipUtil2.extractZip(zip, testsDir); in loadTests() 125 testsDir.getAbsolutePath()); in loadTests() 126 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in loadTests()
|
D | BaseTestSuite.java | 211 File testsDir = getTestsDir(); in loadTests() local 212 setupFilters(testsDir); in loadTests() 311 testsDirectories.add(testsDir); in loadTests() 456 protected void setupFilters(File testsDir) throws FileNotFoundException { in setupFilters() argument 467 testsDir, mSuitePrefix, String.format(".*%s.*.config", mModuleName)); in setupFilters()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 402 File testsDir = FileUtil.createTempDir("host-test-cases"); in testRun_withSharedLib() local 403 mTestInfo.executionFiles().put(FilesKey.TESTS_DIRECTORY, testsDir); in testRun_withSharedLib() 404 File binary = FileUtil.createTempFile("python-dir", "", testsDir); in testRun_withSharedLib() 405 File lib = new File(testsDir, "lib"); in testRun_withSharedLib() 407 File lib64 = new File(testsDir, "lib64"); in testRun_withSharedLib() 440 FileUtil.recursiveDelete(testsDir); in testRun_withSharedLib()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/ |
D | SandboxedInvocationExecution.java | 83 File testsDir = primaryBuild.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in backFillTestInformation() local 84 if (testsDir != null && testsDir.exists()) { in backFillTestInformation() 85 execFiles.put(FilesKey.TESTS_DIRECTORY, testsDir); in backFillTestInformation()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | ArtRunTest.java | 183 File testsDir = testInfo.executionFiles().get(FilesKey.TARGET_TESTS_DIRECTORY); in getDependencyFileFromRunTestDir() local 184 if (testsDir == null || !testsDir.exists()) { in getDependencyFileFromRunTestDir() 189 File runTestDir = new File(testsDir, mRunTestName); in getDependencyFileFromRunTestDir()
|
D | HostGTest.java | 211 File testsDir = ((DeviceBuildInfo) mBuildInfo).getTestsDir(); in run() local 212 if (testsDir != null) { in run() 213 scanDirs.add(testsDir); in run()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTest.java | 159 File testsDir = null; in findParFiles() local 161 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findParFiles() 168 if (testsDir != null) { in findParFiles() 169 res = FileUtil.findFile(testsDir, binaryName); in findParFiles()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 217 File testsDir = null; in findParFiles() local 219 testsDir = ((IDeviceBuildInfo) mTestInfo.getBuildInfo()).getTestsDir(); in findParFiles() 225 if (testsDir != null) { in findParFiles() 226 res = FileUtil.findFile(testsDir, parFileName); in findParFiles()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTest.java | 76 File testsDir = deviceBuild.getTestsDir(); in findBinary() local 84 if (testsDir != null) { in findBinary() 85 scanDirs.add(testsDir); in findBinary()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/ |
D | DeviceTestsConfigValidation.java | 65 File testsDir = deviceBuildInfo.getTestsDir(); in testConfigsLoad() local 66 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in testConfigsLoad()
|
D | GeneralTestsConfigValidation.java | 100 File testsDir = deviceBuildInfo.getTestsDir(); in testConfigsLoad() local 101 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in testConfigsLoad()
|