Home
last modified time | relevance | path

Searched refs:tmp_file_path (Results 1 – 14 of 14) sorted by relevance

/aosp_15_r20/external/cronet/base/files/
H A Dimportant_file_writer.cc73 const FilePath& tmp_file_path, in DeleteTmpFileWithRetry() argument
95 if (!DeleteFile(tmp_file_path) && ++attempt < kMaxDeleteAttempts && in DeleteTmpFileWithRetry()
99 BindOnce(&DeleteTmpFileWithRetry, base::File(), tmp_file_path, attempt), in DeleteTmpFileWithRetry()
180 FilePath tmp_file_path; in WriteFileAtomicallyImpl() local
182 CreateAndOpenTemporaryFileInDir(path.DirName(), &tmp_file_path); in WriteFileAtomicallyImpl()
202 DeleteTmpFileWithRetry(std::move(tmp_file), tmp_file_path); in WriteFileAtomicallyImpl()
209 DeleteTmpFileWithRetry(std::move(tmp_file), tmp_file_path); in WriteFileAtomicallyImpl()
227 result = ReplaceFile(tmp_file_path, path, &replace_file_error); in WriteFileAtomicallyImpl()
236 result = ReplaceFile(tmp_file_path, path, &replace_file_error); in WriteFileAtomicallyImpl()
249 result = ReplaceFile(tmp_file_path, path, &replace_file_error); in WriteFileAtomicallyImpl()
[all …]
H A Dfile_util_posix.cc1413 FilePath tmp_file_path; in IsPathExecutable() local
1415 ScopedFD fd = CreateAndOpenFdForTemporaryFileInDir(path, &tmp_file_path); in IsPathExecutable()
1417 DeleteFile(tmp_file_path); in IsPathExecutable()
/aosp_15_r20/external/libchrome/base/files/
H A Dimportant_file_writer.cc123 void DeleteTmpFile(const FilePath& tmp_file_path, in DeleteTmpFile() argument
125 if (!DeleteFile(tmp_file_path, false)) { in DeleteTmpFile()
156 FilePath tmp_file_path; in WriteFileAtomically() local
157 if (!CreateTemporaryFileInDir(path.DirName(), &tmp_file_path)) { in WriteFileAtomically()
166 File tmp_file(tmp_file_path, File::FLAG_OPEN | File::FLAG_WRITE); in WriteFileAtomically()
173 DeleteFile(tmp_file_path, false); in WriteFileAtomically()
191 DeleteTmpFile(tmp_file_path, histogram_suffix); in WriteFileAtomically()
197 DeleteTmpFile(tmp_file_path, histogram_suffix); in WriteFileAtomically()
202 if (!ReplaceFile(tmp_file_path, path, &replace_file_error)) { in WriteFileAtomically()
208 DeleteTmpFile(tmp_file_path, histogram_suffix); in WriteFileAtomically()
H A Dfile_util_posix.cc1066 FilePath tmp_file_path; in IsPathExecutable() local
1068 ScopedFD fd(CreateAndOpenFdForTemporaryFileInDir(path, &tmp_file_path)); in IsPathExecutable()
1070 DeleteFile(tmp_file_path, false); in IsPathExecutable()
/aosp_15_r20/external/python/mobly/tests/mobly/
Dsuite_runner_test.py101 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
102 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
114 [integration_test.IntegrationTest], argv=['-c', tmp_file_path]
120 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
121 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
130 [integration_test.IntegrationTest], argv=['-c', tmp_file_path]
152 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
153 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
Dconfig_parser_test.py36 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
37 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
44 config = config_parser._load_config_file(tmp_file_path)
48 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
49 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
56 config = config_parser._load_config_file(tmp_file_path)
Dutils_test.py742 tmp_file_path = os.path.join(self.tmp_dir, 'b64.bin')
744 with io.open(tmp_file_path, 'wb') as f:
747 utils.load_file_to_base64_str(tmp_file_path), expected_base64_encoding
751 tmp_file_path = os.path.join(self.tmp_dir, 'b64.bin')
753 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
756 utils.load_file_to_base64_str(tmp_file_path), expected_base64_encoding
760 tmp_file_path = os.path.join(self.tmp_dir, 'b64.bin')
762 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
765 utils.load_file_to_base64_str(tmp_file_path), expected_base64_encoding
Dtest_runner_test.py344 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
345 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
356 test_runner.main(['-c', tmp_file_path])
365 tmp_file_path = os.path.join(self.tmp_dir, 'config.yml')
366 with io.open(tmp_file_path, 'w', encoding='utf-8') as f:
374 test_runner.main(['-c', tmp_file_path])
/aosp_15_r20/external/v4l2_codec2/tests/c2_e2e_test/jni/
H A De2e_test_jni.cpp51 jobject surface, jstring tmp_file_path) { in Java_org_chromium_c2_test_E2eTestActivity_c2VideoTest() argument
52 const char* log_path = env->GetStringUTFChars(tmp_file_path, nullptr); in Java_org_chromium_c2_test_E2eTestActivity_c2VideoTest()
54 env->ReleaseStringUTFChars(tmp_file_path, log_path); in Java_org_chromium_c2_test_E2eTestActivity_c2VideoTest()
59 env->ReleaseStringUTFChars(tmp_file_path, log_path); in Java_org_chromium_c2_test_E2eTestActivity_c2VideoTest()
/aosp_15_r20/frameworks/native/cmds/installd/
H A Drestorable_file.cpp140 std::string tmp_file_path = GetTmpFilePath(path); in CreateWritableFile() local
142 UnlinkPossiblyNonExistingFile(tmp_file_path); in CreateWritableFile()
145 fd = open(tmp_file_path.c_str(), O_RDWR | O_CREAT, permissions); in CreateWritableFile()
147 PLOG(ERROR) << "Cannot create file: " << tmp_file_path; in CreateWritableFile()
/aosp_15_r20/external/cronet/third_party/boringssl/src/pki/testdata/ocsp_unittest/
H A Dannotate_test_data.py70 tmp_file_path = "tmp_ocsp.der"
71 WriteStringToFile(block_data, tmp_file_path)
73 "-respin", tmp_file_path],
78 os.remove(tmp_file_path)
/aosp_15_r20/external/pytorch/aten/src/ATen/native/cuda/
H A Djit_utils.cpp1617 const std::string tmp_file_path = tmp_file_path_ss.str(); in jit_pwise_function() local
1618 std::ofstream cubin(tmp_file_path, std::ios::out | std::ofstream::binary); in jit_pwise_function()
1621 " File path was ", tmp_file_path, ".", in jit_pwise_function()
1625 if (std::rename(tmp_file_path.c_str(), file_path.c_str()) != 0) { in jit_pwise_function()
1627 std::remove(tmp_file_path.c_str()); in jit_pwise_function()
/aosp_15_r20/external/autotest/client/cros/chameleon/
H A Dchameleon.py313 tmp_file_path = source_path+'.new'
319 tmp_file_path))
320 self.host.get_file(tmp_file_path, target_path)
321 self.host.run('rm %s' % tmp_file_path)
/aosp_15_r20/external/tensorflow/tensorflow/python/framework/
H A Dtest_util.py2489 tmp_file, tmp_file_path = tempfile.mkstemp(dir=self.get_temp_dir())
2493 yield CapturedWrites(tmp_file_path)