/frameworks/base/libs/androidfw/tests/ |
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 …]
|
/frameworks/base/tools/aapt2/ |
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 | ResourceValues.cpp | 1111 auto new_value = std::make_unique<RawString>(pool_->MakeRef(value->value)); in TransformDerived() 1116 auto new_value = std::make_unique<String>(pool_->MakeRef(value->value)); in TransformDerived() 1122 auto new_value = std::make_unique<StyledString>(pool_->MakeRef(value->value)); in TransformDerived() 1129 auto new_value = std::make_unique<FileReference>(pool_->MakeRef(value->path)); in TransformDerived()
|
D | ResourceUtils.cpp | 786 return util::make_unique<StyledString>(dst_pool->MakeRef( in ParseBinaryResValue() 793 dst_pool->MakeRef(str, android::StringPool::Context( in ParseBinaryResValue() 807 dst_pool->MakeRef(str, android::StringPool::Context(config))); in ParseBinaryResValue()
|
D | ResourceParser.cpp | 786 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()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPool.h | 170 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);
|
/frameworks/base/libs/androidfw/ |
D | StringPool.cpp | 164 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()
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator_test.cpp | 34 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 …]
|
D | PseudolocaleGenerator.cpp | 221 return util::make_unique<StyledString>(pool->MakeRef(localized)); in PseudolocalizeStyledString() 280 std::unique_ptr<String> localized = util::make_unique<String>(pool_->MakeRef(result)); in Visit() 350 util::make_unique<String>(pool_->MakeRef(prefixed_string)); in Visit() 364 util::make_unique<StyledString>(pool_->MakeRef(new_string)); in Visit()
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.cpp | 62 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()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 447 type_pool_.MakeRef(type_name.str()); in FlattenTypes() 451 type_pool_.MakeRef(type.named_type.to_string()); in FlattenTypes() 480 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes() 492 local_key_index = (uint32_t)key_pool_.MakeRef(entry.name).index(); in FlattenTypes() 495 (uint32_t)key_pool_.MakeRef(Obfuscator::kObfuscatedResourceName).index(); in FlattenTypes()
|
D | XmlFlattener.cpp | 175 StringFlattenDest{pool.MakeRef(str, android::StringPool::Context(priority)), dest}); in AddString() 260 package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes()
|
D | XmlFlattener_test.cpp | 478 util::make_unique<String>(doc->string_pool.MakeRef("bar")); in TEST_F()
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 332 util::make_unique<FileReference>(main_table_->string_pool.MakeRef(newPath)); in CloneAndMangleFile() 348 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 | 175 transformed = util::make_unique<String>(pool_->MakeRef(string_builder.to_string())); in ParseValueWithAttribute()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | FabricatedOverlay.cpp | 264 auto ref = string_pool.MakeRef(value.second.data_string_value); in Build() 279 auto ref = string_pool.MakeRef(std::move(uri)); in Build()
|
/frameworks/base/tools/aapt2/optimize/ |
D | Obfuscator.cpp | 148 file_ref->path = table->string_pool.MakeRef(shortened_path, file_ref->path.GetContext()); in HandleShortenFilePaths()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 970 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()
|
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 | 46 android::StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
|
/frameworks/base/tools/aapt2/cmd/ |
D | Link.cpp | 659 util::make_unique<FileReference>(table->string_pool.MakeRef(dst_path)); in Flatten()
|