Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 46) 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>()
69 writer.println(">") in <lambda>()
73 writer.println("</api>") in <lambda>()
78 writer.println("<package name=\"${pkg.qualifiedName()}\"\n>") in <lambda>()
82 writer.println("</package>") in <lambda>()
86 writer.print('<') in <lambda>()
[all …]
DSignatureWriter.kt36 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.SignatureWriter
59 writer.print(options.outputFormat.header()) in <lambda>()
64 writer.print("package ") in <lambda>()
66 writer.print("${pkg.qualifiedName()} {\n\n") in <lambda>()
70 writer.print("}\n\n") in <lambda>()
74 writer.print(" ctor ") in <lambda>()
78 writer.print(constructor.containingClass().fullName()) in <lambda>()
81 writer.print(";\n") in <lambda>()
90 writer.print(" ") in <lambda>()
91 writer.print(name) in <lambda>()
[all …]
DProguardWriter.kt32 private val writer: PrintWriter, constant in com.android.tools.metalava.ProguardWriter
44 writer.print("-keep class ") in visitClass()
45 writer.print(cls.qualifiedNameWithDollarInnerClasses()) in visitClass()
46 writer.print(" {\n") in visitClass()
50 writer.print("}\n") in afterVisitClass()
54 writer.print(" ") in visitConstructor()
55 writer.print("<init>") in visitConstructor()
58 writer.print(";\n") in visitConstructor()
62 writer.print(" ") in visitMethod()
66 writer.write(visibilityLevel.sourceCodeModifier + " ") in visitMethod()
[all …]
DDexApiWriter.kt28 private val writer: PrintWriter, constant in com.android.tools.metalava.DexApiWriter
47 writer.print(cls.toType().internalName()) in visitClass()
48 writer.print("\n") in visitClass()
60 writer.print(method.containingClass().toType().internalName()) in visitMethod()
61 writer.print("->") in visitMethod()
62 writer.print(method.internalName()) in visitMethod()
63 writer.print("(") in visitMethod()
65 writer.print(pi.type().internalName()) in visitMethod()
67 writer.print(")") in visitMethod()
69 writer.print("V") in visitMethod()
[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 …]
DBaseline.kt254 fun dumpStats(writer: PrintWriter) { in <lambda>()
262 writer.println("Baseline issue type counts for $description baseline:") in <lambda>()
263 writer.println("" + in <lambda>()
272writer.println(" ${String.format("%5d", count)} ${String.format("%-30s", issue.name)} ${configu… in <lambda>()
275 writer.println("" + in <lambda>()
278 writer.println() in <lambda>()
DSdkFileWriter.kt266 private fun writeClass(writer: BufferedWriter, clazz: ClassItem, prefix: Char) { in writeClass()
267 writer.append(prefix).append(clazz.qualifiedName()) in writeClass()
270 writer.append(' ').append(superClass.qualifiedName()) in writeClass()
273 writer.append('\n') in writeClass()
DDriver.kt188 val writer = options.strictInputViolationsPrintWriter!! in maybeActivateSandbox() constant
204 writer.println("$absolutePath$suffix") in maybeActivateSandbox()
206 Throwable().printStackTrace(writer) in maybeActivateSandbox()
775 class PrintWriterOutputStream(private val writer: PrintWriter) : OutputStream() { constant in com.android.tools.metalava.PrintWriterOutputStream
778 writer.write(String(b, UTF_8)) in write()
786 writer.write(String(b, off, len, UTF_8)) in write()
790 writer.flush() in flush()
794 writer.close() in close()
1107 val writer = PrintWriter(Files.asCharSink(apiFile, UTF_8).openBufferedStream()) in createReportFile() constant
1108 writer.use { printWriter -> in createReportFile()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt40 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.stub.JavaStubWriter
53 writer.println("package $qualifiedName;") in <lambda>()
54 writer.println() in <lambda>()
64 writer.println("import ${item.qualifiedName()}.*;") in <lambda>()
66 writer.println("import ${item.qualifiedName()};") in <lambda>()
68writer.println("import static ${item.containingClass().qualifiedName()}.${item.name()};") in <lambda>()
71 writer.println() in <lambda>()
76 appendDocumentation(cls, writer) in <lambda>()
79 writer.println("@SuppressWarnings({\"unchecked\", \"deprecation\", \"all\"})") in <lambda>()
88 cls.isAnnotationType() -> writer.print("@interface") in <lambda>()
[all …]
DStubWriter.kt144 writer = packageInfoWriter in writePackageInfo()
206 private fun appendDocumentation(item: Item, writer: PrintWriter) { in appendDocumentation()
215 writer.println(trimmed) in appendDocumentation()
216 writer.println() in appendDocumentation()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
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 …]
DModifierList.kt223 writer: Writer, in <lambda>()
264 writer, in <lambda>()
273 writer.write("@Deprecated") in <lambda>()
274 writer.write(if (separateLines) "\n" else " ") in <lambda>()
295 writer.write(visibilityLevel.sourceCodeModifier + " ") in <lambda>()
299 writer.write("default ") in <lambda>()
303 writer.write("static ") in <lambda>()
313 writer.write("final ") in <lambda>()
317 writer.write("sealed ") in <lambda>()
321 writer.write("suspend ") in <lambda>()
[all …]
/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/contrib/src/com/android/media/tests/
DCameraTestBase.java305 BufferedWriter writer = new BufferedWriter(new FileWriter(mOutputFile, false)); in createOutputFile() local
306 writer.write(LOG_HEADER); in createOutputFile()
307 writer.newLine(); in createOutputFile()
308 writer.flush(); in createOutputFile()
309 writer.close(); in createOutputFile()
345 BufferedWriter writer = null; in printMeminfo() local
349 writer = new BufferedWriter(new FileWriter(outputFile, true)); in printMeminfo()
375 writer.write(printMsg); in printMeminfo()
376 writer.newLine(); in printMeminfo()
377 writer.flush(); in printMeminfo()
[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/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/google/power/bt/
DPowerBTcalibrationTest.py67 writer = csv.writer(f)
68 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/cluster/
DSubprocessConfigBuilder.java77 PrintWriter writer = new PrintWriter(f); in build() local
79 serializer.setOutput(writer); in build()
105 writer.close(); in build()
/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()
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java83 XmlWriter writer = new XmlWriter(); in process() local
88 writer.addChange(change); in process()
96 writer.write(outputStream); in process()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dota_sniffer.py359 writer = csv.DictWriter(output_csv,
362 writer.writeheader()
372 writer.writerow(row)

12