Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DTestHelpers.cpp27 AssertionResult ReadFileFromZipToString(const std::string& zip_path, const std::string& file, in ReadFileFromZipToString() argument
31 int32_t result = OpenArchive(zip_path.c_str(), &handle); in ReadFileFromZipToString()
33 return AssertionFailure() << "Failed to open zip '" << zip_path in ReadFileFromZipToString()
41 return AssertionFailure() << "Could not find file '" << file << "' in zip '" << zip_path in ReadFileFromZipToString()
51 return AssertionFailure() << "Failed to extract file '" << file << "' from zip '" << zip_path in ReadFileFromZipToString()
DTestHelpers.h30 ::testing::AssertionResult ReadFileFromZipToString(const std::string& zip_path,
/frameworks/base/cmds/idmap/
Dcreate.cpp16 int get_zip_entry_crc(const char *zip_path, const char *entry_name, uint32_t *crc) in get_zip_entry_crc() argument
18 std::unique_ptr<ZipFileRO> zip(ZipFileRO::open(zip_path)); in get_zip_entry_crc()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp103 void ParseSections(const std::string& zip_path, std::vector<SectionInfo>* sections) { in ParseSections() argument
106 ASSERT_EQ(OpenArchive(zip_path.c_str(), &handle), 0); in ParseSections()