/external/perfetto/src/base/ |
D | temp_file.cc | 35 TempFile temp_file; in Create() local 38 temp_file.path_.assign(tmpdir); in Create() 40 temp_file.path_.assign(kSysTmpPath); in Create() 42 temp_file.path_.append("/perfetto-XXXXXXXX"); in Create() 43 temp_file.fd_.reset(mkstemp(&temp_file.path_[0])); in Create() 44 PERFETTO_CHECK(temp_file.fd_); in Create() 45 return temp_file; in Create() 50 TempFile temp_file = TempFile::Create(); in CreateUnlinked() local 51 temp_file.Unlink(); in CreateUnlinked() 52 return temp_file; in CreateUnlinked()
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/ |
D | tDomain_Split.py | 71 self.temp_file="f_temp_file" 75 if os.path.exists(self.temp_file): 76 os.remove(self.temp_file) 115 f_temp_file = open(self.temp_file, "w") 120 for line in open(self.temp_file, "r"): 126 os.remove(self.temp_file) 132 f_temp_file = open(self.temp_file, "w") 138 for line in open(self.temp_file, "r"): 155 os.remove(self.temp_file) 178 f_temp_file = open(self.temp_file, "w") [all …]
|
/external/autotest/server/site_tests/brillo_ADBFileTransfer/ |
D | brillo_ADBFileTransfer.py | 25 self.temp_file = tempfile.NamedTemporaryFile() 26 self.temp_file.write(_DATA_STR) 27 self.temp_file.flush() 28 os.fsync(self.temp_file.file.fileno()) 43 host.send_file(self.temp_file.name, device_temp_file, 48 if not filecmp.cmp(self.temp_file.name, 58 self.temp_file.close()
|
/external/tensorflow/tensorflow/tools/compatibility/ |
D | tf_upgrade_test.py | 138 temp_file = tempfile.NamedTemporaryFile("w", delete=False) 141 temp_file.write(original) 142 temp_file.close() 144 upgrader.process_file(temp_file.name, temp_file.name) 145 self.assertAllEqual(open(temp_file.name).read(), upgraded) 146 os.unlink(temp_file.name)
|
D | ipynb.py | 37 with tempfile.NamedTemporaryFile("w", delete=False) as temp_file: 42 if temp_file and processed_file: 45 json.dump(new_notebook, temp_file) 54 shutil.move(temp_file.name, out_filename)
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/ |
D | tFunction_listingFunctions.py | 64 self.temp_file="tempfile" 71 if os.path.exists(self.temp_file): 72 os.remove(self.temp_file) 316 f_temp_file = open(self.temp_file, "w") 321 f_temp_file = open(self.temp_file, "r") 368 f_temp_file = open(self.temp_file, "w") 373 f_temp_file = open(self.temp_file, "r") 420 f_temp_file = open(self.temp_file, "w") 425 f_temp_file = open(self.temp_file, "r") 469 f_temp_file = open(self.temp_file, "w") [all …]
|
/external/skqp/infra/bots/buildstats/ |
D | buildstats_web.py | 40 temp_file = input_file + '_tmp' 41 subprocess.check_call(['cp', input_file, temp_file]) 42 subprocess.check_call(['gzip', temp_file]) 44 r['gzip_size_bytes'] = os.path.getsize(temp_file + '.gz')
|
D | buildstats_wasm.py | 56 temp_file = input_file + '_tmp' 57 subprocess.check_call(['cp', input_file, temp_file]) 58 subprocess.check_call(['gzip', temp_file]) 60 r['gzip_size_bytes'] = os.path.getsize(temp_file + '.gz')
|
/external/skia/infra/bots/buildstats/ |
D | buildstats_web.py | 40 temp_file = input_file + '_tmp' 41 subprocess.check_call(['cp', input_file, temp_file]) 42 subprocess.check_call(['gzip', temp_file]) 44 r['gzip_size_bytes'] = os.path.getsize(temp_file + '.gz')
|
D | buildstats_wasm.py | 56 temp_file = input_file + '_tmp' 57 subprocess.check_call(['cp', input_file, temp_file]) 58 subprocess.check_call(['gzip', temp_file]) 60 r['gzip_size_bytes'] = os.path.getsize(temp_file + '.gz')
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
D | rtp_file_source.cc | 36 rtc::scoped_ptr<RtpFileReader> temp_file( in ValidRtpDump() local 38 return !!temp_file; in ValidRtpDump() 42 rtc::scoped_ptr<RtpFileReader> temp_file( in ValidPcap() local 44 return !!temp_file; in ValidPcap()
|
/external/google-breakpad/src/tools/windows/symupload/ |
D | symupload.cc | 133 FILE *temp_file = NULL; in DumpSymbolsToTempFile() local 135 if (_wfopen_s(&temp_file, temp_filename, L"w") != 0) in DumpSymbolsToTempFile() 139 if (!(temp_file = _wfopen(temp_filename, L"w"))) in DumpSymbolsToTempFile() 145 bool success = writer.WriteMap(temp_file); in DumpSymbolsToTempFile() 146 fclose(temp_file); in DumpSymbolsToTempFile()
|
/external/autotest/server/site_tests/power_DeferForFlashrom/ |
D | power_DeferForFlashrom.py | 55 temp_file = self.host.run( 59 (source_path, temp_file, size)) 60 logging.info('Created %s', temp_file) 61 return temp_file
|
/external/toolchain-utils/cros_utils/ |
D | no_pseudo_terminal_test.py | 40 temp_file = tempfile.mktemp() 41 self.assertTrue(self._AttachStraceToSelf(temp_file)) 48 strace_contents = open(temp_file).read()
|
/external/autotest/site_utils/stats/ |
D | apache_access_log_metrics_unittest.py | 68 with tempfile.NamedTemporaryFile() as temp_file: 70 '--debug-metrics-file', temp_file.name], 74 with open(temp_file.name) as fh:
|
D | apache_error_log_metrics_unittest.py | 82 with tempfile.NamedTemporaryFile() as temp_file: 84 '--debug-metrics-file', temp_file.name], 88 with open(temp_file.name) as fh:
|
/external/autotest/client/cros/ |
D | gpio.py | 85 temp_fd, temp_file = tempfile.mkstemp() 87 command = "crossystem %s 2>%s" % (name, temp_file) 92 with open(temp_file, 'r') as temp_handle:
|
/external/libchrome/base/metrics/ |
D | persistent_histogram_allocator_unittest.cc | 163 FilePath temp_file = temp_dir.GetPath().AppendASCII(temp_name); in TEST_F() local 168 GlobalHistogramAllocator::CreateWithFile(temp_file, temp_size, 0, temp_name); in TEST_F() 174 GlobalHistogramAllocator::CreateWithFile(temp_file, temp_size, 0, ""); in TEST_F() 180 GlobalHistogramAllocator::CreateWithFile(temp_file, 0, 0, ""); in TEST_F() 192 FilePath temp_file = temp_dir.GetPath().AppendASCII(temp_name); in TEST_F() local 195 ASSERT_TRUE(GlobalHistogramAllocator::CreateSpareFile(temp_file, temp_size)); in TEST_F() 197 File file(temp_file, File::FLAG_OPEN | File::FLAG_READ); in TEST_F()
|
/external/perf_data_converter/src/quipper/ |
D | scoped_temp_path_test.cc | 74 ScopedTempFile temp_file; in TEST() local 75 path = temp_file.path(); in TEST() 90 ScopedTempFile temp_file(prefix); in TEST() local 91 path = temp_file.path(); in TEST()
|
/external/libchrome/base/json/ |
D | json_value_serializer_unittest.cc | 152 FilePath temp_file(tempdir.GetPath().AppendASCII("test.json")); in TEST() local 154 WriteFile(temp_file, kProperJSON, strlen(kProperJSON))); in TEST() 157 JSONFileValueDeserializer file_deserializer(temp_file); in TEST() 176 FilePath temp_file(tempdir.GetPath().AppendASCII("test.json")); in TEST() local 178 WriteFile(temp_file, kProperJSONWithCommas, in TEST() 182 JSONFileValueDeserializer file_deserializer(temp_file); in TEST() 192 JSONFileValueDeserializer file_deserializer2(temp_file, in TEST()
|
/external/autotest/server/site_tests/network_DiskFull/ |
D | hog_disk.sh | 38 temp_file=$(mktemp --tmpdir="$mount_point" hog_disk.XXXXXXXXXX) 43 fallocate --length "$mount_size_bytes" "$temp_file" 2>/dev/null || true
|
/external/libjpeg-turbo/ |
D | jmemsys.h | 140 short temp_file; /* file reference number to temp file */ member 145 FILE *temp_file; /* stdio reference to temp file */ member
|
/external/autotest/client/cros/input_playback/ |
D | input_playback.py | 186 with tempfile.NamedTemporaryFile() as temp_file: 187 filename = temp_file.name 189 stdout=temp_file) 199 temp_file.seek(0) 200 props = temp_file.read()
|
/external/vixl/tools/ |
D | clang_format.py | 99 temp_file, temp_file_name = tempfile.mkstemp(prefix = 'clang_format_') 102 stdout = temp_file, stderr = subprocess.STDOUT) 125 stdout=temp_file, stderr=subprocess.STDOUT)
|
/external/webrtc/webrtc/base/ |
D | win32regkey_unittest.cc | 570 wchar_t temp_file[MAX_PATH] = {0}; in RegKeyStaticFunctionsTest() local 572 ::GetTickCount(), temp_file), 0); in RegKeyStaticFunctionsTest() 577 EXPECT_SUCCEEDED(RegKey::Save(kFullRkey1Subkey, temp_file)); in RegKeyStaticFunctionsTest() 582 EXPECT_SUCCEEDED(RegKey::Restore(kFullRkey1Subkey, temp_file)); in RegKeyStaticFunctionsTest() 593 EXPECT_EQ(TRUE, ::DeleteFile(temp_file)); in RegKeyStaticFunctionsTest()
|