Home
last modified time | relevance | path

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

12

/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.cpp282 dst_config_value, src_config_value.get(), &master_table_->string_pool); in DoMerge()
301 new_file_ref = std::unique_ptr<FileReference>(f->Clone(&master_table_->string_pool)); in DoMerge()
310 src_config_value->value->Clone(&master_table_->string_pool)); in DoMerge()
331 util::make_unique<FileReference>(master_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
338 return std::unique_ptr<FileReference>(file_ref.Clone(&master_table_->string_pool)); in CloneAndMangleFile()
345 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
DReferenceLinker.cpp54 StringPool* string_pool, xml::IPackageDeclStack* decl) in ReferenceLinkerVisitor() argument
59 string_pool_(string_pool) {} in ReferenceLinkerVisitor()
416 &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/cmds/idmap2/libidmap2/
DPrettyPrintVisitor.cpp63 const ResStringPool string_pool(data.GetStringPoolData(), in visit() local
77 << string_pool.string8ObjectAt(target_entry.data_value - string_pool_offset).c_str() in visit()
/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/libs/androidfw/
DIdmap.cpp202 ResStringPool* string_pool) in LoadedIdmap() argument
207 string_pool_(string_pool), in LoadedIdmap()
/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp68 const ResStringPool* string_pool = assets[cookie]->GetLoadedArsc()->GetStringPool(); in GetStringFromApkAssets() local
69 return GetStringFromPool(string_pool, value.data); in GetStringFromApkAssets()
/frameworks/base/tools/aapt2/optimize/
DResourcePathShortener.cpp118 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.cpp278 StringPool::FlattenUtf8(&buffer, table->string_pool, GetDiagnostics()); in Dump()
/frameworks/base/libs/androidfw/include/androidfw/
DIdmap.h204 ResStringPool* string_pool);
/frameworks/base/core/proto/android/server/
Dnotificationhistory.proto88 optional StringPool string_pool = 1; field
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp715 table->string_pool.Prune(); in Consume()
716 table->string_pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Consume()
730 StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool, in Consume()
DBinaryResourceParser.cpp149 table_->string_pool.HintWillAdd(value_pool_.size(), value_pool_.styleCount()); in ParseTable()
490 value, &table_->string_pool); in ParseValue()
/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.cpp333 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate()
385 cloned_attr.compiled_value.reset(attr.compiled_value->Clone(&cloned->string_pool)); in Clone()
/frameworks/base/tools/aapt2/
DResourceTable.h278 StringPool string_pool; variable
/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize_test.cpp66 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
76 util::make_unique<StyledString>(table->string_pool.MakeRef(style_string)), in TEST()
DProtoDeserialize.cpp525 &out_table->string_pool, files, out_error); in DeserializePackageFromPb()
956 if (!DeserializeXmlFromPb(pb_node, resource->root.get(), &resource->string_pool, out_error)) { in DeserializeXmlResourceFromPb()

12