Home
last modified time | relevance | path

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

1234

/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp33 StringPiece AnnotationProcessor::ExtractFirstSentence(const StringPiece& comment) { in ExtractFirstSentence() argument
34 Utf8Iterator iter(comment); in ExtractFirstSentence()
40 return comment.substr(0, current_position); in ExtractFirstSentence()
44 return comment; in ExtractFirstSentence()
64 void AnnotationProcessor::AppendCommentLine(std::string comment) { in AppendCommentLine() argument
68 if (comment.find(sDeprecated) != std::string::npos) { in AppendCommentLine()
73 std::string::size_type idx = comment.find(rule.doc_str.data()); in AppendCommentLine()
79 const bool is_match = std::regex_search(comment, match_result, re); in AppendCommentLine()
83 comment.erase(comment.begin() + match_result.position(), in AppendCommentLine()
84 comment.begin() + match_result.position() + match_result.length()); in AppendCommentLine()
[all …]
DAnnotationProcessor.h59 static android::StringPiece ExtractFirstSentence(const android::StringPiece& comment);
63 void AppendComment(const android::StringPiece& comment);
DAnnotationProcessor_test.cpp32 const char* comment = in TEST() local
38 processor.AppendComment(comment); in TEST()
DJavaClassGenerator.cpp395 StringPiece comment = styleable_attr.attr_ref->GetComment(); in ProcessStyleable() local
396 if (styleable_attr.symbol.value().attribute && comment.empty()) { in ProcessStyleable()
397 comment = styleable_attr.symbol.value().attribute->GetComment(); in ProcessStyleable()
400 if (comment.contains("@removed")) { in ProcessStyleable()
418 if (!comment.empty()) { in ProcessStyleable()
420 attr_processor->AppendComment(comment); in ProcessStyleable()
471 processor->AppendComment(entry.visibility.comment); in ProcessResource()
/frameworks/base/cmds/idmap2/libidmap2/
DRawPrintVisitor.cpp149 std::string comment; in print() local
150 base::StringAppendV(&comment, fmt, ap); in print()
153 stream_ << base::StringPrintf("%08zx: %02x", offset_, value) << " " << comment in print()
162 std::string comment; in print() local
163 base::StringAppendV(&comment, fmt, ap); in print()
166 stream_ << base::StringPrintf("%08zx: %04x", offset_, value) << " " << comment << std::endl; in print()
174 std::string comment; in print() local
175 base::StringAppendV(&comment, fmt, ap); in print()
178 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << std::endl; in print()
186 std::string comment; in print() local
[all …]
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java48 StringBuilder comment = new StringBuilder(); in tokenize() local
68 comment.toString())); in tokenize()
72 comment.toString())); in tokenize()
77 comment.setLength(0); in tokenize()
106 comment.append(c); in tokenize()
112 comment.append(c); in tokenize()
117 comment.append(text.charAt(i + 1)); in tokenize()
121 comment.append(c); in tokenize()
153 comment.toString())); in tokenize()
157 comment.toString())); in tokenize()
DRfc822Token.java33 public Rfc822Token(@Nullable String name, @Nullable String address, @Nullable String comment) { in Rfc822Token() argument
36 mComment = comment; in Rfc822Token()
80 public void setComment(@Nullable String comment) { in setComment() argument
81 mComment = comment; in setComment()
161 public static String quoteComment(String comment) { in quoteComment() argument
162 int len = comment.length(); in quoteComment()
166 char c = comment.charAt(i); in quoteComment()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java429 private void detailedAssertEquals(String comment, Ranking a, Ranking b) { in detailedAssertEquals() argument
430 assertEquals(comment, a.getKey(), b.getKey()); in detailedAssertEquals()
431 assertEquals(comment, a.getRank(), b.getRank()); in detailedAssertEquals()
432 assertEquals(comment, a.matchesInterruptionFilter(), b.matchesInterruptionFilter()); in detailedAssertEquals()
433 … assertEquals(comment, a.getLockscreenVisibilityOverride(), b.getLockscreenVisibilityOverride()); in detailedAssertEquals()
434 assertEquals(comment, a.getSuppressedVisualEffects(), b.getSuppressedVisualEffects()); in detailedAssertEquals()
435 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
436 assertEquals(comment, a.getImportanceExplanation(), b.getImportanceExplanation()); in detailedAssertEquals()
437 assertEquals(comment, a.getOverrideGroupKey(), b.getOverrideGroupKey()); in detailedAssertEquals()
438 assertEquals(comment, a.getChannel(), b.getChannel()); in detailedAssertEquals()
[all …]
/frameworks/base/tools/aapt/
DAaptAssets.h321 , isJavaSymbol(o.isJavaSymbol), comment(o.comment), typeComment(o.typeComment) in AaptSymbolEntry()
330 comment = o.comment;
344 String16 comment; variable
409 void appendComment(const String8& name, const String16& comment, const SourcePos& pos) { in appendComment() argument
410 if (comment.size() <= 0) { in appendComment()
414 if (sym.comment.size() == 0) { in appendComment()
415 sym.comment = comment; in appendComment()
417 sym.comment.append(String16("\n")); in appendComment()
418 sym.comment.append(comment); in appendComment()
422 void appendTypeComment(const String8& name, const String16& comment) { in appendTypeComment() argument
[all …]
DResourceTable.h191 const String16& comment,
197 const String16& comment);
418 void appendComment(const String16& comment, bool onlyIfEmpty = false);
421 void appendTypeComment(const String16& comment);
460 comment(_comment), ident(_ident) { } in Public()
462 comment(o.comment), ident(o.ident) { } in Public()
467 comment = o.comment;
473 String16 comment; variable
590 const String16& comment,
DResource.cpp182 void preprocessComment(String8& comment) { in preprocessComment() argument
183 if (comment.size() > 0) { in preprocessComment()
184 if (comment.contains("@deprecated")) { in preprocessComment()
187 if (comment.removeAll("@SystemApi")) { in preprocessComment()
2385 String16 comment = symbols->getComment(realClassName); in writeLayoutClasses() local
2388 if (comment.size() > 0) { in writeLayoutClasses()
2389 String8 cmt(comment); in writeLayoutClasses()
2418 String16 comment(sym.comment); in writeLayoutClasses() local
2419 if (comment.size() <= 0) { in writeLayoutClasses()
2420 comment = getAttributeComment(assets, name8); in writeLayoutClasses()
[all …]
/frameworks/rs/
Dspec.l3 %x comment
51 "/*" BEGIN(comment);
52 <comment>[^*\n]* /* eat anything that's not a '*' */
53 <comment>"*"+[^*/\n]* /* eat up '*'s not followed by '/'s */
54 <comment>\n ++num_lines;
55 <comment>"*"+"/" BEGIN(INITIAL);
/frameworks/base/packages/SystemUI/scripts/token_alignment/helpers/
DDOMFuncs.ts26 comment?: string; property
48 const { attrs, comment, content, tagName } = tagOptions; constant
50 if (comment) {
51 const commentNode = doc.createComment(comment);
178 const { comment, attrs, content } = updateOptions; constant
180 if (comment) {
183 commentNode.textContent = comment;
277 case 8: // comment
/frameworks/base/tools/aapt2/
DResourceTable_test.cpp189 const StringPiece& comment) { in VisibilityOfResource() argument
201 if (visibility.comment != comment) { in VisibilityOfResource()
202 return ::testing::AssertionFailure() << "expected visibility comment '" << comment in VisibilityOfResource()
203 << "' but got '" << visibility.comment << "'"; in VisibilityOfResource()
216 visibility.comment = "private"; in TEST()
222 visibility.comment = "undefined"; in TEST()
228 visibility.comment = "public"; in TEST()
234 visibility.comment = "private"; in TEST()
247 allow_new.comment = "first"; in TEST()
253 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST()
[all …]
DResourceParser.cpp114 std::string comment; member
121 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable()
122 if (trimmed_comment.size() != res->comment.size()) { in AddResourcesToTable()
124 res->comment = trimmed_comment.to_string(); in AddResourcesToTable()
133 visibility.comment = res->comment; in AddResourcesToTable()
144 allow_new.comment = res->comment; in AddResourcesToTable()
154 res->value->SetComment(std::move(res->comment)); in AddResourcesToTable()
429 std::string comment; in ParseResources() local
434 comment = parser->comment(); in ParseResources()
456 comment = ""; in ParseResources()
[all …]
DResources.proto133 // The comment associated with the <public> tag.
134 string comment = 3; field
148 // Any comment associated with the declaration.
149 string comment = 2; field
182 // Any comment associated with the declaration.
183 string comment = 2; field
247 // Any comment associated with the value.
248 string comment = 2; field
414 string comment = 2; field
470 string comment = 2; field
[all …]
/frameworks/av/media/libstagefright/
DMetaDataUtils.cpp309 AMediaFormat *fileMeta, const char *comment, size_t commentLength) { in parseVorbisComment() argument
336 if (!strncasecmp(kMap[j].mTag, comment, tagLen) in parseVorbisComment()
337 && comment[tagLen] == '=') { in parseVorbisComment()
341 &comment[tagLen + 1], in parseVorbisComment()
344 if (!strcasecmp(&comment[tagLen + 1], "true")) { in parseVorbisComment()
350 const int hapticChannelCount = strtol(&comment[tagLen + 1], &end, 10); in parseVorbisComment()
357 AMediaFormat_setString(fileMeta, kMap[j].mKey, &comment[tagLen + 1]); in parseVorbisComment()
/frameworks/compile/mclinker/include/mcld/LD/
DDiagLDScript.inc3 "%0:%1:%2: error: unterminated comment\n",
4 "%0:%1:%2: error: unterminated comment\n")
/frameworks/layoutlib/delegates/src/com/android/tools/layoutlib/java/util/zip/
DZipEntry_Delegate.java28 public ZipEntry_Delegate(String name, String comment, long crc, long compressedSize, long size, in ZipEntry_Delegate() argument
31 setComment(comment); in ZipEntry_Delegate()
/frameworks/base/tools/stringslint/
Dstringslint.py129 comment = last_comment
137 if comment is None:
141 if "do not translate" in comment.text.lower():
153 limit = re.search("CHAR[ _-]LIMIT=(\d+|NONE|none)", comment.text)
156 repr(comment), "<!-- Description of string [CHAR LIMIT=32] -->")
/frameworks/base/packages/SystemUI/scripts/token_alignment/
Dindex.ts43 ? { comment: `${newComment} @hide ` }
45 ? { comment: hidden ? currentComment : `${currentComment} @hide ` }
57 comment: `${newComment} @hide `,
/frameworks/av/media/libaaudio/scripts/
Dmeasure_device_power.py238 comment = ""
247 comment = command[1:].strip() # remove leading '#'
253 finalReport += comment + ", " + command + ", " + formatEnergyData(report) + "\n"
/frameworks/rs/script_api/
DGenerateHeaderFiles.cpp85 const vector<string>& comment, bool addDeprecatedWarning, in writeComment() argument
87 if (briefComment.empty() && comment.size() == 0) { in writeComment()
99 for (size_t ct = 0; ct < comment.size(); ct++) { in writeComment()
100 string s = stripHtml(comment[ct]); in writeComment()
/frameworks/base/core/java/com/android/internal/util/
DXmlSerializerWrapper.java125 public void comment(String text) throws IOException { in comment() method in XmlSerializerWrapper
126 mWrapped.comment(text); in comment()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp100 flat_node->comment.index = util::HostToDevice32(-1); in Visit()
120 flat_node->comment.index = util::HostToDevice32(-1); in Visit()
144 flat_end_node->comment.index = util::HostToDevice32(-1); in Visit()
191 flatNode->comment.index = util::HostToDevice32(-1); in WriteNamespace()

1234