/external/toolchain-utils/afdo_tools/bisection/ |
D | e2e_external.sh | 8 tmp_file=$(mktemp) 9 trap "rm -f '${tmp_file}'" EXIT 10 grep -v '^ ' "$1" > "${tmp_file}" 12 if grep -q bad "${tmp_file}"; then 17 if grep -q 'func_a.*2' "${tmp_file}"; then 22 if grep -q 'func_b.*4' "${tmp_file}" && \ 23 grep -q 'func_c.*6' "${tmp_file}" && \ 24 grep -q 'func_d.*8' "${tmp_file}"; then
|
D | state_assumption_external.sh | 26 tmp_file=$(mktemp) 27 trap "rm -f '${tmp_file}'" EXIT 28 grep -v '^ ' "$1" > "${tmp_file}" 37 if grep -q 'func_a.*2' "${tmp_file}"; then
|
/external/chromium-trace/catapult/common/eslint/eslint/ |
D | smoke_test.py | 27 tmp_file = tempfile.NamedTemporaryFile( 29 tmp_file.write(_TEMP_FILE_CONTENTS) 30 tmp_file.close() 32 success, output = eslint.RunEslint([tmp_file.name]) 36 os.remove(tmp_file.name)
|
/external/python/setuptools/setuptools/tests/ |
D | test_upload_docs.py | 51 tmp_file = os.path.join(tmp_dir, 'foo.zip') 52 zip_file = cmd.create_zipfile(tmp_file) 54 assert zipfile.is_zipfile(tmp_file) 56 with contextlib.closing(zipfile.ZipFile(tmp_file)) as zip_file:
|
/external/autotest/server/site_tests/platform_BootPerfServer/ |
D | platform_BootPerfServer.py | 55 tmp_file = '/tmp/%s.%d' % (tmp_name, partition) 56 host.run(gen_sed_command(tmp_file)) 91 lambda tmp_file: 'sed -i "s/$/ cros_bootchart/g" %s' % tmp_file) 111 lambda tmp_file: 'sed -i "s/ cros_bootchart//g" %s' % tmp_file)
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | parse_flags_from_env_test.cc | 97 string tmp_file = in TEST() local 99 FILE* fp = fopen(tmp_file.c_str(), "w"); in TEST() 100 CHECK_NE(fp, nullptr) << "can't write to " << tmp_file; in TEST() 105 CHECK_EQ(ferror(fp), 0) << "writes failed to " << tmp_file; in TEST() 108 tensorflow::setenv("TF_XLA_FLAGS", tmp_file.c_str(), true /*overwrite*/); in TEST() 110 unlink(tmp_file.c_str()); in TEST()
|
/external/perfetto/src/tracing/ipc/ |
D | posix_shared_memory_unittest.cc | 77 base::TempFile tmp_file = base::TempFile::CreateUnlinked(); in TEST() local 78 const int fd_num = tmp_file.fd(); in TEST() 83 tmp_file.ReleaseFD(), /*require_seals_if_supported=*/false); in TEST() 99 base::TempFile tmp_file = base::TempFile::CreateUnlinked(); in TEST() local 100 const int fd_num = tmp_file.fd(); in TEST() 104 PosixSharedMemory::AttachToFd(tmp_file.ReleaseFD()); in TEST()
|
/external/skia/infra/skqp/ |
D | run_skqp.sh | 27 tmp_file="$(mktemp "${TMPDIR:-/tmp}/skqp.XXXXXXXXXX")" 29 adb shell am instrument -w org.skia.skqp | tee "$tmp_file" | fold -s 33 if ! grep -q '^OK ' "$tmp_file"; then
|
/external/skqp/infra/skqp/ |
D | run_skqp.sh | 27 tmp_file="$(mktemp "${TMPDIR:-/tmp}/skqp.XXXXXXXXXX")" 29 adb shell am instrument -w org.skia.skqp | tee "$tmp_file" | fold -s 33 if ! grep -q '^OK ' "$tmp_file"; then
|
/external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
D | main.cc | 108 char tmp_file[PATH_MAX]; in main() local 111 sprintf(tmp_file, "%s.tmp", out_file); in main() 112 out_stream = fopen(tmp_file, "w"); in main() 133 rename(tmp_file, out_file); in main()
|
/external/llvm-project/compiler-rt/test/msan/Linux/ |
D | file.cpp | 19 char tmp_file[1000]; in main() local 20 sprintf(tmp_file, "%s.write.tmp", argv[0]); in main() 22 f = fopen(tmp_file, "w+"); in main()
|
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/ |
D | download_and_unzip.py | 32 with tempfile.TemporaryFile() as tmp_file: 39 tmp_file.write(r.content) 41 with zipfile.ZipFile(tmp_file, 'r') as target_zip_file:
|
/external/perfetto/src/traced/probes/filesystem/ |
D | fs_mount_unittest.cc | 54 base::TempFile tmp_file = base::TempFile::Create(); in TEST() local 55 ASSERT_EQ(base::WriteAll(tmp_file.fd(), kMounts, sizeof(kMounts)), in TEST() 58 ParseMounts(tmp_file.path().c_str()); in TEST()
|
/external/libchrome/base/files/ |
D | important_file_writer.cc | 166 File tmp_file(tmp_file_path, File::FLAG_OPEN | File::FLAG_WRITE); in WriteFileAtomically() local 167 if (!tmp_file.IsValid()) { in WriteFileAtomically() 170 -tmp_file.error_details(), -base::File::FILE_ERROR_MAX); in WriteFileAtomically() 179 int bytes_written = tmp_file.Write(0, data.data(), data_length); in WriteFileAtomically() 185 bool flush_success = tmp_file.Flush(); in WriteFileAtomically() 186 tmp_file.Close(); in WriteFileAtomically()
|
/external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/ |
D | platform_DebugDaemonDumpDebugLogs.py | 19 tmp_file = os.path.join(self.tmp_dir, filename) 21 fh = os.open(tmp_file, os.O_TRUNC | os.O_CREAT | os.O_WRONLY) 29 with tarfile.open(tmp_file, mode) as tar_file:
|
/external/autotest/server/site_tests/firmware_Fingerprint/tests/ |
D | common.sh | 450 local tmp_file="all_0xff.bin" 455 sed 's#\x00#\xFF#g' > "${tmp_file}" 457 check_files_match "${file_to_compare}" "${tmp_file}" 459 rm -rf "${tmp_file}"
|
/external/bcc/tools/ |
D | runqlen.py | 92 tmp_file = NamedTemporaryFile(delete=False) 93 tmp_file.close(); 101 fd = open(tmp_file.name, O_WRONLY) 114 unlink(tmp_file.name)
|
/external/autotest/client/common_lib/ |
D | autotemp_unittest.py | 25 tmp_file = autotemp.tempfile(unique_id='del') 26 name = tmp_file.name 28 tmp_file.__del__()
|
/external/autotest/site_utils/lxc/ |
D | lxc.py | 71 delete=False) as tmp_file: 73 _download_via_devserver(url, tmp_file.name) 75 _download_via_curl(url, tmp_file.name) 76 common_utils.run('sudo mv %s %s' % (tmp_file.name, target))
|
/external/puffin/src/ |
D | utils_unittest.cc | 89 string tmp_file; in FindDeflatesInZlibBlocks() local 90 ASSERT_TRUE(MakeTempFile(&tmp_file, nullptr)); in FindDeflatesInZlibBlocks() 91 ScopedPathUnlinker unlinker(tmp_file); in FindDeflatesInZlibBlocks() 92 auto src_stream = FileStream::Open(tmp_file, false, true); in FindDeflatesInZlibBlocks() 98 ASSERT_TRUE(LocateDeflatesInZlibBlocks(tmp_file, zlibs, &deflates_out)); in FindDeflatesInZlibBlocks()
|
/external/oss-fuzz/infra/cifuzz/ |
D | clusterfuzz_deployment.py | 197 with tempfile.NamedTemporaryFile(suffix='.zip') as tmp_file: 198 if not download_url(url, tmp_file.name): 202 with zipfile.ZipFile(tmp_file.name, 'r') as zip_file:
|
/external/perfetto/tools/ |
D | gn_utils.py | 188 for tmp_file in tmp_files: 189 assert (tmp_file.endswith('.swp')) 190 target_file = os.path.relpath(tmp_file[:-4]) 192 if not filecmp.cmp(tmp_file, target_file): 195 os.unlink(tmp_file) 197 os.rename(tmp_file, target_file)
|
/external/autotest/client/cros/faft/utils/ |
D | os_interface.py | 412 tmp_file = self.state_dir_file('part.tmp') 414 'dd if=%s of=%s bs=1 count=%d' % (partition, tmp_file, size)) 415 data = self.read_file(tmp_file) 416 self.remove_file(tmp_file)
|
/external/toolchain-utils/llvm_tools/ |
D | nightly_revert_checker.py | 174 tmp_file = state_file + '.new' 175 with open(tmp_file, 'w', encoding='utf-8') as f: 177 os.rename(tmp_file, state_file) 180 os.remove(tmp_file)
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
D | dependency_manager_util_unittest.py | 187 tmp_file = tempfile.NamedTemporaryFile(delete=False) 188 tmp_file_name = tmp_file.name 189 tmp_file.write('Bad file!') 190 tmp_file.close()
|