/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | InstallAllTestZipAppsSetup.java | 98 File testsDir; in setUp() local 100 testsDir = extractZip(testsZip); in setUp() 107 installApksRecursively(testsDir, device); in setUp() 109 FileUtil.recursiveDelete(testsDir); in setUp() 162 File testsDir = null; in extractZip() local 164 testsDir = FileUtil.createTempDir("tests-zip_"); in extractZip() 165 ZipUtil2.extractZip(zip, testsDir); in extractZip() 167 FileUtil.recursiveDelete(testsDir); in extractZip() 170 return testsDir; in extractZip()
|
D | TestSystemAppInstallSetup.java | 70 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in setUp() local 71 if (testsDir == null || !testsDir.exists()) { in setUp() 80 File testAppFile = FileUtil.getFileForPath(testsDir, "DATA", "app", testAppName); in setUp()
|
D | AllTestAppsInstallSetup.java | 80 File testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in setUp() local 81 if (testsDir == null || !testsDir.exists()) { in setUp() 86 installApksRecursively(testsDir, device); in setUp()
|
D | TestFilePushSetup.java | 109 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in getLocalPathForFilename() local 110 if (testsDir != null && testsDir.exists()) { in getLocalPathForFilename() 111 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, "DATA")); in getLocalPathForFilename()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | BuildTestsZipUtils.java | 71 File testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in getApkFile() local 72 if (testsDir != null && testsDir.exists()) { in getApkFile() 73 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, "DATA", "app")); in getApkFile() 74 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, "DATA", "app", apkBase)); in getApkFile() 76 FileUtil.getFileForPath(testsDir, "DATA", "priv-app", apkBase)); in getApkFile() 77 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, apkBase)); in getApkFile() 81 File testcasesSubDir = FileUtil.findFile(testsDir, apkBase); in getApkFile()
|
D | SystemUtil.java | 136 File testsDir = deviceBuildInfo.getTestsDir(); in getTestCasesDirs() local 138 if (testsDir != null) { in getTestCasesDirs() 141 testsDir, in getTestCasesDirs() 142 FileUtil.getFileForPath(testsDir, HOST_TESTCASES), in getTestCasesDirs() 143 FileUtil.getFileForPath(testsDir, TARGET_TESTCASES))); in getTestCasesDirs()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 116 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_RemoteIsDir() local 118 File testFile = new File(testsDir, "perf_test"); in testPushFile_RemoteIsDir() 131 FileUtil.recursiveDelete(testsDir); in testPushFile_RemoteIsDir() 139 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsDir() local 141 File testFile = new File(testsDir, "perf_test"); in testPushDir_RemoteIsDir() 158 FileUtil.recursiveDelete(testsDir); in testPushDir_RemoteIsDir() 166 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsFile() local 168 File testFile = new File(testsDir, "perf_test"); in testPushDir_RemoteIsFile() 183 FileUtil.recursiveDelete(testsDir); in testPushDir_RemoteIsFile() 194 File testsDir = FileUtil.createTempDir("tests_dir"); in testRemotePush_conflict() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 156 File testsDir = FileUtil.createTempDir("executable-tests-dir"); in testRunHostExecutable_search() local 157 File tmpBinary = FileUtil.createTempFile("test-executable", "", testsDir); in testRunHostExecutable_search() 160 info.setTestsDir(testsDir, "testversion"); in testRunHostExecutable_search() 178 FileUtil.recursiveDelete(testsDir); in testRunHostExecutable_search() 184 File testsDir = FileUtil.createTempDir("executable-tests-dir"); in testRunHostExecutable_notFound() local 185 File tmpBinary = FileUtil.createTempFile("test-executable", "", testsDir); in testRunHostExecutable_notFound() 188 info.setTestsDir(testsDir, "testversion"); in testRunHostExecutable_notFound() 211 FileUtil.recursiveDelete(testsDir); in testRunHostExecutable_notFound()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 196 File testsDir = null; in setTestsDir() local 200 testsDir = mTestDir; in setTestsDir() 204 testsDir = findFileInDir(mTestDirPattern); in setTestsDir() 206 if (testsDir != null) { in setTestsDir() 207 buildInfo.setTestsDir(testsDir, buildInfo.getBuildId()); in setTestsDir() 208 CLog.d("Using test files from %s", testsDir.getAbsolutePath()); in setTestsDir()
|
D | DeviceBuildInfo.java | 132 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument 133 setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, version); in setTestsDir()
|
/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 | 176 File testsDir = getTestsDir(); in loadTests() local 177 setupFilters(testsDir); in loadTests() 212 testsDirectories.add(testsDir); in loadTests() 327 protected void setupFilters(File testsDir) throws FileNotFoundException { in setupFilters() argument 332 testsDir, mSuitePrefix, String.format(".*%s.*.config", mModuleName)); in setupFilters()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 625 File testsDir = ((IDeviceBuildInfo) info).getTestsDir(); in updateBuild() local 626 if (testsDir != null && testsDir.exists()) { in updateBuild() 629 testsDir, in updateBuild() local 634 testsDir, in updateBuild() local 642 IDeviceBuildInfo info, File testsDir, EnvVariable var, String baseName) { in handleLinkingExternalDirs() argument 646 File varDir = FileUtil.getFileForPath(testsDir, path); in handleLinkingExternalDirs() 659 File subDir = FileUtil.createTempDir(baseName, testsDir); in handleLinkingExternalDirs()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 140 File testsDir = null; in findParFiles() local 142 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findParFiles() 148 if (testsDir != null) { in findParFiles() 149 res = FileUtil.findFile(testsDir, parFileName); in findParFiles()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTest.java | 72 File testsDir = deviceBuild.getTestsDir(); in findBinary() local 80 if (testsDir != null) { in findBinary() 81 scanDirs.add(testsDir); in findBinary()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | HostGTest.java | 208 File testsDir = ((DeviceBuildInfo) mBuildInfo).getTestsDir(); in run() local 209 if (testsDir != null) { in run() 210 scanDirs.add(testsDir); in run()
|
/tools/tradefederation/contrib/src/com/android/tradefed/presubmit/ |
D | GeneralTestsConfigValidation.java | 65 File testsDir = deviceBuildInfo.getTestsDir(); in testConfigsLoad() local 66 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in testConfigsLoad()
|
D | DeviceTestsConfigValidation.java | 65 File testsDir = deviceBuildInfo.getTestsDir(); in testConfigsLoad() local 66 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in testConfigsLoad()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ITestSuiteIntegrationTest.java | 118 File testsDir, in createConfig() argument 128 File config = new File(testsDir, String.format(FILENAME, name)); in createConfig()
|