/frameworks/base/tools/aapt2/ |
D | StringPool_test.cpp | 36 StringPool pool; in TEST() 38 StringPool::Ref ref = pool.MakeRef("wut"); in TEST() 43 StringPool pool; in TEST() 45 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST() 46 StringPool::Ref ref_b = pool.MakeRef("hey"); in TEST() 53 StringPool pool; in TEST() 55 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST() 56 StringPool::Ref ref_b = pool.MakeRef("wut"); in TEST() 64 StringPool pool; in TEST() 66 StringPool::Ref ref_a = pool.MakeRef("z"); in TEST() [all …]
|
D | StringPool.cpp | 34 StringPool::Ref::Ref() : entry_(nullptr) {} in Ref() 36 StringPool::Ref::Ref(const StringPool::Ref& rhs) : entry_(rhs.entry_) { in Ref() 42 StringPool::Ref::Ref(StringPool::Entry* entry) : entry_(entry) { in Ref() 48 StringPool::Ref::~Ref() { in ~Ref() 54 StringPool::Ref& StringPool::Ref::operator=(const StringPool::Ref& rhs) { in operator =() 66 bool StringPool::Ref::operator==(const Ref& rhs) const { in operator ==() 70 bool StringPool::Ref::operator!=(const Ref& rhs) const { in operator !=() 74 const std::string* StringPool::Ref::operator->() const { in operator ->() 78 const std::string& StringPool::Ref::operator*() const { in operator *() 82 size_t StringPool::Ref::index() const { in index() [all …]
|
D | StringPool.h | 50 class StringPool { 89 friend class StringPool; 114 friend class StringPool; 127 friend class StringPool; 132 const StringPool* pool_; 148 friend class StringPool; 155 static bool FlattenUtf8(BigBuffer* out, const StringPool& pool); 156 static bool FlattenUtf16(BigBuffer* out, const StringPool& pool); 158 StringPool() = default; 159 StringPool(StringPool&&) = default; [all …]
|
D | ResourceValues.h | 81 virtual Value* Clone(StringPool* new_pool) const = 0; 104 virtual Item* Clone(StringPool* new_pool) const override = 0; 138 Reference* Clone(StringPool* new_pool) const override; 150 Id* Clone(StringPool* new_pool) const override; 157 StringPool::Ref value; 159 explicit RawString(const StringPool::Ref& ref); 163 RawString* Clone(StringPool* new_pool) const override; 186 StringPool::Ref value; 193 explicit String(const StringPool::Ref& ref); 197 String* Clone(StringPool* new_pool) const override; [all …]
|
D | ResourceValues_test.cpp | 28 StringPool pool; in TEST() 47 StringPool pool; in TEST() 58 StringPool pool; in TEST() 82 StringPool pool; in TEST() 93 StringPool pool; in TEST() 156 StringPool pool_a; in TEST() 157 StringPool pool_b; in TEST() 159 String str_a(pool_a.MakeRef("hello", StringPool::Context(test::ParseConfigOrDie("en")))); in TEST() 172 StringPool pool_a; in TEST() 173 StringPool pool_b; in TEST() [all …]
|
D | ResourceValues.cpp | 47 RawString::RawString(const StringPool::Ref& ref) : value(ref) {} in RawString() 57 RawString* RawString::Clone(StringPool* new_pool) const { in Clone() 117 Reference* Reference::Clone(StringPool* /*new_pool*/) const { in Clone() 158 Id* Id::Clone(StringPool* /*new_pool*/) const { return new Id(*this); } in Clone() 162 String::String(const StringPool::Ref& ref) : value(ref) {} in String() 199 String* String::Clone(StringPool* new_pool) const { in Clone() 211 StyledString::StyledString(const StringPool::StyleRef& ref) : value(ref) {} in StyledString() 247 StyledString* StyledString::Clone(StringPool* new_pool) const { in Clone() 257 for (const StringPool::Span& span : value->spans) { in Print() 262 FileReference::FileReference(const StringPool::Ref& _path) : path(_path) {} in FileReference() [all …]
|
D | ResourceUtils.cpp | 683 StringPool* dst_pool) { in ParseBinaryResValue() 703 style_str, StringPool::Context(StringPool::Context::kNormalPriority, config))); in ParseBinaryResValue() 708 str, StringPool::Context(StringPool::Context::kHighPriority, config))); in ParseBinaryResValue() 712 return util::make_unique<String>(dst_pool->MakeRef(str, StringPool::Context(config))); in ParseBinaryResValue()
|
/frameworks/base/tools/aapt/ |
D | StringPool.cpp | 81 String8 StringPool::entry::makeConfigsString() const { in makeConfigsString() 95 int StringPool::entry::compare(const entry& o) const { in compare() 125 StringPool::StringPool(bool utf8) : in StringPool() function in StringPool 130 ssize_t StringPool::add(const String16& value, const Vector<entry_style_span>& spans, in add() 140 ssize_t StringPool::add(const String16& value, in add() 211 status_t StringPool::addStyleSpan(size_t idx, const String16& name, in addStyleSpan() 221 status_t StringPool::addStyleSpans(size_t idx, const Vector<entry_style_span>& spans) in addStyleSpans() 233 status_t StringPool::addStyleSpan(size_t idx, const entry_style_span& span) in addStyleSpan() 246 StringPool::ConfigSorter::ConfigSorter(const StringPool& pool) : pool(pool) in ConfigSorter() 250 bool StringPool::ConfigSorter::operator()(size_t l, size_t r) in operator ()() [all …]
|
D | StringPool.h | 38 class StringPool 85 explicit StringPool(bool utf8 = false); 144 explicit ConfigSorter(const StringPool&); 147 const StringPool& pool;
|
D | XMLNode.h | 29 Vector<StringPool::entry_style_span>* outSpans, 183 status_t collect_strings(StringPool* dest, Vector<uint32_t>* outResIds, 186 status_t collect_attr_strings(StringPool* outPool, 189 status_t collect_resid_strings(StringPool* outPool, 192 status_t flatten_node(const StringPool& strings, const sp<AaptFile>& dest,
|
D | ResourceTable.h | 146 const Vector<StringPool::entry_style_span>* style = NULL, 169 const Vector<StringPool::entry_style_span>* style = NULL, 248 bool stringToValue(Res_value* outValue, StringPool* pool, 252 const Vector<StringPool::entry_style_span>* style = NULL, 303 const Vector<StringPool::entry_style_span>* _style = NULL, 326 Vector<StringPool::entry_style_span> style; 363 const Vector<StringPool::entry_style_span>* style = NULL, 369 const Vector<StringPool::entry_style_span>* style = NULL, 388 status_t prepareFlatten(StringPool* strings, ResourceTable* table, 391 status_t remapStringValue(StringPool* strings);
|
D | Android.mk | 44 StringPool.cpp \
|
D | XMLNode.cpp | 209 Vector<StringPool::entry_style_span>* outSpans, in parseStyledString() 213 Vector<StringPool::entry_style_span> spanStack; in parseStyledString() 291 StringPool::entry_style_span span; in parseStyledString() 336 StringPool::entry_style_span span = spanStack.top(); in parseStyledString() 1095 StringPool strings(mUTF8); in flatten() 1338 status_t XMLNode::collect_strings(StringPool* dest, Vector<uint32_t>* outResIds, in collect_strings() 1393 status_t XMLNode::collect_attr_strings(StringPool* outPool, in collect_attr_strings() 1448 status_t XMLNode::collect_resid_strings(StringPool* outPool, in collect_resid_strings() 1462 status_t XMLNode::flatten_node(const StringPool& strings, const sp<AaptFile>& dest, in flatten_node()
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener.cpp | 63 StringPool pool; 64 std::map<uint8_t, StringPool> package_pools; 67 StringPool::Ref ref; 163 pool.MakeRef(str, StringPool::Context(priority)), dest}); in AddString() 167 void AddString(const StringPool::Ref& ref, android::ResStringPool_ref* dest) { in AddString() 244 StringPool::Ref name_ref = in WriteAttributes() 246 xml_attr->name, StringPool::Context(aapt_attr.id.value().id)); in WriteAttributes() 303 visitor.pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Flatten() 318 StringPool::FlattenUtf16(buffer_, visitor.pool); in Flatten() 320 StringPool::FlattenUtf8(buffer_, visitor.pool); in Flatten()
|
D | TableFlattener.cpp | 252 StringPool::FlattenUtf16(pkg_writer.buffer(), type_pool_); in FlattenPackage() 255 StringPool::FlattenUtf8(pkg_writer.buffer(), key_pool_); in FlattenPackage() 553 StringPool type_pool_; 554 StringPool key_pool_; 562 table->string_pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Consume() 584 StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool); in Consume()
|
/frameworks/base/tools/aapt2/proto/ |
D | ProtoHelpers.h | 31 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool); 33 void SerializeSourceToPb(const Source& source, StringPool* src_pool, pb::Source* out_pb_source);
|
D | ProtoHelpers.cpp | 21 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool) { in SerializeStringPoolToPb() 23 StringPool::FlattenUtf8(&buffer, pool); in SerializeStringPoolToPb() 35 void SerializeSourceToPb(const Source& source, StringPool* src_pool, pb::Source* out_pb_source) { in SerializeSourceToPb() 36 StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb()
|
D | TableProtoDeserializer.cpp | 159 const ConfigDescription& config, StringPool* pool) { in DeserializeItemFromPb() 178 pool->MakeRef(pb_item.str().value(), StringPool::Context(config))); in DeserializeItemFromPb() 182 pool->MakeRef(pb_item.raw_str().value(), StringPool::Context(config))); in DeserializeItemFromPb() 191 style_str, StringPool::Context(StringPool::Context::kNormalPriority, config))); in DeserializeItemFromPb() 195 pb_item.file().path(), StringPool::Context(StringPool::Context::kHighPriority, config))); in DeserializeItemFromPb() 205 StringPool* pool) { in DeserializeValueFromPb()
|
D | TableProtoSerializer.cpp | 40 PbSerializerVisitor(StringPool* source_pool, pb::Value* out_pb_value) in PbSerializerVisitor() 45 PbSerializerVisitor(StringPool* sourcePool, pb::Item* outPbItem) in PbSerializerVisitor() 65 for (const StringPool::Span& span : str->value->spans) { in Visit() 200 StringPool* source_pool_; 210 table->string_pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in SerializeTableToPb() 219 StringPool source_pool; in SerializeTableToPb()
|
/frameworks/base/tools/aapt2/link/ |
D | XmlCompatVersioner.h | 48 StringPool* out_string_pool) const = 0; 73 std::set<ApiVersion>* out_apis_referenced, StringPool* out_string_pool); 90 StringPool* out_string_pool) const override;
|
D | XmlCompatVersioner.cpp | 25 static xml::Attribute CopyAttr(const xml::Attribute& src, StringPool* out_string_pool) { in CopyAttr() 36 StringPool* out_string_pool) { in CopyAttribute() 59 StringPool* out_string_pool) { in ProcessRule() 157 StringPool* out_string_pool) { in CloneIfNotNull() 166 StringPool* out_string_pool) const { in Degrade()
|
D | ReferenceLinker.cpp | 55 StringPool* string_pool, xml::IPackageDeclStack* decl) in ReferenceLinkerVisitor() 173 StringPool* string_pool_;
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 55 inline static UnifiedSpan SpanToUnifiedSpan(const StringPool::Span& span) { in SpanToUnifiedSpan() 113 StringPool* pool) { in PseudolocalizeStyledString() 224 Visitor(StringPool* pool, Pseudolocalizer::Method method) in Visitor() 285 StringPool* pool_; 315 StringPool* pool, ResourceEntry* entry) { in PseudolocalizeIfNeeded()
|
D | PseudolocaleGenerator_test.cpp | 25 StringPool pool; in TEST() 72 StringPool pool; in TEST() 94 StringPool pool; in TEST() 116 StringPool pool; in TEST() 155 StringPool pool; in TEST()
|
D | PseudolocaleGenerator.h | 27 StyledString* string, Pseudolocalizer::Method method, StringPool* pool);
|