Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/idmap2/tests/
DFabricatedOverlayTests.cpp78 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST() local
86 string_pool.string8At(entry->value.data_value).value_or("")); in TEST()
111 ASSERT_EQ(std::string("foobar"), string_pool.string8At(entry->value.data_value).value_or("")); in TEST()
168 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST() local
183 ASSERT_EQ(std::string("foobar"), string_pool.string8At(entry->value.data_value).value_or("")); in TEST()
DResourceMappingTests.cpp231 auto string_pool = ResStringPool(string_pool_data.data(), string_pool_data.size(), false); in TEST() local
235 = string_pool.indexOfString(expected_uri.data(), expected_uri.length()).value_or(-1); in TEST()
241 (uint32_t) (string_pool.indexOfString(u"foobar", 6)).value_or(-1))); in TEST()
DIdmapTests.cpp300 auto string_pool = ResStringPool(string_pool_data.data(), string_pool_data.size(), false); in TEST() local
304 = string_pool.indexOfString(expected_uri.data(), expected_uri.length()).value_or(-1); in TEST()
316 (uint32_t) (string_pool.indexOfString(u"foobar", 6)).value_or(-1)); in TEST()
/frameworks/base/libs/androidfw/
DIdmap.cpp267 std::unique_ptr<ResStringPool>&& string_pool, in LoadedIdmap() argument
276 string_pool_(std::move(string_pool)), in LoadedIdmap()
352 std::optional<std::string_view> string_pool = ReadString(&data_ptr, &data_size, "string pool"); in Load() local
353 if (!string_pool) { in Load()
357 if (!string_pool->empty()) { in Load()
358 const status_t err = idmap_string_pool->setTo(string_pool->data(), string_pool->size()); in Load()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp62 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
68 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
78 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
86 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
144 android::StringPool* ResourceTableBuilder::string_pool() { in string_pool() function in aapt::test::ResourceTableBuilder
145 return &table_->string_pool; in string_pool()
/frameworks/base/tools/aapt2/link/
DReferenceLinker.h35 android::StringPool* string_pool, ResourceTable* table, in ReferenceLinkerTransformer() argument
37 : CloningValueTransformer(string_pool), in ReferenceLinkerTransformer()
DTableMerger.cpp284 dst_config_value, src_config_value.get(), &main_table_->string_pool); in DoMerge()
297 CloningValueTransformer cloner(&main_table_->string_pool); in DoMerge()
332 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
340 CloningValueTransformer cloner(&main_table_->string_pool); in CloneAndMangleFile()
348 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.cpp144 XmlVisitor visitor(resource->file.source, &resource->string_pool, callsite, context, table_, in Consume()
/frameworks/base/cmds/idmap2/libidmap2/
DPrettyPrintVisitor.cpp71 const ResStringPool string_pool(data.GetStringPoolData().data(), data.GetStringPoolData().size()); in visit() local
103 auto str = string_pool.stringAt(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()
236 const auto& string_pool = parser->get_strings(); in CreateResourceMapping() local
237 const uint32_t string_pool_data_length = string_pool.bytes(); in CreateResourceMapping()
245 memcpy(overlay_data.string_pool_data->data.get(), string_pool.data().unsafe_ptr(), in CreateResourceMapping()
DFabricatedOverlay.cpp190 android::StringPool string_pool; in Build() local
264 auto ref = string_pool.MakeRef(value.second.data_string_value); in Build()
279 auto ref = string_pool.MakeRef(std::move(uri)); in Build()
289 android::StringPool::FlattenUtf8(&string_buffer, string_pool, nullptr); in Build()
/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()
249 expected->values = {util::make_unique<String>(table->string_pool.MakeRef("[žéŕö one]")), in TEST()
250 util::make_unique<String>(table->string_pool.MakeRef("[öñé one]"))}; in TEST()
273 util::make_unique<StyledString>(table->string_pool.MakeRef(original_style)); in TEST()
277 auto string = util::make_unique<String>(table->string_pool.MakeRef(original_style.str)); in TEST()
347 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST()
348 util::make_unique<String>(table->string_pool.MakeRef("one"))}; in TEST()
407 util::make_unique<StyledString>(table->string_pool.MakeRef(original_style)); in TEST()
DPseudolocaleGenerator.cpp556 PseudolocalizeIfNeeded(Pseudolocalizer::Method::kAccent, value, &table->string_pool, in Consume()
558 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()
335 resource_table->string_pool.strings(); in TEST_F()
/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp70 const ResStringPool* string_pool = in GetStringFromApkAssets() local
72 return GetStringFromPool(string_pool, value.data); in GetStringFromApkAssets()
/frameworks/base/libs/androidfw/include/androidfw/
DIdmap.h218 std::unique_ptr<ResStringPool>&& string_pool,
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp570 table->string_pool.Prune(); in Consume()
571 table->string_pool.Sort( in Consume()
588 android::StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool, in Consume()
/frameworks/base/core/proto/android/server/
Dnotificationhistory.proto88 optional StringPool string_pool = 1; field
/frameworks/base/tools/aapt2/split/
DTableSplitter.cpp230 CloningValueTransformer cloner(&split_table->string_pool); in SplitTable()
/frameworks/base/tools/aapt2/optimize/
DObfuscator.cpp148 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in HandleShortenFilePaths()
/frameworks/base/tools/aapt2/xml/
DXmlDom.h147 android::StringPool string_pool; variable
DXmlDom.cpp337 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate()
379 CloningValueTransformer cloner(&cloned->string_pool); in Clone()
/frameworks/base/tools/aapt2/
DResourceTable.h342 android::StringPool string_pool; variable

12