Home
last modified time | relevance | path

Searched refs:old_file (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Lib/distutils/tests/
Dtest_dep_util.py17 old_file = os.path.abspath(__file__)
20 self.assertRaises(DistutilsFileError, newer, new_file, old_file)
26 self.assertTrue(newer(new_file, old_file))
30 self.assertFalse(newer(old_file, new_file))
56 old_file = os.path.abspath(__file__)
63 self.assertTrue(newer_group([one, two, three], old_file))
64 self.assertFalse(newer_group([one, two, old_file], three))
68 self.assertRaises(OSError, newer_group, [one, two, old_file], three)
70 self.assertFalse(newer_group([one, two, old_file], three,
73 self.assertTrue(newer_group([one, two, old_file], three,
/external/python/cpython3/Lib/distutils/tests/
Dtest_dep_util.py16 old_file = os.path.abspath(__file__)
19 self.assertRaises(DistutilsFileError, newer, new_file, old_file)
25 self.assertTrue(newer(new_file, old_file))
29 self.assertFalse(newer(old_file, new_file))
55 old_file = os.path.abspath(__file__)
62 self.assertTrue(newer_group([one, two, three], old_file))
63 self.assertFalse(newer_group([one, two, old_file], three))
67 self.assertRaises(OSError, newer_group, [one, two, old_file], three)
69 self.assertFalse(newer_group([one, two, old_file], three,
72 self.assertTrue(newer_group([one, two, old_file], three,
/external/autotest/client/bin/result_tools/
Dshrink_file_throttler.py69 with open(new_path, 'w') as new_file, open(file_info.path) as old_file:
72 header = old_file.read(len(TRIMMED_FILE_HEADER))
77 line = old_file.readline()
83 old_file.seek(0, os.SEEK_SET)
85 new_file.write(old_file.read(
91 bytes_to_skip = original_size_bytes + seek_pos - old_file.tell()
94 bytes_to_skip = original_size_bytes + seek_pos - old_file.tell()
96 old_file.seek(seek_pos, os.SEEK_END)
97 new_file.write(old_file.read())
Dutils.py125 old_file = summary_old.get_file(name)
127 if old_file.is_dir:
129 with old_file.disable_updating_parent_size_info():
130 _delete_missing_entries(old_file, result_info.EMPTY)
131 old_file.update_sizes()
136 with old_file.disable_updating_parent_size_info():
139 if not old_file.is_collected_size_recorded:
140 old_file.collected_size = old_file.trimmed_size
141 old_file.trimmed_size = 0
142 elif old_file.is_dir:
[all …]
Dresult_info.py648 old_file = self.get_file(name)
650 if not old_file.is_dir:
657 old_file.convert_to_dir()
659 old_file.merge(new_file, is_final)
661 old_file = self.get_file(name)
666 if old_file.is_dir:
670 old_size = old_file.original_size
672 old_trimmed_size = old_file.trimmed_size
700 old_collected_size = old_file.collected_size
702 old_file.collected_size = (
[all …]
/external/bsdiff/
Dbspatch.cc185 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch() local
186 if (!old_file) { in bspatch()
197 old_file.reset(new ExtentsFile(std::move(old_file), parsed_old_extents)); in bspatch()
225 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
235 std::unique_ptr<FileInterface> old_file(new MemoryFile(old_data, old_size)); in bspatch() local
238 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch()
243 int bspatch(const std::unique_ptr<FileInterface>& old_file, in bspatch() argument
254 if (!old_file->GetSize(&old_file_size)) { in bspatch()
296 !old_file->Seek(seek_offset)) { in bspatch()
307 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch()
[all …]
/external/bsdiff/include/bsdiff/
Dbspatch.h42 int bspatch(const std::unique_ptr<FileInterface>& old_file,
/external/toybox/toys/pending/
Dsyslogd.c289 char old_file[i]; in write_rotate() local
295 sprintf(old_file, "%s.%d", tf->filename, --i); in write_rotate()
296 rename(old_file, new_file); in write_rotate()
/external/clang/
Dbuild.py614 old_file = os.path.join(install_dir, built_file)
616 rename(old_file, new_file)
617 install_file(wrapper, old_file)
/external/python/cpython2/Lib/test/support/
D__init__.py1991 old_file = _testcapi.CrtSetReportFile(report_type,
1993 self.old_modes[report_type] = old_mode, old_file
2040 for report_type, (old_mode, old_file) in self.old_modes.items():
2042 _testcapi.CrtSetReportFile(report_type, old_file)
/external/python/cpython3/Lib/test/support/
D__init__.py2604 old_file = msvcrt.CrtSetReportFile(report_type,
2606 self.old_modes[report_type] = old_mode, old_file
2647 for report_type, (old_mode, old_file) in self.old_modes.items():
2649 msvcrt.CrtSetReportFile(report_type, old_file)
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_pair_schedule.c762 rc_register_file old_file, in rgb_to_alpha_remap() argument
775 old_file, new_index); in rgb_to_alpha_remap()
/external/python/cpython2/Lib/idlelib/
DPyShell.py245 with open(self.breakpointPath,"r") as old_file:
246 lines = old_file.readlines()