Home
last modified time | relevance | path

Searched refs:outputFile (Results 1 – 25 of 43) sorted by relevance

12

/tools/tradefederation/core/src/com/android/tradefed/util/
DTarUtil.java140 final File outputFile = new File(outputDir, entry.getName()); in unTar() local
143 outputFile.getAbsolutePath())); in unTar()
144 if (!outputFile.exists()) { in unTar()
146 outputFile.getAbsolutePath())); in unTar()
147 if (!outputFile.mkdirs()) { in unTar()
150 outputFile.getAbsolutePath())); in unTar()
154 final File parent = outputFile.getParentFile(); in unTar()
167 outputFile.getAbsolutePath(), entry.getLinkName())); in unTar()
168 FileUtil.symlinkFile(new File(entry.getLinkName()), outputFile); in unTar()
170 CLog.i(String.format("Creating file %s.", outputFile.getAbsolutePath())); in unTar()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DVideoEditingMemoryTest.java145 File outputFile = null; in uploadHeapDumpFiles() local
156 outputFile = mTestDevice.pullFile(heapOutputFile.trim()); in uploadHeapDumpFiles()
157 if (outputFile == null) { in uploadHeapDumpFiles()
160 outputSource = new FileInputStreamSource(outputFile); in uploadHeapDumpFiles()
163 FileUtil.deleteFile(outputFile); in uploadHeapDumpFiles()
175 File outputFile = null; in logOutputFiles() local
184 outputFile = mTestDevice.pullFileFromExternal(resultFile); in logOutputFiles()
186 if (outputFile == null) { in logOutputFiles()
193 outputFile.length(), outputFile)); in logOutputFiles()
194 outputSource = new FileInputStreamSource(outputFile); in logOutputFiles()
[all …]
DMediaMemoryTest.java155 File outputFile = null; in uploadHeapDumpFiles() local
165 outputFile = mTestDevice.pullFile(heapFile.trim()); in uploadHeapDumpFiles()
166 if (outputFile == null) { in uploadHeapDumpFiles()
169 outputSource = new FileInputStreamSource(outputFile); in uploadHeapDumpFiles()
172 FileUtil.deleteFile(outputFile); in uploadHeapDumpFiles()
184 File outputFile = null; in logOutputFiles() local
193 outputFile = mTestDevice.pullFileFromExternal(outputPath); in logOutputFiles()
195 if (outputFile == null) { in logOutputFiles()
201 outputFile.length(), outputFile); in logOutputFiles()
202 outputSource = new FileInputStreamSource(outputFile); in logOutputFiles()
[all …]
DMediaStressTest.java107 File outputFile = null; in logOutputFile() local
110 outputFile = mTestDevice.pullFileFromExternal(OUTPUT_PATH); in logOutputFile()
112 if (outputFile == null) { in logOutputFile()
116 CLog.d("Sending %d byte file %s into the logosphere!", outputFile.length(), outputFile); in logOutputFile()
117 outputSource = new FileInputStreamSource(outputFile); in logOutputFile()
119 parseOutputFile(outputFile, listener); in logOutputFile()
121 FileUtil.deleteFile(outputFile); in logOutputFile()
129 private void parseOutputFile(File outputFile, ITestInvocationListener listener) { in parseOutputFile() argument
140 InputStream dataStream = new FileInputStream(outputFile); in parseOutputFile()
DMediaPlayerStressTest.java129 File outputFile = null; in logOutputFile() local
132 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in logOutputFile()
134 if (outputFile == null) { in logOutputFile()
140 outputFile.length(), outputFile)); in logOutputFile()
141 outputSource = new FileInputStreamSource(outputFile); in logOutputFile()
144 parseOutputFile(new FileInputStream(outputFile), listener); in logOutputFile()
149 FileUtil.deleteFile(outputFile); in logOutputFile()
DVideoEditingPerformanceTest.java170 File outputFile = null; in logOutputFiles() local
173 outputFile = mTestDevice.pullFileFromExternal(OUTPUT_PATH); in logOutputFiles()
175 if (outputFile == null) { in logOutputFiles()
182 outputFile.length(), outputFile)); in logOutputFiles()
183 outputSource = new FileInputStreamSource(outputFile); in logOutputFiles()
187 parseOutputFile(new FileInputStream(outputFile), listener); in logOutputFiles()
192 FileUtil.deleteFile(outputFile); in logOutputFiles()
DCameraLatencyTest.java200 File outputFile = null; in logOutputFile() local
203 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in logOutputFile()
205 if (outputFile == null) { in logOutputFile()
210 CLog.d("Sending %d byte file %s into the logosphere!", outputFile.length(), outputFile); in logOutputFile()
211 outputSource = new FileInputStreamSource(outputFile); in logOutputFile()
216 parseOutputFile(test, new FileInputStream(outputFile), listener); in logOutputFile()
221 FileUtil.deleteFile(outputFile); in logOutputFile()
DCameraStressTest.java235 File outputFile = null; in logOutputFiles() local
238 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in logOutputFiles()
240 if (outputFile == null) { in logOutputFiles()
246 outputFile.length(), outputFile)); in logOutputFiles()
247 outputSource = new FileInputStreamSource(outputFile); in logOutputFiles()
252 parseOutputFile(test, new FileInputStream(outputFile), listener); in logOutputFiles()
256 FileUtil.deleteFile(outputFile); in logOutputFiles()
DCameraTestMetricsCollectionListener.java151 File outputFile = null; in stopDumping() local
156 outputFile = mCameraTestBase.mMeminfoTimer.getOutputFile(); in stopDumping()
157 outputSource = new FileInputStreamSource(outputFile, true /* delete */); in stopDumping()
167 outputFile = mCameraTestBase.mThreadTrackerTimer.getOutputFile(); in stopDumping()
168 outputSource = new FileInputStreamSource(outputFile, true /* delete */); in stopDumping()
DCameraTestBase.java319 void dumpMeminfo(String command, File outputFile) { in dumpMeminfo() argument
325 printMeminfo(outputFile, receiver.getOutput()); in dumpMeminfo()
332 void printMeminfo(File outputFile, String meminfo) { in printMeminfo() argument
349 writer = new BufferedWriter(new FileWriter(outputFile, true)); in printMeminfo()
379 CLog.w("Failed to print meminfo to %s:", outputFile.getAbsolutePath()); in printMeminfo()
490 void dumpThreadCount(String commandFormat, String pid, File outputFile) { in dumpThreadCount() argument
497 BufferedWriter writer = new BufferedWriter(new FileWriter(outputFile, true)); in dumpThreadCount()
DCamera2FrameworkStressTest.java116 File outputFile = FileUtil.createTempFile("fwk-stress", ".txt"); in parseLog() local
118 getDevice().pullFile(resultFilePath, outputFile); in parseLog()
119 if (outputFile == null) { in parseLog()
125 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog()
DCamera2StressTest.java148 File outputFile = FileUtil.createTempFile("stress", ".txt"); in parseLog() local
149 getDevice().pullFile(RESULT_FILE, outputFile); in parseLog()
150 if (outputFile == null) { in parseLog()
154 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog()
DCameraShotToShotLatencyTest.java120 File outputFile = null; in parseOutputFile() local
130 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in parseOutputFile()
131 reader = new BufferedReader(new FileReader(outputFile)); in parseOutputFile()
DCameraSettingsTest.java139 File outputFile = null; in parseOutputFile() local
151 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in parseOutputFile()
152 reader = new BufferedReader(new FileReader(outputFile)); in parseOutputFile()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DGameQualificationFpsCollector.java147 try (BufferedWriter outputFile = new BufferedWriter(new FileWriter(mRawFile, true))) { in processRawData() argument
148 outputFile.write("Vsync: " + raw[0] + "\n"); in processRawData()
149 outputFile.write("Latest Seen: " + mLatestSeen + "\n"); in processRawData()
151 outputFile.write(String.format("%20s", "Desired Present Time") + "\t"); in processRawData()
152 outputFile.write(String.format("%20s", "Actual Present Time") + "\t"); in processRawData()
153 outputFile.write(String.format("%20s", "Frame Ready Time") + "\n"); in processRawData()
165 outputFile.write(String.format("%20d", Long.parseLong(parts[0])) + "\t"); in processRawData()
166 outputFile.write(String.format("%20d", Long.parseLong(parts[1])) + "\t"); in processRawData()
167 outputFile.write(String.format("%20d", Long.parseLong(parts[2])) + "\n"); in processRawData()
174 outputFile.write("\n\n"); in processRawData()
[all …]
/tools/tradefederation/contrib/tests/src/com/android/performance/tests/
DDDBenchmarkTestTest.java64 String outputFile = null; in testBuildDDCommandEmpty() local
76 outputFile, in testBuildDDCommandEmpty()
92 String outputFile = "/dev/null"; in testBuildDDCommandInputOutput() local
104 outputFile, in testBuildDDCommandInputOutput()
120 String outputFile = null; in testBuildDDCommandBlockSize() local
132 outputFile, in testBuildDDCommandBlockSize()
148 String outputFile = null; in testBuildDDCommandFlags() local
160 outputFile, in testBuildDDCommandFlags()
178 String outputFile = null; in testBuildDDCommandConv() local
190 outputFile, in testBuildDDCommandConv()
/tools/metalava/buildSrc/src/main/kotlin/com/android/tools/metalava/buildinfo/
DCreateAggregateLibraryBuildInfoFileTask.kt44 val outputFile = in <lambda>() constant in com.android.tools.metalava.buildinfo.CreateAggregateLibraryBuildInfoFileTask
85 (infoFile.isFile and (infoFile.name != outputFile.name)) and in <lambda>()
96 outputFile.writeText(output.toString(), Charsets.UTF_8) in <lambda>()
97 if (!jsonFileIsValid(outputFile, artifactList)) { in <lambda>()
98 throw RuntimeException("JSON written to $outputFile was invalid.") in <lambda>()
111 task.flatMap { task -> task.outputFile } in Project()
DLibraryBuildInfo.kt52 @get:OutputFile abstract val outputFile: Property<File> in <lambda>() constant in com.android.tools.metalava.buildinfo.CreateLibraryBuildInfoTask
68 outputFile.get().writeText(serializedInfo) in <lambda>()
102 it.outputFile.set( in configureBuildInfoTask()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DFileProtoResultReporter.java118 File outputFile = mOutputFile; in writeProto() local
120 outputFile = new File(mOutputFile.getAbsolutePath() + mIndex); in writeProto()
133 tmpFile.renameTo(outputFile); in writeProto()
146 public void setOutputFile(File outputFile) { in setOutputFile() argument
147 mOutputFile = outputFile; in setOutputFile()
/tools/tradefederation/contrib/src/com/android/performance/
DDDBenchmarkTest.java56 private String outputFile = null; field in DDBenchmarkTest
132 outputFile, in runDDBenchmark()
177 String rmCommand = String.format("rm %s", outputFile); in cleanup()
271 String outputFile, in buildDDCommand() argument
287 if (outputFile != null) { in buildDDCommand()
289 sb.append(outputFile); in buildDDCommand()
/tools/asuite/atest/coverage/com/android/jacocolcov/
DJacocoToLcovConverter.java97 String outputFile = cmd.getOptionValue(OUTPUT_OPTION); in main() local
123 converter.write(Paths.get(outputFile)); in main()
213 void write(final Path outputFile) throws IOException { in write() argument
218 try (BufferedWriter writer = Files.newBufferedWriter(outputFile, StandardCharsets.UTF_8)) { in write()
221 writeLine(writer, "TN:%s", outputFile.getFileName()); in write()
304 log("Coverage data written to %s", outputFile); in write()
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/
DTestDiscoveryInvoker.java179 File outputFile = createOutputFile(); in discoverTestDependencies() local
194 getRunUtil().setEnvVariable(OUTPUT_FILE, outputFile.getAbsolutePath()); in discoverTestDependencies()
223 String result = FileUtil.readStringFromFile(outputFile); in discoverTestDependencies()
270 FileUtil.deleteFile(outputFile); in discoverTestDependencies()
290 File outputFile = createOutputFile(); in discoverTestMappingDependencies() local
350 getRunUtil().setEnvVariable(OUTPUT_FILE, outputFile.getAbsolutePath()); in discoverTestMappingDependencies()
364 String result = FileUtil.readStringFromFile(outputFile); in discoverTestMappingDependencies()
396 FileUtil.deleteFile(outputFile); in discoverTestMappingDependencies()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiGenerator.kt42 outputFile: File, in <lambda>()
75 return createApiLevelsXml(outputFile, api, sdkIdentifiers) in <lambda>()
115 outputFile: File, in <lambda>()
130 printer.print(api, outputFile) in <lambda>()
DApiJsonPrinter.kt30 fun print(api: Api, outputFile: File) { in print()
33 val printStream = PrintStream(outputFile) in print()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DClangProfileIndexerTest.java65 File outputFile = folder.newFile(); in testProfileFiles_includesFiles() local
67 mIndexer.index(profileFiles, outputFile); in testProfileFiles_includesFiles()
76 outputFile.getAbsolutePath()); in testProfileFiles_includesFiles()

12