Home
last modified time | relevance | path

Searched refs:doc (Results 1 – 19 of 19) sorted by relevance

/tools/doc_generation/
Dswitcher4.py75 def insert_stub(doc, java, both): argument
85 print("File: ", stubs, doc)
87 fn = os.path.split(doc)
98 file_path = doc[len(java_ref_root)+1:]
99 stub = doc.replace(java_source_abs_path, kotlin_source_abs_path)
101 …}\\n{% setvar can_switch %}1{% endsetvar %}\\n{% include \"reference\/_java_switcher2.md\" %}",doc)
103 …= "sed -i 's/<\/h1>/{}/' {}".format("<\/h1>\\n{% include \"reference\/_java_switcher2.md\" %}",doc)
105 file_path = doc[len(kotlin_ref_root)+1:]
106 stub = doc.replace(kotlin_source_abs_path, java_source_abs_path)
108 …\n{% setvar can_switch %}1{% endsetvar %}\\n{% include \"reference\/_kotlin_switcher2.md\" %}",doc)
[all …]
/tools/asuite/atest/bazel/reporter/src/com/android/tradefed/result/
DBazelXmlResultReporter.java177 Document doc = builder.newDocument(); in writeXmlFile() local
178 doc.setXmlStandalone(true); in writeXmlFile()
186 writeTestResult(doc, mTestRunResult); in writeXmlFile()
188 DOMSource source = new DOMSource(doc); in writeXmlFile()
206 private void writeTestResult(Document doc, TestRunResult testRunResult) { in writeTestResult() argument
208 Element testSuites = writeTestSuites(doc, testRunResult); in writeTestResult()
209 doc.appendChild(testSuites); in writeTestResult()
211 Element testSuite = writeTestSuite(doc, testRunResult); in writeTestResult()
221 testSuite.appendChild(writeTestCase(doc, testEntry.getKey(), testEntry.getValue())); in writeTestResult()
225 private Element writeTestSuites(Document doc, TestRunResult testRunResult) { in writeTestSuites() argument
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt228 val doc = in <lambda>() constant
238 if (doc.contains("null") && mentionsNull.matcher(doc).find()) { in <lambda>()
354 val doc = if (from != null && to != null) { in <lambda>() constant
363 appendDocumentation(doc, item, true) in <lambda>()
531 private fun appendDocumentation(doc: String?, item: Item, returnValue: Boolean) { in <lambda>()
532 doc ?: return in <lambda>()
535 is ParameterItem -> item.containingMethod().appendDocumentation(doc, item.name()) in <lambda>()
538 item.appendDocumentation(doc, if (returnValue) "@return" else null) in <lambda>()
539 else -> item.appendDocumentation(doc) in <lambda>()
627 var doc = item.documentation in <lambda>() variable
[all …]
DAndroidApiChecks.kt98 val doc = item.documentation in findDocumentation() constant
99 if (doc.isBlank()) { in findDocumentation()
104 return doc in findDocumentation()
110 begin = doc.indexOf("@return") in findDocumentation()
114 begin = doc.indexOf(tag, begin) in findDocumentation()
122 val c = doc[i] in findDocumentation()
124 if (c == 'm' && doc.startsWith("@param", i - 5, true)) { in findDocumentation()
147 var end = doc.length in findDocumentation()
148 for (i in begin + 1 until doc.length) { in findDocumentation()
149 val c = doc[i] in findDocumentation()
[all …]
DKotlinInteropChecks.kt95 val doc = method.documentation.ifEmpty { method.property?.documentation.orEmpty() } in <lambda>() constant
119 if (!doc.contains(exception.simpleName())) { in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DJavadocTest.kt184 fun `Rewrite relative documentation links in doc-stubs`() { in Rewrite relative documentation links in doc-stubs()
285 fun `Rewrite relative documentation links in doc-stubs 2`() { in Rewrite relative documentation links in doc-stubs 2()
364 fun `Rewrite relative documentation links in doc-stubs 3`() { in Rewrite relative documentation links in doc-stubs 3()
435 fun `Rewrite relative documentation links in doc-stubs but preserve custom link text`() { in Rewrite relative documentation links in doc-stubs but preserve custom link text()
506 fun `Rewrite relative documentation links in doc-stubs 4`() { in Rewrite relative documentation links in doc-stubs 4()
633 fun `Rewrite relative documentation links in doc-stubs 5`() { in Rewrite relative documentation links in doc-stubs 5()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiSourceFileItem.kt177 val doc = item.documentation in getImportStatements() constant
178 if (doc.isNotBlank()) { in getImportStatements()
181 if (docContainsWord(doc, name)) { in getImportStatements()
239 private fun docContainsWord(doc: String, word: String): Boolean { in hashCode()
240 if (!doc.contains(word)) { in hashCode()
249 return regex.find(doc) != null in hashCode()
DJavadoc.kt119 val doc = trimDocIndent(existingDoc) in mergeDocumentation() constant
127 val docComment = factory.createDocCommentFromText(doc) in mergeDocumentation()
138 doc.length - 2 in mergeDocumentation()
140 return insertInto(doc, "@return $newText", offset) in mergeDocumentation()
146 return insertInto(doc, newText, offset) in mergeDocumentation()
166 else -> doc.length - 2 // "*/ in mergeDocumentation()
169 return insertInto(doc, "$tagName $newText", offset) in mergeDocumentation()
175 return insertInto(doc, newText, offset) in mergeDocumentation()
183 } else firstTag?.textRange?.startOffset ?: doc.length - 2 in mergeDocumentation()
185 return insertInto(doc, if (startOffset > 4) "<br>\n$newText" else newText, startOffset) in mergeDocumentation()
/tools/asuite/atest/bazel/rules/
Dcommon_settings.bzl23 doc = "A singleton provider that contains the raw value of a build setting",
44doc = "The list of allowed values for this setting. An error is raised if any other value is given…
47 doc = "A string-typed build setting that can be set on the command line",
56 doc = "A string list-typed build setting that can be set on the command line",
Dsoong_prebuilt.bzl22 doc = "Info about a prebuilt Soong build module",
93 doc = "A rule that imports artifacts prebuilt by Soong into the Bazel workspace",
118 doc = "A rule for targets with no runtime outputs",
Dtradefed_test.bzl123 doc = "A rule used to run host-side deviceless tests using Tradefed",
155 doc = "A rule used to run device tests using Tradefed",
Dtradefed_test_info.bzl18 doc = "Info required by Tradefed rules to run tests",
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/
DGameCoreConfigurationXmlParser.java93 Document doc = db.parse(inputStream); in parse() local
94 doc.getDocumentElement().normalize(); in parse()
97 doc.getDocumentElement(), in parse()
104 parseList(doc.getDocumentElement(), "apk-info", this::createApkInfo); in parse()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt285 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getPermissionLevel() constant
286 var current = getFirstSubTagByName(doc.documentElement, TAG_PERMISSION) in getPermissionLevel()
310 val doc = parseDocument(manifest?.readText(UTF_8) ?: "", true) in getMinSdkVersion() constant
311 val usesSdk = getFirstSubTagByName(doc.documentElement, TAG_USES_SDK) in getMinSdkVersion()
/tools/asuite/atest/bazel/reporter/javatests/com/android/tradefed/result/
DBazelXmlResultReporterTest.java182 Document doc = dBuilder.parse(Files.newInputStream(filePath)); in assertXmlFileContainsTagWithAttribute() local
183 doc.getDocumentElement().normalize(); in assertXmlFileContainsTagWithAttribute()
185 doc.getElementsByTagName(tagName).item(0), attributeName, attributeValue); in assertXmlFileContainsTagWithAttribute()
/tools/metalava/src/test/java/com/android/tools/metalava/
DDocAnalyzerTest.kt855 fun `Add new parameter when no doc exists`() { in Add new parameter when no doc exists()
943 fun `Add new parameter when doc exists but no param doc`() { in Add new parameter when doc exists but no param doc()
/tools/metalava/
DUSAGE.md3 This doc lists out known usages of Metalava with specific features used by each user. The main user…
17 - Java stubs for docs generation (`--doc-stubs`) for passing to documentation tools
/tools/treble/hacksaw/
DREADME.md93 Building hacksaw requires [golang to be installed](https://golang.org/doc/install).
/tools/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsTest.kt1900 fun `Rewrite unknown nullability annotations as doc stubs`() { in <lambda>()