Lines Matching refs:zip

72 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata) {  in ReadMetadataFromPackage()  argument
78 if (FindEntry(zip, path, &entry) != 0) { in ReadMetadataFromPackage()
86 ExtractToMemory(zip, &entry, reinterpret_cast<uint8_t*>(&metadata_string[0]), length); in ReadMetadataFromPackage()
232 int SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd, in SetUpAbUpdateCommands() argument
241 if (FindEntry(zip, property_name, &properties_entry) != 0) { in SetUpAbUpdateCommands()
248 ExtractToMemory(zip, &properties_entry, payload_properties.data(), properties_entry_length); in SetUpAbUpdateCommands()
257 if (FindEntry(zip, payload_name, &payload_entry) != 0) { in SetUpAbUpdateCommands()
272 int SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count, in SetUpNonAbUpdateCommands() argument
280 if (FindEntry(zip, binary_name, &binary_entry) != 0) { in SetUpNonAbUpdateCommands()
294 int32_t error = ExtractEntryToFile(zip, &binary_entry, fd); in SetUpNonAbUpdateCommands()
328 static int try_update_binary(const std::string& package, ZipArchiveHandle zip, bool* wipe_cache, in try_update_binary() argument
332 if (!ReadMetadataFromPackage(zip, &metadata)) { in try_update_binary()
390 is_ab ? SetUpAbUpdateCommands(package, zip, pipe_write.get(), &args) in try_update_binary()
391 : SetUpNonAbUpdateCommands(package, zip, retry_count, pipe_write.get(), &args); in try_update_binary()
609 ZipArchiveHandle zip = package->GetZipArchiveHandle(); in really_install_package() local
610 if (!zip) { in really_install_package()
616 if (retry_count == 0 && !verify_package_compatibility(zip)) { in really_install_package()
628 try_update_binary(path, zip, wipe_cache, log_buffer, retry_count, max_temperature, ui); in really_install_package()