Home
last modified time | relevance | path

Searched refs:MakeRef (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/libs/androidfw/tests/
DStringPool_test.cpp39 StringPool::Ref ref = pool.MakeRef("wut"); in TEST()
46 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST()
47 StringPool::Ref ref_b = pool.MakeRef("hey"); in TEST()
56 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST()
57 StringPool::Ref ref_b = pool.MakeRef("wut"); in TEST()
67 StringPool::Ref ref_a = pool.MakeRef("wut", StringPool::Context(0x81010001)); in TEST()
68 StringPool::Ref ref_b = pool.MakeRef("wut", StringPool::Context(0x81010002)); in TEST()
78 StringPool::Ref ref_a = pool.MakeRef("z"); in TEST()
79 StringPool::Ref ref_b = pool.MakeRef("a"); in TEST()
80 StringPool::Ref ref_c = pool.MakeRef("m"); in TEST()
[all …]
/frameworks/base/tools/aapt2/
DResourceValues_test.cpp43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
44 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST()
48 b.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("autre")); in TEST()
51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
52 c.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
62 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
63 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
75 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
[all …]
DResourceValues.cpp1111 auto new_value = std::make_unique<RawString>(pool_->MakeRef(value->value)); in TransformDerived()
1116 auto new_value = std::make_unique<String>(pool_->MakeRef(value->value)); in TransformDerived()
1122 auto new_value = std::make_unique<StyledString>(pool_->MakeRef(value->value)); in TransformDerived()
1129 auto new_value = std::make_unique<FileReference>(pool_->MakeRef(value->path)); in TransformDerived()
DResourceUtils.cpp786 return util::make_unique<StyledString>(dst_pool->MakeRef( in ParseBinaryResValue()
793 dst_pool->MakeRef(str, android::StringPool::Context( in ParseBinaryResValue()
807 dst_pool->MakeRef(str, android::StringPool::Context(config))); in ParseBinaryResValue()
DResourceParser.cpp786 util::make_unique<StyledString>(table.string_pool.MakeRef( in ParseXml()
816 std::unique_ptr<String> string = util::make_unique<String>(table.string_pool.MakeRef( in ParseXml()
824 return util::make_unique<RawString>(table.string_pool.MakeRef( in ParseXml()
/frameworks/base/libs/androidfw/include/androidfw/
DStringPool.h170 Ref MakeRef(android::StringPiece str);
174 Ref MakeRef(android::StringPiece str, const Context& context);
177 Ref MakeRef(const Ref& ref);
180 StyleRef MakeRef(const StyleString& str);
184 StyleRef MakeRef(const StyleString& str, const Context& context);
187 StyleRef MakeRef(const StyleRef& ref);
/frameworks/base/libs/androidfw/
DStringPool.cpp164 StringPool::Ref StringPool::MakeRef(StringPiece str) { in MakeRef() function in android::StringPool
168 StringPool::Ref StringPool::MakeRef(StringPiece str, const Context& context) { in MakeRef() function in android::StringPool
195 StringPool::Ref StringPool::MakeRef(const Ref& ref) { in MakeRef() function in android::StringPool
199 return MakeRef(ref.entry_->value, ref.entry_->context); in MakeRef()
202 StringPool::StyleRef StringPool::MakeRef(const StyleString& str) { in MakeRef() function in android::StringPool
203 return MakeRef(str, Context{}); in MakeRef()
206 StringPool::StyleRef StringPool::MakeRef(const StyleString& str, const Context& context) { in MakeRef() function in android::StringPool
213 entry->spans.emplace_back(Span{MakeRef(span.name), span.first_char, span.last_char}); in MakeRef()
221 StringPool::StyleRef StringPool::MakeRef(const StyleRef& ref) { in MakeRef() function in android::StringPool
228 entry->spans.emplace_back(Span{MakeRef(*span.name), span.first_char, span.last_char}); in MakeRef()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp34 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
55 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
81 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
103 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
126 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
163 util::make_unique<StyledString>(pool.MakeRef(original_style)); in TEST()
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()
[all …]
DPseudolocaleGenerator.cpp221 return util::make_unique<StyledString>(pool->MakeRef(localized)); in PseudolocalizeStyledString()
280 std::unique_ptr<String> localized = util::make_unique<String>(pool_->MakeRef(result)); in Visit()
350 util::make_unique<String>(pool_->MakeRef(prefixed_string)); in Visit()
364 util::make_unique<StyledString>(pool_->MakeRef(new_string)); in Visit()
/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()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp447 type_pool_.MakeRef(type_name.str()); in FlattenTypes()
451 type_pool_.MakeRef(type.named_type.to_string()); in FlattenTypes()
480 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes()
492 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes()
495 (uint32_t)key_pool_.MakeRef(Obfuscator::kObfuscatedResourceName).index(); in FlattenTypes()
DXmlFlattener.cpp175 StringFlattenDest{pool.MakeRef(str, android::StringPool::Context(priority)), dest}); in AddString()
260 package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
DXmlFlattener_test.cpp478 util::make_unique<String>(doc->string_pool.MakeRef("bar")); in TEST_F()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp332 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
348 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
DReferenceLinker_test.cpp92 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
DReferenceLinker.cpp175 transformed = util::make_unique<String>(pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
/frameworks/base/cmds/idmap2/libidmap2/
DFabricatedOverlay.cpp264 auto ref = string_pool.MakeRef(value.second.data_string_value); in Build()
279 auto ref = string_pool.MakeRef(std::move(uri)); in Build()
/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/format/proto/
DProtoDeserialize.cpp970 value_pool->MakeRef(pb_item.str().value(), android::StringPool::Context(config))); in DeserializeItemFromPb()
975 value_pool->MakeRef(pb_item.raw_str().value(), android::StringPool::Context(config))); in DeserializeItemFromPb()
985 return util::make_unique<StyledString>(value_pool->MakeRef( in DeserializeItemFromPb()
993 util::make_unique<FileReference>(value_pool->MakeRef( in DeserializeItemFromPb()
DProtoSerialize_test.cpp123 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
135 .SetValue(util::make_unique<StyledString>(table->string_pool.MakeRef(style_string))) in TEST()
DProtoSerialize.cpp46 android::StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp659 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()