Home
last modified time | relevance | path

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

/aosp14/frameworks/base/libs/androidfw/tests/
H A DStringPool_test.cpp39 StringPool::Ref ref = pool.MakeRef("wut"); in TEST()
46 StringPool::Ref ref_a = pool.MakeRef("wut"); 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()
219 pool.MakeRef("\u093f"); in TEST()
346 pool.MakeRef("aaaaaaaaaa"); in TEST()
363 pool2.MakeRef("this fits1"); in TEST()
364 pool2.MakeRef(longStr); in TEST()
365 pool2.MakeRef("this fits2"); in TEST()
[all …]
/aosp14/frameworks/base/tools/aapt2/
H A DResourceValues_test.cpp43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST()
51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); 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()
78 b.elements.push_back(util::make_unique<String>(pool.MakeRef("une"))); in TEST()
82 c.elements.push_back(util::make_unique<String>(pool.MakeRef("uno"))); in TEST()
85 d.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
86 d.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
98 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
[all …]
H A DResourceValues.cpp1094 auto new_value = std::make_unique<RawString>(pool_->MakeRef(value->value)); in TransformDerived()
1099 auto new_value = std::make_unique<String>(pool_->MakeRef(value->value)); in TransformDerived()
1105 auto new_value = std::make_unique<StyledString>(pool_->MakeRef(value->value)); in TransformDerived()
1112 auto new_value = std::make_unique<FileReference>(pool_->MakeRef(value->path)); in TransformDerived()
H A DResourceUtils.cpp762 return util::make_unique<StyledString>(dst_pool->MakeRef( in ParseBinaryResValue()
769 dst_pool->MakeRef(str, android::StringPool::Context( in ParseBinaryResValue()
783 dst_pool->MakeRef(str, android::StringPool::Context(config))); in ParseBinaryResValue()
H A 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()
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A 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);
/aosp14/frameworks/base/tools/aapt2/compile/
H A 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 …]
H A DPseudolocaleGenerator.cpp217 return util::make_unique<StyledString>(pool->MakeRef(localized)); in PseudolocalizeStyledString()
276 std::unique_ptr<String> localized = util::make_unique<String>(pool_->MakeRef(result)); in Visit()
/aosp14/frameworks/base/libs/androidfw/
H A 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()
/aosp14/frameworks/base/tools/aapt2/test/
H A 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()
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp449 type_pool_.MakeRef(type_name.str()); in FlattenTypes()
453 type_pool_.MakeRef(type.named_type.to_string()); in FlattenTypes()
481 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes()
493 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes()
496 (uint32_t)key_pool_.MakeRef(Obfuscator::kObfuscatedResourceName).index(); in FlattenTypes()
H A 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()
H A DXmlFlattener_test.cpp478 util::make_unique<String>(doc->string_pool.MakeRef("bar")); in TEST_F()
/aosp14/frameworks/base/tools/aapt2/link/
H A 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()
H A DReferenceLinker_test.cpp92 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
H A DReferenceLinker.cpp175 transformed = util::make_unique<String>(pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
/aosp14/frameworks/base/cmds/idmap2/libidmap2/
H A DFabricatedOverlay.cpp181 auto ref = string_pool.MakeRef(value.second.data_string_value); in Build()
195 auto ref = string_pool.MakeRef(std::move(uri)); in Build()
/aosp14/frameworks/base/tools/aapt2/optimize/
H A DObfuscator.cpp124 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in HandleShortenFilePaths()
/aosp14/frameworks/base/tools/aapt2/format/proto/
H A 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()
H A 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()
H A DProtoSerialize.cpp46 android::StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp656 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()