Searched refs:idmap_header (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 183 auto idmap_header = IdmapHeader::FromBinaryStream(fin); in Lookup() local 185 if (!idmap_header) { in Lookup() 190 target_path = idmap_header->GetTargetPath(); in Lookup() 197 auto overlay = OverlayResourceContainer::FromPath(idmap_header->GetOverlayPath()); in Lookup() 202 auto manifest_info = (*overlay)->FindOverlayInfo(idmap_header->GetOverlayName()); in Lookup() 208 } else if (target_path != idmap_header->GetTargetPath()) { in Lookup() 210 target_path.c_str(), idmap_path.c_str(), idmap_header->GetTargetPath().c_str()); in Lookup() 215 return Error("failed to read overlay apk from %s", idmap_header->GetOverlayPath().c_str()); in Lookup()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Idmap.cpp | 91 std::unique_ptr<IdmapHeader> idmap_header(new IdmapHeader()); in FromBinaryStream() local 92 if (!Read32(stream, &idmap_header->magic_) || !Read32(stream, &idmap_header->version_)) { in FromBinaryStream() 96 if (idmap_header->magic_ != kIdmapMagic || idmap_header->version_ != kIdmapCurrentVersion) { in FromBinaryStream() 102 if (!Read32(stream, &idmap_header->target_crc_) || !Read32(stream, &idmap_header->overlay_crc_) || in FromBinaryStream() 103 !Read32(stream, &idmap_header->fulfilled_policies_) || in FromBinaryStream() 104 !Read32(stream, &enforce_overlayable) || !ReadString(stream, &idmap_header->target_path_) || in FromBinaryStream() 105 !ReadString(stream, &idmap_header->overlay_path_) || in FromBinaryStream() 106 !ReadString(stream, &idmap_header->overlay_name_) || in FromBinaryStream() 107 !ReadString(stream, &idmap_header->debug_info_)) { in FromBinaryStream() 111 idmap_header->enforce_overlayable_ = enforce_overlayable != 0U; in FromBinaryStream() [all …]
|