Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DLoadedArsc.cpp243 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry() argument
244 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
248 return GetEntryFromOffset(type_chunk, entry_offset.value()); in GetEntry()
252 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset() argument
255 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset()
256 const auto offsets = type_chunk.offset(dtohs(type_chunk->header.headerSize)); in GetEntryOffset()
259 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset()
299 if (type_chunk->flags & ResTable_type::FLAG_OFFSET16) { in GetEntryOffset()
320 LoadedPackage::GetEntryFromOffset(incfs::verified_map_ptr<ResTable_type> type_chunk, in GetEntryFromOffset() argument
322 auto valid = VerifyResTableEntry(type_chunk, offset); in GetEntryFromOffset()
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h176 GetEntry(incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
179 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
182 GetEntryFromOffset(incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset);
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener_test.cpp273 const ResChunk_header* type_chunk = nullptr; in TEST_F() local
276 type_chunk = package_parser.chunk(); in TEST_F()
282 ASSERT_NE(type_chunk, nullptr); in TEST_F()
283 TypeVariant typeVariant((const ResTable_type*) type_chunk); in TEST_F()