/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/ |
D | GameQualificationFpsCollector.java | 147 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/ |
D | VideoEditingMemoryTest.java | 145 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 …]
|
D | MediaMemoryTest.java | 155 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 …]
|
D | CameraTestBase.java | 360 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 …]
|
D | MediaStressTest.java | 107 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()
|
D | MediaPlayerStressTest.java | 129 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()
|
D | VideoEditingPerformanceTest.java | 170 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()
|
D | CameraLatencyTest.java | 200 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()
|
D | CameraStressTest.java | 235 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()
|
D | Camera2FrameworkStressTest.java | 114 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()
|
D | Camera2StressTest.java | 146 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()
|
D | CameraShotToShotLatencyTest.java | 120 File outputFile = null; in parseOutputFile() local 130 outputFile = mTestDevice.pullFileFromExternal(mOutputPath); in parseOutputFile() 131 reader = new BufferedReader(new FileReader(outputFile)); in parseOutputFile()
|
D | CameraSettingsTest.java | 139 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/ |
D | TarUtil.java | 89 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/ |
D | ConvertTest.kt | 36 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/ |
D | IonHeapInfoMetricCollector.java | 48 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()
|
D | TraceMetricCollector.java | 39 File outputFile = in collect() local 42 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect() 45 Files.getNameWithoutExtension(outputFile.getName()), in collect()
|
D | GraphicsStatsMetricCollector.java | 40 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()
|
D | BuddyInfoMetricCollector.java | 40 File outputFile = in collect() local 42 try (InputStreamSource source = new FileInputStreamSource(outputFile, true)) { in collect() 45 Files.getNameWithoutExtension(outputFile.getName()), in collect()
|
D | PagetypeInfoMetricCollector.java | 40 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()
|
D | MemInfoMetricCollector.java | 40 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()
|
D | ScheduledDeviceMetricCollector.java | 135 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/ |
D | ApkSigner.java | 184 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/ |
D | FileProtoResultReporter.java | 108 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/ |
D | Driver.kt | 509 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()
|