Home
last modified time | relevance | path

Searched refs:type_chunk (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/androidfw/
DLoadedArsc.cpp239 const ResTable_entry* LoadedPackage::GetEntry(const ResTable_type* type_chunk, in GetEntry() argument
241 uint32_t entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
245 return GetEntryFromOffset(type_chunk, entry_offset); in GetEntry()
248 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) { in GetEntryOffset() argument
251 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset()
252 const size_t offsets_offset = dtohs(type_chunk->header.headerSize); in GetEntryOffset()
256 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset()
260 reinterpret_cast<const uint8_t*>(type_chunk) + offsets_offset); in GetEntryOffset()
285 reinterpret_cast<const uint8_t*>(type_chunk) + offsets_offset); in GetEntryOffset()
289 const ResTable_entry* LoadedPackage::GetEntryFromOffset(const ResTable_type* type_chunk, in GetEntryFromOffset() argument
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h151 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index);
153 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);
155 static const ResTable_entry* GetEntryFromOffset(const ResTable_type* type_chunk, uint32_t offset);
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp275 const ResChunk_header* type_chunk = nullptr; in TEST_F() local
278 type_chunk = package_parser.chunk(); in TEST_F()
284 ASSERT_NE(type_chunk, nullptr); in TEST_F()
285 TypeVariant typeVariant((const ResTable_type*) type_chunk); in TEST_F()