Home
last modified time | relevance | path

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

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DEocd.java108 private final byte[] comment; field in Eocd
157 comment = new byte[commentSize]; in Eocd()
158 bytes.get(comment); in Eocd()
172 Eocd(int totalRecords, long directoryOffset, long directorySize, @Nonnull byte[] comment) { in Eocd() argument
180 this.comment = comment; in Eocd()
218 return (long) F_COMMENT_SIZE.endOffset() + comment.length; in getEocdSize()
240 byte[] commentCopy = new byte[comment.length]; in getComment()
241 System.arraycopy(comment, 0, commentCopy, 0, comment.length); in getComment()
253 ByteBuffer out = ByteBuffer.allocate(F_COMMENT_SIZE.endOffset() + comment.length); in computeByteRepresentation()
263 F_COMMENT_SIZE.write(out, comment.length); in computeByteRepresentation()
[all …]
DCentralDirectoryHeader.java92 private byte[] comment; field in CentralDirectoryHeader
157 comment = new byte[0]; in CentralDirectoryHeader()
308 return comment; in getComment()
316 void setComment(@Nonnull byte[] comment) { in setComment() argument
317 this.comment = comment; in setComment()
399 cdr.comment = Arrays.copyOf(comment, comment.length); in clone()
DZFile.java2593 public void setEocdComment(@Nonnull byte[] comment) { in setEocdComment() argument
2596 if (comment.length > MAX_EOCD_COMMENT_SIZE) { in setEocdComment()
2599 + comment.length in setEocdComment()
2607 for (int i = 0; i < comment.length - MIN_EOCD_SIZE; i++) { in setEocdComment()
2609 if (comment[i] == EOCD_SIGNATURE[3] in setEocdComment()
2610 && comment[i + 1] == EOCD_SIGNATURE[2] in setEocdComment()
2611 && comment[i + 2] == EOCD_SIGNATURE[1] in setEocdComment()
2612 && comment[i + 3] == EOCD_SIGNATURE[0]) { in setEocdComment()
2614 ByteBuffer bytes = ByteBuffer.wrap(comment, i, comment.length - i); in setEocdComment()
2628 eocdComment = new byte[comment.length]; in setEocdComment()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiCompilationUnit.kt53 var comment: String? = null in getHeaderComments() variable
56 comment = if (comment != null) { in getHeaderComments()
57 comment + "\n" + text in getHeaderComments()
62 return comment in getHeaderComments()
71 var comment: String? = null in getHeaderComments() variable
75 comment = if (comment != null) { in getHeaderComments()
76 comment + "\n" + text in getHeaderComments()
85 return comment in getHeaderComments()
DPsiItem.kt128 override fun appendDocumentation(comment: String, tagSection: String?, append: Boolean) { in appendDocumentation()
129 if (comment.isBlank()) { in appendDocumentation()
142 target.appendDocumentation(comment, parameterName) in appendDocumentation()
162 documentation = addUniqueTag(documentation, tagSection, comment) in appendDocumentation()
166 … documentation = mergeDocumentation(documentation, element, comment.trim(), tagSection, append) in appendDocumentation()
DJavadoc.kt280 val comment = body.lines().joinToString(separator = "\n") { " * $it" }.replace("*/", "&#42;/") in packageHtmlToJavadoc() constant
282 return "/**\n$comment\n */\n" in packageHtmlToJavadoc()
554 val comment = in toFullyQualifiedDocumentation() constant
566 expand(owner, comment, sb) in toFullyQualifiedDocumentation()
DPsiBasedCodebase.kt163 … val comment = PsiTreeUtil.getPrevSiblingOfType(packageStatement, PsiDocComment::class.java) in <lambda>() constant
164 if (comment != null) { in <lambda>()
165 val text = comment.text in <lambda>()
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java207 String comment = in createChange() local
209 if (comment != null) { in createChange()
210 comment = HIDE_TAG_MATCHER.matcher(comment).replaceAll(""); in createChange()
211 comment = JAVADOC_SANITIZER.matcher(comment).replaceAll(""); in createChange()
212 comment = comment.replaceAll("\\n", " "); in createChange()
213 builder.description(comment.trim()); in createChange()
/tools/repohooks/tools/
Dcheckpatch.pl1067 my $comment = "";
1072 $comment = $3 if defined $3;
1075 $comment = $2 if defined $2;
1078 $comment = $2 if defined $2;
1092 $comment = "";
1106 return ($name, $address, $comment);
2561 my ($email_name, $email_address, $comment) = parse_email($email);
2572 if ("$dequoted$comment" ne $email &&
2573 "<$email_address>$comment" ne $email &&
2574 "$suggested_email$comment" ne $email) {
[all …]
Dcpplint.py3142 comment = line[commentpos:]
3143 match = _RE_PATTERN_TODO.match(comment)
3166 if (Match(r'//[^ ]*\w', comment) and
3167 not Match(r'(///|//\!)(\s+|$)', comment)):
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java1686 byte[] comment = zf.getEocdComment();
1687 assertArrayEquals(new byte[] { 'f', 'o', 'o' }, comment);
1771 byte[] comment = new byte[] { 1, 3, 4 };
1774 zf.setEocdComment(comment);
1778 assertArrayEquals(comment, zf.getEocdComment());
1783 assertArrayEquals(comment, zf.getEocdComment());
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextItem.kt36 …override fun appendDocumentation(comment: String, tagSection: String?, append: Boolean) = codebase…
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/
Ddescriptor.proto682 // tokens appearing on those lines, will be treated as a single comment.
684 // Only the comment content is provided; comment markers (e.g. //) are
705 // /* Block comment attached
708 // /* Block comment attached to
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/
Dplugin.proto113 // which allows it to be placed in a comment. NAME should be replaced with
132 // indentation matters. In these languages, the insertion point comment
/tools/external/fat32lib/
DAndroid.bp31 // to attach the license to, and including a comment whether the files may be
/tools/apkzlib/
DAndroid.bp35 // to attach the license to, and including a comment whether the files may be
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DItem.kt120 fun appendDocumentation(comment: String, tagSection: String? = null, append: Boolean = true) in isHiddenOrRemoved()
/tools/metalava/src/test/java/com/android/tools/metalava/
DDocAnalyzerTest.kt2172 fun `Trailing comment close`() { in Trailing comment close()
/tools/trebuchet/
DLICENSE185 comment syntax for the file format. We also recommend that a
/tools/test/openhst/
DLICENSE185 comment syntax for the file format. We also recommend that a
/tools/treble/
DLICENSE185 comment syntax for the file format. We also recommend that a
/tools/apksig/
DLICENSE197 comment syntax for the file format. We also recommend that a
/tools/acloud/
DLICENSE185 comment syntax for the file format. We also recommend that a
/tools/metalava/
DFORMAT.md55 New signature files (v2+) generally include a file header comment which states
/tools/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt2140 others, and derivative works that comment on or otherwise explain it