/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 97 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); in testGetTestsDir_noVar() 101 assertEquals(tmpDir.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_noVar() 120 return varDir.getAbsolutePath(); in testGetLocalPathForFilename_withVariable() 127 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable() 147 return varDir.getAbsolutePath(); in testGetTestsDir_notDir() 152 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); in testGetTestsDir_notDir() 158 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir() 183 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName() 236 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_testsDir() 257 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_inBuildKey() [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/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() 202 reportDir.getAbsolutePath()); in createLogReportDir() 216 CLog.d("Using log file directory %s", logReportDir.getAbsolutePath()); in createLogReportDir() 249 "File already exists.", buildReportDir.getAbsolutePath()); in createBuildDir() 258 "Failed to create directory.", buildReportDir.getAbsolutePath()); in createBuildDir() [all …]
|
D | LogFileSaver.java | 126 buildDir.getAbsolutePath()); in createInvLogDir() 131 CLog.i("Using log file directory %s", invocationDir.getAbsolutePath()); in createInvLogDir() 153 buildReportDir.getAbsolutePath()); in createBuildDir() 160 buildReportDir.getAbsolutePath()); in createBuildDir() 220 CLog.i("Saved log file %s", logFile.getAbsolutePath()); in saveLogDataRaw() 248 CLog.i("Saved log file %s", logFile.getAbsolutePath()); in saveAndGZipLogData() 284 CLog.i("Saved log file %s", logFile.getAbsolutePath()); in saveAndZipLogData()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProvider.java | 88 "Please provide a valid path via --%s", mBuildDir.getAbsolutePath(), in getBuild() 93 "Please provide a valid path via --%s", mBuildDir.getAbsolutePath(), in getBuild() 96 CLog.d("Using device build files from %s", mBuildDir.getAbsolutePath()); in getBuild() 140 CLog.i("Unable to find build image zip on %s", mBuildDir.getAbsolutePath()); in setDeviceImageFile() 145 mImgPattern, mBuildDir.getAbsolutePath())); in setDeviceImageFile() 148 CLog.i("Set build image zip to %s", deviceImgFile.getAbsolutePath()); in setDeviceImageFile() 170 CLog.i("Created build image zip on: %s", zipFile.getAbsolutePath()); in createBuildImageZip() 199 CLog.i("Looking for tests on %s", mTestDir.getAbsolutePath()); in setTestsDir() 202 CLog.i("Looking for tests on %s matching %s", mBuildDir.getAbsolutePath(), in setTestsDir() 208 CLog.d("Using test files from %s", testsDir.getAbsolutePath()); in setTestsDir() [all …]
|
D | FileDownloadCache.java | 105 mCacheRoot.getAbsolutePath())); in FileDownloadCache() 108 mCacheRoot.getAbsolutePath())); in FileDownloadCache() 112 mCacheRoot.getAbsolutePath())); in FileDownloadCache() 146 CLog.e("Unable to list files in cache dir %s", dir.getAbsolutePath()); in addFiles() 164 childFile.getAbsolutePath())); in addFiles() 281 remotePath, cachedFile.getAbsolutePath())); in fetchRemoteFile() 316 hardlinkFile.getAbsolutePath(), cachedFile.getAbsolutePath()); in copyFile()
|
/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/ |
D | HostGTestTest.java | 163 Path path = Paths.get(mTestsDir.getAbsolutePath(), moduleName + GTestBase.FILTER_EXTENSION); in testLoadFilter() 178 String dirPath = mTestsDir.getAbsolutePath(); in testRunTest() 191 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testRunTest() 214 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testRun_priority_get_testcase_from_hostlinked_folder() 219 createTestScript(testcasesFolder.getAbsolutePath(), moduleName); in testRun_priority_get_testcase_from_hostlinked_folder() 241 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set() 246 createTestScript(testcasesFolder.getAbsolutePath(), moduleName); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set() 280 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName + "32"); in testRun_withSuffix() 285 createTestScript(testcasesFolder.getAbsolutePath(), moduleName + "32"); in testRun_withSuffix() 306 createTestScript(hostLinkedFolder.getAbsolutePath(), moduleName); in testBeforeCmdError() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | FileUtil.java | 153 CLog.w("Failed to set %s executable.", file.getAbsolutePath()); in chmodRWXRecursively() 157 CLog.w("Failed to set %s writable.", file.getAbsolutePath()); in chmodRWXRecursively() 161 CLog.w("Failed to set %s readable", file.getAbsolutePath()); in chmodRWXRecursively() 180 RunUtil.getDefault().runTimedCmd(10 * 1000, sChmod, perms, file.getAbsolutePath()); in chmod() 202 Log.d(LOG_TAG, String.format("Failed chmod on %s", file.getAbsolutePath())); in chmodGroupRW() 207 + "attempting to set %s globally RW", file.getAbsolutePath())); in chmodGroupRW() 227 Log.d(LOG_TAG, String.format("Failed chmod on %s", file.getAbsolutePath())); in chmodGroupRWX() 232 + "attempting to set %s globally RWX", file.getAbsolutePath())); in chmodGroupRWX() 297 parentDir.getAbsolutePath(), prefix); in createTempDir() 389 parentDir.getAbsolutePath(), prefix, suffix); in internalCreateTempFile() [all …]
|
D | BundletoolUtil.java | 71 getBundletoolFile().getParentFile().getAbsolutePath(), in generateDeviceSpecFile() 85 getBundletoolFile().getAbsolutePath(), in generateDeviceSpecFile() 114 String destDirPath = apks.getParentFile().getAbsolutePath(); in extractSplitsFromApks() 122 String outputPathArg = OUTPUT_DIR_FLAG + destDir.getAbsolutePath(); in extractSplitsFromApks() 123 String inputPathArg = APKS_TO_EXTRACT_FLAG + apks.getAbsolutePath(); in extractSplitsFromApks() 129 getBundletoolFile().getAbsolutePath(), in extractSplitsFromApks() 153 String inputPathArg = "--apks=" + apks.getAbsolutePath(); in installApks() 159 getBundletoolFile().getAbsolutePath(), in installApks()
|
D | TarUtil.java | 59 CLog.i(String.format("Untaring %s to dir %s.", inputFile.getAbsolutePath(), in unTar() 60 outputDir.getAbsolutePath())); in unTar() 72 outputFile.getAbsolutePath())); in unTar() 75 outputFile.getAbsolutePath())); in unTar() 79 outputFile.getAbsolutePath())); in unTar() 83 CLog.i(String.format("Creating output file %s.", outputFile.getAbsolutePath())); in unTar() 111 CLog.i(String.format("Ungzipping %s to dir %s.", inputFile.getAbsolutePath(), in unGzip() 112 outputDir.getAbsolutePath())); in unGzip()
|
/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 | 172 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommand() 181 mGceManager.getAvdConfigFile().getAbsolutePath(), in testBuildGceCommand() 183 reportFile.getAbsolutePath(), in testBuildGceCommand() 210 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommand_withServiceAccountJsonKeyFile() 219 mGceManager.getAvdConfigFile().getAbsolutePath(), in testBuildGceCommand_withServiceAccountJsonKeyFile() 223 reportFile.getAbsolutePath(), in testBuildGceCommand_withServiceAccountJsonKeyFile() 259 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommandWithEmulatorBuild() 270 mGceManager.getAvdConfigFile().getAbsolutePath(), in testBuildGceCommandWithEmulatorBuild() 272 reportFile.getAbsolutePath(), in testBuildGceCommandWithEmulatorBuild() 300 mOptions.getAvdDriverBinary().getAbsolutePath(), in testBuildGceCommandWithGceDriverParam() [all …]
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | AnrReportGenerator.java | 104 mCachedBugreport.getAbsolutePath()); in setBugReportInfo() 119 mCachedMonkeyLog.getAbsolutePath()); in setMonkeyLogInfo() 139 reportPath.getAbsolutePath()); in genereateAnrReport() 146 reportPath.getAbsolutePath()); in genereateAnrReport() 167 String htmlReportPath = htmlReport.getAbsolutePath(); in genereateAnrReport() 171 mCachedMonkeyLog.getAbsolutePath(), in genereateAnrReport() 174 mCachedBugreport.getAbsolutePath() in genereateAnrReport()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 67 return mFakeAdb.getAbsolutePath(); in setUp() 89 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun() 98 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRun() 129 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun_withAdbPath() 138 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRun_withAdbPath() 164 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRunFail_exception() 173 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRunFail_exception() 204 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRunFail_failureOnly() 213 EasyMock.anyLong(), EasyMock.eq(binary.getAbsolutePath()))) in testRunFail_failureOnly()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 99 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable() 104 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable() 123 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable_dnae() 128 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_dnae() 144 tmpBinary.getAbsolutePath()))); in testRunHostExecutable_dnae() 168 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_search() 197 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_notFound() 220 setter.setOptionValue("binary", tmpBinary.getAbsolutePath()); in testRunHostExecutable_failure() 227 .runTimedCmd(Mockito.anyLong(), Mockito.eq(tmpBinary.getAbsolutePath())); in testRunHostExecutable_failure()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | TfTestLauncher.java | 127 mHprofFile.getAbsolutePath()); in addJavaArguments() 179 ((IFolderBuildInfo) mBuildInfo).getRootDir().getAbsolutePath(), in preRun() 245 jacocoAgent.getAbsolutePath(), in addCoverageArgs() 246 destfile.getAbsolutePath()); in addCoverageArgs() 289 "-Djacocoant.path=" + jacocoAnt.getAbsolutePath(), in processExecData() 290 "-Dexecution.files=" + executionData.getAbsolutePath(), in processExecData() 292 "-Ddest.file=" + xmlReport.getAbsolutePath()}; in processExecData() 379 CLog.w("Hprof file %s was not found. Skipping parsing.", hprofFile.getAbsolutePath()); in logHprofResults()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | DynamicRemoteFileResolverTest.java | 118 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolve() 160 assertEquals(downloaded.getAbsolutePath(), gsFile.getAbsolutePath()); in testResolve_remoteFileList() 337 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolve_withNoGlobalNameSpace() 416 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolve_addition()
|
/tools/tradefederation/core/util-apps/ContentProvider/androidTest/src/android/tradefed/contentprovider/ |
D | ManagedFileContentProviderTest.java | 110 mTestFileUri = createContentUri(mTestFile.getAbsolutePath()); in createTestFile() 170 Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + TEST_FILE, in testQueryForFile() 211 Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + TEST_FILE, in testQueryForFile_sdcard() 232 mTestDirUri = createContentUri(mTestDir.getAbsolutePath()); in testQueryForDirectoryContent() 257 Environment.getExternalStorageDirectory().getAbsolutePath() in testQueryForDirectoryContent() 277 Environment.getExternalStorageDirectory().getAbsolutePath() in testQueryForDirectoryContent()
|
/tools/tradefederation/contrib/src/com/android/uicd/tests/ |
D | UiConductorTest.java | 151 jarFile = copyFile(cliJar.getAbsolutePath(), jarFileDir); in run() 158 testFileOrDirEntry.getValue().getAbsolutePath(), in run() 163 File binary = copyFile(binaryFile.getAbsolutePath(), binaryFilesDir); in run() 280 copyFile(file.getAbsolutePath(), Paths.get(destDirPath, file.getName()).toString()); in copyFile() 285 String.format("Could not create directory %s", destDir.getAbsolutePath())); in copyFile() 303 file.getAbsolutePath(), in copyFile() 309 String.format("Could not create directory %s", destDir.getAbsolutePath())); in copyFile() 345 command.add(jarFile.getAbsolutePath()); in getCommand()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | PythonVirtualenvPreparer.java | 75 "install", "-r", mRequirementsFile.getAbsolutePath()); in installDeps() 78 mRequirementsFile.getAbsolutePath()); in installDeps() 111 CLog.i("Using existing virtualenv based at %s", mVenvDir.getAbsolutePath()); in startVirtualenv() 117 mRunUtil.runTimedCmd(BASE_TIMEOUT, "virtualenv", mVenvDir.getAbsolutePath()); in startVirtualenv() 141 mPip = pipFile.getAbsolutePath(); in activate()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 67 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 76 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 85 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 102 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping() 128 File testMappingFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPING).toFile(); in testparseTestMapping_BadJson() 131 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping_BadJson() 159 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testGetTests() 213 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testGetTests_matchKeywords() 456 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testExtractTestMappingsZip() 493 Path tempDirPath = Paths.get(tempDir.getAbsolutePath()); in testGetDisabledTests()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | InstallApkSetupTest.java | 97 String refMessage = String.format("%s does not exist null", testFile.getAbsolutePath()); in testNonExistingApk() 115 testFile.getAbsolutePath())).times(1); in testInstallFailureNoThrow() 133 testFile.getAbsolutePath())).times(1); in testInstallFailureThrow() 140 "Reason: %s (Permission denied) null", testFile.getAbsolutePath(), in testInstallFailureThrow() 141 SERIAL, testFile.getAbsolutePath()); in testInstallFailureThrow()
|
D | TestFilePushSetupTest.java | 144 assertEquals(mAltDirFile1.getAbsolutePath(), apk.getAbsolutePath()); in testAltDirOverride() 189 assertEquals(apkInTestDir.getAbsolutePath(), apk.getAbsolutePath()); in testAltDirNoFallback() 201 assertEquals(mAltDirFile2.getAbsolutePath(), apk.getAbsolutePath()); in testAltDirFallback()
|