/frameworks/base/libs/androidfw/tests/ |
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 …]
|
/frameworks/base/libs/androidfw/ |
D | StringPool.cpp | 33 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 …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | StringPool.h | 54 class StringPool { 95 friend class StringPool; 120 friend class StringPool; 133 friend class StringPool; 138 const StringPool* pool_; 154 friend class StringPool; 161 static bool FlattenUtf8(BigBuffer* out, const StringPool& pool, IDiagnostics* diag); 162 static bool FlattenUtf16(BigBuffer* out, const StringPool& pool, IDiagnostics* diag); 164 StringPool() = default; 165 StringPool(StringPool&&) = default; [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | StringPoolTest.java | 35 StringPool stringPool = new StringPool(); in testStringPool() 43 StringPool stringPool = new StringPool(); in testHashCollision()
|
/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);
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener.cpp | 67 android::StringPool pool; 68 std::map<uint8_t, android::StringPool> package_pools; 71 android::StringPool::Ref ref; 175 StringFlattenDest{pool.MakeRef(str, android::StringPool::Context(priority)), dest}); in AddString() 182 void AddString(const android::StringPool::Ref& ref, android::ResStringPool_ref* dest) { in AddString() 259 android::StringPool::Ref name_ref = in WriteAttributes() 261 xml_attr->name, android::StringPool::Context(aapt_attr.id.value().id)); in WriteAttributes() 328 [](const android::StringPool::Context& a, const android::StringPool::Context& b) -> int { in Flatten() 343 android::StringPool::FlattenUtf16(buffer_, visitor.pool, context->GetDiagnostics()); in Flatten() 345 android::StringPool::FlattenUtf8(buffer_, visitor.pool, context->GetDiagnostics()); in Flatten()
|
D | TableFlattener.cpp | 114 android::StringPool::FlattenUtf16(pkg_writer.buffer(), type_pool_, diag_); in FlattenPackage() 117 android::StringPool::FlattenUtf8(pkg_writer.buffer(), key_pool_, diag_); in FlattenPackage() 557 android::StringPool type_pool_; 558 android::StringPool key_pool_; 572 [](const android::StringPool::Context& a, const android::StringPool::Context& b) -> int { in Consume() 588 android::StringPool::FlattenUtf8(table_writer.buffer(), table->string_pool, in Consume()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.h | 54 android::StringPool* src_pool = nullptr); 70 void SerializeStringPoolToPb(const android::StringPool& pool, pb::StringPool* out_pb_pool,
|
D | ProtoDeserialize.h | 37 android::StringPool* value_pool, 43 android::StringPool* value_pool, 50 android::StringPool* value_pool, std::string* out_error);
|
D | ProtoSerialize.cpp | 29 void SerializeStringPoolToPb(const android::StringPool& pool, pb::StringPool* out_pb_pool, in SerializeStringPoolToPb() 32 android::StringPool::FlattenUtf8(&buffer, pool, diag); in SerializeStringPoolToPb() 44 void SerializeSourceToPb(const android::Source& source, android::StringPool* src_pool, in SerializeSourceToPb() 46 android::StringPool::Ref ref = src_pool->MakeRef(source.path); in SerializeSourceToPb() 286 android::StringPool* source_pool, pb::Entry* pb_entry, in SerializeOverlayableItemToPb() 348 auto source_pool = (options.exclude_sources) ? nullptr : util::make_unique<android::StringPool>(); in SerializeTableToPb() 496 static void SerializeItemMetaDataToPb(const Item& item, T* pb_item, android::StringPool* src_pool) { in SerializeItemMetaDataToPb() 540 ValueSerializer(pb::Value* out_value, android::StringPool* src_pool) in ValueSerializer() 559 for (const android::StringPool::Span& span : str->value->spans) { in Visit() 707 android::StringPool* src_pool_; [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues_test.cpp | 40 android::StringPool pool; in TEST() 59 android::StringPool pool; in TEST() 71 android::StringPool pool; in TEST() 95 android::StringPool pool; in TEST() 107 android::StringPool pool; in TEST() 171 android::StringPool pool_a; in TEST() 172 android::StringPool pool_b; in TEST() 174 String str_a(pool_a.MakeRef("hello", android::StringPool::Context(test::ParseConfigOrDie("en")))); in TEST() 188 android::StringPool pool_a; in TEST() 189 android::StringPool pool_b; in TEST() [all …]
|
D | ResourceValues.h | 199 android::StringPool::Ref value; 201 explicit RawString(const android::StringPool::Ref& ref); 227 android::StringPool::Ref value; 234 explicit String(const android::StringPool::Ref& ref); 243 android::StringPool::StyleRef value; 250 explicit StyledString(const android::StringPool::StyleRef& ref); 258 android::StringPool::Ref path; 269 explicit FileReference(const android::StringPool::Ref& path); 341 void MergeWith(Style* style, android::StringPool* pool); 402 explicit CloningValueTransformer(android::StringPool* new_pool);
|
D | ValueTransformer.h | 85 explicit ValueTransformer(android::StringPool* new_pool); 104 android::StringPool* const pool_;
|
D | ValueTransformer_inline.h | 22 inline ValueTransformer::ValueTransformer(android::StringPool* new_pool) : pool_(new_pool) { in ValueTransformer()
|
/frameworks/base/tools/aapt2/link/ |
D | XmlCompatVersioner.h | 48 android::StringPool* out_string_pool) const = 0; 73 std::set<ApiVersion>* out_apis_referenced, android::StringPool* out_string_pool); 90 android::StringPool* out_string_pool) const override;
|
D | XmlCompatVersioner.cpp | 25 static xml::Attribute CopyAttr(const xml::Attribute& src, android::StringPool* out_string_pool) { in CopyAttr() 37 android::StringPool* out_string_pool) { in CopyAttribute() 61 android::StringPool* out_string_pool) { in ProcessRule() 159 android::StringPool* out_string_pool) { in CloneIfNotNull() 169 android::StringPool* out_string_pool) const { in Degrade()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | StringPool.java | 27 public final class StringPool { class 34 public StringPool() { in StringPool() method in StringPool
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator.cpp | 61 inline static UnifiedSpan SpanToUnifiedSpan(const android::StringPool::Span& span) { in SpanToUnifiedSpan() 119 android::StringPool* pool) { in PseudolocalizeStyledString() 232 Visitor(android::StringPool* pool, Pseudolocalizer::Method method) in Visitor() 295 android::StringPool* pool_; 305 GrammaticalGenderVisitor(android::StringPool* pool, uint8_t grammaticalInflection) in GrammaticalGenderVisitor() 360 for (const android::StringPool::Span& span : string->value->spans) { in Visit() 372 android::StringPool* pool_; 402 ResourceConfigValue* localized_config_value, android::StringPool* pool, in GrammaticalGender() 434 android::StringPool* pool, ResourceEntry* entry, in GrammaticalGenderIfNeeded() 453 ResourceConfigValue* original_value, android::StringPool* pool, in PseudolocalizeIfNeeded()
|
D | PseudolocaleGenerator.h | 28 android::StringPool* pool);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryProtoHelper.java | 48 if (proto.nextField(NotificationHistoryProto.StringPool.SIZE)) { in readStringPool() 49 stringPool = new ArrayList(proto.readInt(NotificationHistoryProto.StringPool.SIZE)); in readStringPool() 55 case (int) NotificationHistoryProto.StringPool.STRINGS: in readStringPool() 56 stringPool.add(proto.readString(NotificationHistoryProto.StringPool.STRINGS)); in readStringPool() 68 proto.write(NotificationHistoryProto.StringPool.SIZE, pooledStrings.length); in writeStringPool() 70 proto.write(NotificationHistoryProto.StringPool.STRINGS, pooledStrings[i]); in writeStringPool()
|
/frameworks/base/core/proto/android/server/ |
D | notificationhistory.proto | 26 message StringPool { message 88 optional StringPool string_pool = 1;
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 47 if (proto.nextField(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() 316 proto.write(IntervalStatsProto.StringPool.SIZE, size); in writeStringPool() 318 proto.write(IntervalStatsProto.StringPool.STRINGS, stats.mStringCache.valueAt(i)); in writeStringPool()
|