Searched refs:type_chunk (Results 1 – 3 of 3) sorted by relevance
236 const ResTable_entry* LoadedPackage::GetEntry(const ResTable_type* type_chunk, in GetEntry() argument238 uint32_t entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()242 return GetEntryFromOffset(type_chunk, entry_offset); in GetEntry()245 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) { in GetEntryOffset() argument248 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset()249 const size_t offsets_offset = dtohs(type_chunk->header.headerSize); in GetEntryOffset()253 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset()257 reinterpret_cast<const uint8_t*>(type_chunk) + offsets_offset); in GetEntryOffset()282 reinterpret_cast<const uint8_t*>(type_chunk) + offsets_offset); in GetEntryOffset()286 const ResTable_entry* LoadedPackage::GetEntryFromOffset(const ResTable_type* type_chunk, in GetEntryFromOffset() argument[all …]
166 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index);168 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);170 static const ResTable_entry* GetEntryFromOffset(const ResTable_type* type_chunk, uint32_t offset);
277 const ResChunk_header* type_chunk = nullptr; in TEST_F() local280 type_chunk = package_parser.chunk(); in TEST_F()286 ASSERT_NE(type_chunk, nullptr); in TEST_F()287 TypeVariant typeVariant((const ResTable_type*) type_chunk); in TEST_F()