/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() 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 …]
|
D | StringPool.h | 165 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);
|
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 | 81 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()
|
D | ResourceUtils.cpp | 758 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()
|
D | ResourceParser.cpp | 739 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/ |
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() 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 …]
|
D | PseudolocaleGenerator.cpp | 214 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/ |
D | Builders.cpp | 73 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/ |
D | ResourcePathShortener.cpp | 107 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 | 624 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()
|
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 | 322 util::make_unique<FileReference>(master_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile() 336 util::make_unique<FileReference>(table.string_pool.MakeRef(path)); in MergeFile()
|
D | ReferenceLinker_test.cpp | 94 util::make_unique<RawString>(table->string_pool.MakeRef("one|two")); in TEST()
|
D | ReferenceLinker.cpp | 142 util::make_unique<String>(string_pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 903 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()
|
D | ProtoSerialize_test.cpp | 64 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()
|
D | ProtoSerialize.cpp | 41 StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 628 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()
|