Home
last modified time | relevance | path

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

12

/frameworks/base/libs/androidfw/
DIdmap.cpp241 std::unique_ptr<ResStringPool>&& string_pool, in LoadedIdmap() argument
249 string_pool_(std::move(string_pool)), in LoadedIdmap()
311 std::optional<std::string_view> string_pool = ReadString(&data_ptr, &data_size, "string pool"); in Load() local
312 if (!string_pool) { in Load()
316 if (!string_pool->empty()) { in Load()
317 const status_t err = idmap_string_pool->setTo(string_pool->data(), string_pool->size()); in Load()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp66 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
72 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
85 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
94 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
154 StringPool* ResourceTableBuilder::string_pool() { in string_pool() function in aapt::test::ResourceTableBuilder
155 return &table_->string_pool; in string_pool()
DBuilders.h78 StringPool* string_pool();
/frameworks/base/tools/aapt2/link/
DReferenceLinker.h35 StringPool* string_pool, ResourceTable* table, in ReferenceLinkerTransformer() argument
37 : CloningValueTransformer(string_pool), in ReferenceLinkerTransformer()
DTableMerger.cpp282 dst_config_value, src_config_value.get(), &main_table_->string_pool); in DoMerge()
295 CloningValueTransformer cloner(&main_table_->string_pool); in DoMerge()
330 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
338 CloningValueTransformer cloner(&main_table_->string_pool); in CloneAndMangleFile()
346 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
DXmlCompatVersioner.cpp116 out_el->attributes.push_back(CopyAttr(attr, &cloned_doc->string_pool)); in ProcessDoc()
126 &cloned_doc->string_pool); in ProcessDoc()
DAutoVersioner.cpp75 CloningValueTransformer cloner(&table->string_pool); in Consume()
DXmlReferenceLinker.cpp145 XmlVisitor visitor(resource->file.source, &resource->string_pool, callsite, context, table_, in Consume()
DReferenceLinker_test.cpp92 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
/frameworks/base/cmds/idmap2/libidmap2/
DPrettyPrintVisitor.cpp71 const ResStringPool string_pool(data.GetStringPoolData().data(), data.GetStringPoolData().size()); in visit() local
101 auto str = string_pool.stringAt(target_entry.value.data_value - string_pool_offset); in visit()
DResourceContainer.cpp105 auto string_pool = am->GetStringPoolForCookie(value->cookie); in OpenXmlParser() local
106 auto file = string_pool->string8ObjectAt(value->data); in OpenXmlParser()
234 const auto& string_pool = parser->get_strings(); in CreateResourceMapping() local
235 const uint32_t string_pool_data_length = string_pool.bytes(); in CreateResourceMapping()
243 memcpy(overlay_data.string_pool_data->data.get(), string_pool.data().unsafe_ptr(), in CreateResourceMapping()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp241 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST()
242 util::make_unique<String>(table->string_pool.MakeRef("one"))}; in TEST()
248 expected->values = {util::make_unique<String>(table->string_pool.MakeRef("[žéŕö one]")), in TEST()
249 util::make_unique<String>(table->string_pool.MakeRef("[öñé one]"))}; in TEST()
271 util::make_unique<StyledString>(table->string_pool.MakeRef(original_style)); in TEST()
275 auto string = util::make_unique<String>(table->string_pool.MakeRef(original_style.str)); in TEST()
DPseudolocaleGenerator.cpp361 PseudolocalizeIfNeeded(Pseudolocalizer::Method::kAccent, value, &table->string_pool, in Consume()
363 PseudolocalizeIfNeeded(Pseudolocalizer::Method::kBidi, value, &table->string_pool, in Consume()
/frameworks/base/tools/aapt2/cmd/
DCompile_test.cpp220 table->string_pool.Sort(); in AssertTranslations()
223 table->string_pool.strings(); in AssertTranslations()
320 resource_table->string_pool.strings(); in TEST_F()
DDump.cpp277 StringPool::FlattenUtf8(&buffer, table->string_pool, GetDiagnostics()); in Dump()
/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp70 const ResStringPool* string_pool = assets[value.cookie]->GetLoadedArsc()->GetStringPool(); in GetStringFromApkAssets() local
71 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/libs/androidfw/include/androidfw/
DIdmap.h211 std::unique_ptr<ResStringPool>&& string_pool,
/frameworks/base/core/proto/android/server/
Dnotificationhistory.proto88 optional StringPool string_pool = 1; field
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp707 table->string_pool.Prune(); in Consume()
708 table->string_pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Consume()
724 StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool, in Consume()
DBinaryResourceParser.cpp156 table_->string_pool.HintWillAdd(value_pool_.size(), value_pool_.styleCount()); in ParseTable()
560 name.type.type, config, value_pool_, value, &table_->string_pool); in ParseValue()
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp232 CloningValueTransformer cloner(&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()
377 CloningValueTransformer cloner(&cloned->string_pool); in Clone()
/frameworks/base/tools/aapt2/
DResourceTable.h333 StringPool string_pool; variable

12