Home
last modified time | relevance | path

Searched refs:LoadedIdmap (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/cmds/idmap2/tests/
DBinaryStreamVisitorTests.cpp88 std::unique_ptr<const LoadedIdmap> loaded_idmap = LoadedIdmap::Load(data); in TEST()
96 bool success = LoadedIdmap::Lookup(header, 0x0000, &entry); in TEST()
103 success = LoadedIdmap::Lookup(header, 0x0000, &entry); // string/a in TEST()
106 success = LoadedIdmap::Lookup(header, 0x0001, &entry); // string/b in TEST()
109 success = LoadedIdmap::Lookup(header, 0x0002, &entry); // string/c in TEST()
112 success = LoadedIdmap::Lookup(header, 0x0003, &entry); // string/policy_odm in TEST()
115 success = LoadedIdmap::Lookup(header, 0x0004, &entry); // string/policy_oem in TEST()
118 success = LoadedIdmap::Lookup(header, 0x0005, &entry); // string/other in TEST()
121 success = LoadedIdmap::Lookup(header, 0x0006, &entry); // string/not_overlayable in TEST()
124 success = LoadedIdmap::Lookup(header, 0x0007, &entry); // string/policy_product in TEST()
[all …]
/frameworks/base/libs/androidfw/
DIdmap.cpp47 bool LoadedIdmap::Lookup(const IdmapEntry_header* header, uint16_t input_entry_id, in Lookup()
112 LoadedIdmap::LoadedIdmap(const Idmap_header* header) : header_(header) { in LoadedIdmap() function in android::LoadedIdmap
118 std::unique_ptr<const LoadedIdmap> LoadedIdmap::Load(const StringPiece& idmap_data) { in Load()
127 std::unique_ptr<LoadedIdmap> loaded_idmap = std::unique_ptr<LoadedIdmap>(new LoadedIdmap(header)); in Load()
178 uint8_t LoadedIdmap::TargetPackageId() const { in TargetPackageId()
182 const IdmapEntry_header* LoadedIdmap::GetEntryMapForType(uint8_t type_id) const { in GetEntryMapForType()
DApkAssets.cpp68 std::unique_ptr<const LoadedIdmap> loaded_idmap = LoadedIdmap::Load(idmap_data); in LoadOverlay()
107 std::unique_ptr<const LoadedIdmap> loaded_idmap, bool system, bool load_as_shared_library) { in LoadImpl()
DLoadedArsc.cpp403 const LoadedIdmap* loaded_idmap, in Load()
698 bool LoadedArsc::LoadTable(const Chunk& chunk, const LoadedIdmap* loaded_idmap, in LoadTable()
761 const LoadedIdmap* loaded_idmap, bool system, in Load()
DAssetManager2.cpp438 if (!LoadedIdmap::Lookup(type_spec->idmap_entries, local_entry_idx, &local_entry_idx)) { in FindEntry()
/frameworks/base/libs/androidfw/include/androidfw/
DIdmap.h39 class LoadedIdmap {
42 static std::unique_ptr<const LoadedIdmap> Load(const StringPiece& idmap_data);
62 LoadedIdmap() = default;
69 DISALLOW_COPY_AND_ASSIGN(LoadedIdmap);
71 explicit LoadedIdmap(const Idmap_header* header);
DApkAssets.h35 class LoadedIdmap; variable
94 std::unique_ptr<const LoadedIdmap> loaded_idmap,
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);
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp224 class MockLoadedIdmap : public LoadedIdmap {
226 MockLoadedIdmap() : LoadedIdmap() { in MockLoadedIdmap()
273 ASSERT_TRUE(LoadedIdmap::Lookup(type_spec->idmap_entries, 0x0001u, &target_entry_id)); in TEST()