Home
last modified time | relevance | path

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

12

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt38 override var documentation: String variable in com.android.tools.metalava.model.psi.PsiItem
45 override var docOnly = documentation.contains("@doconly")
47 override var removed = documentation.contains("@removed")
73 documentation.contains('@') && in <lambda>()
76 documentation.contains("@hide") || in <lambda>()
77 documentation.contains("@pending") || in <lambda>()
79 documentation.contains("@suppress") in <lambda>()
101 if (documentation.isBlank()) { in isCloned()
108 val docComment = codebase.getComment(documentation) in isCloned()
171 documentation = addUniqueTag(documentation, tagSection, comment) in appendDocumentation()
[all …]
DJavadoc.kt523 fun containsLinkTags(documentation: String): Boolean { in containsLinkTags()
526 index = documentation.indexOf('@', index) in containsLinkTags()
530 if (!documentation.startsWith("@code", index) && in containsLinkTags()
531 !documentation.startsWith("@literal", index) && in containsLinkTags()
532 !documentation.startsWith("@param", index) && in containsLinkTags()
533 !documentation.startsWith("@deprecated", index) && in containsLinkTags()
534 !documentation.startsWith("@inheritDoc", index) && in containsLinkTags()
535 !documentation.startsWith("@return", index) in containsLinkTags()
548 fun toFullyQualifiedDocumentation(owner: PsiItem, documentation: String): String { in toFullyQualifiedDocumentation()
549 if (documentation.isBlank() || !containsLinkTags(documentation)) { in toFullyQualifiedDocumentation()
[all …]
DPsiPropertyItem.kt34 documentation: String,
44 documentation = documentation,
109 val documentation = when (val sourcePsi = getter.sourcePsi) { in toString() constant
113 val modifiers = modifiers(codebase, psiMethod, documentation) in toString()
119 documentation = documentation, in toString()
DPsiMethodItem.kt51 documentation: String, in <lambda>()
58 documentation = documentation, in <lambda>()
103 if (documentation == "") return documentation in <lambda>()
104 val comment = codebase.getComment(documentation) in <lambda>()
105 val end = findFirstTag(comment)?.textRange?.startOffset ?: documentation.length in <lambda>()
404 documentation = commentText, in <lambda>()
423 documentation = original.documentation, in <lambda>()
DPsiPackageItem.kt29 documentation: String,
36 documentation = documentation,
159 documentation = commentText, in isFromClassPath()
172 documentation = original.documentation, in isFromClassPath()
DPsiParameterItem.kt38 documentation: String,
43 documentation = documentation,
220 documentation = commentText, in create()
237 documentation = original.documentation, in create()
DPsiConstructorItem.kt40 documentation: String,
49 documentation = documentation,
126 documentation = commentText, in create()
154 documentation = "", in createDefaultConstructor()
DPsiFieldItem.kt34 documentation: String,
42 documentation = documentation,
133 documentation = commentText, in toString()
DPsiClassItem.kt61 documentation: String, in <lambda>()
68 documentation = documentation, in <lambda>()
361 newMethod.documentation = method.documentation in <lambda>()
453 documentation = commentText, in <lambda>()
DPsiSourceFileItem.kt50 ) : SourceFileItem, PsiItem(codebase, file, PsiModifierItem(codebase), documentation = "") {
177 val doc = item.documentation in getImportStatements()
DPsiModifierItem.kt68 documentation: String? in <lambda>()
76 if (documentation?.contains("@deprecated") == true || in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt213 if (text.isBlank() || item.documentation.contains(text)) { in <lambda>()
236 item.documentation in <lambda>()
549 val documentation = cls.findTagDocumentation(tag) in <lambda>() constant
550 if (documentation != null) { in <lambda>()
551 assert(documentation.startsWith("@$tag")) { documentation } in <lambda>()
554 documentation.startsWith("@returnDoc") -> "@return" in <lambda>()
555 documentation.startsWith("@paramDoc") -> "@param" in <lambda>()
556 documentation.startsWith("@memberDoc") -> null in <lambda>()
560 … val insert = stripLeadingAsterisks(stripMetaTags(documentation.substring(tag.length + 2))) in <lambda>()
627 var doc = item.documentation in <lambda>()
[all …]
DAndroidApiChecks.kt98 val doc = item.documentation in findDocumentation()
171 if (item.documentation.contains("TODO:") || item.documentation.contains("TODO(")) { in checkTodos()
177 val text = method.documentation in checkRequiresPermission()
225 val text = field.documentation in checkIntentAction()
DKotlinInteropChecks.kt95 val doc = method.documentation.ifEmpty { method.property?.documentation.orEmpty() } in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DJavadocTest.kt83 fun `Relative documentation links in stubs`() { in Relative documentation links in stubs()
184 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()
DPsiPropertyItemTest.kt138 fun `properties have documentation`() { in <lambda>()
161 assertContains(parameter.documentation, "parameter doc") in <lambda>()
162 assertContains(body.documentation, "body doc") in <lambda>()
163 assertContains(accessors.documentation, "accessors property doc") in <lambda>()
164 assertContains(accessors.getter?.documentation.orEmpty(), "getter doc") in <lambda>()
165 assertContains(accessors.setter?.documentation.orEmpty(), "setter doc") in <lambda>()
/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
DREADME.md138 * Misc documentation handling; for example, it attempts to fix sentences that
143 …tent/res/AssetManager.java:166: error: Replaced Kitkat with KitKat in documentation for Method and…
144 …interCapabilitiesInfo.java:122: error: Replaced Kitkat with KitKat in documentation for Method and…
152 * Support for generating documentation into the stubs files (so we can run
154 of the source code). This means that the documentation tool itself does not
157 stub sources that include documentation.
277 just one example, the code which generated documentation for typedef constants
449 As mentioned above, metalava generates documentation directly into the stubs
458 This it not how metalava does it; it generates the English documentation
462 generates the documentation is easier to reason about and to update when it's
/tools/metalava/src/test/java/com/android/tools/metalava/
DDocAnalyzerTest.kt13 fun `Basic documentation generation test`() { in Basic documentation generation test()
384 fun `Merging in documentation snippets from annotation memberDoc and classDoc`() { in Merging in documentation snippets from annotation memberDoc and classDoc()
685 fun `Create method documentation from nothing`() { in Create method documentation from nothing()
765 fun `Add to existing single-line method documentation`() { in Add to existing single-line method documentation()
808 fun `Add to existing multi-line method documentation`() { in Add to existing multi-line method documentation()
1156 fun `test documentation trim utility`() { in test documentation trim utility()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DItem.kt95 var documentation: String in isHiddenOrRemoved() variable
220 fun fullyQualifiedDocumentation(): String = documentation in psi()
223 fun fullyQualifiedDocumentation(documentation: String): String = documentation in psi()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DStubWriter.kt119 if (annotations.isNotEmpty() && generateAnnotations || !pkg.documentation.isBlank()) { in <lambda>()
251 val documentation = item.fullyQualifiedDocumentation() in appendDocumentation() constant
252 if (documentation.isNotBlank()) { in appendDocumentation()
253 val trimmed = trimDocIndent(documentation) in appendDocumentation()
/tools/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsTest.kt3458 fun `Test package-info documentation`() { in <lambda>()
3719 fun `Generate stubs with --exclude-documentation-from-stubs`() { in <lambda>()
3765 fun `Generate documentation stubs with --exclude-documentation-from-stubs`() { in <lambda>()
/tools/security/sanitizer-status/
DNOTICE40 including but not limited to software source code, documentation
45 not limited to compiled object code, generated documentation,
126 documentation, if provided along with the Derivative Works; or,
/tools/treble/
DLICENSE28 including but not limited to software source code, documentation
33 not limited to compiled object code, generated documentation,
114 documentation, if provided along with the Derivative Works; or,
/tools/apksig/
DLICENSE40 including but not limited to software source code, documentation
45 not limited to compiled object code, generated documentation,
126 documentation, if provided along with the Derivative Works; or,

12