/bootable/recovery/tests/component/ |
D | install_test.cpp | 58 ZipArchiveHandle zip; in TEST() local 59 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 60 ASSERT_TRUE(verify_package_compatibility(zip)); in TEST() 61 CloseArchive(zip); in TEST() 69 ZipArchiveHandle zip; in TEST() local 70 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() 71 ASSERT_FALSE(verify_package_compatibility(zip)); in TEST() 72 CloseArchive(zip); in TEST() 81 ZipArchiveHandle zip; in TEST() local 82 ASSERT_EQ(0, OpenArchive(temp_file.path, &zip)); in TEST() [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | PayloadSpecs.java | 31 import java.util.zip.ZipEntry; 32 import java.util.zip.ZipFile; 54 try (ZipFile zip = new ZipFile(packageFile)) { in forNonStreaming() argument 55 Enumeration<? extends ZipEntry> entries = zip.entries(); in forNonStreaming() 78 InputStream inputStream = zip.getInputStream(entry); in forNonStreaming()
|
/bootable/recovery/install/include/private/ |
D | setup_commands.h | 30 int SetUpNonAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int retry_count, 38 int SetUpAbUpdateCommands(const std::string& package, ZipArchiveHandle zip, int status_fd,
|
/bootable/recovery/install/ |
D | install.cpp | 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() [all …]
|
/bootable/recovery/tests/unit/ |
D | package_test.cpp | 104 ZipArchiveHandle zip = package->GetZipArchiveHandle(); in TEST_F() local 105 ASSERT_TRUE(zip); in TEST_F() 111 ASSERT_EQ(0, FindEntry(zip, path, &entry)); in TEST_F() 114 ASSERT_EQ(0, ExtractToMemory(zip, &entry, extracted.data(), extracted.size())); in TEST_F()
|
/bootable/recovery/install/include/install/ |
D | install.h | 59 bool ReadMetadataFromPackage(ZipArchiveHandle zip, std::map<std::string, std::string>* metadata);
|
/bootable/recovery/ |
D | recovery.cpp | 292 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in CheckWipePackage() local 293 if (!zip) { in CheckWipePackage() 299 if (!ReadMetadataFromPackage(zip, &metadata)) { in CheckWipePackage() 308 ZipArchiveHandle zip = wipe_package->GetZipArchiveHandle(); in GetWipePartitionList() local 309 if (!zip) { in GetWipePartitionList() 319 if (FindEntry(zip, path, &entry) == 0) { in GetWipePartitionList() 323 zip, &entry, reinterpret_cast<uint8_t*>(partition_list_content.data()), length); in GetWipePartitionList()
|
/bootable/recovery/updater_sample/ |
D | README.md | 33 `url` is expected to point to file system, e.g. `file:///data/my-sample-ota-builds-dir/ota-002.zip`. 210 update zip file
|