/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 91 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); in testGetTestsDir_noVar() 95 assertEquals(tmpDir.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_noVar() 114 return varDir.getAbsolutePath(); in testGetLocalPathForFilename_withVariable() 121 assertEquals(apk.getAbsolutePath(), res.getAbsolutePath()); in testGetLocalPathForFilename_withVariable() 141 return varDir.getAbsolutePath(); in testGetTestsDir_notDir() 146 attributes.put("ROOT_DIR", tmpDir.getAbsolutePath()); in testGetTestsDir_notDir() 152 assertEquals(apkFile.getAbsolutePath(), res.getAbsolutePath()); in testGetTestsDir_notDir() 177 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName() 230 assertEquals(tmpApk.getAbsolutePath(), apk.getAbsolutePath()); in testGetLocalPathForFileName_testsDir()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | KernelFlashPreparerTest.java | 96 return mBootImg.getAbsolutePath(); in setUp() 127 mBootImg.getAbsolutePath())).andReturn(new CommandResult()); in testSetUp() 176 mBootImg.getAbsolutePath())).andThrow(new DeviceUnresponsiveException()); in testSetup_fastbooterror() 203 mBootImg.getAbsolutePath())).andReturn(new CommandResult()); in testSetup_builderror() 235 mBootImg.getAbsolutePath())).andReturn(new CommandResult()); in testSetup_unresponsive() 286 EasyMock.eq(mMkbootimg.getAbsolutePath()), EasyMock.eq("--kernel"), 287 EasyMock.eq(mKernel.getAbsolutePath()), EasyMock.eq("--ramdisk"), 288 EasyMock.eq(mRamdisk.getAbsolutePath()), EasyMock.eq("-o"), 294 assertEquals(mBootImg.getAbsolutePath(), bootimgPath.getValue()); 306 EasyMock.eq(mMkbootimg.getAbsolutePath()), EasyMock.eq("--kernel"), [all …]
|
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()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | KernelFlashPreparer.java | 79 CLog.d("fastboot flash boot %s", boot.getAbsolutePath()); in setUp() 80 device.executeFastbootCommand("flash", "boot", boot.getAbsolutePath()); in setUp() 109 CLog.d("Create boot.img from %s and %s", kernel.getAbsolutePath(), in createBootImage() 110 ramdisk.getAbsolutePath()); in createBootImage() 113 String[] cmd = {mkbootimg.getAbsolutePath(), "--kernel", kernel.getAbsolutePath(), in createBootImage() 114 "--ramdisk", ramdisk.getAbsolutePath(), "-o", bootPath}; in createBootImage() 144 String bootImgPath = bootImg.getAbsolutePath(); in getBootImgPath()
|
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()
|
D | AllTestAppsInstallSetup.java | 102 CLog.d("Installing all apks found in dir %s ...", directory.getAbsolutePath()); in installApksRecursively() 108 if (FileUtil.getExtension(f.getAbsolutePath()).toLowerCase().equals(".apk")) { in installApksRecursively() 111 CLog.d("Skipping %s because it is not an apk", f.getAbsolutePath()); in installApksRecursively() 126 CLog.d("Installing apk from %s ...", appFile.getAbsolutePath()); in installApk()
|
D | InstallAllTestZipAppsSetup.java | 139 CLog.d("Installing all apks found in dir %s ...", directory.getAbsolutePath()); in installApksRecursively() 144 } else if (FileUtil.getExtension(f.getAbsolutePath()).toLowerCase().equals(".apk")) { in installApksRecursively() 147 CLog.d("Skipping %s because it is not an apk", f.getAbsolutePath()); in installApksRecursively() 183 CLog.d("Installing apk from %s ...", appFile.getAbsolutePath()); in installApk()
|
/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/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 | 106 mCacheRoot.getAbsolutePath())); in FileDownloadCache() 109 mCacheRoot.getAbsolutePath())); in FileDownloadCache() 113 mCacheRoot.getAbsolutePath())); in FileDownloadCache() 147 CLog.e("Unable to list files in cache dir %s", dir.getAbsolutePath()); in addFiles() 165 childFile.getAbsolutePath())); in addFiles() 272 remotePath, cachedFile.getAbsolutePath())); in fetchRemoteFile() 305 CLog.d("Creating hardlink '%s' to '%s'", hardlinkFile.getAbsolutePath(), in copyFile() 306 cachedFile.getAbsolutePath()); in copyFile()
|
D | FileDownloadCacheFactory.java | 55 FileDownloadCache cache = mCacheObjectMap.get(cacheDir.getAbsolutePath()); in getCache() 58 mCacheObjectMap.put(cacheDir.getAbsolutePath(), cache); in getCache()
|
/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 | RetentionFileSaver.java | 48 CLog.e("Unable to create retention file in directory in %s", dir.getAbsolutePath()); in writeRetentionFile() 55 CLog.w("%s is not a retention file", retentionFile.getAbsolutePath()); in shouldDelete() 64 CLog.e("Unable to read retention file %s", retentionFile.getAbsolutePath()); in shouldDelete() 67 … CLog.e("Unable to read timestamp in retention file %s", retentionFile.getAbsolutePath()); in shouldDelete()
|
/tools/tradefederation/core/prod-tests/src/com/android/monkey/ |
D | AnrReportGenerator.java | 95 mCachedBugreport.getAbsolutePath()); in setBugReportInfo() 108 mCachedMonkeyLog.getAbsolutePath()); in setMonkeyLogInfo() 125 reportPath.getAbsolutePath()); in genereateAnrReport() 131 reportPath.getAbsolutePath()); in genereateAnrReport() 150 String htmlReportPath = htmlReport.getAbsolutePath(); in genereateAnrReport() 152 mReportScriptPath, "--monkey", mCachedMonkeyLog.getAbsolutePath(), "--html", in genereateAnrReport() 153 htmlReportPath, mCachedBugreport.getAbsolutePath() in genereateAnrReport()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
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/testtype/python/ |
D | PythonBinaryHostTestTest.java | 71 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRun() 78 EasyMock.eq(binary.getAbsolutePath()), in testRun() 104 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRunFail_exception() 111 EasyMock.eq(binary.getAbsolutePath()), in testRunFail_exception() 137 setter.setOptionValue("python-binaries", binary.getAbsolutePath()); in testRunFail_failureOnly() 144 EasyMock.eq(binary.getAbsolutePath()), in testRunFail_failureOnly()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilFuncTest.java | 134 assertEquals(tmpParentDir.getAbsolutePath(), childDir.getParent()); in testCreateTempDir_parentFile() 159 assertEquals(tmpParentDir.getAbsolutePath(), tmpFile.getParent()); in testCreateTempFile_parentDir() 266 assertTrue(tmpFile.getAbsolutePath().contains("userdata")); in testCreateTempFileForRemote() 267 assertTrue(tmpFile.getAbsolutePath().endsWith(".img")); in testCreateTempFileForRemote() 280 assertTrue(tmpFile.getAbsolutePath().contains("userdata")); in testCreateTempFileForRemote_nested() 281 assertTrue(tmpFile.getAbsolutePath().endsWith(".img")); in testCreateTempFileForRemote_nested() 294 assertTrue(tmpFile.getAbsolutePath().contains("userddddmg")); in testCreateTempFileForRemote_noext() 307 assertTrue(tmpFile.getAbsolutePath().contains("usXXX")); in testCreateTempFileForRemote_short() 308 assertTrue(tmpFile.getAbsolutePath().endsWith(".img")); in testCreateTempFileForRemote_short() 321 assertTrue(tmpFile.getAbsolutePath().contains("userdata")); in testCreateTempFileForRemote_singleFile() [all …]
|
D | SystemUtilTest.java | 53 .thenReturn(targetOutDir.getAbsolutePath()); in testGetExternalTestCasesDirs() 55 .thenReturn(hostOutDir.getAbsolutePath()); in testGetExternalTestCasesDirs() 76 .thenReturn(targetOutDir.getAbsolutePath()); in testGetExternalTestCasesDirsNoDir()
|
D | FileUtilTest.java | 350 assertTrue(matchFiles.contains(matchFile1.getAbsolutePath())); in testFindFilesSuccess() 351 assertTrue(matchFiles.contains(matchFile2.getAbsolutePath())); in testFindFilesSuccess() 373 assertTrue(matchFiles.contains(matchFile1.getAbsolutePath())); in testFindFilesSuccess_symlink() 377 new File(destLink, matchFile2.getName()).getAbsolutePath())); in testFindFilesSuccess_symlink() 429 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile() 446 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile_sameDirName() 463 assertEquals(subDir.getAbsolutePath(), res.getAbsolutePath()); in testFindFile_directory()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 59 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_same() 70 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_modified() 86 setter.setOptionValue("json-key-store-file", mJsonFile.getAbsolutePath()); in testLoadKeyStore_null()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | SandboxConfigDumpTest.java | 57 new String[] {DumpCmd.FULL_XML.toString(), mOutputFile.getAbsolutePath(), "empty"}; in testParseCommandLine() 77 DumpCmd.NON_VERSIONED_CONFIG.toString(), mOutputFile.getAbsolutePath(), "empty" in testParseCommandLine_filtered() 98 DumpCmd.RUN_CONFIG.toString(), mOutputFile.getAbsolutePath(), "empty" in testParseCommandLine_run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | JacocoCodeCoverageTestTest.java | 121 "ant", "-verbose", "-f", tempBuildXml.getAbsolutePath() in testGenerateCoverageReport_success() 209 + new File("hello.exec").getAbsolutePath() + "\" />\n"; in testGetFileTags() 236 expectedContent.append(new File("jacocoant.jar").getAbsolutePath()); in testGetBuildXml() 247 expectedContent.append(new File("hello.exec").getAbsolutePath()); in testGetBuildXml() 255 expectedContent.append(new File("hello-allclasses.jar").getAbsolutePath()); in testGetBuildXml() 258 expectedContent.append(new File("hi-allclasses.jar").getAbsolutePath()); in testGetBuildXml() 265 expectedContent.append(new File("report.xml").getAbsolutePath()); in testGetBuildXml()
|
/tools/tradefederation/core/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactory.java | 51 CLog.d("Keystore initialized with %s", mJsonFile.getAbsolutePath()); in createKeyStoreClient() 56 mJsonFile.getAbsolutePath()); in createKeyStoreClient()
|
/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() 377 CLog.w("Hprof file %s was not found. Skipping parsing.", hprofFile.getAbsolutePath()); in logHprofResults()
|