Home
last modified time | relevance | path

Searched refs:temp_file (Results 1 – 25 of 30) sorted by relevance

12

/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/
DtDomain_Split.py71 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/
Dbrillo_ADBFileTransfer.py25 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/autotest/site_utils/stats/
Dapache_error_log_metrics_unittest.py78 with tempfile.NamedTemporaryFile() as temp_file:
80 '--debug-metrics-file', temp_file.name],
84 with open(temp_file.name) as fh:
103 with tempfile.NamedTemporaryFile() as temp_file:
105 '--debug-metrics-file', temp_file.name],
109 with open(temp_file.name) as fh:
Dapache_access_log_metrics_unittest.py68 with tempfile.NamedTemporaryFile() as temp_file:
70 '--debug-metrics-file', temp_file.name],
74 with open(temp_file.name) as fh:
/external/devlib/devlib/module/
Dthermal.py32 temp_file = self.target.path.join(self.zone.path, self.temp_node)
33 return self.target.read_int(temp_file)
36 temp_file = self.target.path.join(self.zone.path, self.temp_node)
37 self.target.write_value(temp_file, temperature)
70 temp_file = self.target.path.join(self.path, 'temp')
71 return self.target.read_int(temp_file)
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/
DtFunction_listingFunctions.py64 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/devlib/devlib/utils/
Drendering.py31 self.temp_file = None
43 fd, self.temp_file = tempfile.mkstemp()
44 logger.debug('temp file: {}'.format(self.temp_file))
72 if not self.temp_file:
74 with open(self.temp_file) as fh:
77 shutil.copy(self.temp_file, outfile)
78 os.unlink(self.temp_file)
79 self.temp_file = None
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Drtp_file_source.cc36 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/
Dsymupload.cc133 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/
Dpower_DeferForFlashrom.py55 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/
Dno_pseudo_terminal_test.py40 temp_file = tempfile.mktemp()
41 self.assertTrue(self._AttachStraceToSelf(temp_file))
48 strace_contents = open(temp_file).read()
/external/autotest/client/cros/
Dgpio.py85 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/autotest/server/site_tests/network_DiskFull/
Dhog_disk.sh38 temp_file=$(mktemp --tmpdir="$mount_point" hog_disk.XXXXXXXXXX)
43 fallocate --length "$mount_size_bytes" "$temp_file" 2>/dev/null || true
/external/libchrome/base/metrics/
Dpersistent_histogram_allocator_unittest.cc134 FilePath temp_file = temp_dir.path().AppendASCII(temp_name); in TEST_F() local
139 GlobalHistogramAllocator::CreateWithFile(temp_file, temp_size, 0, temp_name); in TEST_F()
145 GlobalHistogramAllocator::CreateWithFile(temp_file, temp_size, 0, ""); in TEST_F()
151 GlobalHistogramAllocator::CreateWithFile(temp_file, 0, 0, ""); in TEST_F()
/external/libjpeg-turbo/
Djmemsys.h140 short temp_file; /* file reference number to temp file */ member
145 FILE *temp_file; /* stdio reference to temp file */ member
/external/vixl/tools/
Dclang_format.py79 temp_file, temp_file_name = tempfile.mkstemp(prefix = 'clang_format_')
82 stdout = temp_file, stderr = subprocess.STDOUT)
105 stdout=temp_file, stderr=subprocess.STDOUT)
/external/autotest/client/cros/input_playback/
Dinput_playback.py186 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/libchrome/base/json/
Djson_value_serializer_unittest.cc154 FilePath temp_file(tempdir.path().AppendASCII("test.json")); in TEST() local
156 WriteFile(temp_file, kProperJSON, strlen(kProperJSON))); in TEST()
159 JSONFileValueDeserializer file_deserializer(temp_file); in TEST()
178 FilePath temp_file(tempdir.path().AppendASCII("test.json")); in TEST() local
180 WriteFile(temp_file, kProperJSONWithCommas, in TEST()
184 JSONFileValueDeserializer file_deserializer(temp_file); in TEST()
/external/devlib/devlib/platform/
Darm.py258 temp_file = tempfile.mktemp()
259 self.target.pull(self.on_target_file, temp_file)
262 with open(temp_file, 'rb') as fh:
272 raise HostError('Channel "{}" is not in {}'.format(chan.name, temp_file))
/external/webrtc/webrtc/base/
Dwin32regkey_unittest.cc570 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()
/external/autotest/client/cros/crash/
Dcrash_test.py231 temp_file = self._CONSENT_FILE + '.tmp';
232 utils.open_write_close(temp_file, 'test-consent')
233 utils.system('chown chronos:chronos "%s"' % (temp_file))
234 shutil.move(temp_file, self._CONSENT_FILE)
/external/chromium-trace/catapult/common/battor/battor/
Dbattor_wrapper.py232 temp_file = tempfile.NamedTemporaryFile(delete=False)
233 self._trace_results_path = temp_file.name
234 temp_file.close()
/external/autotest/site_utils/
Dtest_runner_utils.py280 with tempfile.NamedTemporaryFile() as temp_file:
281 temp_file.write(job.control_file)
282 temp_file.flush()
292 extra_args = [temp_file.name]
/external/toolchain-utils/user_activity_benchmarks/
Dprocess_hot_functions_unittest.py156 temp_file, temp_filename = tempfile.mkstemp()
157 os.close(temp_file)
/external/pdfium/third_party/libjpeg/
Djmemsys.h132 FXSYS_FILE * temp_file; /* stdio reference to temp file */ member

12