/frameworks/base/cmds/idmap2/tests/ |
D | IdmapTests.cpp | 129 const auto idmap = std::move(*result); in TEST() local 131 ASSERT_THAT(idmap->GetHeader(), NotNull()); in TEST() 132 ASSERT_EQ(idmap->GetHeader()->GetMagic(), 0x504d4449U); in TEST() 133 ASSERT_EQ(idmap->GetHeader()->GetVersion(), 0x01U); in TEST() 134 ASSERT_EQ(idmap->GetHeader()->GetTargetCrc(), 0x1234U); in TEST() 135 ASSERT_EQ(idmap->GetHeader()->GetOverlayCrc(), 0x5678U); in TEST() 136 ASSERT_EQ(idmap->GetHeader()->GetTargetPath().to_string(), "target.apk"); in TEST() 137 ASSERT_EQ(idmap->GetHeader()->GetOverlayPath().to_string(), "overlay.apk"); in TEST() 139 const std::vector<std::unique_ptr<const IdmapData>>& dataBlocks = idmap->GetData(); in TEST() 188 std::unique_ptr<const Idmap> idmap; in TEST() local [all …]
|
D | PrettyPrintVisitorTests.cpp | 46 const auto idmap = in TEST() local 49 ASSERT_TRUE(idmap); in TEST() 53 (*idmap)->accept(&visitor); in TEST() 66 const auto idmap = Idmap::FromBinaryStream(raw_stream); in TEST() local 67 ASSERT_TRUE(idmap); in TEST() 71 (*idmap)->accept(&visitor); in TEST()
|
D | RawPrintVisitorTests.cpp | 41 const auto idmap = in TEST() local 44 ASSERT_TRUE(idmap); in TEST() 48 (*idmap)->accept(&visitor); in TEST() 64 const auto idmap = Idmap::FromBinaryStream(raw_stream); in TEST() local 65 ASSERT_TRUE(idmap); in TEST() 69 (*idmap)->accept(&visitor); in TEST()
|
D | Idmap2BinaryTests.cpp | 54 void AssertIdmap(const Idmap& idmap, const std::string& target_apk_path, in AssertIdmap() argument 58 ASSERT_EQ(idmap.GetHeader()->GetMagic(), kIdmapMagic); in AssertIdmap() 59 ASSERT_EQ(idmap.GetHeader()->GetVersion(), kIdmapCurrentVersion); in AssertIdmap() 60 ASSERT_EQ(idmap.GetHeader()->GetTargetPath(), target_apk_path); in AssertIdmap() 61 ASSERT_EQ(idmap.GetHeader()->GetOverlayPath(), overlay_apk_path); in AssertIdmap() 62 ASSERT_EQ(idmap.GetData().size(), 1U); in AssertIdmap() 101 const auto idmap = Idmap::FromBinaryStream(fin); in TEST_F() local 104 ASSERT_TRUE(idmap); in TEST_F() 105 ASSERT_IDMAP(**idmap, GetTargetApkPath(), GetOverlayApkPath()); in TEST_F()
|
D | BinaryStreamVisitorTests.cpp | 78 const auto idmap = in TEST() local 81 ASSERT_TRUE(idmap); in TEST() 85 (*idmap)->accept(&visitor); in TEST()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Dump.cpp | 53 const auto idmap = Idmap::FromBinaryStream(fin); in Dump() local 55 if (!idmap) { in Dump() 56 return Error(idmap.GetError(), "failed to load idmap"); in Dump() 61 (*idmap)->accept(&visitor); in Dump() 64 (*idmap)->accept(&visitor); in Dump()
|
D | Create.cpp | 102 const auto idmap = Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, in Create() local 104 if (!idmap) { in Create() 105 return Error(idmap.GetError(), "failed to create idmap"); in Create() 114 (*idmap)->accept(&visitor); in Create()
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Idmap2Service.cpp | 140 const auto idmap = Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, in createIdmap() local 142 if (!idmap) { in createIdmap() 143 return error(idmap.GetErrorMessage()); in createIdmap() 152 (*idmap)->accept(&visitor); in createIdmap()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Idmap.cpp | 249 std::unique_ptr<Idmap> idmap(new Idmap()); in FromBinaryStream() local 251 idmap->header_ = IdmapHeader::FromBinaryStream(stream); in FromBinaryStream() 252 if (!idmap->header_) { in FromBinaryStream() 263 idmap->data_.push_back(std::move(data)); in FromBinaryStream() 266 return {std::move(idmap)}; in FromBinaryStream() 404 std::unique_ptr<Idmap> idmap(new Idmap()); in FromApkAssets() local 405 idmap->header_ = std::move(header); in FromApkAssets() 469 idmap->data_.push_back(std::move(data)); in FromApkAssets() 471 return {std::move(idmap)}; in FromApkAssets()
|
D | PrettyPrintVisitor.cpp | 31 void PrettyPrintVisitor::visit(const Idmap& idmap ATTRIBUTE_UNUSED) { in visit()
|
D | BinaryStreamVisitor.cpp | 44 void BinaryStreamVisitor::visit(const Idmap& idmap ATTRIBUTE_UNUSED) { in visit()
|
D | RawPrintVisitor.cpp | 35 void RawPrintVisitor::visit(const Idmap& idmap ATTRIBUTE_UNUSED) { in visit()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 243 if (mAssetPaths[i].idmap == idmapPath) { in addOverlayPath() 249 Asset* idmap = NULL; in addOverlayPath() local 250 if ((idmap = openAssetFromFileLocked(idmapPath, Asset::ACCESS_BUFFER)) == NULL) { in addOverlayPath() 257 if (!ResTable::getIdmapInfo(idmap->getBuffer(false), idmap->getLength(), in addOverlayPath() 260 delete idmap; in addOverlayPath() 263 delete idmap; in addOverlayPath() 286 oap.idmap = idmapPath; in addOverlayPath() 550 Asset* idmap = openIdmapLocked(ap); in appendPathToResTable() local 585 sharedRes->add(ass, idmap, nextEntryIdx + 1, false); in appendPathToResTable() 614 mResources->add(ass, idmap, nextEntryIdx + 1, !shared, appAsLib, ap.isSystemAsset); in appendPathToResTable() [all …]
|
D | ResourceTypes.cpp | 232 static bool assertIdmapHeader(const void* idmap, size_t size) { in assertIdmapHeader() argument 233 if (reinterpret_cast<uintptr_t>(idmap) & 0x03) { in assertIdmapHeader() 243 const uint32_t magic = htodl(*reinterpret_cast<const uint32_t*>(idmap)); in assertIdmapHeader() 250 const uint32_t version = htodl(*(reinterpret_cast<const uint32_t*>(idmap) + 1)); in assertIdmapHeader() 356 status_t parseIdmap(const void* idmap, size_t size, uint8_t* outPackageId, KeyedVector<uint8_t, Idm… in parseIdmap() argument 357 if (!assertIdmapHeader(idmap, size)) { in parseIdmap() 368 reinterpret_cast<const uint8_t*>(idmap) + ResTable::IDMAP_HEADER_SIZE_BYTES); in parseIdmap() 7260 bool ResTable::getIdmapInfo(const void* idmap, size_t sizeBytes, in getIdmapInfo() argument 7265 const uint32_t* map = (const uint32_t*)idmap; in getIdmapInfo()
|
/frameworks/base/cmds/idmap/ |
D | Android.bp | 16 name: "idmap", 19 "idmap.cpp",
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | BinaryStreamVisitor.h | 32 virtual void visit(const Idmap& idmap);
|
D | PrettyPrintVisitor.h | 36 virtual void visit(const Idmap& idmap);
|
D | RawPrintVisitor.h | 37 virtual void visit(const Idmap& idmap);
|
D | Idmap.h | 266 virtual void visit(const Idmap& idmap) = 0;
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager.h | 220 asset_path() : path(""), rawFd(-1), type(kFileTypeRegular), idmap(""), in asset_path() 225 String8 idmap; member
|
D | ResourceTypes.h | 2064 static bool getIdmapInfo(const void* idmap, size_t size,
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapManager.java | 90 mInstaller.idmap(targetPath, overlayPath, sharedGid); in createIdmap()
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 78 void idmap(@utf8InCpp String targetApkPath, @utf8InCpp String overlayApkPath, int uid); in idmap() method
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | Installer.java | 357 public void idmap(String targetApkPath, String overlayApkPath, int uid) in idmap() method in Installer 363 mInstalld.idmap(targetApkPath, overlayApkPath, uid); in idmap()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 129 binder::Status idmap(const std::string& targetApkPath, const std::string& overlayApkPath,
|