/tools/tradefederation/core/javatests/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/javatests/com/android/tradefed/targetprep/ |
D | AllTestAppsInstallSetupTest.java | 98 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in testSetup() local 100 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetup() 101 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in testSetup() 102 FileUtil.createTempFile("notAnApk", ".txt", testDir); in testSetup() 103 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in testSetup() 106 when(mMockBuildInfo.getTestsDir()).thenReturn(testDir); in testSetup() 114 FileUtil.recursiveDelete(testDir); in testSetup() 122 File testDir = FileUtil.createTempDir("TestAppSetupForceQueryableTest"); in testSetupForceQueryable() local 124 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetupForceQueryable() 126 when(mMockBuildInfo.getTestsDir()).thenReturn(testDir); in testSetupForceQueryable() [all …]
|
D | ModuleOemTargetPreparerTest.java | 73 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in ModuleOemTargetPreparerTest 95 mFakeApex = testDir.newFile(TEST_APEX_NAME); in setUp() 96 mFakeApk = testDir.newFile(TEST_APK_NAME); in setUp() 97 mFakeApkApks = testDir.newFile(TEST_SPLIT_APK_APKS_NAME); in setUp() 98 testDir.newFolder("FakeSplit"); in setUp() 99 mFakeSplitApk = testDir.newFile(TEST_SPLIT_APK_NAME); in setUp() 100 mFakeHdpiApk = testDir.newFile(TEST_HDPI_APK_NAME); in setUp() 101 mRecoverRootDir = testDir.newFolder(); in setUp() 102 testDir.newFolder(mRecoverRootDir.getName(), APEX_PACKAGE_NAME); in setUp() 104 testDir.newFile( in setUp() [all …]
|
D | InstallAllTestZipAppsSetupTest.java | 97 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in setMockUnzipDir() local 99 FileUtil.createTempFile("fakeApk", ".apk", testDir); in setMockUnzipDir() 100 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in setMockUnzipDir() 101 FileUtil.createTempFile("notAnApk", ".txt", testDir); in setMockUnzipDir() 102 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in setMockUnzipDir() 104 mMockUnzipDir = testDir; in setMockUnzipDir()
|
D | InstallApkSetupTest.java | 51 private File testDir = null; field in InstallApkSetupTest 65 testDir = FileUtil.createTempDir("TestApkDir"); in setUp() 66 testFile = FileUtil.createTempFile("File", ".apk", testDir); in setUp() 72 FileUtil.recursiveDelete(testDir); in tearDown()
|
D | ModulePusherTest.java | 81 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in ModulePusherTest 96 mFakeApex = testDir.newFile(TEST_APEX_NAME); in setUp() 97 mFakeApk = testDir.newFile(TEST_APK_NAME); in setUp() 98 mFakeSplitDir = testDir.newFolder("FakeSplit"); in setUp() 99 mFakeSplitApk = testDir.newFile(TEST_SPLIT_APK_NAME); in setUp() 100 mFakeHdpiApk = testDir.newFile(TEST_HDPI_APK_NAME); in setUp()
|
/tools/tradefederation/core/javatests/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/test_framework/com/android/tradefed/testtype/ |
D | IsolatedHostTest.java | 417 File testDir = findTestDirectory(); in findJarDirectory() local 419 File f = FileUtil.findFile(testDir, jar); in findJarDirectory() 472 private File getRavenwoodRuntimeDir(File testDir) { in getRavenwoodRuntimeDir() argument 473 File ravenwoodRuntime = FileUtil.findFile(testDir, "ravenwood-runtime"); in getRavenwoodRuntimeDir() 476 "Could not find Ravenwood runtime needed for execution. " + testDir, in getRavenwoodRuntimeDir() 492 File testDir = findTestDirectory(); in compileClassPath() local 506 File androidAllJar = FileUtil.findFile(testDir, mAndroidAllName); in compileClassPath() 514 addAllFilesUnder(paths, getRavenwoodRuntimeDir(testDir)); in compileClassPath() 518 File f = FileUtil.findFile(testDir, jar); in compileClassPath() 566 File testDir = findTestDirectory(); in compileLdLibraryPathInner() local [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | PushFilePreparer.java | 232 File testDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local 239 if (testDir != null) { in resolveRelativeFilePath() 240 scanDirs.add(testDir); in resolveRelativeFilePath() 245 if (testDir != null) { in resolveRelativeFilePath() 326 if (src == null && testDir != null) { in resolveRelativeFilePath() 331 src = buildInfo.stageRemoteFile(fileName, testDir); in resolveRelativeFilePath() 337 File srcWithAbi = FileUtil.findFile(fileName, mAbi, testDir); in resolveRelativeFilePath()
|
/tools/tradefederation/contrib/tests/src/com/android/uicd/tests/ |
D | UiConductorTestTest.java | 210 Path testDir = mInputDir.resolve("test_dir"); in testRun_testDirectory() local 211 Files.createDirectories(testDir.resolve("nested_dir")); in testRun_testDirectory() 212 Files.createFile(testDir.resolve("test1.json")); in testRun_testDirectory() 213 Files.createFile(testDir.resolve("test2.json")); in testRun_testDirectory() 214 Files.createFile(testDir.resolve("test3.json")); in testRun_testDirectory() 215 Files.createFile(testDir.resolve("nested_dir/test.json")); in testRun_testDirectory() 216 mOptionSetter.setOptionValue("uicd-test", TEST_KEY, testDir.toString()); in testRun_testDirectory()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 200 File testDir = mTestInfo.executionFiles().get(FilesKey.HOST_TESTS_DIRECTORY); in run() local 201 if (testDir == null || !testDir.exists()) { in run() 202 testDir = mTestInfo.executionFiles().get(FilesKey.TESTS_DIRECTORY); in run() 205 if (testDir != null && testDir.exists()) { in run() 209 File libDir = new File(testDir, path); in run()
|
/tools/tradefederation/core/javatests/com/android/tradefed/config/remote/ |
D | GcsRemoteFileResolverTest.java | 127 File testDir = FileUtil.createTempDir("test-resolve-dir"); in testResolve_unzip() local 128 File zipFile = ZipUtil.createZip(testDir); in testResolve_unzip() 161 FileUtil.recursiveDelete(testDir); in testResolve_unzip()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 295 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_withUserId() local 298 mTestDevice.pushDir(testDir, deviceFilePath, testUserId); in testPushDir_withUserId() 302 .pushDir(Mockito.eq(testDir), Mockito.eq(deviceFilePath), Mockito.any()); in testPushDir_withUserId() 304 FileUtil.recursiveDelete(testDir); in testPushDir_withUserId() 319 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_withoutUserId() local 322 mTestDevice.pushDir(testDir, deviceFilePath); in testPushDir_withoutUserId() 326 .pushDir(Mockito.eq(testDir), Mockito.eq(deviceFilePath), Mockito.any()); in testPushDir_withoutUserId() 328 FileUtil.recursiveDelete(testDir); in testPushDir_withoutUserId() 353 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile() local 354 FileUtil.createTempFile("test1", ".txt", testDir); in testPushDir_childFile() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/postprocessor/ |
D | StatsdGenericPostProcessorTest.java | 72 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in StatsdGenericPostProcessorTest 124 mAppStartupReportFile = testDir.newFile(APP_STARTUP_FILENAME); in setUp() 127 mAppCrashReportFile = testDir.newFile(APP_CRASH_FILENAME); in setUp() 130 mBadReportFile = testDir.newFile(BAD_REPORT_FILENAME); in setUp() 133 mExtensionAtomReportFile = testDir.newFile(EXTENSION_ATOM_REPORT_FILENAME); in setUp() 381 File testMetricFile = testDir.newFile(testFilename); in testParsingLogic()
|
D | StatsdEventMetricPostProcessorTest.java | 68 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in StatsdEventMetricPostProcessorTest 96 File reportFile = testDir.newFile(reportFilename); in setUp()
|
D | StatsdBeforeAfterGaugeMetricPostProcessorTest.java | 78 @Rule public TemporaryFolder testDir = new TemporaryFolder(); field in StatsdBeforeAfterGaugeMetricPostProcessorTest 841 File reportFile = testDir.newFile(reportFileName); in setUpTestData()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 294 void setTestDir(File testDir) { in setTestDir() argument 295 this.mTestDir = testDir; in setTestDir()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 711 File testDir = deviceBuild.getTestsDir(); in resolveRelativeFilePath() local 719 if (testDir != null) { in resolveRelativeFilePath() 720 scanDirs.add(testDir); in resolveRelativeFilePath() 725 if (testDir != null) { in resolveRelativeFilePath()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | HostGTestTest.java | 310 String testDir = mTestsDir.getAbsolutePath(); in testBeforeCmdError() local 311 Path errorScriptPath = Paths.get(testDir, "bad_cmd"); in testBeforeCmdError()
|
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/ |
D | TestDiscoveryInvoker.java | 119 public void setTestDir(File testDir) { in setTestDir() argument 120 mTestDir = testDir; in setTestDir()
|