Home
last modified time | relevance | path

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

/aosp12/frameworks/base/libs/androidfw/
H A DLoadedArsc.cpp232 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry() argument
233 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
237 return GetEntryFromOffset(type_chunk, entry_offset.value()); in GetEntry()
241 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset() argument
244 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset()
245 const size_t offsets_offset = dtohs(type_chunk->header.headerSize); in GetEntryOffset()
248 if (type_chunk->flags & ResTable_type::FLAG_SPARSE) { in GetEntryOffset()
251 auto sparse_indices = type_chunk.offset(offsets_offset) in GetEntryOffset()
301 incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset) { in GetEntryFromOffset() argument
302 auto valid = VerifyResTableEntry(type_chunk, offset); in GetEntryFromOffset()
[all …]
/aosp12/frameworks/base/libs/androidfw/include/androidfw/
H A DLoadedArsc.h170 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
173 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
176 incfs::verified_map_ptr<ResTable_type> type_chunk, uint32_t offset);
/aosp12/frameworks/base/tools/aapt2/format/binary/
H A 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()