Home
last modified time | relevance | path

Searched refs:loaded_idmap (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/cmds/idmap2/tests/
DBinaryStreamVisitorTests.cpp88 std::unique_ptr<const LoadedIdmap> loaded_idmap = LoadedIdmap::Load(data); in TEST() local
89 ASSERT_THAT(loaded_idmap, NotNull()); in TEST()
90 ASSERT_EQ(loaded_idmap->TargetPackageId(), 0x7f); in TEST()
92 const IdmapEntry_header* header = loaded_idmap->GetEntryMapForType(0x01); in TEST()
100 header = loaded_idmap->GetEntryMapForType(0x02); in TEST()
/frameworks/base/libs/androidfw/
DApkAssets.cpp68 std::unique_ptr<const LoadedIdmap> loaded_idmap = LoadedIdmap::Load(idmap_data); in LoadOverlay() local
69 if (loaded_idmap == nullptr) { in LoadOverlay()
73 return LoadImpl({} /*fd*/, loaded_idmap->OverlayApkPath(), std::move(idmap_asset), in LoadOverlay()
74 std::move(loaded_idmap), system, false /*load_as_shared_library*/); in LoadOverlay()
107 std::unique_ptr<const LoadedIdmap> loaded_idmap, bool system, bool load_as_shared_library) { in LoadImpl() argument
155 LoadedArsc::Load(data, loaded_idmap.get(), system, load_as_shared_library); in LoadImpl()
DLoadedArsc.cpp403 const LoadedIdmap* loaded_idmap, in Load() argument
427 if (loaded_idmap != nullptr) { in Load()
429 loaded_package->package_id_ = loaded_idmap->TargetPackageId(); in Load()
517 if (loaded_idmap != nullptr) { in Load()
518 idmap_entry_header = loaded_idmap->GetEntryMapForType(type_spec->id); in Load()
686 if (loaded_idmap == nullptr || type_spec_ptr->idmap_entries != nullptr) { in Load()
698 bool LoadedArsc::LoadTable(const Chunk& chunk, const LoadedIdmap* loaded_idmap, in LoadTable() argument
738 LoadedPackage::Load(child_chunk, loaded_idmap, system_, load_as_shared_library); in LoadTable()
761 const LoadedIdmap* loaded_idmap, bool system, in Load() argument
774 if (!loaded_arsc->LoadTable(chunk, loaded_idmap, load_as_shared_library)) { in Load()
DIdmap.cpp127 std::unique_ptr<LoadedIdmap> loaded_idmap = std::unique_ptr<LoadedIdmap>(new LoadedIdmap(header)); in Load() local
158 loaded_idmap->type_map_[static_cast<uint8_t>(dtohs(entry_header->overlay_type_id))] = in Load()
175 return std::move(loaded_idmap); in Load()
/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h139 const LoadedIdmap* loaded_idmap, bool system,
283 const LoadedIdmap* loaded_idmap = nullptr,
314 bool LoadTable(const Chunk& chunk, const LoadedIdmap* loaded_idmap, bool load_as_shared_library);
DApkAssets.h94 std::unique_ptr<const LoadedIdmap> loaded_idmap,
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp253 MockLoadedIdmap loaded_idmap; in TEST() local
256 LoadedArsc::Load(StringPiece(contents), &loaded_idmap); in TEST()