Home
last modified time | relevance | path

Searched refs:target_file (Results 1 – 16 of 16) sorted by relevance

/aosp12/system/extras/simpleperf/scripts/
H A Dbinary_cache_builder.py123 if target_file[0] == '/':
124 target_file = target_file[1:]
125 target_file = target_file.replace('/', os.sep)
126 target_file = os.path.join(self.binary_cache_dir, target_file)
127 if not self._need_to_copy(from_path, target_file, expected_build_id):
130 target_dir = os.path.dirname(target_file)
134 shutil.copy(from_path, target_file)
136 def _need_to_copy(self, source_file, target_file, expected_build_id): argument
137 if not os.path.isfile(target_file):
139 if self._read_build_id(target_file) != expected_build_id:
[all …]
/aosp12/build/make/tools/releasetools/
H A Dota_from_target_files746 return target_file
771 return target_file
932 return target_file
971 return target_file
1017 if target_file is None:
1020 target_file = common.UnzipTemp(target_file, ["IMAGES/product.img"])
1090 target_file = GetTargetFilesZipForPartialUpdates(target_file,
1094 target_file = GetTargetFilesZipWithoutPostinstallConfig(target_file)
1128 target_file,
1468 target_file=args[0],
[all …]
H A Dota_from_target_files.py746 return target_file
771 return target_file
932 return target_file
971 return target_file
1017 if target_file is None:
1020 target_file = common.UnzipTemp(target_file, ["IMAGES/product.img"])
1090 target_file = GetTargetFilesZipForPartialUpdates(target_file,
1094 target_file = GetTargetFilesZipWithoutPostinstallConfig(target_file)
1128 target_file,
1468 target_file=args[0],
[all …]
H A Dtest_ota_from_target_files.py374 with zipfile.ZipFile(target_file) as verify_zip:
397 with zipfile.ZipFile(target_file) as verify_zip:
944 target_file = construct_target_files()
946 payload.Generate(target_file)
1009 target_file = construct_target_files()
1011 payload.Generate(target_file)
1192 payload.Generate(target_file)
1197 target_file = construct_target_files()
1200 payload.Generate(target_file, source_file)
1215 target_file = construct_target_files()
[all …]
H A Dnon_ab_ota.py546 def GenerateNonAbOtaPackage(target_file, output_file, source_file=None): argument
567 OPTIONS.input_tmp = common.UnzipTemp(target_file, UNZIP_PATTERN)
588 with zipfile.ZipFile(target_file) as input_zip:
598 with zipfile.ZipFile(target_file) as input_zip, \
/aosp12/system/extras/simpleperf/scripts/test/
H A Dbinary_cache_builder_test.py39 target_file = os.path.join('binary_cache', filename)
45 remove(target_file)
48 self.assertTrue(filecmp.cmp(target_file, source_file))
53 self.assertTrue(filecmp.cmp(target_file, source_file))
58 self.assertTrue(filecmp.cmp(target_file, source_file))
65 target_file = os.path.join('binary_cache', 'elf')
67 self.assertTrue(filecmp.cmp(target_file, source_file))
69 self.assertTrue(filecmp.cmp(target_file, source_file))
H A Dapp_profiler_test.py129 target_file = downloader.dir_on_device + name
130 target_file_stat = self.list_lib_on_device(target_file)
135 self.assertEqual(target_file_stat, self.list_lib_on_device(target_file))
138 self.adb.check_run(['shell', 'truncate', '-s', '0', target_file])
139 target_file_stat = self.list_lib_on_device(target_file)
141 self.assertNotEqual(target_file_stat, self.list_lib_on_device(target_file))
/aosp12/bootable/recovery/updater/
H A Dbuild_info.cpp31 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()
/aosp12/bootable/recovery/tests/unit/
H A Dapplypatch_test.cpp55 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()
H A Dupdater_test.cpp262 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()
/aosp12/bootable/recovery/applypatch/
H A Dapplypatch.cpp257 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()
/aosp12/bootable/recovery/tests/unit/host/
H A Dupdate_simulator_test.cpp154 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()
/aosp12/system/sepolicy/build/
H A Dbuild_sepolicy.py128 file_utils.filter_out(args.filter_out_files, args.target_file)
/aosp12/system/update_engine/common/
H A Dutils_unittest.cc402 string target_file = mnt_dir.GetPath().Append("empty-file").value(); in TEST() local
403 int fd = HANDLE_EINTR(open(target_file.c_str(), O_RDONLY)); in TEST()
/aosp12/system/apex/apexd/
H A Dapexd.cpp3623 std::string target_file = in ComputePackageIdMinor() local
3626 if (access(target_file.c_str(), F_OK) == 0) { in ComputePackageIdMinor()
3706 std::string target_file = in InstallPackage() local
3710 if (unlink(target_file.c_str()) != 0 && errno != ENOENT) { in InstallPackage()
3711 PLOG(ERROR) << "Failed to unlink " << target_file; in InstallPackage()
3728 if (link(package_path.c_str(), target_file.c_str()) != 0) { in InstallPackage()
3730 << target_file; in InstallPackage()
3733 auto new_apex = ApexFile::Open(target_file); in InstallPackage()
3761 ReleaseF2fsCompressedBlocks(target_file); in InstallPackage()
/aosp12/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...