Home
last modified time | relevance | path

Searched refs:TrimWhitespace (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/tools/aapt2/
DResourceUtils.cpp158 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseReference()
208 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseAttributeReference()
302 StringPiece trimmed_str = util::TrimWhitespace(str); in ParseXmlAttributeName()
350 const StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseNullOrEmpty()
372 StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseEnumSymbol()
393 if (util::TrimWhitespace(str).empty()) { in TryParseFlagSymbol()
399 StringPiece trimmed_part = util::TrimWhitespace(part); in TryParseFlagSymbol()
435 StringPiece color_str(util::TrimWhitespace(str)); in TryParseColor()
490 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseBool()
510 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseResourceId()
[all …]
DResourceParser.cpp90 StringPiece trimmed_part = util::TrimWhitespace(part); in ParseFormatAttribute()
121 StringPiece trimmed_comment = util::TrimWhitespace(res->comment); in AddResourcesToTable()
439 if (!util::TrimWhitespace(parser->text()).empty()) { in ParseResources()
829 util::TrimWhitespace(xmlsub_tree.raw_value), StringPool::Context(config))); in ParseXml()
830 } else if (util::TrimWhitespace(xmlsub_tree.raw_value).empty()) { in ParseXml()
1011 comment = util::TrimWhitespace(parser->comment()).to_string(); in ParseGroupImpl()
1252 StringPiece trimmed_part = util::TrimWhitespace(part); in ParseOverlayable()
1328 StringPiece min_str = util::TrimWhitespace(maybe_min_str.value()); in ParseAttrImpl()
1345 StringPiece max_str = util::TrimWhitespace(maybe_max_str.value()); in ParseAttrImpl()
1381 comment = util::TrimWhitespace(parser->comment()).to_string(); in ParseAttrImpl()
[all …]
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp93 const StringPiece trimmed = util::TrimWhitespace(comment); in AppendCommentLine()
113 line = util::TrimWhitespace(line); in AppendComment()
DJavaClassGenerator.cpp181 << "<td>" << util::TrimWhitespace(symbol.symbol.GetComment()) in AddAttributeFormatDoc()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp72 using ::aapt::util::TrimWhitespace;
527 config->artifact_format = TrimWhitespace(t->text).to_string(); in ArtifactFormatTagHandler()
569 auto abi = kStringToAbiMap.find(TrimWhitespace(t->text).to_string()); in AbiGroupTagHandler()
631 const android::StringPiece& text = TrimWhitespace(t->text); in ScreenDensityGroupTagHandler()
698 const android::StringPiece& text = TrimWhitespace(t->text); in LocaleGroupTagHandler()
813 result.texture_paths.push_back(TrimWhitespace(t->text).to_string()); in GlTextureGroupTagHandler()
850 group.push_back(TrimWhitespace(t->text).to_string()); in DeviceFeatureGroupTagHandler()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp313 return StringPiece(util::TrimWhitespace(iter->value)); in FindAttribute()
322 StringPiece trimmed = util::TrimWhitespace(iter->value); in FindNonEmptyAttribute()
/frameworks/base/tools/aapt2/util/
DFiles.cpp255 line = util::TrimWhitespace(line); in AppendArgsFromFile()
274 line = util::TrimWhitespace(line); in AppendSetArgsFromFile()
DUtil_test.cpp42 const StringPiece trimmed = util::TrimWhitespace("\n "); in TEST()
DUtil.h71 android::StringPiece TrimWhitespace(const android::StringPiece& str);
DUtil.cpp113 StringPiece TrimWhitespace(const StringPiece& str) { in TrimWhitespace() function
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp141 if (!util::TrimWhitespace(t->text).empty()) { in Consume()
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener.cpp82 std::string text = util::TrimWhitespace(node->text).to_string(); in Visit()
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp307 line = util::TrimWhitespace(line); in ParseConfig()
DLink.cpp720 line = util::TrimWhitespace(line); in LoadStableIdMap()
733 util::TrimWhitespace(line.substr(0, std::distance(line.begin(), iter))); in LoadStableIdMap()
742 StringPiece res_id_str = util::TrimWhitespace(line.substr(res_id_start_idx, res_id_str_len)); in LoadStableIdMap()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp776 if (options.remove_empty_text_nodes && util::TrimWhitespace(text_el->text).empty()) { in SerializeXmlToPb()