/frameworks/base/tools/aapt2/ |
D | StringPool_test.cpp | 39 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 …]
|
D | ResourceValues_test.cpp | 43 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 …]
|
D | StringPool.h | 169 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);
|
D | StringPool.cpp | 164 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()
|
D | ResourceValues.cpp | 1093 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()
|
D | ResourceUtils.cpp | 767 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()
|
D | ResourceParser.cpp | 790 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/ |
D | PseudolocaleGenerator_test.cpp | 33 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 …]
|
D | PseudolocaleGenerator.cpp | 214 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/ |
D | Builders.cpp | 66 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/ |
D | ResourcePathShortener.cpp | 118 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in Consume()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener.cpp | 175 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()
|
D | TableFlattener.cpp | 605 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()
|
D | XmlFlattener_test.cpp | 479 util::make_unique<String>(doc->string_pool.MakeRef("bar")); in TEST_F()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 330 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile() 346 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
|
D | ReferenceLinker_test.cpp | 92 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
|
D | ReferenceLinker.cpp | 176 transformed = util::make_unique<String>(pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 963 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()
|
D | ProtoSerialize_test.cpp | 123 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()
|
D | ProtoSerialize.cpp | 43 StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 653 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()
|