/frameworks/base/cmds/idmap2/tests/ |
D | FabricatedOverlayTests.cpp | 78 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()
|
D | ResourceMappingTests.cpp | 231 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()
|
D | IdmapTests.cpp | 300 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/ |
D | Idmap.cpp | 267 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/ |
D | Builders.cpp | 62 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/ |
D | ReferenceLinker.h | 35 android::StringPool* string_pool, ResourceTable* table, in ReferenceLinkerTransformer() argument 37 : CloningValueTransformer(string_pool), in ReferenceLinkerTransformer()
|
D | TableMerger.cpp | 284 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()
|
D | XmlCompatVersioner.cpp | 116 out_el->attributes.push_back(CopyAttr(attr, &cloned_doc->string_pool)); in ProcessDoc() 126 &cloned_doc->string_pool); in ProcessDoc()
|
D | AutoVersioner.cpp | 75 CloningValueTransformer cloner(&table->string_pool); in Consume()
|
D | XmlReferenceLinker.cpp | 144 XmlVisitor visitor(resource->file.source, &resource->string_pool, callsite, context, table_, in Consume()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | PrettyPrintVisitor.cpp | 71 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()
|
D | ResourceContainer.cpp | 105 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()
|
D | FabricatedOverlay.cpp | 190 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/ |
D | PseudolocaleGenerator_test.cpp | 242 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()
|
D | PseudolocaleGenerator.cpp | 556 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/ |
D | Compile_test.cpp | 220 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/ |
D | Idmap_test.cpp | 70 const ResStringPool* string_pool = in GetStringFromApkAssets() local 72 return GetStringFromPool(string_pool, value.data); in GetStringFromApkAssets()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Idmap.h | 218 std::unique_ptr<ResStringPool>&& string_pool,
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 570 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/ |
D | notificationhistory.proto | 88 optional StringPool string_pool = 1; field
|
/frameworks/base/tools/aapt2/split/ |
D | TableSplitter.cpp | 230 CloningValueTransformer cloner(&split_table->string_pool); in SplitTable()
|
/frameworks/base/tools/aapt2/optimize/ |
D | Obfuscator.cpp | 148 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in HandleShortenFilePaths()
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.h | 147 android::StringPool string_pool; variable
|
D | XmlDom.cpp | 337 CopyAttributes(el.get(), &tree, &xml_resource->string_pool); in Inflate() 379 CloningValueTransformer cloner(&cloned->string_pool); in Clone()
|
/frameworks/base/tools/aapt2/ |
D | ResourceTable.h | 342 android::StringPool string_pool; variable
|