Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/util/
DBuildTestsZipUtils.java71 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()
DSystemUtil.java124 File testsDir = deviceBuildInfo.getTestsDir(); in getTestCasesDirs() local
126 if (testsDir != null) { in getTestCasesDirs()
129 testsDir, in getTestCasesDirs()
130 FileUtil.getFileForPath(testsDir, HOST_TESTCASES), in getTestCasesDirs()
131 FileUtil.getFileForPath(testsDir, TARGET_TESTCASES))); in getTestCasesDirs()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetup.java98 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()
DTestSystemAppInstallSetup.java70 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()
DTestFilePushSetup.java105 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in getLocalPathForFilename() local
106 if (testsDir != null && testsDir.exists()) { in getLocalPathForFilename()
107 expandedTestDirs.add(FileUtil.getFileForPath(testsDir, "DATA")); in getLocalPathForFilename()
DAllTestAppsInstallSetup.java80 File testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in setUp() local
81 if (testsDir == null || !testsDir.exists()) { in setUp()
86 installApksRecursively(testsDir, device); in setUp()
DPushFilePreparer.java119 File testsDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local
120 return FileUtil.findFile(testsDir, fileName); in resolveRelativeFilePath()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java140 File testsDir = null; in testResolveRelativeFilePath_withDeviceBuildInfo() local
142 testsDir = FileUtil.createTempDir("tests_dir"); in testResolveRelativeFilePath_withDeviceBuildInfo()
143 File hostTestCasesDir = FileUtil.getFileForPath(testsDir, HOST_TESTCASES); in testResolveRelativeFilePath_withDeviceBuildInfo()
150 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
158 FileUtil.recursiveDelete(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DBaseTestSuite.java137 File testsDir = getTestsDir(); in loadTests() local
138 setupFilters(testsDir); in loadTests()
153 return loadingStrategy(abis, testsDir, mSuitePrefix, mSuiteTag); in loadTests()
170 Set<IAbi> abis, File testsDir, String suitePrefix, String suiteTag) { in loadingStrategy() argument
187 testsDir, abis, suitePrefix, suiteTag, mConfigPatterns)); in loadingStrategy()
255 protected void setupFilters(File testsDir) throws FileNotFoundException { in setupFilters() argument
260 testsDir, mSuitePrefix, String.format("%s.*.config", mModuleName)); in setupFilters()
DTfSuiteRunner.java100 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()
DSuiteModuleLoader.java88 File testsDir, in loadConfigsFromDirectory() argument
96 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in loadConfigsFromDirectory()
/tools/tradefederation/core/src/com/android/tradefed/build/
DLocalDeviceBuildProvider.java196 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()
DSdkFolderBuildInfo.java81 public void setTestsDir(File testsDir) { in setTestsDir() argument
83 mSdkBuild.setTestsDir(testsDir); in setTestsDir()
DISdkBuildInfo.java38 public void setTestsDir(File testsDir); in setTestsDir() argument
DKernelDeviceBuildInfo.java130 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument
131 mDeviceBuild.setTestsDir(testsDir, version); in setTestsDir()
DDeviceFolderBuildInfo.java130 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument
131 mDeviceBuild.setTestsDir(testsDir, version); in setTestsDir()
DDeviceBuildInfo.java148 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument
149 setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, version); in setTestsDir()
DAppDeviceBuildInfo.java145 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument
146 mDeviceBuild.setTestsDir(testsDir, version); in setTestsDir()
/tools/tradefederation/contrib/src/com/android/tradefed/build/
DTestzipBuildInfo.java67 public void setTestzipDir(File testsDir, String version) { in setTestzipDir() argument
68 setFile(TESTDIR_IMAGE_NAME, testsDir, version); in setTestzipDir()
DTestzipDeviceBuildInfo.java157 public void setTestsDir(File testsDir, String version) { in setTestsDir() argument
158 mTestzipBuildInfo.setTestzipDir(testsDir, version); in setTestsDir()
/tools/tradefederation/core/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTest.java114 File testsDir = null; in findParFiles() local
116 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findParFiles()
122 if (testsDir != null) { in findParFiles()
123 res = FileUtil.findFile(testsDir, parFileName); in findParFiles()
/tools/tradefederation/core/prod-tests/src/com/android/tradefed/presubmit/
DGeneralTestsConfigValidation.java65 File testsDir = deviceBuildInfo.getTestsDir(); in testConfigsLoad() local
66 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in testConfigsLoad()
DDeviceTestsConfigValidation.java65 File testsDir = deviceBuildInfo.getTestsDir(); in testConfigsLoad() local
66 List<File> extraTestCasesDirs = Arrays.asList(testsDir); in testConfigsLoad()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java520 File testsDir = ((IDeviceBuildInfo) info).getTestsDir(); in updateBuild() local
521 if (testsDir != null && testsDir.exists()) { in updateBuild()
524 testsDir, in updateBuild() local
529 testsDir, in updateBuild() local
537 IDeviceBuildInfo info, File testsDir, EnvVariable var, String baseName) { in handleLinkingExternalDirs() argument
544 File subDir = FileUtil.createTempDir(baseName, testsDir); in handleLinkingExternalDirs()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteIntegrationTest.java118 File testsDir, in createConfig() argument
128 File config = new File(testsDir, String.format(FILENAME, name)); in createConfig()