Home
last modified time | relevance | path

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

123

/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp30 StringPiece AnnotationProcessor::ExtractFirstSentence(const StringPiece& comment) { in ExtractFirstSentence() argument
31 Utf8Iterator iter(comment); in ExtractFirstSentence()
37 return comment.substr(0, current_position); in ExtractFirstSentence()
41 return comment; in ExtractFirstSentence()
44 void AnnotationProcessor::AppendCommentLine(std::string& comment) { in AppendCommentLine() argument
48 if (comment.find(sDeprecated) != std::string::npos) { in AppendCommentLine()
52 std::string::size_type idx = comment.find(sSystemApi); in AppendCommentLine()
55 comment.erase(comment.begin() + idx, in AppendCommentLine()
56 comment.begin() + idx + sSystemApi.size()); in AppendCommentLine()
59 if (util::TrimWhitespace(comment).empty()) { in AppendCommentLine()
[all …]
DAnnotationProcessor.h56 static android::StringPiece ExtractFirstSentence(const android::StringPiece& comment);
63 void AppendComment(const android::StringPiece& comment);
DAnnotationProcessor_test.cpp28 const char* comment = in TEST() local
34 processor.AppendComment(comment); in TEST()
DJavaClassGenerator.cpp357 StringPiece comment = styleable_attr.attr_ref->GetComment(); in ProcessStyleable() local
358 if (styleable_attr.symbol.value().attribute && comment.empty()) { in ProcessStyleable()
359 comment = styleable_attr.symbol.value().attribute->GetComment(); in ProcessStyleable()
362 if (comment.contains("@removed")) { in ProcessStyleable()
380 if (!comment.empty()) { in ProcessStyleable()
382 attr_processor->AppendComment(comment); in ProcessStyleable()
441 processor->AppendComment(entry.symbol_status.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/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/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()
2353 String16 comment = symbols->getComment(realClassName); in writeLayoutClasses() local
2356 if (comment.size() > 0) { in writeLayoutClasses()
2357 String8 cmt(comment); in writeLayoutClasses()
2386 String16 comment(sym.comment); in writeLayoutClasses() local
2387 if (comment.size() <= 0) { in writeLayoutClasses()
2388 comment = getAttributeComment(assets, name8); in writeLayoutClasses()
[all …]
DXMLNode.h129 status_t appendComment(const String16& comment);
172 commentData(void *userData, const char *comment);
DZipEntry.cpp113 void ZipEntry::initNew(const char* fileName, const char* comment) in initNew() argument
122 if (comment != NULL) in initNew()
123 mCDE.mFileCommentLength = strlen(comment); in initNew()
133 strcpy((char*) mCDE.mFileComment, comment); in initNew()
/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/
DResourceParser.cpp96 std::string comment; member
103 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable()
104 if (trimmed_comment.size() != res->comment.size()) { in AddResourcesToTable()
106 res->comment = trimmed_comment.to_string(); in AddResourcesToTable()
113 symbol.comment = res->comment; in AddResourcesToTable()
122 res->value->SetComment(std::move(res->comment)); in AddResourcesToTable()
293 std::string comment; in ParseResources() local
298 comment = parser->comment(); in ParseResources()
320 comment = ""; in ParseResources()
327 parsed_resource.comment = std::move(comment); in ParseResources()
[all …]
DResources.proto120 // The comment associated with the <public> tag.
121 optional string comment = 3; field
160 // Any comment associated with the value.
161 optional string comment = 2; field
278 optional string comment = 2; field
330 optional string comment = 2; field
358 optional string comment = 2; field
376 optional string comment = 2; field
404 optional string comment = 2; field
/frameworks/compile/mclinker/include/mcld/LD/
DDiagLDScript.inc3 "%0:%1:%2: error: unterminated comment\n",
4 "%0:%1:%2: error: unterminated comment\n")
/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/base/tools/aapt2/xml/
DXmlDom.cpp119 el->comment = std::move(stack->pending_comment); in StartElementHandler()
174 static void XMLCALL CommentDataHandler(void* user_data, const char* comment) { in CommentDataHandler() argument
182 stack->pending_comment += comment; in CommentDataHandler()
434 el->comment = comment; in Clone()
460 t->comment = comment; in Clone()
DXmlPullParser.cpp109 const std::string& XmlPullParser::comment() const { in comment() function in aapt::xml::XmlPullParser
283 const char* comment) { in CommentDataHandler() argument
288 parser->depth_, comment}); in CommentDataHandler()
/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/flatten/
DXmlFlattener.cpp85 flat_node->comment.index = util::HostToDevice32(-1); in Visit()
110 flat_node->comment.index = util::HostToDevice32(-1); in Visit()
134 flat_end_node->comment.index = util::HostToDevice32(-1); in Visit()
176 flatNode->comment.index = util::HostToDevice32(-1); in WriteNamespace()
/frameworks/av/media/libstagefright/
DOggExtractor.cpp1183 const char *comment = mVc.user_comments[i]; in parseFileMetaData() local
1185 parseVorbisComment(mFileMeta, comment, commentLength); in parseFileMetaData()
1191 const sp<MetaData> &fileMeta, const char *comment, size_t commentLength) in parseVorbisComment() argument
1217 if (!strncasecmp(kMap[j].mTag, comment, tagLen) in parseVorbisComment()
1218 && comment[tagLen] == '=') { in parseVorbisComment()
1222 &comment[tagLen + 1], in parseVorbisComment()
1225 if (!strcasecmp(&comment[tagLen + 1], "true")) { in parseVorbisComment()
1229 fileMeta->setCString(kMap[j].mKey, &comment[tagLen + 1]); in parseVorbisComment()
/frameworks/av/media/libstagefright/include/
DOggExtractor.h63 const sp<MetaData> &fileMeta, const char *comment, size_t commentLength);
/frameworks/compile/slang/
Dslang_rs_reflect_utils.h123 void comment(const std::string& s); // Outputs a multiline comment.

123