/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | JDiffXmlWriter.kt | 44 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 …]
|
D | SignatureWriter.kt | 36 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 …]
|
D | ExtractAnnotations.kt | 126 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 …]
|
D | DexApiWriter.kt | 28 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 …]
|
D | Driver.kt | 199 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() 239 …writer.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 …]
|
D | Baseline.kt | 267 fun dumpStats(writer: PrintWriter) { in <lambda>() 275 writer.println("Baseline issue type counts for $description baseline:") in <lambda>() 276 writer.println("" + in <lambda>() 285 …writer.println(" ${String.format("%5d", count)} ${String.format("%-30s", issue.name)} ${configu… in <lambda>() 288 writer.println("" + in <lambda>() 291 writer.println() in <lambda>()
|
D | SdkFileWriter.kt | 264 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()
|
D | Reporter.kt | 427 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/ |
D | JavaStubWriter.kt | 37 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 …]
|
D | KotlinStubWriter.kt | 35 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>() 60 … writer.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 …]
|
D | StubWriter.kt | 139 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/ |
D | ModifierList.kt | 236 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 …]
|
D | FieldItem.kt | 155 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/ |
D | CameraTestBase.java | 508 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 …]
|
D | AudioLoopbackTestHelper.java | 536 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/ |
D | XmlWriterTest.java | 36 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/ |
D | TableFormatter.java | 46 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/ |
D | TableFormatterTest.java | 64 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()
|
D | StreamUtilTest.java | 230 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/ |
D | FileUtil.java | 1237 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/ |
D | HttpMultipartPostTest.java | 45 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/ |
D | PowerBTcalibrationTest.py | 70 writer = csv.writer(f) 71 writer.writerows(self.cal_matrix)
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextModifiers.kt | 84 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/ |
D | TestDescriptionsFile.java | 137 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/ |
D | WifiMonitorService.java | 100 final PrintWriter writer = new PrintWriter(out); in monitor() local 101 writer.write(String.format("%d,", checkLatency(urlToCheck))); in monitor() 102 writer.flush(); in monitor()
|