/external/python/cpython3/Lib/distutils/tests/ |
D | test_dep_util.py | 16 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/python/cpython2/Lib/distutils/tests/ |
D | test_dep_util.py | 17 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/autotest/client/bin/result_tools/ |
D | shrink_file_throttler.py | 77 with open(new_path, 'w') as new_file, open(file_info.path) as old_file: 80 header = old_file.read(len(TRIMMED_FILE_HEADER)) 85 line = old_file.readline() 91 old_file.seek(0, os.SEEK_SET) 93 new_file.write(old_file.read( 99 bytes_to_skip = original_size_bytes + seek_pos - old_file.tell() 102 bytes_to_skip = original_size_bytes + seek_pos - old_file.tell() 104 old_file.seek(seek_pos, os.SEEK_END) 105 new_file.write(old_file.read())
|
D | utils.py | 138 old_file = summary_old.get_file(name) 140 if old_file.is_dir: 142 with old_file.disable_updating_parent_size_info(): 143 _delete_missing_entries(old_file, result_info.EMPTY) 144 old_file.update_sizes() 149 with old_file.disable_updating_parent_size_info(): 152 if not old_file.is_collected_size_recorded: 153 old_file.collected_size = old_file.trimmed_size 154 old_file.trimmed_size = 0 155 elif old_file.is_dir: [all …]
|
D | result_info.py | 653 old_file = self.get_file(name) 655 if not old_file.is_dir: 662 old_file.convert_to_dir() 664 old_file.merge(new_file, is_final) 666 old_file = self.get_file(name) 671 if old_file.is_dir: 675 old_size = old_file.original_size 677 old_trimmed_size = old_file.trimmed_size 705 old_collected_size = old_file.collected_size 707 old_file.collected_size = ( [all …]
|
/external/bsdiff/ |
D | bspatch.cc | 186 std::unique_ptr<FileInterface> old_file = File::FOpen(old_filename, O_RDONLY); in bspatch() local 187 if (!old_file) { in bspatch() 198 old_file.reset(new ExtentsFile(std::move(old_file), parsed_old_extents)); in bspatch() 226 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch() 236 std::unique_ptr<FileInterface> old_file(new MemoryFile(old_data, old_size)); in bspatch() local 239 return bspatch(old_file, new_file, patch_data, patch_size); in bspatch() 244 int bspatch(const std::unique_ptr<FileInterface>& old_file, in bspatch() argument 255 if (!old_file->GetSize(&old_file_size)) { in bspatch() 297 !old_file->Seek(seek_offset)) { in bspatch() 308 if (!old_file->Read(old_buf.data(), bytes_to_read, &read_bytes)) { in bspatch() [all …]
|
/external/protobuf/benchmarks/util/ |
D | schema_proto2_to_proto3_util.h | 25 static void StripFile(const FileDescriptor* old_file, in StripFile() argument 28 if (IsMessageSet(old_file->message_type(i))) { in StripFile() 32 StripMessage(old_file->message_type(i), file->mutable_message_type(i)); in StripFile() 35 auto field = old_file->extension(i); in StripFile()
|
/external/webrtc/rtc_base/ |
D | file_rotating_stream.cc | 49 bool MoveFile(const std::string& old_file, const std::string& new_file); 85 bool MoveFile(const std::string& old_file, const std::string& new_file) { in MoveFile() argument 86 return ::MoveFileW(ToUtf16(old_file).c_str(), ToUtf16(new_file).c_str()) != 0; in MoveFile() 145 bool MoveFile(const std::string& old_file, const std::string& new_file) { in MoveFile() argument 146 return ::rename(old_file.c_str(), new_file.c_str()) == 0; in MoveFile()
|
/external/llvm-project/lldb/source/Host/windows/ |
D | ConnectionGenericFileWindows.cpp | 144 HANDLE old_file = m_file; in Disconnect() local 149 ::CancelIoEx(old_file, &m_overlapped); in Disconnect() 154 ::CloseHandle(old_file); in Disconnect()
|
/external/bsdiff/include/bsdiff/ |
D | bspatch.h | 42 int bspatch(const std::unique_ptr<FileInterface>& old_file,
|
/external/toybox/toys/pending/ |
D | syslogd.c | 289 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/protobuf/python/google/protobuf/ |
D | descriptor_pool.py | 158 old_file = old_desc.type.file.name 160 old_file = old_desc.file.name 163 old_file != file_name): 167 old_file + '". Please fix the conflict by adding '
|
/external/clang/ |
D | build.py | 614 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__.py | 1991 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__.py | 2595 old_file = msvcrt.CrtSetReportFile(report_type, 2597 self.old_modes[report_type] = old_mode, old_file 2643 for report_type, (old_mode, old_file) in self.old_modes.items(): 2645 msvcrt.CrtSetReportFile(report_type, old_file)
|
/external/tensorflow/tensorflow/c/experimental/filesystem/ |
D | modular_filesystem_test.cc | 899 std::unique_ptr<WritableFile> old_file; in TEST_P() local 900 Status status = env_->NewWritableFile(old_filepath, &old_file); in TEST_P() 1030 std::unique_ptr<WritableFile> old_file; in TEST_P() local 1031 Status status = env_->NewWritableFile(old_filepath, &old_file); in TEST_P()
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | radeon_pair_schedule.c | 762 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/ |
D | PyShell.py | 245 with open(self.breakpointPath,"r") as old_file: 246 lines = old_file.readlines()
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_filesystem.py | 2670 old_file = self.resolve(old_path, follow_symlinks=follow_symlinks) 2674 if old_file.st_mode & S_IFDIR: 2680 old_file.name = new_basename 2681 self.add_object(new_parent_directory, old_file) 2682 return old_file
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 1302 old_file = self.filesystem.get_object(old_file_path) 1303 old_file.st_mtime = old_file.st_mtime - 3600 1308 self.assertNotEqual(new_file.st_mtime, old_file.st_mtime) 1312 self.assertEqual(new_file.st_mtime, old_file.st_mtime) 1313 self.assertEqual(new_file.st_mode, old_file.st_mode) 1314 self.assertEqual(new_file.st_uid, old_file.st_uid) 1315 self.assertEqual(new_file.st_gid, old_file.st_gid)
|