Searched refs:target_file (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/updater/ |
D | build_info.cpp | 31 TargetFile target_file(std::string(target_file_path), extracted_input); in ParseTargetFile() local 32 if (!target_file.Open()) { in ParseTargetFile() 36 if (!target_file.GetBuildProps(&build_props_)) { in ParseTargetFile() 41 if (!target_file.ParseFstabInfo(&fstab_info_list)) { in ParseTargetFile() 48 if (!target_file.EntryExists(entry_name)) { in ParseTargetFile() 55 if (!target_file.ExtractImage(entry_name, fstab_info, work_dir_, &image_file)) { in ParseTargetFile()
|
/bootable/recovery/tests/unit/ |
D | applypatch_test.cpp | 55 target_file = from_testdata_base("recovery.img"); in SetUp() 57 ASSERT_TRUE(LoadFileContents(target_file, &recovery_fc)); in SetUp() 80 std::string target_file; member in ApplyPatchTest 119 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F() 123 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F() 128 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F() 130 Paths::Get().set_cache_temp_source(target_file); in TEST_F() 132 PatchPartitionCheck(target_partition, Partition(target_file, source_size, source_sha1))); in TEST_F()
|
D | updater_test.cpp | 262 std::string target_file = from_testdata_base("recovery.img"); in TEST_F() local 264 ASSERT_TRUE(android::base::ReadFileToString(target_file, &target_content)); in TEST_F() 267 Partition target(target_file, target_size, target_hash); in TEST_F() 279 Partition bad_target(target_file, target_size - 1, target_hash); in TEST_F()
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 257 FileContents target_file; in PatchPartitionCheck() local 259 return (ReadPartitionToBuffer(target, &target_file, false) || in PatchPartitionCheck() 273 FileContents target_file; in PatchPartition() local 274 if (ReadPartitionToBuffer(target, &target_file, false)) { in PatchPartition() 294 FileContents target_file; in FlashPartition() local 295 if (ReadPartitionToBuffer(partition, &target_file, false)) { in FlashPartition() 427 FileContents target_file; in CheckPartition() local 428 return ReadPartitionToBuffer(partition, &target_file, false); in CheckPartition()
|
/bootable/recovery/tests/unit/host/ |
D | update_simulator_test.cpp | 154 TargetFile target_file(zip_file.path, false); in TEST_F() local 155 ASSERT_TRUE(target_file.Open()); in TEST_F() 159 ASSERT_TRUE(target_file.ExtractImage( in TEST_F() 174 TargetFile target_file(zip_file.path, false); in TEST_F() local 175 ASSERT_TRUE(target_file.Open()); in TEST_F() 178 EXPECT_TRUE(target_file.ParseFstabInfo(&fstab_info)); in TEST_F()
|