Home
last modified time | relevance | path

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

12

/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/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 …]
DCameraTestBase.java360 File outputFile = null; in stopDumping() local
365 outputFile = mMeminfoTimer.getOutputFile(); in stopDumping()
366 outputSource = new FileInputStreamSource(outputFile, true /* delete */); in stopDumping()
376 outputFile = mThreadTrackerTimer.getOutputFile(); in stopDumping()
377 outputSource = new FileInputStreamSource(outputFile, true /* delete */); in stopDumping()
522 void dumpMeminfo(String command, File outputFile) { in dumpMeminfo() argument
528 printMeminfo(outputFile, receiver.getOutput()); in dumpMeminfo()
535 void printMeminfo(File outputFile, String meminfo) { in printMeminfo() argument
552 writer = new BufferedWriter(new FileWriter(outputFile, true)); in printMeminfo()
582 CLog.w("Failed to print meminfo to %s:", outputFile.getAbsolutePath()); in printMeminfo()
[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()
DCamera2FrameworkStressTest.java114 File outputFile = FileUtil.createTempFile("fwk-stress", ".txt"); in parseLog() local
116 getDevice().pullFile(resultFilePath, outputFile); in parseLog()
117 if (outputFile == null) { in parseLog()
123 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog()
DCamera2StressTest.java146 File outputFile = FileUtil.createTempFile("stress", ".txt"); in parseLog() local
147 getDevice().pullFile(RESULT_FILE, outputFile); in parseLog()
148 if (outputFile == null) { in parseLog()
152 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/tradefederation/core/src/com/android/tradefed/util/
DTarUtil.java89 final File outputFile = new File(outputDir, entry.getName()); in unTar() local
92 outputFile.getAbsolutePath())); in unTar()
93 if (!outputFile.exists()) { in unTar()
95 outputFile.getAbsolutePath())); in unTar()
96 if (!outputFile.mkdirs()) { in unTar()
99 outputFile.getAbsolutePath())); in unTar()
103 CLog.i(String.format("Creating output file %s.", outputFile.getAbsolutePath())); in unTar()
104 final File parent = outputFile.getParentFile(); in unTar()
113 final OutputStream outputFileStream = new FileOutputStream(outputFile); in unTar()
117 untaredFiles.add(outputFile); in unTar()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DConvertTest.kt36 outputFile = in Test conversion flag()
70 outputFile = in Test conversion flag()
133 outputFile = in Test convert new with compat mode and api strip()
270 outputFile = in Test convert new without compat mode and no strip()
426 outputFile = in Test convert nothing new()
452 outputFile = in Test doclava compat()
559 outputFile = in Test convert new to v2 without compat mode and no strip()
630 outputFile = in Test convert new to v1 signatures with compat mode and no strip()
688 outputFile = in Test convert v2 to v1()
749 outputFile = in Test convert v1 to v2()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DIonHeapInfoMetricCollector.java48 File outputFile = saveProcessOutput(device, "cat /d/ion/heaps/audio", outputFileName); in collectIonAudio() local
49 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collectIonAudio()
52 Files.getNameWithoutExtension(outputFile.getName()), in collectIonAudio()
66 File outputFile = saveProcessOutput(device, "cat /d/ion/heaps/system", outputFileName); in collectIonSystem() local
67 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collectIonSystem()
70 Files.getNameWithoutExtension(outputFile.getName()), in collectIonSystem()
DTraceMetricCollector.java39 File outputFile = in collect() local
42 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect()
45 Files.getNameWithoutExtension(outputFile.getName()), in collect()
DGraphicsStatsMetricCollector.java40 File outputFile = saveProcessOutput(device, "dumpsys graphicsstats", outputFileName); in collect() local
41 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect()
44 Files.getNameWithoutExtension(outputFile.getName()), in collect()
DBuddyInfoMetricCollector.java40 File outputFile = in collect() local
42 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect()
45 Files.getNameWithoutExtension(outputFile.getName()), in collect()
DPagetypeInfoMetricCollector.java40 File outputFile = saveProcessOutput(device, "cat /proc/pagetypeinfo", outputFileName); in collect() local
41 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect()
44 Files.getNameWithoutExtension(outputFile.getName()), in collect()
DMemInfoMetricCollector.java40 File outputFile = saveProcessOutput(device, "dumpsys meminfo -c -S", outputFileName); in collect() local
41 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect()
44 Files.getNameWithoutExtension(outputFile.getName()), in collect()
DScheduledDeviceMetricCollector.java135 File outputFile = new File(outputFileName); in saveProcessOutput() local
137 FileUtil.writeToFile(output, outputFile); in saveProcessOutput()
139 return outputFile; in saveProcessOutput()
/tools/apksig/src/main/java/com/android/apksig/
DApkSigner.java184 RandomAccessFile outputFile = new RandomAccessFile(mOutputApkFile, "rw"); in sign() local
185 out = outputFile; in sign()
186 outputFile.setLength(0); in sign()
187 outputApkOut = DataSinks.asDataSink(outputFile); in sign()
188 outputApkIn = DataSources.asDataSource(outputFile); in sign()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DFileProtoResultReporter.java108 File outputFile = mOutputFile; in writeProto() local
110 outputFile = new File(mOutputFile.getAbsolutePath() + mIndex); in writeProto()
123 tmpFile.renameTo(outputFile); in writeProto()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt509 val output = convert.outputFile in processNonCodebaseFlags()
512 val apiName = convert.outputFile.nameWithoutExtension.replace(' ', '_') in processNonCodebaseFlags()
989 options.externalAnnotations?.let { outputFile -> in extractAnnotations() method
993 outputFile in extractAnnotations()

12