Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DLoadedArsc.cpp113 VerifyResTableEntry(incfs::verified_map_ptr<ResTable_type> type, uint32_t entry_offset) { in VerifyResTableEntry() argument
115 if (UNLIKELY(entry_offset & 0x03U)) { in VerifyResTableEntry()
116 LOG(ERROR) << "Entry at offset " << entry_offset << " is not 4-byte aligned."; in VerifyResTableEntry()
121 if (UNLIKELY(entry_offset > std::numeric_limits<uint32_t>::max() - dtohl(type->entriesStart))) { in VerifyResTableEntry()
123 LOG(ERROR) << "Entry at offset " << entry_offset << " is too large."; in VerifyResTableEntry()
129 entry_offset += dtohl(type->entriesStart); in VerifyResTableEntry()
130 if (UNLIKELY(entry_offset > chunk_size - sizeof(ResTable_entry))) { in VerifyResTableEntry()
131 LOG(ERROR) << "Entry at offset " << entry_offset in VerifyResTableEntry()
136 auto entry = type.offset(entry_offset).convert<ResTable_entry>(); in VerifyResTableEntry()
143 LOG(ERROR) << "ResTable_entry size " << entry_size << " at offset " << entry_offset in VerifyResTableEntry()
[all …]
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp55 size_t i = 0, entry_offset = 0; in createTypeTable() local
60 *p = v ? (entry_offset >> 2) & 0xffffu : 0xffffu; in createTypeTable()
63 *p = v ? entry_offset : ResTable_type::NO_ENTRY; in createTypeTable()
73 entry_offset += sizeof(entry); in createTypeTable()
81 entry_offset += sizeof(entry) + sizeof(value); in createTypeTable()
/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp218 uint32_t entry_offset; in FromBinaryStream() local
220 if (!Read32(stream, &target_entry.target_id) || !Read32(stream, &entry_offset) in FromBinaryStream()
224 target_inline_entries.emplace_back(target_entry, entry_offset, entry_count); in FromBinaryStream()
257 for (auto [target_entry, entry_offset, entry_count] : target_inline_entries) { in FromBinaryStream()
259 const auto& target_value = target_values[entry_offset + i]; in FromBinaryStream()