Home
last modified time | relevance | path

Searched refs:string_pool (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/tools/aapt2/test/
DBuilders.cpp73 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
79 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
92 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
101 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
146 StringPool* ResourceTableBuilder::string_pool() { in string_pool() function in aapt::test::ResourceTableBuilder
147 return &table_->string_pool; in string_pool()
DBuilders.h79 StringPool* string_pool();
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp273 src_config_value.get(), &master_table_->string_pool); in DoMerge()
292 new_file_ref = std::unique_ptr<FileReference>(f->Clone(&master_table_->string_pool)); in DoMerge()
301 src_config_value->value->Clone(&master_table_->string_pool)); in DoMerge()
322 util::make_unique<FileReference>(master_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
329 return std::unique_ptr<FileReference>(file_ref.Clone(&master_table_->string_pool)); in CloneAndMangleFile()
336 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
DReferenceLinker.cpp52 StringPool* string_pool, xml::IPackageDeclStack* decl) in ReferenceLinkerVisitor() argument
57 string_pool_(string_pool) {} in ReferenceLinkerVisitor()
389 &table->string_pool, &decl_stack); in Consume()
DXmlCompatVersioner.cpp114 out_el->attributes.push_back(CopyAttr(attr, &cloned_doc->string_pool)); in ProcessDoc()
124 &cloned_doc->string_pool); in ProcessDoc()
DAutoVersioner.cpp131 std::unique_ptr<Style> new_style(style->Clone(&table->string_pool)); in Consume()
DReferenceLinker_test.cpp94 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp242 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST()
243 util::make_unique<String>(table->string_pool.MakeRef("one"))}; in TEST()
247 expected->values = {util::make_unique<String>(table->string_pool.MakeRef("[žéŕö one]")), in TEST()
248 util::make_unique<String>(table->string_pool.MakeRef("[öñé one]"))}; in TEST()
269 util::make_unique<StyledString>(table->string_pool.MakeRef(original_style)); in TEST()
273 auto string = util::make_unique<String>(table->string_pool.MakeRef(original_style.str)); in TEST()
DPseudolocaleGenerator.cpp360 PseudolocalizeIfNeeded(Pseudolocalizer::Method::kAccent, value, &table->string_pool, in Consume()
362 PseudolocalizeIfNeeded(Pseudolocalizer::Method::kBidi, value, &table->string_pool, in Consume()
/frameworks/base/tools/aapt2/optimize/
DResourcePathShortener.cpp107 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in Consume()
/frameworks/base/tools/aapt2/cmd/
DCompile_test.cpp222 table->string_pool.Sort(); in AssertTranslations()
225 table->string_pool.strings(); in AssertTranslations()
DDump.cpp272 StringPool::FlattenUtf8(&buffer, table->string_pool, GetDiagnostics()); in Dump()
DLink.cpp628 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp723 table->string_pool.Prune(); in Consume()
724 table->string_pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Consume()
738 StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool, in Consume()
DBinaryResourceParser.cpp149 table_->string_pool.HintWillAdd(value_pool_.size(), value_pool_.styleCount()); in ParseTable()
519 value, &table_->string_pool); in ParseValue()
DXmlFlattener_test.cpp479 util::make_unique<String>(doc->string_pool.MakeRef("bar")); in TEST_F()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp261 config_value->value->Clone(&split_table->string_pool)); in SplitTable()
/frameworks/base/tools/aapt2/xml/
DXmlDom.h153 StringPool string_pool; variable
DXmlDom.cpp335 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate()
387 cloned_attr.compiled_value.reset(attr.compiled_value->Clone(&cloned->string_pool)); in Clone()
/frameworks/base/tools/aapt2/
DResourceTable.h304 StringPool string_pool; variable
DResourceParser.cpp739 util::make_unique<StyledString>(table_->string_pool.MakeRef( in ParseXml()
768 table_->string_pool.MakeRef(style_string.str, StringPool::Context(config_))); in ParseXml()
781 table_->string_pool.MakeRef(util::TrimWhitespace(raw_value), in ParseXml()
DResourceTable.cpp665 new_value->value.reset(config_value->value->Clone(&new_table->string_pool)); in Clone()
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp64 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
74 util::make_unique<StyledString>(table->string_pool.MakeRef(style_string)), in TEST()
DProtoDeserialize.cpp520 &out_table->string_pool, files, out_error); in DeserializePackageFromPb()
948 if (!DeserializeXmlFromPb(pb_node, resource->root.get(), &resource->string_pool, out_error)) { in DeserializeXmlResourceFromPb()