Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 35) 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 …]
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.javaSourceCodeModifier + " ") in visitMethod()
[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(method)) in visitMethod()
57 writer.print(")") in visitMethod()
59 writer.print("V") in visitMethod()
[all …]
DExtractAnnotations.kt122 StringPrintWriter.create().use { writer -> in <lambda>() method
123 writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>") in <lambda>()
130 writer.print(" </item>") in <lambda>()
131 writer.println() in <lambda>()
133 writer.print(" <item name=\"") in <lambda>()
134 writer.print(item.getExternalAnnotationSignature()) in <lambda>()
135 writer.println("\">") in <lambda>()
140 writeAnnotation(writer, item, annotation) in <lambda>()
143 writer.print(" </item>") in <lambda>()
144 writer.println() in <lambda>()
[all …]
DSignatureWriter.kt35 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.SignatureWriter
52 writer.print(options.outputFormat.header()) in <lambda>()
60 writer.print(options.outputFormat.header()) in <lambda>()
64 writer.print(text) in <lambda>()
97 … field.writeValueWithSemicolon(writer, allowDefaultValue = false, requireInitialValue = false) in <lambda>()
161 writer = writer, in <lambda>()
DBaseline.kt266 fun dumpStats(writer: PrintWriter) { in <lambda>()
274 writer.println("Baseline issue type counts for $description baseline:") in <lambda>()
275 writer.println( in <lambda>()
286writer.println(" ${String.format("%5d", count)} ${String.format("%-30s", issue.name)} ${configu… in <lambda>()
289 writer.println( in <lambda>()
294 writer.println() in <lambda>()
DSdkFileWriter.kt263 private fun writeClass(writer: BufferedWriter, clazz: ClassItem, prefix: Char) { in writeClass()
264 writer.append(prefix).append(clazz.qualifiedName()) in writeClass()
267 writer.append(' ').append(superClass.qualifiedName()) in writeClass()
270 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()
217 private fun repeatErrors(writer: PrintWriter, reporters: List<Reporter>, max: Int) { in repeatErrors()
218 writer.println("Error: $PROGRAM_NAME detected the following problems:") in repeatErrors()
223 val numShown = it.printErrors(writer, remainingCap) in repeatErrors()
228writer.println("${totalErrors - totalShown} more error(s) omitted. Search the log for 'error:' to … in repeatErrors()
892 val writer = PrintWriter(stringWriter) in createReportFile() constant
893 writer.use { printWriter -> in createReportFile()
DReporter.kt409 fun printErrors(writer: PrintWriter, maxErrors: Int): Int { in printErrors()
416 writer.println(it) in printErrors()
422 fun writeErrorMessage(writer: PrintWriter) { in writeErrorMessage()
424 errorMessage ?. let { writer.write(it) } in writeErrorMessage()
DAnnotationsDiffer.kt119 val writer = PrintWriter(stringWriter) in <lambda>() constant
120 writer.use { printWriter -> in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt36 private val writer: PrintWriter, in <lambda>() constant in com.android.tools.metalava.stub.JavaStubWriter
49 writer.println("package $qualifiedName;") in <lambda>()
50 writer.println() in <lambda>()
60 writer.println("import ${item.qualifiedName()}.*;") in <lambda>()
62 writer.println("import ${item.qualifiedName()};") in <lambda>()
64 writer.println( in <lambda>()
70 writer.println() in <lambda>()
75 appendDocumentation(cls, writer, docStubs) in <lambda>()
78 writer.println("@SuppressWarnings({\"unchecked\", \"deprecation\", \"all\"})") in <lambda>()
87 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>()
55 writer.println("import ${item.qualifiedName()}.*") in <lambda>()
57 writer.println("import ${item.qualifiedName()}") in <lambda>()
59writer.println("import static ${item.containingClass().qualifiedName()}.${item.name()}") in <lambda>()
62 writer.println() in <lambda>()
65 appendDocumentation(cls, writer, docStubs) in <lambda>()
67 writer.println("@file:Suppress(\"ALL\")") in <lambda>()
76 cls.isAnnotationType() -> writer.print("annotation class") in <lambda>()
[all …]
DStubWriter.kt139 writer = packageInfoWriter in <lambda>()
247 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/
DFieldItem.kt159 writer: PrintWriter, in <lambda>()
169 writer.print(" = ") in <lambda>()
170 writer.print(value) in <lambda>()
171 writer.print("; // 0x") in <lambda>()
172 writer.print(Integer.toHexString(value)) in <lambda>()
175 writer.print(" = ") in <lambda>()
176 writer.print('"') in <lambda>()
177 writer.print(javaEscapeString(value)) in <lambda>()
178 writer.print('"') in <lambda>()
179 writer.print(";") in <lambda>()
[all …]
DModifierList.kt266 writer: Writer, in <lambda>()
306 writer, in <lambda>()
332 writer.write("$modifier ") in <lambda>()
346 writer.write("abstract ") in <lambda>()
350 writer.write("default ") in <lambda>()
354 writer.write("static ") in <lambda>()
363 writer.write("final ") in <lambda>()
365 writer.write("open ") in <lambda>()
369 writer.write("sealed ") in <lambda>()
373 writer.write("suspend ") in <lambda>()
[all …]
/tools/test/connectivity/acts/framework/tests/libs/testtracker/
Dtesttracker_results_writer_test.py68 writer = TestTrackerResultsWriter(MOCK_LOG_PATH, MOCK_PROPERTIES)
69 writer._add_property(self.mock_proto, 'bool_prop', False)
76 writer = TestTrackerResultsWriter(MOCK_LOG_PATH, MOCK_PROPERTIES)
77 writer._add_property(self.mock_proto, 'int_prop', 5)
84 writer = TestTrackerResultsWriter(MOCK_LOG_PATH, MOCK_PROPERTIES)
85 writer._add_property(self.mock_proto, 'float_prop', 7.4)
92 writer = TestTrackerResultsWriter(MOCK_LOG_PATH, MOCK_PROPERTIES)
93 writer._add_property(self.mock_proto, 'str_prop', 'ok')
100 writer = TestTrackerResultsWriter(MOCK_LOG_PATH, MOCK_PROPERTIES)
101 result = writer._create_result_proto(self.mock_record)
[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
98 writer.addChange(c); in testSomeChanges()
99 writer.addChange(disabled); in testSomeChanges()
100 writer.addChange(sdkRestricted); in testSomeChanges()
101 writer.addChange(both); in testSomeChanges()
[all …]
/tools/asuite/atest/
Dbazel_mode.py389 writer = IndentWriter(f)
391 writer.write_line(
563 writer = IndentWriter(f)
565 writer.write_line(f'{self._rule_name}(')
567 with writer.indent():
568 writer.write_line(f'name = "{self._name}",')
569 writer.write_line(f'test = "{prebuilt_target_name}",')
571 writer.write_line(')')
666 writer = IndentWriter(f)
668 writer.write_line(f'{self._rule_name()}(')
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextModifiers.kt83 val writer = StringWriter() in <lambda>() constant
84 ModifierList.write(writer, this, item, target = AnnotationTarget.SDK_STUBS_FILE) in <lambda>()
85 return writer.toString() in <lambda>()
/tools/test/connectivity/acts_tests/tests/google/power/bt/
DPowerBTcalibrationTest.py74 writer = csv.writer(f)
75 writer.writerows(self.cal_matrix)
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java85 XmlWriter writer = new XmlWriter(); in process() local
90 writer.addChange(change); in process()
98 writer.write(outputStream); in process()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dota_sniffer.py385 writer = csv.DictWriter(output_csv,
388 writer.writeheader()
398 writer.writerow(row)
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiTypePrinterTest.kt913 val writer = StringWriter() in <lambda>() constant
914 val printWriter = PrintWriter(writer) in <lambda>()
940 return writer.toString().removeSuffix("\n\n") in <lambda>()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dlatency.py159 csv_writer = csv.writer(out_file)
173 csv_writer = csv.writer(out_file)
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py314 writer = TestTrackerResultsWriter(
316 writer.write_results_from_test_signal(

12