Lines Matching refs:entries

88 static void BuildUpdatePackage(const PackageEntries& entries, int fd) {  in BuildUpdatePackage()  argument
92 for (const auto& entry : entries) { in BuildUpdatePackage()
105 static void RunBlockImageUpdate(bool is_verify, const PackageEntries& entries, in RunBlockImageUpdate() argument
108 CHECK(entries.find("transfer_list") != entries.end()); in RunBlockImageUpdate()
112 BuildUpdatePackage(entries, zip_file.release()); in RunBlockImageUpdate()
127 std::string new_data = entries.find("new_data.br") != entries.end() ? "new_data.br" : "new_data"; in RunBlockImageUpdate()
406 PackageEntries entries{ in TEST_F() local
412 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
455 PackageEntries entries{ in TEST_F() local
461 RunBlockImageUpdate(false, entries, image_file_, "", kHashTreeComputationFailure); in TEST_F()
613 PackageEntries entries{ in TEST_F() local
619 RunBlockImageUpdate(false, entries, image_file_, "", kArgsParsingFailure); in TEST_F()
626 size_t target_blocks, PackageEntries* entries) { in GetEntriesForBsdiff() argument
653 *entries = { in GetEntriesForBsdiff()
668 PackageEntries entries; in TEST_F() local
670 std::string_view(target).substr(0, 4096 * 2), 2, &entries); in TEST_F()
671 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
688 PackageEntries entries; in TEST_F() local
690 std::string_view(target).substr(0, 4096 * 2), 1, &entries); in TEST_F()
693 RunBlockImageUpdate(false, entries, image_file_, "", kPatchApplicationFailure); in TEST_F()
705 PackageEntries entries; in TEST_F() local
707 std::string_view(target).substr(0, 4096 * 2), 3, &entries); in TEST_F()
710 RunBlockImageUpdate(false, entries, image_file_, "", kPatchApplicationFailure); in TEST_F()
730 PackageEntries entries{ in TEST_F() local
738 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
761 PackageEntries entries{ in TEST_F() local
767 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
781 PackageEntries entries{ in TEST_F() local
787 entries["new_data"] = ""; in TEST_F()
788 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
790 entries["new_data"] = std::string(10, 'a'); in TEST_F()
791 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
794 entries["new_data"] = std::string(4096, 'a'); in TEST_F()
795 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
828 PackageEntries entries{ in TEST_F() local
834 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
879 PackageEntries entries{ in TEST_F() local
889 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
902 entries["transfer_list"] = android::base::Join(transfer_list_continue, '\n'); in TEST_F()
904 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
928 PackageEntries entries{ in TEST_F() local
940 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
967 PackageEntries entries{ in TEST_F() local
982 RunBlockImageUpdate(true, entries, image_file_, "t"); in TEST_F()
992 RunBlockImageUpdate(true, entries, image_file_, "t"); in TEST_F()