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()
97 data_(reinterpret_cast<const android::ResChunk_header*>(data)), in ResChunkPullParser()
110 inline const android::ResChunk_header* ResChunkPullParser::chunk() const { in chunk()
DChunkWriter.h53 inline android::ResChunk_header* chunk_header() { in chunk_header()
61 inline android::ResChunk_header* Finish() { in Finish()
72 android::ResChunk_header* header_ = nullptr;
76 inline android::ResChunk_header* ChunkWriter::StartChunk(uint16_t type) { in StartChunk()
78 header_ = buffer_->NextBlock<android::ResChunk_header>(); in StartChunk()
80 header_->headerSize = android::util::HostToDevice16(sizeof(android::ResChunk_header)); in StartChunk()
DBinaryResourceParser.h53 bool ParseTable(const android::ResChunk_header* chunk);
54 bool ParsePackage(const android::ResChunk_header* chunk);
55 bool ParseTypeSpec(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
57 bool ParseType(const ResourceTablePackage* package, const android::ResChunk_header* chunk,
59 bool ParseLibrary(const android::ResChunk_header* chunk);
60 bool ParseOverlayable(const android::ResChunk_header* chunk);
61 bool ParseStagedAliases(const android::ResChunk_header* chunk);
DResChunkPullParser.cpp31 using android::ResChunk_header;
34 static std::string ChunkHeaderDump(const ResChunk_header* header) { in ChunkHeaderDump()
49 current_chunk_ = (const ResChunk_header*)(((const char*)current_chunk_) + in Next()
60 } else if (offset + sizeof(ResChunk_header) > len_) { in Next()
66 if (android::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()
294 const ResChunk_header* chunk, uint8_t package_id) { in ParseTypeSpec()
344 const ResChunk_header* chunk, uint8_t package_id) { in ParseType()
446 bool BinaryResourceParser::ParseLibrary(const ResChunk_header* chunk) { in ParseLibrary()
461 bool BinaryResourceParser::ParseOverlayable(const ResChunk_header* chunk) { in ParseOverlayable()
517 bool BinaryResourceParser::ParseStagedAliases(const ResChunk_header* chunk) { in ParseStagedAliases()
DXmlFlattener.cpp351 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.cpp517 const auto pool_address = child_chunk.header<ResChunk_header>(); in Load()
523 if (pool_address == header.offset(dtohl(header->typeStrings)).convert<ResChunk_header>()) { in Load()
532 .convert<ResChunk_header>()) { in Load()
DResourceTypes.cpp114 static status_t validate_chunk(const incfs::map_ptr<ResChunk_header>& chunk, in validate_chunk()
517 const auto chunk_header = data.convert<ResChunk_header>(); in setTo()
1826 const ResChunk_header* chunk = nullptr; in setTo()
1827 const ResChunk_header* lastChunk = nullptr; in setTo()
1875 chunk = (const ResChunk_header*)(((const uint8_t*)mHeader) + dtohs(mHeader->header.headerSize)); in setTo()
1877 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo()
1879 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo()
1917 chunk = (const ResChunk_header*) in setTo()
4420 const ResChunk_header* chunk = in addInternal()
4421 (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.h218 struct ResChunk_header struct
463 struct ResChunk_header header;
614 struct ResChunk_header header;
623 struct ResChunk_header header;
897 struct ResChunk_header header;
910 struct ResChunk_header header;
1401 struct ResChunk_header header;
1453 struct ResChunk_header header;
1737 struct ResChunk_header header;
1761 struct ResChunk_header header;
[all …]
/frameworks/base/tools/aapt2/
DDebug.cpp612 void PrintChunkHeader(const ResChunk_header* chunk) { in PrintChunkHeader()
764 (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()