/frameworks/base/tools/aapt2/java/ |
D | AnnotationProcessor.cpp | 33 StringPiece AnnotationProcessor::ExtractFirstSentence(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() 67 void AnnotationProcessor::AppendCommentLine(std::string comment, bool add_api_annotations) { in AppendCommentLine() argument 72 if (comment.find(sDeprecated) != std::string::npos) { in AppendCommentLine() 77 std::string::size_type idx = comment.find(rule.doc_str.data()); in AppendCommentLine() 83 const bool is_match = std::regex_search(comment, match_result, re); in AppendCommentLine() 86 comment.erase(comment.begin() + match_result.position(), in AppendCommentLine() 87 comment.begin() + match_result.position() + match_result.length()); in AppendCommentLine() [all …]
|
D | AnnotationProcessor.h | 59 static android::StringPiece ExtractFirstSentence(android::StringPiece comment); 66 void AppendComment(android::StringPiece comment, bool add_api_annotations = true);
|
D | JavaClassGenerator.cpp | 398 StringPiece comment = styleable_attr.attr_ref->GetComment(); in ProcessStyleable() local 399 if (styleable_attr.symbol.value().attribute && comment.empty()) { in ProcessStyleable() 400 comment = styleable_attr.symbol.value().attribute->GetComment(); in ProcessStyleable() 403 if (comment.find("@removed") != std::string::npos) { in ProcessStyleable() 421 if (!comment.empty()) { in ProcessStyleable() 423 attr_processor->AppendComment(comment); in ProcessStyleable() 474 processor->AppendComment(entry.visibility.comment); in ProcessResource()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | RawPrintVisitor.cpp | 159 std::string comment; in print() local 160 base::StringAppendV(&comment, fmt, ap); in print() 163 stream_ << base::StringPrintf("%08zx: %02x", offset_, value) << " " << comment in print() 172 std::string comment; in print() local 173 base::StringAppendV(&comment, fmt, ap); in print() 176 stream_ << base::StringPrintf("%08zx: %04x", offset_, value) << " " << comment << '\n'; in print() 184 std::string comment; in print() local 185 base::StringAppendV(&comment, fmt, ap); in print() 188 stream_ << base::StringPrintf("%08zx: %08x", offset_, value) << " " << comment << '\n'; in print() 196 std::string comment; in print() local [all …]
|
/frameworks/base/core/java/android/text/util/ |
D | Rfc822Tokenizer.java | 48 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()
|
D | Rfc822Token.java | 33 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/errorprone/java/com/google/errorprone/bugpatterns/android/ |
D | HideInCommentsChecker.java | 69 for (Tokens.Comment comment : token.comments()) { in matchCompilationUnit() 73 generateFix(comment).ifPresent(fix -> { in matchCompilationUnit() 84 private static Optional<SuggestedFix> generateFix(Tokens.Comment comment) { in generateFix() argument 85 final String text = comment.getText(); in generateFix() 95 final int pos = comment.getSourcePos(1); in generateFix() 98 final int endPos = comment.getSourcePos(text.length() - 1); in generateFix() 105 .replace(comment.getSourcePos(1), comment.getSourcePos(2), "**") in generateFix()
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | NotificationRankingUpdateTest.java | 367 public void detailedAssertEquals(String comment, NotificationListenerService.Ranking a, in detailedAssertEquals() argument 369 Assert.assertEquals(comment, a.getKey(), b.getKey()); in detailedAssertEquals() 370 Assert.assertEquals(comment, a.getRank(), b.getRank()); in detailedAssertEquals() 371 Assert.assertEquals(comment, a.matchesInterruptionFilter(), b.matchesInterruptionFilter()); in detailedAssertEquals() 372 Assert.assertEquals(comment, a.getLockscreenVisibilityOverride(), in detailedAssertEquals() 374 Assert.assertEquals(comment, a.getSuppressedVisualEffects(), in detailedAssertEquals() 376 Assert.assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals() 377 Assert.assertEquals(comment, a.getImportanceExplanation(), b.getImportanceExplanation()); in detailedAssertEquals() 378 Assert.assertEquals(comment, a.getOverrideGroupKey(), b.getOverrideGroupKey()); in detailedAssertEquals() 379 Assert.assertEquals(comment, a.getChannel().toString(), b.getChannel().toString()); in detailedAssertEquals() [all …]
|
/frameworks/base/tools/aapt/ |
D | AaptAssets.h | 321 , 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 …]
|
D | ResourceTable.h | 191 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,
|
D | Resource.cpp | 185 void preprocessComment(String8& comment) { in preprocessComment() argument 186 if (comment.size() > 0) { in preprocessComment() 187 if (comment.contains("@deprecated")) { in preprocessComment() 190 if (comment.removeAll("@SystemApi")) { in preprocessComment() 2388 String16 comment = symbols->getComment(realClassName); in writeLayoutClasses() local 2391 if (comment.size() > 0) { in writeLayoutClasses() 2392 String8 cmt(comment); in writeLayoutClasses() 2421 String16 comment(sym.comment); in writeLayoutClasses() local 2422 if (comment.size() <= 0) { in writeLayoutClasses() 2423 comment = getAttributeComment(assets, name8); in writeLayoutClasses() [all …]
|
/frameworks/rs/ |
D | spec.l | 3 %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/ |
D | DOMFuncs.ts | 26 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/ |
D | ResourceTable_test.cpp | 190 StringPiece comment) { in VisibilityOfResource() argument 202 if (visibility.comment != comment) { in VisibilityOfResource() 203 return ::testing::AssertionFailure() << "expected visibility comment '" << comment in VisibilityOfResource() 204 << "' but got '" << visibility.comment << "'"; in VisibilityOfResource() 217 visibility.comment = "private"; in TEST() 223 visibility.comment = "undefined"; in TEST() 229 visibility.comment = "public"; in TEST() 235 visibility.comment = "private"; in TEST() 248 allow_new.comment = "first"; in TEST() 254 ASSERT_THAT(result.value().entry->allow_new.value().comment, StrEq("first")); in TEST() [all …]
|
D | ResourceParser.cpp | 114 std::string comment; member 122 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable() 123 if (trimmed_comment.size() != res->comment.size()) { in AddResourcesToTable() 125 res->comment = std::string(trimmed_comment); in AddResourcesToTable() 134 visibility.comment = res->comment; in AddResourcesToTable() 145 allow_new.comment = res->comment; in AddResourcesToTable() 155 res->value->SetComment(std::move(res->comment)); in AddResourcesToTable() 427 std::string comment; in ParseResources() local 432 comment = parser->comment(); in ParseResources() 454 comment = ""; in ParseResources() [all …]
|
D | Resources.proto | 142 // The comment associated with the <public> tag. 143 string comment = 3; field 157 // Any comment associated with the declaration. 158 string comment = 2; field 191 // Any comment associated with the declaration. 192 string comment = 2; field 256 // Any comment associated with the value. 257 string comment = 2; field 423 string comment = 2; field 479 string comment = 2; field [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagLDScript.inc | 3 "%0:%1:%2: error: unterminated comment\n", 4 "%0:%1:%2: error: unterminated comment\n")
|
/frameworks/av/media/module/metadatautils/ |
D | MetaDataUtils.cpp | 480 AMediaFormat *fileMeta, const char *comment, size_t commentLength) { in parseVorbisComment() argument 507 if (!strncasecmp(kMap[j].mTag, comment, tagLen) in parseVorbisComment() 508 && comment[tagLen] == '=') { in parseVorbisComment() 512 &comment[tagLen + 1], in parseVorbisComment() 515 if (!strcasecmp(&comment[tagLen + 1], "true")) { in parseVorbisComment() 521 const int hapticChannelCount = strtol(&comment[tagLen + 1], &end, 10); in parseVorbisComment() 528 AMediaFormat_setString(fileMeta, kMap[j].mKey, &comment[tagLen + 1]); in parseVorbisComment()
|
/frameworks/libs/systemui/monet/tests/com/android/systemui/monet/ |
D | ColorSchemeTest.kt | 153 val comment = in generateDefaultValues() constant 159 resources.createColorEntry("system_${paletteName}_$shade", colorValue, comment) in generateDefaultValues() 227 private fun Element.createColorEntry(name: String, value: Int, comment: String? = null) { in createColorEntry() 230 if (comment != null) { in createColorEntry() 231 this.appendChild(doc.createComment(comment)) in createColorEntry()
|
/frameworks/base/packages/SystemUI/scripts/token_alignment/ |
D | index.ts | 43 ? { comment: `${newComment} @hide ` } 45 ? { comment: hidden ? currentComment : `${currentComment} @hide ` } 57 comment: `${newComment} @hide `,
|
/frameworks/av/media/libaaudio/scripts/ |
D | measure_device_power.py | 238 comment = "" 247 comment = command[1:].strip() # remove leading '#' 253 finalReport += comment + ", " + command + ", " + formatEnergyData(report) + "\n"
|
/frameworks/rs/script_api/ |
D | GenerateHeaderFiles.cpp | 85 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()
|
D | Scanner.cpp | 78 string comment; in getNextEntry() local 79 readRestOfLine(&comment); in getNextEntry()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | XmlSerializerWrapper.java | 126 public void comment(String text) throws IOException { in comment() method in XmlSerializerWrapper 127 mWrapped.comment(text); in comment()
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.cpp | 120 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() 498 el->comment = comment; in Clone() 530 t->comment = comment; in Clone()
|