Lines Matching refs:entries

92 static void BuildUpdatePackage(const PackageEntries& entries, int fd) {  in BuildUpdatePackage()  argument
96 for (const auto& entry : entries) { in BuildUpdatePackage()
163 void RunBlockImageUpdate(bool is_verify, PackageEntries entries, const std::string& image_file, in RunBlockImageUpdate() argument
165 CHECK(entries.find("transfer_list") != entries.end()); in RunBlockImageUpdate()
167 entries.find("new_data.br") != entries.end() ? "new_data.br" : "new_data"; in RunBlockImageUpdate()
171 entries.emplace(Updater::SCRIPT_NAME, script); in RunBlockImageUpdate()
175 BuildUpdatePackage(entries, zip_file.release()); in RunBlockImageUpdate()
436 PackageEntries entries{ in TEST_F() local
442 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
485 PackageEntries entries{ in TEST_F() local
491 RunBlockImageUpdate(false, entries, image_file_, "", kHashTreeComputationFailure); in TEST_F()
639 PackageEntries entries{ in TEST_F() local
645 RunBlockImageUpdate(false, entries, image_file_, "", kArgsParsingFailure); in TEST_F()
652 size_t target_blocks, PackageEntries* entries) { in GetEntriesForBsdiff() argument
679 *entries = { in GetEntriesForBsdiff()
694 PackageEntries entries; in TEST_F() local
696 std::string_view(target).substr(0, 4096 * 2), 2, &entries); in TEST_F()
697 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
714 PackageEntries entries; in TEST_F() local
716 std::string_view(target).substr(0, 4096 * 2), 1, &entries); in TEST_F()
719 RunBlockImageUpdate(false, entries, image_file_, "", kPatchApplicationFailure); in TEST_F()
731 PackageEntries entries; in TEST_F() local
733 std::string_view(target).substr(0, 4096 * 2), 3, &entries); in TEST_F()
736 RunBlockImageUpdate(false, entries, image_file_, "", kPatchApplicationFailure); in TEST_F()
756 PackageEntries entries{ in TEST_F() local
764 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
787 PackageEntries entries{ in TEST_F() local
793 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
807 PackageEntries entries{ in TEST_F() local
813 entries["new_data"] = ""; in TEST_F()
814 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
816 entries["new_data"] = std::string(10, 'a'); in TEST_F()
817 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
820 entries["new_data"] = std::string(4096, 'a'); in TEST_F()
821 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
854 PackageEntries entries{ in TEST_F() local
860 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
905 PackageEntries entries{ in TEST_F() local
915 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
928 entries["transfer_list"] = android::base::Join(transfer_list_continue, '\n'); in TEST_F()
930 RunBlockImageUpdate(false, entries, image_file_, "t"); in TEST_F()
954 PackageEntries entries{ in TEST_F() local
966 RunBlockImageUpdate(false, entries, image_file_, ""); in TEST_F()
993 PackageEntries entries{ in TEST_F() local
1008 RunBlockImageUpdate(true, entries, image_file_, "t"); in TEST_F()
1018 RunBlockImageUpdate(true, entries, image_file_, "t"); in TEST_F()