Home
last modified time | relevance | path

Searched refs:ResChunk_header (Results 1 – 13 of 13) 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()
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.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);
55 bool ParseType(const ResourceTablePackage* package, const android::ResChunk_header* chunk);
56 bool ParseLibrary(const android::ResChunk_header* chunk);
57 bool ParseOverlayable(const android::ResChunk_header* chunk);
DBinaryResourceParser.cpp127 bool BinaryResourceParser::ParseTable(const ResChunk_header* chunk) { in ParseTable()
176 bool BinaryResourceParser::ParsePackage(const ResChunk_header* chunk) { in ParsePackage()
279 const ResChunk_header* chunk) { in ParseTypeSpec()
327 const ResChunk_header* chunk) { in ParseType()
423 bool BinaryResourceParser::ParseLibrary(const ResChunk_header* chunk) { in ParseLibrary()
438 bool BinaryResourceParser::ParseOverlayable(const ResChunk_header* chunk) { in ParseOverlayable()
DXmlFlattener.cpp349 res_id_map_writer.StartChunk<ResChunk_header>(RES_XML_RESOURCE_MAP_TYPE); in Flatten()
DTableFlattener_test.cpp263 const ResChunk_header* package_chunk = nullptr; in TEST_F()
275 const ResChunk_header* type_chunk = nullptr; in TEST_F()
/frameworks/base/libs/androidfw/
DChunkIterator.cpp26 const ResChunk_header* this_chunk = next_chunk_; in Next()
29 next_chunk_ = reinterpret_cast<const ResChunk_header*>( in Next()
45 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunkNonFatal()
71 if (len_ < sizeof(ResChunk_header)) { in VerifyNextChunk()
78 if (header_size < sizeof(ResChunk_header)) { in VerifyNextChunk()
DResourceTypes.cpp108 static status_t validate_chunk(const ResChunk_header* chunk, in validate_chunk()
471 if (validate_chunk(reinterpret_cast<const ResChunk_header*>(data), sizeof(ResStringPool_header), in setTo()
1679 const ResChunk_header* chunk = in setTo()
1680 (const ResChunk_header*)(((const uint8_t*)mHeader) + dtohs(mHeader->header.headerSize)); in setTo()
1681 const ResChunk_header* lastChunk = chunk; in setTo()
1682 while (((const uint8_t*)chunk) < (mDataEnd-sizeof(ResChunk_header)) && in setTo()
1684 status_t err = validate_chunk(chunk, sizeof(ResChunk_header), mDataEnd, "XML"); in setTo()
1722 chunk = (const ResChunk_header*) in setTo()
4173 const ResChunk_header* chunk = in addInternal()
4174 (const ResChunk_header*)(((const uint8_t*)header->header) in addInternal()
[all …]
DLoadedArsc.cpp456 reinterpret_cast<uintptr_t>(child_chunk.header<ResChunk_header>()); in Load()
/frameworks/base/libs/androidfw/include/androidfw/
DChunk.h39 explicit Chunk(const ResChunk_header* chunk) : device_chunk_(chunk) {} in Chunk()
66 const ResChunk_header* device_chunk_;
88 : next_chunk_(reinterpret_cast<const ResChunk_header*>(data)), in ChunkIterator()
116 const ResChunk_header* next_chunk_;
DResourceTypes.h196 struct ResChunk_header struct
440 struct ResChunk_header header;
583 struct ResChunk_header header;
592 struct ResChunk_header header;
861 struct ResChunk_header header;
874 struct ResChunk_header header;
1345 struct ResChunk_header header;
1392 struct ResChunk_header header;
1593 struct ResChunk_header header;
1617 struct ResChunk_header header;
[all …]
/frameworks/base/tools/aapt/
DXMLNode.cpp1119 sizeof(ResChunk_header)+(sizeof(uint32_t)*resids.size()); in flatten()
1120 ResChunk_header* idsHeader = (ResChunk_header*) in flatten()