/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | BuildTestsZipUtilsTest.java | 43 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_notFound() local 45 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_notFound() 56 FileUtil.recursiveDelete(testDir); in testGetApkFile_notFound() 64 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir() local 66 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir() 67 File apkDir = new File(testDir, "TestApk"); in testGetApkFile_fromTestDir() 82 FileUtil.recursiveDelete(testDir); in testGetApkFile_fromTestDir() 93 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir_testCase() local 95 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir_testCase() 96 File testcasedir = new File(testDir, "testcases"); in testGetApkFile_fromTestDir_testCase() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstaller.java | 78 File testDir = deviceBuildInfo.getTestsDir(); in getApkFromBuildTestsDir() local 79 if (testDir != null && testDir.isDirectory()) { in getApkFromBuildTestsDir() 80 return FileUtil.findFile(testDir, apkFileName); in getApkFromBuildTestsDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProviderTest.java | 182 File testDir = buildInfo.getTestsDir(); in testSetTestsDir_givenTestDir() local 183 assertEquals(mTestDir, testDir); in testSetTestsDir_givenTestDir() 184 File extractedTestFile = new File(testDir, testFile.getName()); in testSetTestsDir_givenTestDir() 192 File testDir = FileUtil.createTempDir("test_dir", mBuildDir); in testSetTestsDir_givenTestDirPattern() local 193 mLocalDeviceBuildProvider.setTestDirPattern(testDir.getName()); in testSetTestsDir_givenTestDirPattern() 195 assertEquals(testDir, buildInfo.getTestsDir()); in testSetTestsDir_givenTestDirPattern()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | InstallApkSetupTest.java | 47 private File testDir = null; field in InstallApkSetupTest 59 testDir = FileUtil.createTempDir("TestApkDir"); in setUp() 60 testFile = FileUtil.createTempFile("File", ".apk", testDir); in setUp() 66 FileUtil.recursiveDelete(testDir); in tearDown()
|
D | InstallAllTestZipAppsSetupTest.java | 89 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in setMockUnzipDir() local 91 FileUtil.createTempFile("fakeApk", ".apk", testDir); in setMockUnzipDir() 92 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in setMockUnzipDir() 93 FileUtil.createTempFile("notAnApk", ".txt", testDir); in setMockUnzipDir() 94 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in setMockUnzipDir() 96 mMockUnzipDir = testDir; in setMockUnzipDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JarHostTestTest.java | 69 public HostTestable(File testDir) { in HostTestable() argument 70 mTestDir = testDir; in HostTestable() 200 public HostTestLoader(File testDir, File jar) { in HostTestLoader() argument 201 super(testDir); in HostTestLoader()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | SdkBuildInfo.java | 79 public void setTestsDir(File testDir) { in setTestsDir() argument 80 mTestDir = testDir; in setTestsDir()
|
D | LocalDeviceBuildProvider.java | 290 void setTestDir(File testDir) { in setTestDir() argument 291 this.mTestDir = testDir; in setTestDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 261 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile() local 262 FileUtil.createTempFile("test1", ".txt", testDir); in testPushDir_childFile() 263 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childFile() 264 FileUtil.recursiveDelete(testDir); in testPushDir_childFile() 282 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir() local 283 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir() 285 assertTrue(mTestDevice.pushDir(testDir, "")); in testPushDir_childDir() 286 FileUtil.recursiveDelete(testDir); in testPushDir_childDir()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | HostTest.java | 1113 File testDir = deviceBuildInfo.getTestsDir(); in getJarFile() local 1114 jarFile = searchJarFile(testDir, jarName); in getJarFile()
|