Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/
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 …]
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 …]
DStringPool.h169 Ref MakeRef(const android::StringPiece& str);
173 Ref MakeRef(const android::StringPiece& str, const Context& context);
176 Ref MakeRef(const Ref& ref);
179 StyleRef MakeRef(const StyleString& str);
183 StyleRef MakeRef(const StyleString& str, const Context& context);
186 StyleRef MakeRef(const StyleRef& ref);
DStringPool.cpp164 StringPool::Ref StringPool::MakeRef(const StringPiece& str) { in MakeRef() function in aapt::StringPool
168 StringPool::Ref StringPool::MakeRef(const StringPiece& str, const Context& context) { in MakeRef() function in aapt::StringPool
196 StringPool::Ref StringPool::MakeRef(const Ref& ref) { in MakeRef() function in aapt::StringPool
200 return MakeRef(ref.entry_->value, ref.entry_->context); in MakeRef()
203 StringPool::StyleRef StringPool::MakeRef(const StyleString& str) { in MakeRef() function in aapt::StringPool
204 return MakeRef(str, Context{}); in MakeRef()
207 StringPool::StyleRef StringPool::MakeRef(const StyleString& str, const Context& context) { in MakeRef() function in aapt::StringPool
214 entry->spans.emplace_back(Span{MakeRef(span.name), span.first_char, span.last_char}); in MakeRef()
222 StringPool::StyleRef StringPool::MakeRef(const StyleRef& ref) { in MakeRef() function in aapt::StringPool
229 entry->spans.emplace_back(Span{MakeRef(*span.name), span.first_char, span.last_char}); in MakeRef()
DResourceValues.cpp1093 auto new_value = std::make_unique<RawString>(pool_->MakeRef(value->value)); in TransformDerived()
1098 auto new_value = std::make_unique<String>(pool_->MakeRef(value->value)); in TransformDerived()
1104 auto new_value = std::make_unique<StyledString>(pool_->MakeRef(value->value)); in TransformDerived()
1111 auto new_value = std::make_unique<FileReference>(pool_->MakeRef(value->path)); in TransformDerived()
DResourceUtils.cpp767 return util::make_unique<StyledString>(dst_pool->MakeRef( in ParseBinaryResValue()
773 util::make_unique<FileReference>(dst_pool->MakeRef( in ParseBinaryResValue()
786 return util::make_unique<String>(dst_pool->MakeRef(str, StringPool::Context(config))); in ParseBinaryResValue()
DResourceParser.cpp790 util::make_unique<StyledString>(table.string_pool.MakeRef( in ParseXml()
821 table.string_pool.MakeRef(xmlsub_tree.style_string.str, StringPool::Context(config))); in ParseXml()
828 return util::make_unique<RawString>(table.string_pool.MakeRef( in ParseXml()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp33 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
54 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
80 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
102 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
125 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
162 util::make_unique<StyledString>(pool.MakeRef(original_style)); in TEST()
241 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()
[all …]
DPseudolocaleGenerator.cpp214 return util::make_unique<StyledString>(pool->MakeRef(localized)); in PseudolocalizeStyledString()
272 std::unique_ptr<String> localized = util::make_unique<String>(pool_->MakeRef(result)); in Visit()
/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()
/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/format/binary/
DXmlFlattener.cpp175 StringFlattenDest{pool.MakeRef(str, StringPool::Context(priority)), dest}); in AddString()
259 StringPool::Ref name_ref = package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
DTableFlattener.cpp605 type_pool_.MakeRef(type_name.str()); in FlattenTypes()
609 type_pool_.MakeRef(to_string(type.type)); in FlattenTypes()
640 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes()
643 local_key_index = (uint32_t)key_pool_.MakeRef(obfuscated_resource_name).index(); in FlattenTypes()
DXmlFlattener_test.cpp479 util::make_unique<String>(doc->string_pool.MakeRef("bar")); in TEST_F()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp330 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
346 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.cpp176 transformed = util::make_unique<String>(pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp963 value_pool->MakeRef(pb_item.str().value(), StringPool::Context(config))); in DeserializeItemFromPb()
968 value_pool->MakeRef(pb_item.raw_str().value(), StringPool::Context(config))); in DeserializeItemFromPb()
977 return util::make_unique<StyledString>(value_pool->MakeRef( in DeserializeItemFromPb()
984 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.cpp43 StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp653 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()