Home
last modified time | relevance | path

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

/aosp12/system/libziparchive/
H A Dtest_ziparchive_large.py66 read_names = self._getEntryNames(zip_path.name)
68 self._ExtractEntries(zip_path.name)
81 read_names = self._getEntryNames(zip_path.name)
83 self._ExtractEntries(zip_path.name)
95 read_names = self._getEntryNames(zip_path.name)
97 self._ExtractEntries(zip_path.name)
111 read_names = self._getEntryNames(zip_path.name)
113 self._ExtractEntries(zip_path.name)
125 read_names = self._getEntryNames(zip_path.name)
127 self._ExtractEntries(zip_path.name)
[all …]
H A Dzip_archive_test.cc612 const std::string zip_path = test_data_dir + "/dummy-update.zip"; in TEST() local
613 android::base::unique_fd fd(open(zip_path.c_str(), O_RDONLY | O_BINARY)); in TEST()
623 OpenArchiveFromMemory(file_map->data(), file_map->size(), zip_path.c_str(), &handle)); in TEST()
/aosp12/system/extras/simpleperf/
H A Dread_apk_test.cpp49 std::string zip_path; in TEST() local
55 &zip_path, &entry_name)); in TEST()
56 ASSERT_EQ(zip_path, in TEST()
61 ParseExtractedInMemoryPath("[anon:dalvik-thread local mark stack]", &zip_path, &entry_name)); in TEST()
66 &zip_path, &entry_name)); in TEST()
67 ASSERT_EQ(zip_path, in TEST()
72 &zip_path, &entry_name)); in TEST()
79 &zip_path, &entry_name)); in TEST()
80 ASSERT_EQ(zip_path, "/data/app/getxml.test.com.testgetxml-knxI11ZXLT-OVBs9X9bSkw==/base.apk"); in TEST()
H A Dread_apk.cpp141 bool ParseExtractedInMemoryPath(const std::string& path, std::string* zip_path, in ParseExtractedInMemoryPath() argument
158 *zip_path = path.substr(zip_path_start, zip_path_end - zip_path_start); in ParseExtractedInMemoryPath()
159 size_t multidex_separator_pos = zip_path->find('!'); in ParseExtractedInMemoryPath()
161 zip_path->resize(multidex_separator_pos); in ParseExtractedInMemoryPath()
H A Dread_apk.h89 bool ParseExtractedInMemoryPath(const std::string& path, std::string* zip_path,
H A DJITDebugReader.cpp757 std::string zip_path; in ReadDexFileDebugInfo() local
760 if (ParseExtractedInMemoryPath(it->name, &zip_path, &entry_path)) { in ReadDexFileDebugInfo()
761 file_path = GetUrlInApk(zip_path, entry_path); in ReadDexFileDebugInfo()
H A Dcmd_record.cpp1541 std::string zip_path; in UpdateMmapRecordForEmbeddedPath() local
1543 if (ParseExtractedInMemoryPath(filename, &zip_path, &entry_name)) { in UpdateMmapRecordForEmbeddedPath()
1544 filename = GetUrlInApk(zip_path, entry_name); in UpdateMmapRecordForEmbeddedPath()
/aosp12/bionic/linker/
H A Dlinker_utils_test.cpp92 std::string zip_path; in TEST() local
95 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip", &zip_path, &entry_path)); in TEST()
96 ASSERT_FALSE(parse_zip_path("/not/a/zip/path/file.zip!path/in/zip", &zip_path, &entry_path)); in TEST()
97 ASSERT_TRUE(parse_zip_path("/zip/path/file.zip!/path/in/zip", &zip_path, &entry_path)); in TEST()
98 ASSERT_EQ("/zip/path/file.zip", zip_path); in TEST()
101 ASSERT_TRUE(parse_zip_path("/zip/path/file2.zip!/", &zip_path, &entry_path)); in TEST()
102 ASSERT_EQ("/zip/path/file2.zip", zip_path); in TEST()
H A Dlinker_utils.cpp140 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path) { in parse_zip_path() argument
166 *zip_path = buf; in parse_zip_path()
235 std::string zip_path; in resolve_path() local
237 if (parse_zip_path(normalized_path.c_str(), &zip_path, &entry_path)) { in resolve_path()
238 if (realpath(zip_path.c_str(), resolved_path) == nullptr) { in resolve_path()
240 zip_path.c_str(), strerror(errno)); in resolve_path()
H A Dlinker_utils.h41 bool parse_zip_path(const char* input_path, std::string* zip_path, std::string* entry_path);
H A Dlinker.cpp845 bool get_or_open(const char* zip_path, ZipArchiveHandle* handle);
852 bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle) { in get_or_open() argument
853 std::string key(zip_path); in get_or_open()
861 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in get_or_open()
910 const char* zip_path = buf; in open_library_in_zipfile() local
912 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in open_library_in_zipfile()
918 if (!zip_archive_cache->get_or_open(zip_path, &handle)) { in open_library_in_zipfile()
/aosp12/packages/services/Car/cpp/bugreport/
H A Dmain.cpp199 bool copyFile(const std::string& zip_path, int output_socket) { in copyFile() argument
202 ALOGE("Failed to open zip file %s.", zip_path.c_str()); in copyFile()
260 processLine(line, zip_path, &last_nonempty_line); in doBugreport()
270 processLine(line, zip_path, &last_nonempty_line); in doBugreport()
272 if (zip_path->empty()) { in doBugreport()
442 void cleanupBugreportFile(const std::string& zip_path) { in cleanupBugreportFile() argument
443 if (unlink(zip_path.c_str()) != 0) { in cleanupBugreportFile()
444 ALOGE("Could not unlink %s (%s)", zip_path.c_str(), strerror(errno)); in cleanupBugreportFile()
466 std::string zip_path; in main() local
479 is_success = copyFile(zip_path, output_socket); in main()
[all …]
/aosp12/frameworks/base/libs/androidfw/tests/
H A 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()
H A DTestHelpers.h30 ::testing::AssertionResult ReadFileFromZipToString(const std::string& zip_path,
/aosp12/bootable/recovery/tests/unit/
H A Dzip_test.cpp31 std::string zip_path = from_testdata_base("ziptest_fake-update.zip"); in TEST() local
33 ASSERT_TRUE(map.MapFile(zip_path)); in TEST()
37 ASSERT_EQ(0, OpenArchiveFromMemory(map.addr, map.length, zip_path.c_str(), &handle)); in TEST()
H A Dupdater_test.cpp348 std::string zip_path = from_testdata_base("ziptest_valid.zip"); in TEST_F() local
350 ASSERT_EQ(0, OpenArchive(zip_path.c_str(), &handle)); in TEST_F()
/aosp12/packages/modules/Virtualization/zipfuse/src/
H A Dmain.rs387 fn start_fuse(zip_path: &Path, mnt_path: &Path) { in start_fuse()
388 let zip_path = PathBuf::from(zip_path); in start_fuse() localVariable
391 crate::run_fuse(&zip_path, &mnt_path).unwrap(); in start_fuse()
396 fn start_fuse(zip_path: &Path, mnt_path: &Path) { in start_fuse()
402 .arg(format!("/data/local/tmp/zipfuse {} {}", zip_path.display(), mnt_path.display())) in start_fuse()
430 let zip_path = test_dir.path().join("test.zip"); in run_test() localVariable
431 let zip = File::create(&zip_path); in run_test()
444 start_fuse(&zip_path, &mnt_path); in run_test()
/aosp12/frameworks/base/startop/scripts/iorap/
H A Dcompile_handcrafted_file.py74 for zip_path in zip_paths:
75 for dir_entry in os.listdir(zip_path):
77 matched = os.path.join(zip_path, dir_entry)
277 zip_paths = options.zip_path or []
/aosp12/bootable/recovery/updater/
H A Dinstall.cpp115 const std::string& zip_path = args[0]; in PackageExtractFileFn() local
120 if (FindEntry(za, zip_path, &entry) != 0) { in PackageExtractFileFn()
121 LOG(ERROR) << name << ": no " << zip_path << " in package"; in PackageExtractFileFn()
142 LOG(ERROR) << name << ": Failed to extract entry \"" << zip_path << "\" (" in PackageExtractFileFn()
166 const std::string& zip_path = args[0]; in PackageExtractFileFn() local
170 if (FindEntry(za, zip_path, &entry) != 0) { in PackageExtractFileFn()
172 zip_path.c_str()); in PackageExtractFileFn()
179 zip_path.c_str()); in PackageExtractFileFn()
188 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); in PackageExtractFileFn()
/aosp12/frameworks/native/cmds/dumpstate/tests/
H A 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()