/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | MultipartForm.java | 131 PrintWriter writer = new PrintWriter(new OutputStreamWriter(byteOutput)); in getContentBody() local 132 writer.println(); in getContentBody() 135 writeFormField(writer, formValue.getKey(), formValue.getValue()); in getContentBody() 139 writeFormFileHeader(writer, mName, mFileName); in getContentBody() 140 writer.flush(); // Must flush here before writing to the byte stream! in getContentBody() 142 writer.println(); in getContentBody() 144 writer.append("--").append(FORM_DATA_BOUNDARY).println("--"); in getContentBody() 145 writer.flush(); in getContentBody() 146 writer.close(); in getContentBody() 150 private void writeFormField(PrintWriter writer, String name, String value) { in writeFormField() argument [all …]
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/ |
D | MetadataReporter.java | 193 try (JsonWriter writer = new JsonWriter(new PrintWriter(metadataFile))) { in tryWriteToFile() argument 194 writer.beginObject(); in tryWriteToFile() 196 writer.name("fingerprint"); in tryWriteToFile() 197 writer.value(buildAttributes.get("cts:build_fingerprint")); in tryWriteToFile() 199 writer.name("product"); in tryWriteToFile() 200 writer.value(buildAttributes.get("cts:build_product")); in tryWriteToFile() 202 writer.name("build_id"); in tryWriteToFile() 203 writer.value(buildAttributes.get("cts:build_id")); in tryWriteToFile() 205 writer.name("suite_version"); in tryWriteToFile() 206 writer.value(compatibilityBuildHelper.getSuiteVersion()); in tryWriteToFile() [all …]
|
/test/mlts/benchmark/src/com/android/nn/benchmark/util/ |
D | CSVWriter.java | 35 private final BufferedWriter writer; field in CSVWriter 38 writer = new BufferedWriter(new FileWriter(csvFile, true)); in CSVWriter() 70 writer.write(benchmarkResult.toCsvLine()); in write() 74 writer.write(deviceInfoCsvLine()); in writeHeader() 75 writer.write(RESULT_FORMAT_COMMENT); in writeHeader() 76 writer.write('\n'); in writeHeader() 82 writer.close(); in close()
|
/test/framework/harnesses/host_controller/command_processor/ |
D | command_sheet.py | 199 writer = csv.writer(csv_file, lineterminator="\n") 201 writer.writerows(extra_rows) 207 writer.writerows((k, attrs.get(k, "")) for k in keys) 211 _WriteComparisonToCsv(src_list, ref_dict, writer) 213 _WriteResultsToCsv(src_list, writer) 216 writer.writerow((_TOO_MANY_DATA,)) 396 def _WriteResultsToCsv(result_list, writer): argument 403 writer.writerow(_TABLE_HEADER) 404 writer.writerows(name + (result,) for name, result in result_list) 407 def _WriteComparisonToCsv(result_list, reference_dict, writer): argument [all …]
|
/test/vti/dashboard/src/main/java/com/android/vts/api/ |
D | TestAcknowledgmentRestServlet.java | 67 PrintWriter writer = response.getWriter(); in doGet() local 68 writer.print(new Gson().toJson(testAcks)); in doGet() 69 writer.flush(); in doGet() 104 PrintWriter writer = response.getWriter(); in doPost() local 105 writer.print(new Gson().toJson(KeyFactory.keyToString(key))); in doPost() 106 writer.flush(); in doPost()
|
D | TestRunRestServlet.java | 129 PrintWriter writer = response.getWriter(); in doGet() local 130 writer.print(new Gson().toJson(details.toJson())); in doGet() 131 writer.flush(); in doGet()
|
D | UserFavoriteRestServlet.java | 185 PrintWriter writer = response.getWriter(); in doPost() local 186 writer.print(new Gson().toJson(returnData)); in doPost() 187 writer.flush(); in doPost()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/app/ |
D | NNScoringTest.java | 76 try (CSVWriter writer = new CSVWriter(getLocalCSVFile())) { in test() argument 77 writer.write(ta.getBenchmark()); in test() 103 try (CSVWriter writer = new CSVWriter(localResults)) { in beforeClass() argument 104 writer.writeHeader(); in beforeClass()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
D | SubPlanTest.java | 82 FileWriter writer = new FileWriter(planFile); in testParsing() local 97 writer.write(xml); in testParsing() 98 writer.flush(); in testParsing() 101 writer.close(); in testParsing()
|
/test/vts/utils/native/testability_checker/ |
D | VtsTestabilityCheckerMain.cpp | 152 Json::FastWriter writer; in main() local 153 std::string json_output = writer.write(root); in main()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
D | CrashReporter.java | 61 try (BufferedWriter writer = new BufferedWriter(new FileWriter(reportFile))) { in upload() argument 62 writer.write(crashes.toString()); in upload()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/ |
D | CollectorUtil.java | 135 try (BufferedWriter writer = new BufferedWriter(new FileWriter(file))) { in writeFile() argument 136 writer.write(jsonString, 0, jsonString.length()); in writeFile()
|
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | ResultHandlerTest.java | 425 FileWriter writer = null; in writeResultDir() local 430 writer = new FileWriter(resultFile); in writeResultDir() 473 writer.write(output); in writeResultDir() 474 writer.flush(); in writeResultDir() 476 if (writer != null) { in writeResultDir() 477 writer.close(); in writeResultDir()
|