Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 49) sorted by relevance

12

/tools/metalava/src/main/java/com/android/tools/metalava/
DJDiffXmlWriter.kt44 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.JDiffXmlWriter
60 writer.print("<api") in <lambda>()
64 writer.print(" name=\"") in <lambda>()
65 writer.print(apiName) in <lambda>()
66 writer.print("\"") in <lambda>()
70 writer.print(" xmlns:metalava=\"http://www.android.com/metalava/\"") in <lambda>()
72 writer.println(">") in <lambda>()
76 writer.println("</api>") in <lambda>()
81 writer.println("<package name=\"${pkg.qualifiedName()}\"\n>") in <lambda>()
85 writer.println("</package>") in <lambda>()
[all …]
DSignatureWriter.kt36 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.SignatureWriter
52 writer.print(options.outputFormat.header()) in <lambda>()
57 writer.print("package ") in <lambda>()
59 writer.print("${pkg.qualifiedName()} {\n\n") in <lambda>()
63 writer.print("}\n\n") in <lambda>()
67 writer.print(" ctor ") in <lambda>()
71 writer.print(constructor.containingClass().fullName()) in <lambda>()
74 writer.print(";\n") in <lambda>()
83 writer.print(" ") in <lambda>()
84 writer.print(name) in <lambda>()
[all …]
DExtractAnnotations.kt126 StringPrintWriter.create().use { writer -> in <lambda>() method
127 writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>") in <lambda>()
134 writer.print(" </item>") in <lambda>()
135 writer.println() in <lambda>()
137 writer.print(" <item name=\"") in <lambda>()
138 writer.print(item.getExternalAnnotationSignature()) in <lambda>()
139 writer.println("\">") in <lambda>()
144 writeAnnotation(writer, item, annotation) in <lambda>()
147 writer.print(" </item>") in <lambda>()
148 writer.println() in <lambda>()
[all …]
DDexApiWriter.kt28 private val writer: PrintWriter, constant in com.android.tools.metalava.DexApiWriter
40 writer.print(cls.toType().internalName()) in visitClass()
41 writer.print("\n") in visitClass()
50 writer.print(method.containingClass().toType().internalName()) in visitMethod()
51 writer.print("->") in visitMethod()
52 writer.print(method.internalName()) in visitMethod()
53 writer.print("(") in visitMethod()
55 writer.print(pi.type().internalName()) in visitMethod()
57 writer.print(")") in visitMethod()
59 writer.print("V") in visitMethod()
[all …]
DDriver.kt199 val writer = options.strictInputViolationsPrintWriter!! in maybeActivateSandbox() constant
215 writer.println("$absolutePath$suffix") in maybeActivateSandbox()
217 Throwable().printStackTrace(writer) in maybeActivateSandbox()
228 private fun repeatErrors(writer: PrintWriter, reporters: List<Reporter>, max: Int) { in repeatErrors()
229 writer.println("Error: $PROGRAM_NAME detected the following problems:") in repeatErrors()
234 var numShown = it.printErrors(writer, remainingCap) in repeatErrors()
239writer.println("${totalErrors - totalShown} more error(s) omitted. Search the log for 'error:' to … in repeatErrors()
741 class PrintWriterOutputStream(private val writer: PrintWriter) : OutputStream() { constant in com.android.tools.metalava.PrintWriterOutputStream
744 writer.write(String(b, UTF_8)) in write()
752 writer.write(String(b, off, len, UTF_8)) in write()
[all …]
DBaseline.kt267 fun dumpStats(writer: PrintWriter) { in <lambda>()
275 writer.println("Baseline issue type counts for $description baseline:") in <lambda>()
276 writer.println("" + in <lambda>()
285writer.println(" ${String.format("%5d", count)} ${String.format("%-30s", issue.name)} ${configu… in <lambda>()
288 writer.println("" + in <lambda>()
291 writer.println() in <lambda>()
DSdkFileWriter.kt264 private fun writeClass(writer: BufferedWriter, clazz: ClassItem, prefix: Char) { in writeClass()
265 writer.append(prefix).append(clazz.qualifiedName()) in writeClass()
268 writer.append(' ').append(superClass.qualifiedName()) in writeClass()
271 writer.append('\n') in writeClass()
DReporter.kt427 fun printErrors(writer: PrintWriter, maxErrors: Int): Int { in printErrors()
434 writer.println(it) in printErrors()
440 fun writeErrorMessage(writer: PrintWriter) { in writeErrorMessage()
442 errorMessage ?. let { writer.write(it) } in writeErrorMessage()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt37 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.stub.JavaStubWriter
50 writer.println("package $qualifiedName;") in <lambda>()
51 writer.println() in <lambda>()
62 writer.println("import ${item.qualifiedName()}.*;") in <lambda>()
64 writer.println("import ${item.qualifiedName()};") in <lambda>()
66 writer.println( in <lambda>()
72 writer.println() in <lambda>()
77 appendDocumentation(cls, writer, docStubs) in <lambda>()
80 writer.println("@SuppressWarnings({\"unchecked\", \"deprecation\", \"all\"})") in <lambda>()
89 cls.isAnnotationType() -> writer.print("@interface") in <lambda>()
[all …]
DKotlinStubWriter.kt35 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.stub.KotlinStubWriter
48 writer.println("package $qualifiedName") in <lambda>()
49 writer.println() in <lambda>()
56 writer.println("import ${item.qualifiedName()}.*") in <lambda>()
58 writer.println("import ${item.qualifiedName()}") in <lambda>()
60writer.println("import static ${item.containingClass().qualifiedName()}.${item.name()}") in <lambda>()
63 writer.println() in <lambda>()
66 appendDocumentation(cls, writer, docStubs) in <lambda>()
68 writer.println("@file:Suppress(\"ALL\")") in <lambda>()
77 cls.isAnnotationType() -> writer.print("annotation class") in <lambda>()
[all …]
DStubWriter.kt139 writer = packageInfoWriter in <lambda>()
243 writer: PrintWriter, in appendDocumentation()
254 writer.println(trimmed) in appendDocumentation()
255 writer.println() in appendDocumentation()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt236 writer: Writer, in <lambda>()
278 writer, in <lambda>()
287 writer.write("@Deprecated") in <lambda>()
288 writer.write(if (separateLines) "\n" else " ") in <lambda>()
309 writer.write(visibilityLevel.javaSourceCodeModifier + " ") in <lambda>()
313 writer.write("default ") in <lambda>()
317 writer.write("static ") in <lambda>()
327 writer.write("final ") in <lambda>()
331 writer.write("sealed ") in <lambda>()
335 writer.write("suspend ") in <lambda>()
[all …]
DFieldItem.kt155 writer: PrintWriter, in <lambda>()
165 writer.print(" = ") in <lambda>()
166 writer.print(value) in <lambda>()
167 writer.print("; // 0x") in <lambda>()
168 writer.print(Integer.toHexString(value)) in <lambda>()
171 writer.print(" = ") in <lambda>()
172 writer.print('"') in <lambda>()
173 writer.print(javaEscapeString(value)) in <lambda>()
174 writer.print('"') in <lambda>()
175 writer.print(";") in <lambda>()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraTestBase.java508 BufferedWriter writer = new BufferedWriter(new FileWriter(mOutputFile, false)); in createOutputFile() local
509 writer.write(LOG_HEADER); in createOutputFile()
510 writer.newLine(); in createOutputFile()
511 writer.flush(); in createOutputFile()
512 writer.close(); in createOutputFile()
548 BufferedWriter writer = null; in printMeminfo() local
552 writer = new BufferedWriter(new FileWriter(outputFile, true)); in printMeminfo()
578 writer.write(printMsg); in printMeminfo()
579 writer.newLine(); in printMeminfo()
580 writer.flush(); in printMeminfo()
[all …]
DAudioLoopbackTestHelper.java536 final PrintWriter writer = new PrintWriter(csvFile, StandardCharsets.UTF_8.name()); in writeAllResultsToCSVFile() local
540 writer.println( in writeAllResultsToCSVFile()
562 writer.println(sb.toString()); in writeAllResultsToCSVFile()
566 writer.close(); in writeAllResultsToCSVFile()
/tools/platform-compat/javatest/android/processor/compat/changeid/
DXmlWriterTest.java36 XmlWriter writer = new XmlWriter(); in testNoChanges() local
37 writer.write(mOutputStream); in testNoChanges()
46 XmlWriter writer = new XmlWriter(); in testOneChange() local
52 writer.addChange(c); in testOneChange()
53 writer.write(mOutputStream); in testOneChange()
64 XmlWriter writer = new XmlWriter(); in testSomeChanges() local
92 writer.addChange(c); in testSomeChanges()
93 writer.addChange(disabled); in testSomeChanges()
94 writer.addChange(sdkRestricted); in testSomeChanges()
95 writer.addChange(both); in testSomeChanges()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTableFormatter.java46 public void displayTable(List<List<String>> table, PrintWriter writer) { in displayTable() argument
54 writer.append(rowData.get(col)); in displayTable()
56 insertPadding(numPaddingChars, writer); in displayTable()
58 writer.println(); in displayTable()
62 private void insertPadding(int numChars, PrintWriter writer) { in insertPadding() argument
64 writer.append(' '); in insertPadding()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DTableFormatterTest.java64 PrintWriter writer = new PrintWriter(outStream); in doDisplayTable() local
65 new TableFormatter().displayTable(testData, writer); in doDisplayTable()
66 writer.flush(); in doDisplayTable()
67 writer.close(); in doDisplayTable()
DStreamUtilTest.java230 Writer writer = new OutputStreamWriter(baos); in testCopyStreamToWriter() local
231 StreamUtil.copyStreamToWriter(bais, writer); in testCopyStreamToWriter()
233 writer.close(); in testCopyStreamToWriter()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java1237 FileWriter writer = null; in saveResourceFile() local
1240 writer = new FileWriter(file); in saveResourceFile()
1241 StreamUtil.copyStreamToWriter(resourceStream, writer); in saveResourceFile()
1248 if (writer != null) { in saveResourceFile()
1249 writer.close(); in saveResourceFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/
DHttpMultipartPostTest.java45 PrintWriter writer = new PrintWriter(new FileOutputStream(mFile)); in setUp() local
46 writer.write("Test data"); in setUp()
47 writer.close(); in setUp()
/tools/test/connectivity/acts_tests/tests/google/power/bt/
DPowerBTcalibrationTest.py70 writer = csv.writer(f)
71 writer.writerows(self.cal_matrix)
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextModifiers.kt84 val writer = StringWriter() in <lambda>() constant
85 ModifierList.write(writer, this, item, target = AnnotationTarget.SDK_STUBS_FILE) in <lambda>()
86 return writer.toString() in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/result/
DTestDescriptionsFile.java137 try (BufferedWriter writer = new BufferedWriter(new FileWriter(testFile), BUFFER_SIZE)) { in populateTestFile() argument
139 writer.write(test.toString()); in populateTestFile()
140 writer.newLine(); in populateTestFile()
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiMonitorService.java100 final PrintWriter writer = new PrintWriter(out); in monitor() local
101 writer.write(String.format("%d,", checkLatency(urlToCheck))); in monitor()
102 writer.flush(); in monitor()

12