/frameworks/base/tools/aapt2/ |
D | StringPool_test.cpp | 37 StringPool pool; in TEST() 39 StringPool::Ref ref = pool.MakeRef("wut"); in TEST() 44 StringPool pool; in TEST() 46 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST() 47 StringPool::Ref ref_b = pool.MakeRef("hey"); in TEST() 54 StringPool pool; in TEST() 56 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST() 57 StringPool::Ref ref_b = pool.MakeRef("wut"); in TEST() 65 StringPool pool; in TEST() 67 StringPool::Ref ref_a = pool.MakeRef("wut", StringPool::Context(0x81010001)); 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 | 51 class StringPool { 90 friend class StringPool; 115 friend class StringPool; 128 friend class StringPool; 133 const StringPool* pool_; 149 friend class StringPool; 156 static bool FlattenUtf8(BigBuffer* out, const StringPool& pool, IDiagnostics* diag); 157 static bool FlattenUtf16(BigBuffer* out, const StringPool& pool, IDiagnostics* diag); 159 StringPool() = default; 160 StringPool(StringPool&&) = default; [all …]
|
D | ResourceValues.h | 105 virtual Value* Clone(StringPool* new_pool) const = 0; 133 virtual Item* Clone(StringPool* new_pool) const override = 0; 169 Reference* Clone(StringPool* new_pool) const override; 188 Id* Clone(StringPool* new_pool) const override; 195 StringPool::Ref value; 197 explicit RawString(const StringPool::Ref& ref); 201 RawString* Clone(StringPool* new_pool) const override; 224 StringPool::Ref value; 231 explicit String(const StringPool::Ref& ref); 235 String* Clone(StringPool* new_pool) const override; [all …]
|
D | ResourceValues_test.cpp | 40 StringPool pool; in TEST() 59 StringPool pool; in TEST() 70 StringPool pool; in TEST() 94 StringPool pool; in TEST() 105 StringPool pool; in TEST() 168 StringPool pool_a; in TEST() 169 StringPool pool_b; in TEST() 171 String str_a(pool_a.MakeRef("hello", StringPool::Context(test::ParseConfigOrDie("en")))); in TEST() 184 StringPool pool_a; in TEST() 185 StringPool pool_b; in TEST() [all …]
|
D | ResourceValues.cpp | 70 RawString::RawString(const StringPool::Ref& ref) : value(ref) {} in RawString() 80 RawString* RawString::Clone(StringPool* new_pool) const { in Clone() 139 Reference* Reference::Clone(StringPool* /*new_pool*/) const { in Clone() 223 Id* Id::Clone(StringPool* /*new_pool*/) const { in Clone() 231 String::String(const StringPool::Ref& ref) : value(ref) { in String() 269 String* String::Clone(StringPool* new_pool) const { in Clone() 287 StyledString::StyledString(const StringPool::StyleRef& ref) : value(ref) { in StyledString() 324 StyledString* StyledString::Clone(StringPool* new_pool) const { in Clone() 334 for (const StringPool::Span& span : value->spans) { in Print() 339 FileReference::FileReference(const StringPool::Ref& _path) : path(_path) { in FileReference() [all …]
|
D | ResourceUtils.cpp | 738 StringPool* dst_pool) { in ParseBinaryResValue() 758 style_str, StringPool::Context(StringPool::Context::kNormalPriority, config))); in ParseBinaryResValue() 764 str, StringPool::Context(StringPool::Context::kHighPriority, config))); in ParseBinaryResValue() 776 return util::make_unique<String>(dst_pool->MakeRef(str, StringPool::Context(config))); in ParseBinaryResValue()
|
/frameworks/base/tools/aapt/ |
D | StringPool.cpp | 74 String8 StringPool::entry::makeConfigsString() const { in makeConfigsString() 88 int StringPool::entry::compare(const entry& o) const { in compare() 118 StringPool::StringPool(bool utf8) : in StringPool() function in StringPool 123 ssize_t StringPool::add(const String16& value, const Vector<entry_style_span>& spans, in add() 133 ssize_t StringPool::add(const String16& value, in add() 204 status_t StringPool::addStyleSpan(size_t idx, const String16& name, in addStyleSpan() 214 status_t StringPool::addStyleSpans(size_t idx, const Vector<entry_style_span>& spans) in addStyleSpans() 226 status_t StringPool::addStyleSpan(size_t idx, const entry_style_span& span) in addStyleSpan() 239 StringPool::ConfigSorter::ConfigSorter(const StringPool& pool) : pool(pool) in ConfigSorter() 243 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 | XMLNode.cpp | 206 Vector<StringPool::entry_style_span>* outSpans, in parseStyledString() 210 Vector<StringPool::entry_style_span> spanStack; in parseStyledString() 288 StringPool::entry_style_span span; in parseStyledString() 333 StringPool::entry_style_span span = spanStack.top(); in parseStyledString() 1092 StringPool strings(mUTF8); in flatten() 1335 status_t XMLNode::collect_strings(StringPool* dest, Vector<uint32_t>* outResIds, in collect_strings() 1390 status_t XMLNode::collect_attr_strings(StringPool* outPool, in collect_attr_strings() 1445 status_t XMLNode::collect_resid_strings(StringPool* outPool, in collect_resid_strings() 1459 status_t XMLNode::flatten_node(const StringPool& strings, const sp<AaptFile>& dest, in flatten_node()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener.cpp | 67 StringPool pool; 68 std::map<uint8_t, StringPool> package_pools; 71 StringPool::Ref ref; 175 StringFlattenDest{pool.MakeRef(str, StringPool::Context(priority)), dest}); in AddString() 182 void AddString(const StringPool::Ref& ref, android::ResStringPool_ref* dest) { in AddString() 259 StringPool::Ref name_ref = package_pools[aapt_attr.id.value().package_id()].MakeRef( in WriteAttributes() 260 xml_attr->name, StringPool::Context(aapt_attr.id.value().id)); in WriteAttributes() 326 visitor.pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Flatten() 341 StringPool::FlattenUtf16(buffer_, visitor.pool, context->GetDiagnostics()); in Flatten() 343 StringPool::FlattenUtf8(buffer_, visitor.pool, context->GetDiagnostics()); in Flatten()
|
D | TableFlattener.cpp | 266 StringPool::FlattenUtf16(pkg_writer.buffer(), type_pool_, diag_); in FlattenPackage() 269 StringPool::FlattenUtf8(pkg_writer.buffer(), key_pool_, diag_); in FlattenPackage() 712 StringPool type_pool_; 713 StringPool key_pool_; 724 table->string_pool.Sort([](const StringPool::Context& a, const StringPool::Context& b) -> int { in Consume() 738 StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool, in Consume()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.h | 40 void SerializeValueToPb(const Value& value, pb::Value* out_value, StringPool* src_pool = nullptr); 56 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool, IDiagnostics* dia…
|
D | ProtoDeserialize.h | 38 StringPool* value_pool, io::IFileCollection* files, 44 StringPool* value_pool, io::IFileCollection* files, 50 bool DeserializeXmlFromPb(const pb::XmlNode& pb_node, xml::Element* out_el, StringPool* value_pool,
|
D | ProtoSerialize.cpp | 26 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool, IDiagnostics* dia… in SerializeStringPoolToPb() 28 StringPool::FlattenUtf8(&buffer, pool, diag); in SerializeStringPoolToPb() 40 void SerializeSourceToPb(const Source& source, StringPool* src_pool, pb::Source* out_pb_source) { in SerializeSourceToPb() 41 StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb() 277 StringPool* source_pool, pb::Entry* pb_entry, in SerializeOverlayableItemToPb() 329 StringPool source_pool; in SerializeTableToPb() 411 static void SerializeItemMetaDataToPb(const Item& item, T* pb_item, StringPool* src_pool) { in SerializeItemMetaDataToPb() 455 ValueSerializer(pb::Value* out_value, StringPool* src_pool) in ValueSerializer() 474 for (const StringPool::Span& span : str->value->spans) { in Visit() 616 StringPool* src_pool_; [all …]
|
D | ProtoDeserialize.cpp | 687 StringPool* value_pool, io::IFileCollection* files, in DeserializeValueFromPb() 813 const ConfigDescription& config, StringPool* value_pool, in DeserializeItemFromPb() 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() 918 style_str, StringPool::Context(StringPool::Context::kNormalPriority, config))); in DeserializeItemFromPb() 925 pb_file.path(), StringPool::Context(StringPool::Context::kHighPriority, config))); in DeserializeItemFromPb() 954 bool DeserializeXmlFromPb(const pb::XmlNode& pb_node, xml::Element* out_el, StringPool* value_pool, in DeserializeXmlFromPb()
|
/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()
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 56 inline static UnifiedSpan SpanToUnifiedSpan(const StringPool::Span& span) { in SpanToUnifiedSpan() 114 StringPool* pool) { in PseudolocalizeStyledString() 225 Visitor(StringPool* pool, Pseudolocalizer::Method method) in Visitor() 286 StringPool* pool_; 316 StringPool* pool, ResourceEntry* entry) { in PseudolocalizeIfNeeded()
|
D | PseudolocaleGenerator_test.cpp | 27 StringPool pool; in TEST() 74 StringPool pool; in TEST() 96 StringPool pool; in TEST() 118 StringPool pool; in TEST() 157 StringPool pool; in TEST()
|
D | PseudolocaleGenerator.h | 27 StyledString* string, Pseudolocalizer::Method method, StringPool* pool);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 47 if (proto.isNextField(IntervalStatsProto.StringPool.SIZE)) { in readStringPool() 48 stringPool = new ArrayList(proto.readInt(IntervalStatsProto.StringPool.SIZE)); in readStringPool() 54 case (int) IntervalStatsProto.StringPool.STRINGS: in readStringPool() 55 stringPool.add(proto.readString(IntervalStatsProto.StringPool.STRINGS)); in readStringPool() 312 proto.write(IntervalStatsProto.StringPool.SIZE, size); in writeStringPool() 314 proto.write(IntervalStatsProto.StringPool.STRINGS, stats.mStringCache.valueAt(i)); in writeStringPool()
|
/frameworks/base/core/proto/android/server/ |
D | usagestatsservice.proto | 25 message StringPool { message 103 optional StringPool stringpool = 2;
|