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()
73 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
[all …]
DStringPool.h165 Ref MakeRef(const android::StringPiece& str);
169 Ref MakeRef(const android::StringPiece& str, const Context& context);
172 Ref MakeRef(const Ref& ref);
175 StyleRef MakeRef(const StyleString& str);
179 StyleRef MakeRef(const StyleString& str, const Context& context);
182 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.cpp81 RawString* rs = new RawString(new_pool->MakeRef(value)); in Clone()
270 String* str = new String(new_pool->MakeRef(value)); in Clone()
325 StyledString* str = new StyledString(new_pool->MakeRef(value)); in Clone()
361 FileReference* fr = new FileReference(new_pool->MakeRef(path)); in Clone()
DResourceUtils.cpp758 return util::make_unique<StyledString>(dst_pool->MakeRef( in ParseBinaryResValue()
764 util::make_unique<FileReference>(dst_pool->MakeRef( in ParseBinaryResValue()
777 return util::make_unique<String>(dst_pool->MakeRef(str, StringPool::Context(config))); in ParseBinaryResValue()
DResourceParser.cpp739 util::make_unique<StyledString>(table_->string_pool.MakeRef( in ParseXml()
768 table_->string_pool.MakeRef(style_string.str, StringPool::Context(config_))); in ParseXml()
781 table_->string_pool.MakeRef(util::TrimWhitespace(raw_value), 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()
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()
247 expected->values = {util::make_unique<String>(table->string_pool.MakeRef("[žéŕö one]")), in TEST()
248 util::make_unique<String>(table->string_pool.MakeRef("[öñé one]"))}; in TEST()
[all …]
DPseudolocaleGenerator.cpp214 return util::make_unique<StyledString>(pool->MakeRef(localized)); in PseudolocalizeStyledString()
271 std::unique_ptr<String> localized = util::make_unique<String>(pool_->MakeRef(result)); in Visit()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp73 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
79 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
92 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
101 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
/frameworks/base/tools/aapt2/optimize/
DResourcePathShortener.cpp107 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.cpp624 type_pool_.MakeRef(type_name.str()); in FlattenTypes()
628 type_pool_.MakeRef(to_string(type->type)); in FlattenTypes()
657 local_key_index = (uint32_t)key_pool_.MakeRef(entry->name).index(); in FlattenTypes()
660 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.cpp322 util::make_unique<FileReference>(master_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile()
336 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
DReferenceLinker_test.cpp94 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
DReferenceLinker.cpp142 util::make_unique<String>(string_pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp903 value_pool->MakeRef(pb_item.str().value(), StringPool::Context(config))); in DeserializeItemFromPb()
908 value_pool->MakeRef(pb_item.raw_str().value(), StringPool::Context(config))); in DeserializeItemFromPb()
917 return util::make_unique<StyledString>(value_pool->MakeRef( in DeserializeItemFromPb()
924 util::make_unique<FileReference>(value_pool->MakeRef( in DeserializeItemFromPb()
DProtoSerialize_test.cpp64 plural->values[Plural::One] = util::make_unique<String>(table->string_pool.MakeRef("one")); in TEST()
74 util::make_unique<StyledString>(table->string_pool.MakeRef(style_string)), in TEST()
DProtoSerialize.cpp41 StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp628 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()