Home
last modified time | relevance | path

Searched refs:entry_header (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/androidfw/
DIdmap.cpp140 const IdmapEntry_header* entry_header = reinterpret_cast<const IdmapEntry_header*>(data_ptr); in Load() local
141 …if (!is_valid_type_id(dtohs(entry_header->target_type_id)) || !is_valid_type_id(dtohs(entry_header in Load()
143 dtohs(entry_header->target_type_id), in Load()
144 dtohs(entry_header->overlay_type_id)); in Load()
149 if ((data_size - sizeof(*entry_header)) / sizeof(uint32_t) < in Load()
150 static_cast<size_t>(dtohs(entry_header->entry_count))) { in Load()
152 (int)dtohs(entry_header->entry_count)); in Load()
157 if (dtohs(entry_header->entry_count != 0)) { in Load()
158 loaded_idmap->type_map_[static_cast<uint8_t>(dtohs(entry_header->overlay_type_id))] = in Load()
159 entry_header; in Load()
[all …]
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp233 entry_header = util::unique_cptr<IdmapEntry_header>( in MockLoadedIdmap()
235 entry_header->target_type_id = 0x03; in MockLoadedIdmap()
236 entry_header->overlay_type_id = 0x02; in MockLoadedIdmap()
237 entry_header->entry_id_offset = 1; in MockLoadedIdmap()
238 entry_header->entry_count = 1; in MockLoadedIdmap()
239 entry_header->entries[0] = 0x00000000u; in MockLoadedIdmap()
240 type_map_[entry_header->overlay_type_id] = entry_header.get(); in MockLoadedIdmap()
245 util::unique_cptr<IdmapEntry_header> entry_header; member in android::MockLoadedIdmap