Searched refs:target_file (Results 1 – 6 of 6) sorted by relevance
/system/extras/simpleperf/scripts/ |
D | binary_cache_builder.py | 122 def _copy_to_binary_cache(self, from_path, expected_build_id, target_file): argument 123 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) 133 log_info('copy to binary_cache: %s to %s' % (from_path, target_file)) 134 shutil.copy(from_path, target_file) 136 def _need_to_copy(self, source_file, target_file, expected_build_id): argument [all …]
|
/system/extras/simpleperf/scripts/test/ |
D | binary_cache_builder_test.py | 39 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))
|
D | app_profiler_test.py | 129 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))
|
/system/sepolicy/build/ |
D | build_sepolicy.py | 128 file_utils.filter_out(args.filter_out_files, args.target_file)
|
/system/update_engine/common/ |
D | utils_unittest.cc | 402 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()
|
/system/apex/apexd/ |
D | apexd.cpp | 3573 std::string target_file = in ComputePackageIdMinor() local 3576 if (access(target_file.c_str(), F_OK) == 0) { in ComputePackageIdMinor() 3656 std::string target_file = in InstallPackage() local 3660 if (unlink(target_file.c_str()) != 0 && errno != ENOENT) { in InstallPackage() 3661 PLOG(ERROR) << "Failed to unlink " << target_file; in InstallPackage() 3676 if (link(package_path.c_str(), target_file.c_str()) != 0) { in InstallPackage() 3678 << target_file; in InstallPackage() 3681 auto new_apex = ApexFile::Open(target_file); in InstallPackage() 3707 ReleaseF2fsCompressedBlocks(target_file); in InstallPackage()
|