Home
last modified time | relevance | path

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

123

/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.cpp374 StringPiece comment = styleable_attr.attr_ref->GetComment(); in ProcessStyleable() local
375 if (styleable_attr.symbol.value().attribute && comment.empty()) { in ProcessStyleable()
376 comment = styleable_attr.symbol.value().attribute->GetComment(); in ProcessStyleable()
379 if (comment.contains("@removed")) { in ProcessStyleable()
397 if (!comment.empty()) { in ProcessStyleable()
399 attr_processor->AppendComment(comment); in ProcessStyleable()
462 processor->AppendComment(entry.visibility.comment); in ProcessResource()
/frameworks/base/cmds/idmap2/libidmap2/
DRawPrintVisitor.cpp143 std::string comment; in print() local
144 base::StringAppendV(&comment, fmt, ap); in print()
147 stream_ << base::StringPrintf("%08zx: %02x", offset_, value) << " " << comment in print()
157 std::string comment; in print() local
158 base::StringAppendV(&comment, fmt, ap); in print()
161 stream_ << base::StringPrintf("%08zx: %04x", offset_, value) << " " << comment << std::endl; in print()
170 std::string comment; in print() local
171 base::StringAppendV(&comment, fmt, ap); in print()
174 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << std::endl; in print()
183 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.java416 private void detailedAssertEquals(String comment, Ranking a, Ranking b) { in detailedAssertEquals() argument
417 assertEquals(comment, a.getKey(), b.getKey()); in detailedAssertEquals()
418 assertEquals(comment, a.getRank(), b.getRank()); in detailedAssertEquals()
419 assertEquals(comment, a.matchesInterruptionFilter(), b.matchesInterruptionFilter()); in detailedAssertEquals()
420 assertEquals(comment, a.getVisibilityOverride(), b.getVisibilityOverride()); in detailedAssertEquals()
421 assertEquals(comment, a.getSuppressedVisualEffects(), b.getSuppressedVisualEffects()); in detailedAssertEquals()
422 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
423 assertEquals(comment, a.getImportanceExplanation(), b.getImportanceExplanation()); in detailedAssertEquals()
424 assertEquals(comment, a.getOverrideGroupKey(), b.getOverrideGroupKey()); in detailedAssertEquals()
425 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/tools/aapt2/
DResourceTable_test.cpp178 const StringPiece& comment) { in VisibilityOfResource() argument
190 if (visibility.comment != comment) { in VisibilityOfResource()
191 return ::testing::AssertionFailure() << "expected visibility comment '" << comment in VisibilityOfResource()
192 << "' but got '" << visibility.comment << "'"; in VisibilityOfResource()
205 visibility.comment = "private"; in TEST()
210 visibility.comment = "undefined"; in TEST()
215 visibility.comment = "public"; in TEST()
220 visibility.comment = "private"; in TEST()
232 allow_new.comment = "first"; in TEST()
237 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST()
[all …]
DResourceParser.cpp108 std::string comment; member
115 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable()
116 if (trimmed_comment.size() != res->comment.size()) { in AddResourcesToTable()
118 res->comment = trimmed_comment.to_string(); in AddResourcesToTable()
125 visibility.comment = res->comment; in AddResourcesToTable()
134 allow_new.comment = res->comment; in AddResourcesToTable()
148 res->value->SetComment(std::move(res->comment)); in AddResourcesToTable()
418 std::string comment; in ParseResources() local
423 comment = parser->comment(); in ParseResources()
445 comment = ""; in ParseResources()
[all …]
DResources.proto133 // The comment associated with the <public> tag.
134 string comment = 3; field
143 // Any comment associated with the declaration.
144 string comment = 2; field
176 // Any comment associated with the declaration.
177 string comment = 2; field
232 // Any comment associated with the value.
233 string comment = 2; field
391 string comment = 2; field
447 string comment = 2; field
[all …]
/frameworks/ml/nn/tools/test_generator/
Dexample_generator.py78 comment = var.get(COMMENT_KEY)
79 comment = "" if comment is None else " // %s" % comment
81 agg_init = "{%s\n%s\n}" % (comment,
/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/base/tools/stringslint/
Dstringslint.py131 comment = last_comment
139 if comment is None:
143 if "do not translate" in comment.text.lower():
155 limit = re.search("CHAR[ _-]LIMIT=(\d+|NONE|none)", comment.text)
158 repr(comment), "<!-- Description of string [CHAR LIMIT=32] -->")
/frameworks/ml/nn/tools/api/
DREADME.md44 A line that begins with `%%` is a comment, and is ignored.
46 A line that begins with `%` and is not a comment is a *directive*.
60 A line that begins with `%%` is a comment, and is ignored.
62 A line that begins with `%` and is not a comment is a *directive*.
64 The meaning of a line that is neither a comment nor a directive depends on the
108 `%/define-lines` directive. Every non-comment line in the sequence undergoes
118 non-comment line in the sequence undergoes macro substitution, and the resulting
/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()
DScanner.cpp78 string comment; in getNextEntry() local
79 readRestOfLine(&comment); in getNextEntry()
/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()
/frameworks/base/tools/aapt2/xml/
DXmlDom.cpp120 el->comment = std::move(stack->pending_comment); in StartElementHandler()
175 static void XMLCALL CommentDataHandler(void* user_data, const char* comment) { in CommentDataHandler() argument
183 stack->pending_comment += comment; in CommentDataHandler()
495 el->comment = comment; in Clone()
527 t->comment = comment; in Clone()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMetaDataUtils.h39 AMediaFormat *fileMeta, const char *comment, size_t commentLength);

123