Home
last modified time | relevance | path

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

1234

/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp32 StringPiece AnnotationProcessor::ExtractFirstSentence(const StringPiece& comment) { in ExtractFirstSentence() argument
33 Utf8Iterator iter(comment); in ExtractFirstSentence()
39 return comment.substr(0, current_position); in ExtractFirstSentence()
43 return comment; in ExtractFirstSentence()
63 void AnnotationProcessor::AppendCommentLine(std::string comment) { in AppendCommentLine() argument
67 if (comment.find(sDeprecated) != std::string::npos) { in AppendCommentLine()
72 std::string::size_type idx = comment.find(rule.doc_str.data()); in AppendCommentLine()
75 comment.erase(comment.begin() + idx, comment.begin() + idx + rule.doc_str.size()); in AppendCommentLine()
80 const StringPiece trimmed = util::TrimWhitespace(comment); in AppendCommentLine()
86 if (trimmed.size() != comment.size()) { in AppendCommentLine()
[all …]
DAnnotationProcessor.h58 static android::StringPiece ExtractFirstSentence(const android::StringPiece& comment);
62 void AppendComment(const android::StringPiece& comment);
DAnnotationProcessor_test.cpp32 const char* comment = in TEST() local
38 processor.AppendComment(comment); in TEST()
DJavaClassGenerator.cpp372 StringPiece comment = styleable_attr.attr_ref->GetComment(); in ProcessStyleable() local
373 if (styleable_attr.symbol.value().attribute && comment.empty()) { in ProcessStyleable()
374 comment = styleable_attr.symbol.value().attribute->GetComment(); in ProcessStyleable()
377 if (comment.contains("@removed")) { in ProcessStyleable()
395 if (!comment.empty()) { in ProcessStyleable()
397 attr_processor->AppendComment(comment); in ProcessStyleable()
460 processor->AppendComment(entry.visibility.comment); in ProcessResource()
/frameworks/rs/rsov/compiler/spirit/
Dgenerate.py62 for type, var, quantifier, comment in generate_member_list(operands):
87 for type, var, quantifier, comment in generate_member_list(operands):
105 for type, var, quantifier, comment in generate_member_list(operands):
202 comment = operand.get('name');
203 members.append((type, varName, quantifier, comment))
208 for type, var, quant, comment in member_list:
217 for type, var, quantifier, comment in member_list:
218 if comment is not None and comment.find('\n') != -1:
219 member_str += " /* %s\n */\n" % comment
226 if comment is not None and comment.find('\n') == -1:
[all …]
/frameworks/base/cmds/idmap2/libidmap2/
DRawPrintVisitor.cpp96 std::string comment; in print() local
97 base::StringAppendV(&comment, fmt, ap); in print()
100 stream_ << base::StringPrintf("%08zx: %04x", offset_, value) << " " << comment << std::endl; in print()
109 std::string comment; in print() local
110 base::StringAppendV(&comment, fmt, ap); in print()
113 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << std::endl; in print()
122 std::string comment; in print() local
123 base::StringAppendV(&comment, fmt, ap); in print()
126 stream_ << base::StringPrintf("%08zx: ", offset_) << "........ " << comment << ": " << value in print()
/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.java380 private void detailedAssertEquals(String comment, Ranking a, Ranking b) { in detailedAssertEquals() argument
381 assertEquals(comment, a.getKey(), b.getKey()); in detailedAssertEquals()
382 assertEquals(comment, a.getRank(), b.getRank()); in detailedAssertEquals()
383 assertEquals(comment, a.matchesInterruptionFilter(), b.matchesInterruptionFilter()); in detailedAssertEquals()
384 assertEquals(comment, a.getVisibilityOverride(), b.getVisibilityOverride()); in detailedAssertEquals()
385 assertEquals(comment, a.getSuppressedVisualEffects(), b.getSuppressedVisualEffects()); in detailedAssertEquals()
386 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
387 assertEquals(comment, a.getImportanceExplanation(), b.getImportanceExplanation()); in detailedAssertEquals()
388 assertEquals(comment, a.getOverrideGroupKey(), b.getOverrideGroupKey()); in detailedAssertEquals()
389 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.cpp176 const StringPiece& comment) { in VisibilityOfResource() argument
188 if (visibility.comment != comment) { in VisibilityOfResource()
189 return ::testing::AssertionFailure() << "expected visibility comment '" << comment in VisibilityOfResource()
190 << "' but got '" << visibility.comment << "'"; in VisibilityOfResource()
203 visibility.comment = "private"; in TEST()
208 visibility.comment = "undefined"; in TEST()
213 visibility.comment = "public"; in TEST()
218 visibility.comment = "private"; in TEST()
230 allow_new.comment = "first"; in TEST()
235 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST()
[all …]
DResourceParser.cpp104 std::string comment; member
111 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable()
112 if (trimmed_comment.size() != res->comment.size()) { in AddResourcesToTable()
114 res->comment = trimmed_comment.to_string(); in AddResourcesToTable()
121 visibility.comment = res->comment; in AddResourcesToTable()
130 allow_new.comment = res->comment; in AddResourcesToTable()
144 res->value->SetComment(std::move(res->comment)); in AddResourcesToTable()
414 std::string comment; in ParseResources() local
419 comment = parser->comment(); in ParseResources()
441 comment = ""; in ParseResources()
[all …]
DResources.proto134 // The comment associated with the <public> tag.
135 string comment = 3; field
144 // Any comment associated with the declaration.
145 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
383 string comment = 2; field
436 string comment = 2; field
[all …]
/frameworks/av/media/libstagefright/
DMetaDataUtils.cpp310 AMediaFormat *fileMeta, const char *comment, size_t commentLength) { in parseVorbisComment() argument
337 if (!strncasecmp(kMap[j].mTag, comment, tagLen) in parseVorbisComment()
338 && comment[tagLen] == '=') { in parseVorbisComment()
342 &comment[tagLen + 1], in parseVorbisComment()
345 if (!strcasecmp(&comment[tagLen + 1], "true")) { in parseVorbisComment()
351 const int hapticChannelCount = strtol(&comment[tagLen + 1], &end, 10); in parseVorbisComment()
358 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/native/vulkan/api/templates/
Dvk_xml.tmpl14 »<comment
39 </comment>
179 <enums namespace="VK" comment="Misc. hardcoded constants - not an enumerated type">»
226 <require comment="Header boilerplate">»
229 <require comment="API version">»
232 <require comment="API constants">»
241 <require comment="All functions (TODO: split by type)">»
248 «<require comment="Types not directly used by the API">»
282 {{if $d := $e.Docs}} comment="{{$d | JoinWith " "}}"{{end}}/>
299 …ro "EnumName" $ | SplitPascalCase | Upper | JoinWith "_"}}"{{if $.Docs}} comment="{{$.Docs | JoinW…
[all …]
/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/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/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/opt/gamesdk/third_party/protobuf-3.0.0/editors/
DREADME.txt4 See each file's header comment for directions on how to use it with the

1234