Lines Matching defs:idmap

230 static bool assertIdmapHeader(const void* idmap, size_t size) {
231 if (reinterpret_cast<uintptr_t>(idmap) & 0x03) {
232 ALOGE("idmap: header is not word aligned");
237 ALOGW("idmap: header too small (%d bytes)", (uint32_t) size);
241 const uint32_t magic = htodl(*reinterpret_cast<const uint32_t*>(idmap));
243 ALOGW("idmap: no magic found in header (is 0x%08x, expected 0x%08x)",
248 const uint32_t version = htodl(*(reinterpret_cast<const uint32_t*>(idmap) + 1));
252 ALOGW("idmap: version mismatch in header (is 0x%08x, expected 0x%08x)",
295 ALOGE("idmap: entry header is not word aligned");
300 ALOGE("idmap: entry header is too small (%u bytes)", (uint32_t) size);
308 ALOGE("idmap: invalid type map (%u -> %u)", targetTypeId, overlayTypeId);
314 ALOGE("idmap: too small (%u bytes) for the number of entries (%u)",
327 // The entry is not present in this idmap
334 // The entry is not present in this idmap
343 // This entry is not present in this idmap
354 status_t parseIdmap(const void* idmap, size_t size, uint8_t* outPackageId, KeyedVector<uint8_t, IdmapEntries>* outMap) {
355 if (!assertIdmapHeader(idmap, size)) {
361 ALOGE("idmap: too small to contain any mapping");
366 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES);
370 ALOGE("idmap: target package ID is invalid (%02x)", targetPackageId);
376 ALOGE("idmap: no mappings");
381 ALOGW("idmap: too many mappings. Only 255 are possible but %u are present", (uint32_t) mapCount);
3702 ALOGW("Unable to get buffer of idmap asset file");
3794 "idmap=%p\n", data, dataSize, cookie, copyData, idmapData);
6586 ALOGW("idmap: target package has no package groups, cannot create idmap\n");
6591 ALOGW("idmap: target package has no packages in its first package group, "
6592 "cannot create idmap\n");
6655 ALOGE("idmap: can't mix type ids in entry map. Resource 0x%08x maps to 0x%08x"
6681 ALOGW("idmap: no resources in overlay package present in base package");
6731 bool ResTable::getIdmapInfo(const void* idmap, size_t sizeBytes,
6736 const uint32_t* map = (const uint32_t*)idmap;