Home
last modified time | relevance | path

Searched refs:documentation (Results 1 – 25 of 68) sorted by relevance

123

/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt40 override var documentation: String, variable
50 override var docOnly = documentation.contains("@doconly")
51 @Suppress("LeakingThis") override var removed = documentation.contains("@removed")
57 documentation.contains('@') && in <lambda>()
58 (documentation.contains("@hide") || in <lambda>()
59 documentation.contains("@pending") || in <lambda>()
61 documentation.contains("@suppress")) || hasHideAnnotation() in <lambda>()
77 if (documentation.isBlank()) { in findTagDocumentation()
84 val docComment = codebase.getComment(documentation) in findTagDocumentation()
153 documentation = addUniqueTag(documentation, tagSection, comment) in appendDocumentation()
[all …]
DPsiPropertyItem.kt36 documentation: String, in <lambda>()
46 documentation = documentation, in <lambda>()
101 val documentation = in <lambda>() constant
107 val modifiers = modifiers(codebase, psiMethod, documentation) in <lambda>()
136 documentation = documentation, in <lambda>()
DPsiMemberItem.kt31 documentation: String,
38 documentation = documentation,
DPsiMethodItem.kt58 documentation: String, in <lambda>()
67 documentation = documentation, in <lambda>()
106 if (documentation == "") return documentation in <lambda>()
107 val comment = codebase.getComment(documentation) in <lambda>()
108 val end = findFirstTag(comment)?.textRange?.startOffset ?: documentation.length in <lambda>()
343 documentation = commentText, in <lambda>()
394 documentation = original.documentation, in <lambda>()
DJavadoc.kt523 fun containsLinkTags(documentation: String): Boolean { in containsLinkTags()
526 index = documentation.indexOf('@', index) in containsLinkTags()
531 !documentation.startsWith("@code", index) && in containsLinkTags()
532 !documentation.startsWith("@literal", index) && in containsLinkTags()
533 !documentation.startsWith("@param", index) && in containsLinkTags()
534 !documentation.startsWith("@deprecated", index) && in containsLinkTags()
535 !documentation.startsWith("@inheritDoc", index) && in containsLinkTags()
536 !documentation.startsWith("@return", index) in containsLinkTags()
551 fun toFullyQualifiedDocumentation(owner: PsiItem, documentation: String): String { in toFullyQualifiedDocumentation()
552 if (documentation.isBlank() || !containsLinkTags(documentation)) { in toFullyQualifiedDocumentation()
[all …]
DPsiPackageItem.kt31 documentation: String,
39 documentation = documentation,
145 documentation = commentText, in hashCode()
DPsiConstructorItem.kt42 documentation: String,
53 documentation = documentation,
100 documentation = commentText, in isImplicitConstructor()
133 documentation = "", in isImplicitConstructor()
DPsiFieldItem.kt40 documentation: String,
48 documentation = documentation,
144 documentation = commentText, in create()
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/
DTurbinePackageItem.kt30 documentation: String,
32 ) : TurbineItem(codebase, fileLocation, modifiers, documentation, isInitiallyHidden), PackageItem {
44 documentation: String, in create()
55 documentation, in create()
63 fun updateOriginallyHiddenStatus(documentation: String) { in containingClass()
66 documentation.contains("@hide") || in containingClass()
67 documentation.contains("@pending") || in containingClass()
DTurbineItem.kt28 final override var documentation: String, variable
36 override var docOnly: Boolean = documentation.contains("@doconly")
41 documentation.contains("@hide") || in <lambda>()
42 documentation.contains("@pending") || in <lambda>()
DTurbineFieldItem.kt32 documentation: String,
36 TurbineMemberItem(codebase, fileLocation, modifiers, documentation, containingClass),
65 documentation, in hashCode()
DTurbineMemberItem.kt28 documentation: String,
30 ) : TurbineItem(codebase, fileLocation, modifiers, documentation), MemberItem {
DTurbineMethodItem.kt39 documentation: String,
42 TurbineMemberItem(codebase, fileLocation, modifiers, documentation, containingClass),
112 documentation, in duplicate()
DTurbineConstructorItem.kt36 documentation: String,
47 documentation,
/tools/metalava/
DUSAGE.md17 - Java stubs for docs generation (`--doc-stubs`) for passing to documentation tools
18 - Documentation stub enhancement (`--enhance-documentation`)
19 - Injecting `added in API level` into documentation stubs (`--apply-api-levels`)
20 - Generating API levels information for documentation and SDK (`--generate-api-levels`)
21 - Documentation rewriting for documentation stubs (`--replace-documentation`) used by libcore
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DJavadocTest.kt85 fun `Relative documentation links in stubs`() { in Relative documentation links in stubs()
266 fun `Rewrite relative documentation links in doc-stubs`() { in Rewrite relative documentation links in doc-stubs()
369 fun `Rewrite relative documentation links in doc-stubs 2`() { in Rewrite relative documentation links in doc-stubs 2()
450 fun `Rewrite relative documentation links in doc-stubs 3`() { in Rewrite relative documentation links in doc-stubs 3()
523 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()
596 fun `Rewrite relative documentation links in doc-stubs 4`() { in Rewrite relative documentation links in doc-stubs 4()
725 fun `Rewrite relative documentation links in doc-stubs 5`() { in Rewrite relative documentation links in doc-stubs 5()
/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/
DPsiPropertyItemTest.kt299 fun `properties have documentation`() { in properties have documentation()
322 assertContains(parameter.documentation, "parameter doc") in properties have documentation()
323 assertContains(body.documentation, "body doc") in properties have documentation()
324 assertContains(accessors.documentation, "accessors property doc") in properties have documentation()
325 assertContains(accessors.getter?.documentation.orEmpty(), "getter doc") in properties have documentation()
326 assertContains(accessors.setter?.documentation.orEmpty(), "setter doc") in properties have documentation()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt237 if (text.isBlank() || item.documentation.contains(text)) { in <lambda>()
264 item.documentation in <lambda>()
610 val documentation = cls.findTagDocumentation(tag) in <lambda>() constant
611 if (documentation != null) { in <lambda>()
612 assert(documentation.startsWith("@$tag")) { documentation } in <lambda>()
616 documentation.startsWith("@returnDoc") -> "@return" in <lambda>()
617 documentation.startsWith("@paramDoc") -> "@param" in <lambda>()
618 documentation.startsWith("@memberDoc") -> null in <lambda>()
623 stripLeadingAsterisks(stripMetaTags(documentation.substring(tag.length + 2))) in <lambda>()
679 var doc = item.documentation in <lambda>()
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/doc/
DDocAnalyzerTest.kt45 fun `Basic documentation generation test`() { in Basic documentation generation test()
372 fun `Merging in documentation snippets from annotation memberDoc and classDoc`() { in Merging in documentation snippets from annotation memberDoc and classDoc()
550 fun `Create method documentation from nothing`() { in Create method documentation from nothing()
634 fun `Add to existing single-line method documentation`() { in Add to existing single-line method documentation()
678 fun `Add to existing multi-line method documentation`() { in Add to existing multi-line method documentation()
780 fun `test documentation trim utility`() { in test documentation trim utility()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DAndroidApiChecks.kt112 val doc = item.documentation in findDocumentation()
185 if (item.documentation.contains("TODO:") || item.documentation.contains("TODO(")) { in checkTodos()
191 val text = method.documentation in checkRequiresPermission()
249 val text = field.documentation in checkIntentAction()
/tools/external_updater/docs/
Ddev.md1 # external_updater developer documentation
3 The documentation on this page is for developers of `external_updater`. If
4 you're looking for user documentation, see the [README.md].
/tools/metalava/metalava/src/test/resources/
Dsource-model-provider-baseline.txt94 Relative documentation links in stubs[turbine]
97 Rewrite relative documentation links in doc-stubs 3[turbine]
98 Rewrite relative documentation links in doc-stubs 4[turbine]
99 Rewrite relative documentation links in doc-stubs but preserve custom link text[turbine]
100 Rewrite relative documentation links in doc-stubs[turbine]
207 Add to existing multi-line method documentation[turbine]
208 Add to existing single-line method documentation[turbine]
212 Basic documentation generation test[turbine]
215 Create method documentation from nothing[turbine]
221 Merging in documentation snippets from annotation memberDoc and classDoc[turbine]
[all …]
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DItem.kt108 var documentation: String in isHiddenOrRemoved() variable
209 fun fullyQualifiedDocumentation(): String = documentation in fullyQualifiedDocumentation()
212 fun fullyQualifiedDocumentation(documentation: String): String = documentation in fullyQualifiedDocumentation()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsPackageInfoTest.kt83 fun `Test package-info documentation in stubs`() { in Test package-info documentation in stubs()
126 fun `Test package-info documentation in doc stubs`() { in Test package-info documentation in doc stubs()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/stub/
DStubWriter.kt100 config.includeDocumentationInStubs && pkg.documentation.isNotBlank() in writePackageInfo()
282 val documentation = item.fullyQualifiedDocumentation() in apiPredicate() constant
283 if (documentation.isNotBlank()) { in apiPredicate()
284 val trimmed = trimDocIndent(documentation) in apiPredicate()

123