/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 74 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_same() 85 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_modified() 101 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_null() 117 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_primaryFileModified() 118 setter.setOptionValue("host-based-key-store-file", mJsonFile2.getAbsolutePath()); in testLoadKeyStore_primaryFileModified() 134 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_hostBasedFileModified() 135 setter.setOptionValue("host-based-key-store-file", mJsonFile2.getAbsolutePath()); in testLoadKeyStore_hostBasedFileModified() 151 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_primaryFileNotAccessible() 152 setter.setOptionValue("host-based-key-store-file", mJsonFile2.getAbsolutePath()); in testLoadKeyStore_primaryFileNotAccessible() 168 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_hostBasedFileNotAccessible() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandLauncherTest.java | 101 mOptionSetter.setOptionValue("cluster:root-dir", mRootDir.getAbsolutePath()); in setUp() 102 mOptionSetter.setOptionValue("cluster:env-var", "TF_WORK_DIR", mRootDir.getAbsolutePath()); in setUp() 121 jars.add(tfJar.getAbsolutePath()); in testRun() 134 tfJar.getAbsolutePath(), in testRun() 135 mTfPath.getAbsolutePath(), in testRun() 136 mTfLibDir.getAbsolutePath()); in testRun() 150 Mockito.verify(mMockRunUtil).setEnvVariable("TF_WORK_DIR", mRootDir.getAbsolutePath()); in testRun() 159 SystemUtil.getRunningJavaBinaryPath().getAbsolutePath(), in testRun() 163 "-DFOO=" + mRootDir.getAbsolutePath() + "/foo", in testRun() 176 mOptionSetter.setOptionValue("cluster:env-var", "TF_PATH", mTfPath.getAbsolutePath()); in testRun_withSetupScripts() [all …]
|
D | ClusterLogSaverTest.java | 76 mOptionSetter.setOptionValue("cluster:root-dir", mWorkDir.getAbsolutePath()); in setUp() 127 assertEquals(file.getAbsolutePath(), contextFile.getAbsolutePath()); in testFindTestContextFile() 152 assertEquals(files[0].getAbsolutePath(), contextFile.getAbsolutePath()); in testFindTestContextFile_multipleMatches_pickFirst() 177 assertEquals(files[1].getAbsolutePath(), contextFile.getAbsolutePath()); in testFindTestContextFile_multipleMatches_pickLast() 212 assertEquals(file.getAbsolutePath(), contextFile.getAbsolutePath()); in testFindTestContextFile_existingEnvVar() 334 contextFile, Arrays.asList(first.getAbsolutePath(), "extra/2.txt", "unknown.txt")); in testAppendFilesToContext()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 93 return mFakeAdb.getAbsolutePath(); in setUp() 119 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun() 129 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRun() 160 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun_failWithIncludeFilters() 170 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRun_failWithIncludeFilters() 199 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun_withIncludeFilters() 217 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRun_withIncludeFilters() 261 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun_withExcludeFilters() 279 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRun_withExcludeFilters() 324 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun_withAdbPath() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTestTest.java | 107 EasyMock.eq(binary.getAbsolutePath()), in mockCountTests() 132 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in mockTestRunExpect() 155 setter.setOptionValue("test-file", binary.getAbsolutePath()); in testRun() 180 setter.setOptionValue("test-file", binary.getAbsolutePath()); in testRun_withAdbPath() 199 setter.setOptionValue("test-file", binary.getAbsolutePath()); in testRunFail_exception() 219 setter.setOptionValue("test-file", binary.getAbsolutePath()); in testRunFail_list() 224 EasyMock.eq(binary.getAbsolutePath()), in testRunFail_list() 249 setter.setOptionValue("test-file", binary.getAbsolutePath()); in testRunFail_failureOnly() 269 setter.setOptionValue("test-file", binary.getAbsolutePath()); in testExcludeFilter() 275 EasyMock.eq(binary.getAbsolutePath()), in testExcludeFilter() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 352 assertTrue(matchFiles.contains(matchFile1.getAbsolutePath())); in testFindFilesSuccess() 353 assertTrue(matchFiles.contains(matchFile2.getAbsolutePath())); in testFindFilesSuccess() 375 assertTrue(matchFiles.contains(matchFile1.getAbsolutePath())); in testFindFilesSuccess_symlink() 379 new File(destLink, matchFile2.getName()).getAbsolutePath())); in testFindFilesSuccess_symlink() 431 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile() 448 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile_sameDirName() 465 assertEquals(subDir.getAbsolutePath(), res.getAbsolutePath()); in testFindFile_directory() 517 assertEquals(findFile.getAbsolutePath(), arm64File.getAbsolutePath()); in testfindFile_success() 522 assertEquals(findFile.getAbsolutePath(), armFile.getAbsolutePath()); in testfindFile_success() 527 assertEquals(findFile.getAbsolutePath(), x8664File.getAbsolutePath()); in testfindFile_success() [all …]
|
D | FileUtilFuncTest.java | 141 assertEquals(tmpParentDir.getAbsolutePath(), childDir.getParent()); in testCreateTempDir_parentFile() 164 assertEquals(tmpParentDir.getAbsolutePath(), tmpFile.getParent()); in testCreateTempFile_parentDir() 273 assertTrue(tmpFile.getAbsolutePath().contains("userdata")); in testCreateTempFileForRemote() 274 assertTrue(tmpFile.getAbsolutePath().endsWith(".img")); in testCreateTempFileForRemote() 286 assertTrue(tmpFile.getAbsolutePath().contains("userdata")); in testCreateTempFileForRemote_nested() 287 assertTrue(tmpFile.getAbsolutePath().endsWith(".img")); in testCreateTempFileForRemote_nested() 299 assertTrue(tmpFile.getAbsolutePath().contains("userddddmg")); in testCreateTempFileForRemote_noext() 311 assertTrue(tmpFile.getAbsolutePath().contains("usXXX")); in testCreateTempFileForRemote_short() 312 assertTrue(tmpFile.getAbsolutePath().endsWith(".img")); in testCreateTempFileForRemote_short() 324 assertTrue(tmpFile.getAbsolutePath().contains("userdata")); in testCreateTempFileForRemote_singleFile() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FileUtil.java | 154 CLog.w("Failed to set %s executable.", file.getAbsolutePath()); in chmodRWXRecursively() 158 CLog.w("Failed to set %s writable.", file.getAbsolutePath()); in chmodRWXRecursively() 162 CLog.w("Failed to set %s readable", file.getAbsolutePath()); in chmodRWXRecursively() 181 RunUtil.getDefault().runTimedCmd(10 * 1000, sChmod, perms, file.getAbsolutePath()); in chmod() 203 Log.d(LOG_TAG, String.format("Failed chmod on %s", file.getAbsolutePath())); in chmodGroupRW() 208 + "attempting to set %s globally RW", file.getAbsolutePath())); in chmodGroupRW() 228 Log.d(LOG_TAG, String.format("Failed chmod on %s", file.getAbsolutePath())); in chmodGroupRWX() 233 + "attempting to set %s globally RWX", file.getAbsolutePath())); in chmodGroupRWX() 298 parentDir.getAbsolutePath(), prefix); in createTempDir() 390 parentDir.getAbsolutePath(), prefix, suffix); in internalCreateTempFile() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | AtraceCollectorTest.java | 393 EasyMock.eq(mDummyBinary.getAbsolutePath()), in testExecutesPostProcessPar() 408 mOptionSetter.setOptionValue("post-process-binary", mDummyBinary.getAbsolutePath()); in testExecutesPostProcessPar() 435 EasyMock.eq(mDummyBinary.getAbsolutePath()), in testExecutesPostProcessParDifferentFormat() 448 mOptionSetter.setOptionValue("post-process-binary", mDummyBinary.getAbsolutePath()); in testExecutesPostProcessParDifferentFormat() 473 EasyMock.eq(mDummyBinary.getAbsolutePath()), in testExecutesPostProcessParNoStderr() 487 mOptionSetter.setOptionValue("post-process-binary", mDummyBinary.getAbsolutePath()); in testExecutesPostProcessParNoStderr() 514 EasyMock.eq(mDummyBinary.getAbsolutePath()), in testExecutesPostProcessParFailed() 528 mOptionSetter.setOptionValue("post-process-binary", mDummyBinary.getAbsolutePath()); in testExecutesPostProcessParFailed() 554 EasyMock.eq(mDummyBinary.getAbsolutePath()), in testExecutesPostProcessParTimeout() 568 mOptionSetter.setOptionValue("post-process-binary", mDummyBinary.getAbsolutePath()); in testExecutesPostProcessParTimeout() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | GceManagerTest.java | 174 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommand() 183 mGceManager.getAvdConfigFile().getAbsolutePath(), in testBuildGceCommand() 185 reportFile.getAbsolutePath(), in testBuildGceCommand() 212 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommand_withServiceAccountJsonKeyFile() 221 mGceManager.getAvdConfigFile().getAbsolutePath(), in testBuildGceCommand_withServiceAccountJsonKeyFile() 225 reportFile.getAbsolutePath(), in testBuildGceCommand_withServiceAccountJsonKeyFile() 261 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommandWithEmulatorBuild() 272 mGceManager.getAvdConfigFile().getAbsolutePath(), in testBuildGceCommandWithEmulatorBuild() 274 reportFile.getAbsolutePath(), in testBuildGceCommandWithEmulatorBuild() 302 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommandWithGceDriverParam() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 86 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable() 103 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir() 120 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName() 158 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_testsDir() 172 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_inBuildKey() 198 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_remoteZip() 211 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_inDependenciesDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 70 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 79 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 88 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 105 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 131 File testMappingFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPING).toFile(); in testparseTestMapping_BadJson() 134 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping_BadJson() 162 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testGetTests() 216 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testGetTests_matchKeywords() 242 Path testMappingsRootPath = Paths.get(tempDir.getAbsolutePath()); in testGetAllTestMappingPaths_FromChildDirectory() 253 Path relPath = testMappingsRootPath.relativize(Paths.get(subDir.getAbsolutePath())); in testGetAllTestMappingPaths_FromChildDirectory() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | HostGTestTest.java | 165 Path path = Paths.get(mTestsDir.getAbsolutePath(), moduleName + GTestBase.FILTER_EXTENSION); in testLoadFilter() 180 String dirPath = mTestsDir.getAbsolutePath(); in testRunTest() 193 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testRunTest() 216 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testRun_priority_get_testcase_from_hostlinked_folder() 221 createTestScript(testcasesFolder.getAbsolutePath(), moduleName); in testRun_priority_get_testcase_from_hostlinked_folder() 243 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set() 248 createTestScript(testcasesFolder.getAbsolutePath(), moduleName); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set() 282 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName + "32"); in testRun_withSuffix() 287 createTestScript(testcasesFolder.getAbsolutePath(), moduleName + "32"); in testRun_withSuffix() 308 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testBeforeCmdError() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | PerfettoGenericPostProcessorTest.java | 97 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testNoMetricsByDefault() 120 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testMetricsFilterWithRegEx() 150 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testMetricsFilterWithRegExAndReplacePrefix() 178 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testAllMetricsOptionIgnoresFilter() 199 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingTestMetrics() 221 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithAllMetricsPrefix() 242 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingRunMetrics() 265 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithoutIndexing() 290 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithIndexing() 322 perfettoMetricProtoFile.getAbsolutePath(), "some.url", LogDataType.TEXTPB)); in testParsingWithKeyPrefixing() [all …]
|
D | StatsdGenericPostProcessorTest.java | 109 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testParsingTestMetrics() 129 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testParsingRunMetrics() 156 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testMultipleReports() 160 mAppCrashReportFile.getAbsolutePath(), "some.other.url", LogDataType.PB)); in testMultipleReports() 197 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testExtraReportsIgnored() 201 mAppCrashReportFile.getAbsolutePath(), "some.other.url", LogDataType.PB)); in testExtraReportsIgnored() 237 new LogFile(mBadReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testInvalidReportIgnored() 241 mAppStartupReportFile.getAbsolutePath(), "some.other.url", LogDataType.PB)); in testInvalidReportIgnored() 296 new LogFile(testMetricFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testParsingLogic() 448 new LogFile(mAppStartupReportFile.getAbsolutePath(), "some.url", LogDataType.PB)); in testUnwantedFieldsSkipped()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | FileSystemLogSaver.java | 119 return new LogFile(log.getAbsolutePath(), getUrl(log), dataType); in saveLogData() 139 CLog.d("Saved log file %s", log.getAbsolutePath()); in saveLogData() 140 return new LogFile(log.getAbsolutePath(), getUrl(log), true, dataType, log.length()); in saveLogData() 152 return new LogFile(log.getAbsolutePath(), getUrl(log), dataType); in saveLogDataRaw() 167 CLog.d("Saved raw log file %s", log.getAbsolutePath()); in saveLogDataInternal() 176 return new LogFile(mLogReportDir.getAbsolutePath(), getUrl(mLogReportDir), LogDataType.DIR); in getLogReportDir() 201 reportDir.getAbsolutePath()); in createLogReportDir() 215 CLog.d("Using log file directory %s", logReportDir.getAbsolutePath()); in createLogReportDir() 260 "File already exists.", buildReportDir.getAbsolutePath()); in createBuildDir() 269 "Failed to create directory.", buildReportDir.getAbsolutePath()); in createBuildDir() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 93 mBuildDir.getAbsolutePath(), BUILD_DIR_OPTION_NAME), in getBuild() 101 mBuildDir.getAbsolutePath(), BUILD_DIR_OPTION_NAME), in getBuild() 104 CLog.d("Using device build files from %s", mBuildDir.getAbsolutePath()); in getBuild() 148 CLog.i("Unable to find build image zip on %s", mBuildDir.getAbsolutePath()); in setDeviceImageFile() 154 mImgPattern, mBuildDir.getAbsolutePath()), in setDeviceImageFile() 158 CLog.i("Set build image zip to %s", deviceImgFile.getAbsolutePath()); in setDeviceImageFile() 180 CLog.i("Created build image zip on: %s", zipFile.getAbsolutePath()); in createBuildImageZip() 209 CLog.i("Looking for tests on %s", mTestDir.getAbsolutePath()); in setTestsDir() 212 CLog.i("Looking for tests on %s matching %s", mBuildDir.getAbsolutePath(), in setTestsDir() 218 CLog.d("Using test files from %s", testsDir.getAbsolutePath()); in setTestsDir() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 117 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable() 126 Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable() 145 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable_relativePath() 179 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable_dnae() 188 Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_dnae() 207 tmpBinary.getAbsolutePath()), in testRunHostExecutable_dnae() 239 Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_search() 268 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_notFound() 293 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable_failure() 315 Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_failure() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandRunnerTest.java | 127 mConfig.getAbsolutePath(), in testRun_noError() 132 mLogDir.getAbsolutePath() in testRun_noError() 146 mConfig.getAbsolutePath(), in testRun_deviceUnresponsive() 150 mLogDir.getAbsolutePath() in testRun_deviceUnresponsive() 168 mConfig.getAbsolutePath(), in testRun_deviceUnavailable() 172 mLogDir.getAbsolutePath() in testRun_deviceUnavailable() 190 mConfig.getAbsolutePath(), in testRun_throwable() 194 mLogDir.getAbsolutePath() in testRun_throwable() 235 mConfig.getAbsolutePath(), in testRun_noDevice() 239 mLogDir.getAbsolutePath() in testRun_noDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 257 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_testMappingsZip() 327 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_testMappingsZipFoundTestsWithKeywords() 399 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_testMappingsZipFailWithKeywords() 447 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_testMappingsZipHostTests() 494 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_shard() 537 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_shardNoTest() 581 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_noTest() 646 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTestsWithModule() 699 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTestsWithMultiModules() 795 String configPath = moduleConfig.getAbsolutePath(); in testCreateIndividualTestsWithDifferentTestInfos() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | GsiDeviceFlashPreparerTest.java | 218 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success() 232 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success() 309 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg() 323 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg() 331 mBuildInfo.getFile("gki_boot.img").getAbsolutePath())) in testSetup_Success_WithGkiBootImg() 414 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success_Api28() 423 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success_Api28() 452 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_GsiFlashFailure() 466 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_GsiFlashFailure() 498 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetUp_BootFailure() [all …]
|
D | RunHostScriptTargetPreparerTest.java | 111 mOptionSetter.setOptionValue("script-file", mScriptFile.getAbsolutePath()); in testSetUp() 117 verify(mRunUtil).runTimedCmd(10L, mScriptFile.getAbsolutePath()); in testSetUp() 124 mOptionSetter.setOptionValue("work-dir", mWorkDir.getAbsolutePath()); in testSetUp_workingDir() 129 verify(mRunUtil).runTimedCmd(anyLong(), eq(mScriptFile.getAbsolutePath())); in testSetUp_workingDir() 138 verify(mRunUtil).runTimedCmd(anyLong(), eq(mScriptFile.getAbsolutePath())); in testSetUp_findFile() 149 mOptionSetter.setOptionValue("script-file", mScriptFile.getAbsolutePath()); in testSetUp_executionError() 157 mOptionSetter.setOptionValue("script-file", mScriptFile.getAbsolutePath()); in testSetUp_pathVariable() 165 when(mDeviceManager.getFastbootPath()).thenReturn(fastbootBinary.getAbsolutePath()); in testSetUp_pathVariable()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | TarUtil.java | 79 CLog.i(String.format("Untaring %s to dir %s.", inputFile.getAbsolutePath(), in unTar() 80 outputDir.getAbsolutePath())); in unTar() 92 outputFile.getAbsolutePath())); in unTar() 95 outputFile.getAbsolutePath())); in unTar() 99 outputFile.getAbsolutePath())); in unTar() 103 CLog.i(String.format("Creating output file %s.", outputFile.getAbsolutePath())); in unTar() 110 parent.getAbsolutePath())); in unTar() 140 CLog.i(String.format("Ungzipping %s to dir %s.", inputFile.getAbsolutePath(), in unGzip() 141 outputDir.getAbsolutePath())); in unGzip()
|
D | BundletoolUtil.java | 75 getBundletoolFile().getParentFile().getAbsolutePath(), in generateDeviceSpecFile() 89 getBundletoolFile().getAbsolutePath(), in generateDeviceSpecFile() 127 String destDirPath = apks.getParentFile().getAbsolutePath(); in extractSplitsFromApks() 135 String outputPathArg = OUTPUT_DIR_FLAG + destDir.getAbsolutePath(); in extractSplitsFromApks() 136 String inputPathArg = APKS_TO_EXTRACT_FLAG + apks.getAbsolutePath(); in extractSplitsFromApks() 142 getBundletoolFile().getAbsolutePath(), in extractSplitsFromApks() 166 String inputPathArg = "--apks=" + apks.getAbsolutePath(); in installApks() 175 getBundletoolFile().getAbsolutePath(), in installApks()
|
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactory.java | 82 mJsonFile.getAbsolutePath(), mHostBasedJsonFiles.size()); in createKeyStoreClient() 118 invalidFiles.add(mJsonFile.getAbsolutePath()); in findInvalidJsonKeyStoreFiles() 122 invalidFiles.add(file.getAbsolutePath()); in findInvalidJsonKeyStoreFiles() 131 changedFiles.add(mJsonFile.getAbsolutePath()); in findChangedJsonKeyStoreFiles() 135 changedFiles.add(file.getAbsolutePath()); in findChangedJsonKeyStoreFiles() 155 mHostName, mJsonFile.getAbsolutePath()); in overrideClientWithHostKeyStoreFromFile() 164 mHostName, key, mJsonFile.getAbsolutePath()); in overrideClientWithHostKeyStoreFromFile() 186 mHostName, patternString, file.getAbsolutePath()); in getHostKeyStoreFromFile()
|