Home
last modified time | relevance | path

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

/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp114 std::unique_ptr<IdmapHeader> idmap_header(new IdmapHeader()); in FromBinaryStream() local
116 if (!Read32(stream, &idmap_header->magic_) || !Read32(stream, &idmap_header->version_) || in FromBinaryStream()
117 !Read32(stream, &idmap_header->target_crc_) || !Read32(stream, &idmap_header->overlay_crc_) || in FromBinaryStream()
118 !Read32(stream, &idmap_header->fulfilled_policies_) || !Read8(stream, &enforce_overlayable) || in FromBinaryStream()
119 !ReadString256(stream, idmap_header->target_path_) || in FromBinaryStream()
120 !ReadString256(stream, idmap_header->overlay_path_)) { in FromBinaryStream()
124 idmap_header->enforce_overlayable_ = static_cast<bool>(enforce_overlayable); in FromBinaryStream()
130 idmap_header->debug_info_ = std::move(*debug_str); in FromBinaryStream()
132 return std::move(idmap_header); in FromBinaryStream()
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp205 auto idmap_header = IdmapHeader::FromBinaryStream(fin); in Lookup() local
207 if (!idmap_header) { in Lookup()
212 target_path = idmap_header->GetTargetPath().to_string(); in Lookup()
219 auto manifest_info = ExtractOverlayManifestInfo(idmap_header->GetOverlayPath().to_string(), in Lookup()
225 } else if (target_path != idmap_header->GetTargetPath()) { in Lookup()
228 idmap_header->GetTargetPath().to_string().c_str()); in Lookup()
234 idmap_header->GetOverlayPath().to_string().c_str()); in Lookup()