Home
last modified time | relevance | path

Searched refs:GetHeader (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/cmds/idmap2/tests/
DIdmapTests.cpp103 ASSERT_EQ(data->GetHeader()->GetTargetPackageId(), 0x7fU); in TEST()
104 ASSERT_EQ(data->GetHeader()->GetTypeCount(), 2U); in TEST()
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()
143 ASSERT_EQ(data->GetHeader()->GetTargetPackageId(), 0x7fU); in TEST()
[all …]
DBinaryStreamVisitorTests.cpp50 ASSERT_EQ(idmap1->GetHeader()->GetTargetCrc(), idmap2->GetHeader()->GetTargetCrc()); in TEST()
51 ASSERT_EQ(idmap1->GetHeader()->GetTargetPath(), idmap2->GetHeader()->GetTargetPath()); in TEST()
58 ASSERT_EQ(data1->GetHeader()->GetTargetPackageId(), data2->GetHeader()->GetTargetPackageId()); in TEST()
DIdmap2BinaryTests.cpp58 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()
/frameworks/base/cmds/idmap2/include/idmap2/
DIdmap.h203 inline const std::unique_ptr<const Header>& GetHeader() const { in GetHeader() function
242 inline const std::unique_ptr<const IdmapHeader>& GetHeader() const { in GetHeader() function