Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/common/py_utils/py_utils/
Dlock.py37 def FileLock(target_file, flags): argument
43 AcquireFileLock(target_file, flags)
47 ReleaseFileLock(target_file)
50 def AcquireFileLock(target_file, flags): argument
61 _LockImplWin(target_file, flags)
63 _LockImplPosix(target_file, flags)
68 def ReleaseFileLock(target_file): argument
74 _UnlockImplWin(target_file)
76 _UnlockImplPosix(target_file)
83 def _LockImplWin(target_file, flags): argument
[all …]
Dlock_unittest.py40 def _ReadFileWithExclusiveLockNonBlocking(target_file, status_file): argument
41 with open(target_file, 'r') as f:
/external/python/cpython2/Lib/plat-mac/lib-scriptpackages/CodeWarrior/
DCodeWarrior_suite.py336 class target_file(aetools.ComponentItem): class
404 target_files = target_file
528 target_file._superclassnames = []
529 target_file._privpropdict = {
547 target_file._privelemdict = {
568 'target_file' : target_file,
640 'SRCF' : target_file,
D__init__.py77 getbaseclasses(target_file)
144 'SRCF' : target_file,
/external/perfetto/tools/
Dgn_utils.py158 def gen_buildflags(gn_args, target_file): argument
167 shutil.copy(src, os.path.join(repo_root(), target_file))
182 target_file = os.path.relpath(tmp_file[:-4])
184 if not filecmp.cmp(tmp_file, target_file):
185 sys.stderr.write('%s needs to be regenerated\n' % target_file)
189 os.rename(tmp_file, target_file)
/external/clang/tools/scan-build-py/tests/functional/cases/
Dtest_from_cdb.py17 target_file = 'build_{0}.json'.format(name)
21 source_file = os.path.join(source_dir, target_file + '.in')
22 target_file = os.path.join(target_dir, 'compile_commands.json')
24 with open(target_file, 'w') as out_handle:
28 return target_file
/external/avb/tools/transparency/
Dpixel_factory_image_verify.py135 target_file = os.path.join(self.working_dir, download_filename)
136 if os.path.exists(target_file):
138 os.remove(target_file)
146 target_file, e))
/external/v8/third_party/zlib/google/
Dzip_reader_unittest.cc425 base::FilePath target_file = test_dir_.AppendASCII("quux.txt"); in TEST_F() local
430 target_file, in TEST_F()
453 ASSERT_TRUE(base::GetFileSize(target_file, &file_size)); in TEST_F()
463 base::FilePath target_file = test_dir_.AppendASCII("foo"); in TEST_F() local
468 target_file, in TEST_F()
484 ASSERT_TRUE(base::DirectoryExists(target_file)); in TEST_F()
Dzip_reader.h216 void ExtractChunk(base::File target_file,
/external/zlib/google/
Dzip_reader_unittest.cc425 base::FilePath target_file = test_dir_.AppendASCII("quux.txt"); in TEST_F() local
430 target_file, in TEST_F()
453 ASSERT_TRUE(base::GetFileSize(target_file, &file_size)); in TEST_F()
463 base::FilePath target_file = test_dir_.AppendASCII("foo"); in TEST_F() local
468 target_file, in TEST_F()
484 ASSERT_TRUE(base::DirectoryExists(target_file)); in TEST_F()
Dzip_reader.h216 void ExtractChunk(base::File target_file,
/external/clang/tools/scan-build-py/libscanbuild/
Dintercept.py172 target_file = os.path.join(target_dir, pid + '.cmd')
173 logging.debug('writing exec report to: %s', target_file)
174 with open(target_file, 'ab') as handler:
/external/grpc-grpc/tools/distrib/python/
Dmake_grpcio_tools.py155 target_file = os.path.abspath(
157 shutil.copyfile(source_file, target_file)
/external/python/cpython2/Lib/test/
Dtest_posix.py451 def _test_chflags_regular_file(self, chflags_func, target_file): argument
452 st = os.stat(target_file)
457 chflags_func(target_file, st.st_flags | stat.UF_IMMUTABLE)
465 new_st = os.stat(target_file)
468 fd = open(target_file, 'w+')
472 posix.chflags(target_file, st.st_flags)
Dtest_tarfile.py1058 target_file = os.path.join(tempdir,'symlink')
1061 os.symlink(source_file, target_file)
1064 tar.add(target_file, arcname=os.path.basename(target_file))
1088 target_file = os.path.join(tempdir,'symlink')
1091 os.symlink(source_file, target_file)
1093 tar.add(target_file, arcname=os.path.basename(target_file))
1118 target_file = os.path.join(tempdir,'symlink')
1121 os.link(source_file, target_file)
1124 tar.add(target_file, arcname=os.path.basename(target_file))
/external/tensorflow/tensorflow/core/platform/
Denv.cc473 std::unique_ptr<WritableFile> target_file; in FileSystemCopyFile() local
474 TF_RETURN_IF_ERROR(target_fs->NewWritableFile(target_name, &target_file)); in FileSystemCopyFile()
485 TF_RETURN_IF_ERROR(target_file->Append(result)); in FileSystemCopyFile()
488 return target_file->Close(); in FileSystemCopyFile()
/external/python/cffi/cffi/
Drecompiler.py1383 def _make_c_or_py_source(ffi, module_name, preamble, target_file, verbose): argument
1385 print("generating %s" % (target_file,))
1394 with open(target_file, 'r') as f1:
1401 tmp_file = '%s.~%d' % (target_file, os.getpid())
1405 os.rename(tmp_file, target_file)
1407 os.unlink(target_file)
1408 os.rename(tmp_file, target_file)
/external/angle/third_party/spirv-tools/src/test/tools/
Dexpect.py348 with open(target_filename, 'r') as target_file:
349 file_contents = target_file.read()
/external/deqp-deps/SPIRV-Tools/test/tools/
Dexpect.py348 with open(target_filename, 'r') as target_file:
349 file_contents = target_file.read()
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dexpect.py348 with open(target_filename, 'r') as target_file:
349 file_contents = target_file.read()
/external/curl/docs/cmdline-opts/
Dquote.d41 The ln and symlink commands create a symbolic link at the target_file location
/external/python/cpython3/Lib/test/
Dtest_posix.py897 def _test_chflags_regular_file(self, chflags_func, target_file, **kwargs): argument
898 st = os.stat(target_file)
904 chflags_func(target_file, flags, **kwargs)
912 new_st = os.stat(target_file)
915 fd = open(target_file, 'w+')
919 posix.chflags(target_file, st.st_flags)
Dtest_tarfile.py1305 target_file = os.path.join(tempdir,'symlink')
1308 os.symlink(source_file, target_file)
1311 tar.add(target_file)