Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 17 of 17) sorted by relevance

/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DPayloadSpecs.java58 ZipEntry entry = entries.nextElement(); in forNonStreaming() local
59 String name = entry.getName(); in forNonStreaming()
62 long extraSize = entry.getExtra() == null ? 0 : entry.getExtra().length; in forNonStreaming()
65 if (entry.isDirectory()) { in forNonStreaming()
69 long length = entry.getCompressedSize(); in forNonStreaming()
71 if (entry.getMethod() != ZipEntry.STORED) { in forNonStreaming()
78 InputStream inputStream = zip.getInputStream(entry); in forNonStreaming()
/bootable/recovery/otautil/
Droots.cpp65 const auto& entry = fstab[i]; in load_volume_table() local
66 std::cout << " " << i << " " << entry.mount_point << " " in load_volume_table()
67 << " " << entry.fs_type << " " << entry.blk_device << " " << entry.length in load_volume_table()
258 for (const FstabEntry& entry : fstab) { in setup_install_mounts() local
260 if (entry.mount_point == "/") { in setup_install_mounts()
264 if (entry.mount_point == "/tmp" || entry.mount_point == "/cache") { in setup_install_mounts()
265 if (ensure_path_mounted(entry.mount_point) != 0) { in setup_install_mounts()
266 LOG(ERROR) << "Failed to mount " << entry.mount_point; in setup_install_mounts()
270 if (ensure_path_unmounted(entry.mount_point) != 0) { in setup_install_mounts()
271 LOG(ERROR) << "Failed to unmount " << entry.mount_point; in setup_install_mounts()
/bootable/recovery/tests/unit/
Dpackage_test.cpp46 for (const auto& entry : entries) { in SetUp() local
47 ASSERT_EQ(0, writer.StartEntry(entry.c_str(), ZipWriter::kCompress)); in SetUp()
48 ASSERT_EQ(0, writer.WriteBytes(entry.c_str(), entry.size())); in SetUp()
110 ZipEntry entry; in TEST_F() local
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/recovery_ui/
Ddevice.cpp49 [](const auto& entry) { return entry.first; }); in PopulateMenuItems() argument
59 [action](const auto& entry) { return entry.second == action; })); in RemoveMenuItemForAction() argument
/bootable/recovery/boot_control/
Dboot_control.cpp174 slot_metadata entry = {}; in InitDefaultBootloaderControl() local
177 entry.priority = 7; in InitDefaultBootloaderControl()
178 entry.tries_remaining = kDefaultBootAttempts; in InitDefaultBootloaderControl()
179 entry.successful_boot = 0; in InitDefaultBootloaderControl()
181 entry.priority = 0; // Unbootable in InitDefaultBootloaderControl()
189 entry.successful_boot = 1; in InitDefaultBootloaderControl()
192 boot_ctrl->slot_info[slot] = entry; in InitDefaultBootloaderControl()
/bootable/recovery/fastboot/
Dfastboot.cpp68 [](const auto& entry) { return entry.first; }); in StartFastboot() argument
/bootable/recovery/uncrypt/
Duncrypt.cpp176 for (const auto& entry : fstab) { in FindBlockDevice() local
177 if (entry.mount_point.empty()) { in FindBlockDevice()
180 if (android::base::StartsWith(path, entry.mount_point + "/")) { in FindBlockDevice()
183 if (entry.is_encryptable() || entry.fs_mgr_flags.file_encryption) { in FindBlockDevice()
189 if (entry.fs_type == "f2fs") { in FindBlockDevice()
192 return entry.blk_device; in FindBlockDevice()
/bootable/recovery/applypatch/
Dimgdiff.cpp687 ZipEntry entry; in InitializeChunks() local
688 while ((ret = Next(cookie, &entry, &name)) == 0) { in InitializeChunks()
689 if (entry.method == kCompressDeflated || limit_ > 0) { in InitializeChunks()
691 temp_entries.emplace_back(entry_name, entry); in InitializeChunks()
706 for (auto& entry : temp_entries) { in InitializeChunks() local
707 if (!AddZipEntryToChunks(handle, entry.first, &entry.second)) { in InitializeChunks()
708 LOG(ERROR) << "Failed to add " << entry.first << " to source chunks"; in InitializeChunks()
761 ZipEntry* entry) { in AddZipEntryToChunks() argument
762 size_t compressed_len = entry->compressed_length; in AddZipEntryToChunks()
771 chunks_.emplace_back(CHUNK_NORMAL, entry->offset + limit_ * count, &file_content_, length, in AddZipEntryToChunks()
[all …]
/bootable/recovery/install/
Dverifier.cpp325 ZipEntry entry; in IterateZipEntriesAndSearchForKeys() local
326 while ((iter_status = Next(cookie, &entry, &name)) == 0) { in IterateZipEntriesAndSearchForKeys()
327 std::vector<uint8_t> pem_content(entry.uncompressed_length); in IterateZipEntriesAndSearchForKeys()
329 ExtractToMemory(handle, &entry, pem_content.data(), pem_content.size()); in IterateZipEntriesAndSearchForKeys()
Dinstall.cpp77 ZipEntry entry; in ReadMetadataFromPackage() local
78 if (FindEntry(zip, path, &entry) != 0) { in ReadMetadataFromPackage()
83 uint32_t length = entry.uncompressed_length; in ReadMetadataFromPackage()
86 ExtractToMemory(zip, &entry, reinterpret_cast<uint8_t*>(&metadata_string[0]), length); in ReadMetadataFromPackage()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp52 for (const auto& entry : fstab) { in get_misc_blk_device() local
53 if (entry.mount_point == "/misc") { in get_misc_blk_device()
54 return entry.blk_device; in get_misc_blk_device()
/bootable/recovery/updater/
Dinstall.cpp134 ZipEntry entry; in PackageExtractFileFn() local
135 if (FindEntry(za, zip_string_path, &entry) != 0) { in PackageExtractFileFn()
148 int32_t ret = ExtractEntryToFile(za, &entry, fd); in PackageExtractFileFn()
151 << entry.uncompressed_length << " bytes) to \"" << dest_path in PackageExtractFileFn()
178 ZipEntry entry; in PackageExtractFileFn() local
179 if (FindEntry(za, zip_string_path, &entry) != 0) { in PackageExtractFileFn()
185 buffer.resize(entry.uncompressed_length); in PackageExtractFileFn()
188 ExtractToMemory(za, &entry, reinterpret_cast<uint8_t*>(&buffer[0]), buffer.size()); in PackageExtractFileFn()
Dblockimg.cpp346 ZipEntry entry; member
464 ProcessZipEntryContents(nti->za, &nti->entry, receive_brotli_new_data, nti); in unzip_new_data()
466 ProcessZipEntryContents(nti->za, &nti->entry, receive_new_data, nti); in unzip_new_data()
1779 params.nti.entry = new_entry; in PerformBlockImageUpdate()
/bootable/recovery/
Drecovery.cpp318 ZipEntry entry; in GetWipePartitionList() local
319 if (FindEntry(zip, path, &entry) == 0) { in GetWipePartitionList()
320 uint32_t length = entry.uncompressed_length; in GetWipePartitionList()
323 zip, &entry, reinterpret_cast<uint8_t*>(partition_list_content.data()), length); in GetWipePartitionList()
/bootable/recovery/tests/component/
Dupdater_test.cpp92 for (const auto& entry : entries) { in BuildUpdatePackage() local
94 ASSERT_EQ(0, zip_writer.StartEntry(entry.first.c_str(), 0)); in BuildUpdatePackage()
95 if (!entry.second.empty()) { in BuildUpdatePackage()
96 ASSERT_EQ(0, zip_writer.WriteBytes(entry.second.data(), entry.second.size())); in BuildUpdatePackage()
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h260 bool AddZipEntryToChunks(ZipArchiveHandle handle, const std::string& entry_name, ZipEntry* entry);
/bootable/recovery/updater_sample/
DREADME.md40 entry, which takes up the majority of the space in an OTA package, will be