Home
last modified time | relevance | path

Searched refs:ResStringPool (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/core/jni/
Dandroid_util_StringBlock.cpp48 ResStringPool* osb = new ResStringPool(b+off, len, true); in android_content_StringBlock_nativeCreate()
61 ResStringPool* osb = reinterpret_cast<ResStringPool*>(token); in android_content_StringBlock_nativeGetSize()
72 ResStringPool* osb = reinterpret_cast<ResStringPool*>(token); in android_content_StringBlock_nativeGetString()
95 ResStringPool* osb = reinterpret_cast<ResStringPool*>(token); in android_content_StringBlock_nativeGetStyle()
143 ResStringPool* osb = reinterpret_cast<ResStringPool*>(token); in android_content_StringBlock_nativeDestroy()
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h185 const ResStringPool* GetTypeStringPool() const { in GetTypeStringPool()
190 const ResStringPool* GetKeyStringPool() const { in GetKeyStringPool()
295 ResStringPool type_string_pool_;
296 ResStringPool key_string_pool_;
332 inline const ResStringPool* GetStringPool() const { in GetStringPool()
353 std::unique_ptr<ResStringPool> global_string_pool_ = util::make_unique<ResStringPool>();
DIdmap.h48 class OverlayStringPool : public ResStringPool {
58 const ResStringPool* idmap_string_pool_;
200 const std::unique_ptr<ResStringPool> string_pool_;
218 std::unique_ptr<ResStringPool>&& string_pool,
DUtil.h110 android::StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx);
115 std::string GetString(const android::ResStringPool& pool, size_t idx);
DResourceTypes.h513 class ResStringPool
516 ResStringPool();
517 explicit ResStringPool(bool optimize_name_lookups);
518 ResStringPool(const void* data, size_t size, bool copyData = false,
520 virtual ~ResStringPool();
586 StringPoolRef(const ResStringPool* pool, uint32_t index);
592 const ResStringPool* mPool = nullptr;
752 const ResStringPool& getStrings() const;
871 ResStringPool mStrings;
2246 const ResStringPool* getTableStringBlock(size_t index) const;
DAssetManager2.h61 ResStringPool* key_pool;
62 ResStringPool* type_pool;
138 const ResStringPool* GetStringPoolForCookie(ApkAssetsCookie cookie) const;
/frameworks/base/libs/androidfw/
DIdmap.cpp99 if (idmap_string_pool_ != nullptr && idx >= ResStringPool::size() && idx >= offset) { in stringAt()
103 return ResStringPool::stringAt(idx); in stringAt()
108 if (idmap_string_pool_ != nullptr && idx >= ResStringPool::size() && idx >= offset) { in string8At()
112 return ResStringPool::string8At(idx); in string8At()
116 return ResStringPool::size() + (idmap_string_pool_ != nullptr ? idmap_string_pool_->size() : 0U); in size()
267 std::unique_ptr<ResStringPool>&& string_pool, in LoadedIdmap()
356 auto idmap_string_pool = util::make_unique<ResStringPool>(); in Load()
DUtil.cpp203 StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx) { in GetString16()
210 std::string GetString(const android::ResStringPool& pool, size_t idx) { in GetString()
DResourceTypes.cpp464 ResStringPool::ResStringPool() : mError(NO_INIT), mOwnedData(NULL), mHeader(NULL), mCache(NULL) { in ResStringPool() function in android::ResStringPool
467 ResStringPool::ResStringPool(bool optimize_name_lookups) : ResStringPool() { in ResStringPool() function in android::ResStringPool
473 ResStringPool::ResStringPool(const void* data, size_t size, bool copyData, in ResStringPool() function in android::ResStringPool
475 : ResStringPool(optimize_name_lookups) { in ResStringPool()
479 ResStringPool::~ResStringPool() in ~ResStringPool()
484 void ResStringPool::setToEmpty() in setToEmpty()
500 status_t ResStringPool::setTo(incfs::map_ptr<void> data, size_t size, bool copyData) in setTo()
715 status_t ResStringPool::getError() const in getError()
720 void ResStringPool::uninit() in uninit()
799 base::expected<StringPiece16, NullOrIOError> ResStringPool::stringAt(size_t idx) const in stringAt()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.h107 android::ResStringPool value_pool_;
111 android::ResStringPool type_pool_;
115 android::ResStringPool key_pool_;
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.h35 const android::ResStringPool& src_pool,
41 const android::ResStringPool& src_pool,
DProtoDeserialize.cpp31 using ::android::ResStringPool;
361 static void DeserializeSourceFromPb(const pb::Source& pb_source, const ResStringPool& src_pool, in DeserializeSourceFromPb()
380 const android::ResStringPool& src_pool, in DeserializeOverlayableItemFromPb()
425 static bool DeserializePackageFromPb(const pb::Package& pb_package, const ResStringPool& src_pool, in DeserializePackageFromPb()
556 ResStringPool source_pool; in DeserializeTableFromPb()
711 static void DeserializeItemMetaDataFromPb(const T& pb_item, const android::ResStringPool& src_pool, in DeserializeItemMetaDataFromPb()
740 const android::ResStringPool& src_pool, in DeserializeValueFromPb()
878 const android::ResStringPool& src_pool, in DeserializeItemFromPb()
/frameworks/base/libs/androidfw/tests/
DCommonHelpers.h35 std::string GetStringFromPool(const ResStringPool* pool, uint32_t idx);
DStringPool_test.cpp210 ResStringPool test; in TEST()
224 ResStringPool test; in TEST()
269 ResStringPool test; in TEST()
320 ResStringPool test; in TEST()
343 ResStringPool test; in TEST()
DCommonHelpers.cpp60 std::string GetStringFromPool(const ResStringPool* pool, uint32_t idx) { in GetStringFromPool()
DTestHelpers.cpp71 const ResStringPool* pool = table.getTableStringBlock(block); in IsStringEqual()
/frameworks/base/tools/aapt2/
DDebug.h41 static void DumpResStringPool(const android::ResStringPool* pool, text::Printer* printer);
DDebug.cpp429 void Debug::DumpResStringPool(const android::ResStringPool* pool, text::Printer* printer) { in DumpResStringPool()
752 ResStringPool* pool; in PrintStringPool()
854 ResStringPool value_pool_;
858 ResStringPool type_pool_;
862 ResStringPool key_pool_;
DResourceUtils.h229 const android::ResStringPool& src_pool,
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp48 using android::ResStringPool;
94 const ResStringPool* pool = am->GetStringPoolForCookie(value.cookie); in PrintValue()
/frameworks/base/cmds/idmap2/tests/
DFabricatedOverlayTests.cpp78 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST()
168 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST()
/frameworks/base/tools/aapt/
DResourceTable.h545 const ResStringPool& getTypeStrings() const { return mTypeStrings; } in getTypeStrings()
550 const ResStringPool& getKeyStrings() const { return mKeyStrings; } in getKeyStrings()
564 ResStringPool* strings,
573 ResStringPool mTypeStrings;
574 ResStringPool mKeyStrings;
DStringPool.h31 void printStringPool(const ResStringPool* pool);
/frameworks/base/cmds/idmap2/libidmap2/
DPrettyPrintVisitor.cpp71 const ResStringPool string_pool(data.GetStringPoolData().data(), data.GetStringPoolData().size()); in visit()
/frameworks/base/cmds/idmap2/include/idmap2/
DXmlParser.h133 inline const ResStringPool& get_strings() const { in get_strings()

12