Home
last modified time | relevance | path

Searched refs:ResChunk_header (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/tools/aapt2/format/binary/
DResChunkPullParser.h55 const android::ResChunk_header* chunk() const;
64 const android::ResChunk_header* data_;
66 const android::ResChunk_header* current_chunk_;
71 inline static const T* ConvertTo(const android::ResChunk_header* chunk) { in ConvertTo()
78 inline static const uint8_t* GetChunkData(const android::ResChunk_header* chunk) { in GetChunkData()
82 inline static uint32_t GetChunkDataLen(const android::ResChunk_header* chunk) { in GetChunkDataLen()
96 data_(reinterpret_cast<const android::ResChunk_header*>(data)), in ResChunkPullParser()
109 inline const android::ResChunk_header* ResChunkPullParser::chunk() const { in chunk()
DChunkWriter.h54 inline android::ResChunk_header* chunk_header() { in chunk_header()
62 inline android::ResChunk_header* Finish() { in Finish()
73 android::ResChunk_header* header_ = nullptr;
77 inline android::ResChunk_header* ChunkWriter::StartChunk(uint16_t type) { in StartChunk()
79 header_ = buffer_->NextBlock<android::ResChunk_header>(); in StartChunk()
81 header_->headerSize = util::HostToDevice16(sizeof(android::ResChunk_header)); in StartChunk()
DBinaryResourceParser.h52 bool ParseTable(const android::ResChunk_header* chunk);
53 bool ParsePackage(const android::ResChunk_header* chunk);
54 bool ParseTypeSpec(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
56 bool ParseType(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
58 bool ParseLibrary(const android::ResChunk_header* chunk);
59 bool ParseOverlayable(const android::ResChunk_header* chunk);
60 bool ParseStagedAliases(const android::ResChunk_header* chunk);
DResChunkPullParser.cpp30 using android::ResChunk_header;
33 static std::string ChunkHeaderDump(const ResChunk_header* header) { in ChunkHeaderDump()
47 current_chunk_ = (const ResChunk_header*)(((const char*)current_chunk_) + in Next()
58 } else if (offset + sizeof(ResChunk_header) > len_) { in Next()
64 if (util::DeviceToHost16(current_chunk_->headerSize) < sizeof(ResChunk_header)) { in Next()
DBinaryResourceParser.cpp134 bool BinaryResourceParser::ParseTable(const ResChunk_header* chunk) { in ParseTable()
183 bool BinaryResourceParser::ParsePackage(const ResChunk_header* chunk) { in ParsePackage()
291 const ResChunk_header* chunk, uint8_t package_id) { in ParseTypeSpec()
339 const ResChunk_header* chunk, uint8_t package_id) { in ParseType()
443 bool BinaryResourceParser::ParseLibrary(const ResChunk_header* chunk) { in ParseLibrary()
458 bool BinaryResourceParser::ParseOverlayable(const ResChunk_header* chunk) { in ParseOverlayable()
511 bool BinaryResourceParser::ParseStagedAliases(const ResChunk_header* chunk) { in ParseStagedAliases()
DXmlFlattener.cpp349 res_id_map_writer.StartChunk<ResChunk_header>(RES_XML_RESOURCE_MAP_TYPE); in Flatten()
DTableFlattener_test.cpp261 const ResChunk_header* package_chunk = nullptr; in TEST_F()
273 const ResChunk_header* type_chunk = nullptr; in TEST_F()
/frameworks/base/libs/androidfw/
DChunkIterator.cpp27 const incfs::map_ptr<ResChunk_header> this_chunk = next_chunk_; in Next()
31 next_chunk_ = this_chunk.offset(dtohl(this_chunk->size)).convert<ResChunk_header>(); in Next()
46 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunkNonFatal()
77 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunk()
89 if (header_size < sizeof(ResChunk_header)) { in VerifyNextChunk()
DLoadedArsc.cpp480 const auto pool_address = child_chunk.header<ResChunk_header>(); in Load()
486 if (pool_address == header.offset(dtohl(header->typeStrings)).convert<ResChunk_header>()) { in Load()
495 .convert<ResChunk_header>()) { in Load()
DResourceTypes.cpp110 static status_t validate_chunk(const incfs::map_ptr<ResChunk_header>& chunk, in validate_chunk()
486 const auto chunk_header = data.convert<ResChunk_header>(); in setTo()
1794 const ResChunk_header* chunk = in setTo()
1795 (const ResChunk_header*)(((const uint8_t*)mHeader) + dtohs(mHeader->header.headerSize)); in setTo()
1796 const ResChunk_header* lastChunk = chunk; in setTo()
1797 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo()
1799 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo()
1837 chunk = (const ResChunk_header*) in setTo()
4286 const ResChunk_header* chunk = in addInternal()
4287 (const ResChunk_header*)(((const uint8_t*)header->header) in addInternal()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DChunk.h39 explicit Chunk(incfs::verified_map_ptr<ResChunk_header> chunk) : device_chunk_(chunk) {} in Chunk()
63 const incfs::verified_map_ptr<ResChunk_header> device_chunk_;
85 : next_chunk_(data.convert<ResChunk_header>()), in ChunkIterator()
113 incfs::map_ptr<ResChunk_header> next_chunk_;
DResourceTypes.h213 struct ResChunk_header struct
458 struct ResChunk_header header;
604 struct ResChunk_header header;
613 struct ResChunk_header header;
887 struct ResChunk_header header;
900 struct ResChunk_header header;
1371 struct ResChunk_header header;
1423 struct ResChunk_header header;
1624 struct ResChunk_header header;
1648 struct ResChunk_header header;
[all …]
/frameworks/base/tools/aapt2/
DDebug.cpp599 void PrintChunkHeader(const ResChunk_header* chunk) { in PrintChunkHeader()
739 util::DeviceToHost32((reinterpret_cast<const ResChunk_header*>(chunk))->size)); in PrintStringPool()
/frameworks/base/tools/aapt/
DXMLNode.cpp1119 sizeof(ResChunk_header)+(sizeof(uint32_t)*resids.size()); in flatten()
1120 ResChunk_header* idsHeader = (ResChunk_header*) in flatten()