/development/tools/idegen/ |
index-gen.sh | 41 tmp_file=${root_dir}/tmp.txt 49 > $tmp_file 50 sed -e 's/LOCAL_PACKAGE_NAME *:= *//g' -e 's/LOCAL_MODULE *:= *//g' -e 's/\^M*$//g' < $tmp_file > $dest_file 52 mv $dest_file $tmp_file 55 grep -v "^$root_dir/vendor/google" $tmp_file > $dest_file 57 rm $tmp_file
|
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/ |
test_hash.py | 33 tmp_file = self.CreateTempFile(contents=self._TEST_FILE_CONTENTS) 34 stdout = self.RunCommand('hash', args=[tmp_file], return_stdout=True) 55 tmp_file = self.CreateTempFile(contents=self._TEST_FILE_CONTENTS) 56 stdout = self.RunCommand('hash', args=['-h', tmp_file], return_stdout=True) 71 tmp_file = self.CreateTempFile(contents=self._TEST_FILE_CONTENTS) 72 stdout_crc = self.RunCommand('hash', args=['-c', tmp_file], 74 stdout_md5 = self.RunCommand('hash', args=['-m', tmp_file], 76 stdout_both = self.RunCommand('hash', args=['-c', '-m', tmp_file],
|
test_hashing_helper.py | 49 tmp_file = self.CreateTempFile(contents='a' * TRANSFER_BUFFER_SIZE * 4) 50 with open(tmp_file, 'rb') as stream: 54 with open(tmp_file, 'rb') as stream: 74 tmp_file = self._GetTestFile() 75 tmp_file_len = os.path.getsize(tmp_file) 87 with open(tmp_file, 'rb') as stream: 101 with open(tmp_file, 'rb') as stream: 154 tmp_file = self._GetTestFile() 155 tmp_file_len = os.path.getsize(tmp_file) 163 with open(tmp_file, 'rb') as stream [all...] |
test_resumable_streaming.py | 52 tmp_file = self._GetTestFile() 53 with open(tmp_file, 'rb') as stream: 59 with open(tmp_file, 'rb') as stream: 65 tmp_file = self._GetTestFile() 84 with open(tmp_file, 'rb') as stream: 102 with open(tmp_file, 'rb') as stream: 127 tmp_file = self._GetTestFile() 140 with open(tmp_file, 'rb') as stream: 217 tmp_file = self._GetTestFile() 219 with open(tmp_file, 'rb') as stream [all...] |
/external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/ |
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/v8/tools/ |
disasm.py | 63 tmp_file = tempfile.NamedTemporaryFile(prefix=".v8code", delete=False) 64 tmp_name = tmp_file.name 65 tmp_file.close()
|
android-run.py | 81 tmp_file = open(fname, "w") 82 tmp_file.write(data) 83 tmp_file.close()
|
nacl-run.py | 77 tmp_file = open(fname, "w") 78 tmp_file.write(data) 79 tmp_file.close()
|
/system/extras/simpleperf/ |
gtest_main.cpp | 49 TemporaryFile tmp_file; local 50 if (!android::base::WriteStringToFile(content, tmp_file.path)) { 51 PLOG(ERROR) << "failed to write file " << tmp_file.path; 54 ArchiveHelper ahelper(tmp_file.fd, tmp_file.path); 56 LOG(ERROR) << "failed to open archive " << tmp_file.path;
|
cmd_report_test.cpp | 48 "--symfs", GetTestDataDir(), "-o", tmp_file.path}; 51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); 65 TemporaryFile tmp_file; member in class:ReportCommandTest 272 TemporaryFile tmp_file; local 273 ASSERT_TRUE(RecordCmd()->Run({"-g", "-o", tmp_file.path, "sleep", SLEEP_SEC})); 274 ReportRaw(tmp_file.path, {"-g"});
|
/external/autotest/client/common_lib/ |
autotemp_unittest.py | 25 tmp_file = autotemp.tempfile(unique_id='del') 26 name = tmp_file.name 28 tmp_file.__del__()
|
/external/autotest/server/site_tests/brillo_StorageWriteSpeedTest/ |
brillo_StorageWriteSpeedTest.py | 36 tmp_file = os.path.join(host.get_tmp_dir(), 'testfile') 39 (tmp_file, block_size, num_blocks))
|
/external/libchrome/base/files/ |
important_file_writer.cc | 93 File tmp_file(tmp_file_path, File::FLAG_OPEN | File::FLAG_WRITE); 94 if (!tmp_file.IsValid()) { 101 int bytes_written = tmp_file.Write(0, data.data(), data_length); 102 bool flush_success = tmp_file.Flush(); 103 tmp_file.Close();
|
/system/core/metricsd/uploader/ |
upload_service_test.cc | 263 std::string tmp_file = dir_.path().Append("tmpfile").value(); local 265 std::string first_guid = SystemProfileCache::GetPersistentGUID(tmp_file); 266 std::string second_guid = SystemProfileCache::GetPersistentGUID(tmp_file); 271 base::DeleteFile(base::FilePath(tmp_file), false); 273 first_guid = SystemProfileCache::GetPersistentGUID(tmp_file); 274 base::DeleteFile(base::FilePath(tmp_file), false); 275 second_guid = SystemProfileCache::GetPersistentGUID(tmp_file);
|
/system/core/libziparchive/ |
zip_archive_test.cc | 379 TemporaryFile tmp_file; local 380 ASSERT_NE(-1, tmp_file.fd); 381 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); 384 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EmptyEntriesTest", &handle)); 405 TemporaryFile tmp_file; local 406 ASSERT_NE(-1, tmp_file.fd); 407 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, reinterpret_cast<const uint8_t*>(kAbZip), 410 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EntryLargerThan32KTest", &handle)); 449 TemporaryFile tmp_file; local 450 ASSERT_NE(-1, tmp_file.fd) 462 TemporaryFile tmp_file; local [all...] |
/development/scripts/ |
stack_core.py | 170 for tmp_file in tmp_files.values(): 171 os.unlink(tmp_file) 207 tmp_file = None 209 tmp_fd, tmp_file = tempfile.mkstemp() 212 shared_file = tmp_file 213 tmp_file = None 216 if tmp_file: 218 os.unlink(tmp_file) 243 tmp_file = self.ExtractLibFromApk(apk_full_path, file_name) 244 if tmp_file [all...] |
/art/compiler/utils/ |
assembler_test_base.h | 495 std::string tmp_file = GetTmpnam(); local 497 args.push_back(tmp_file); 511 std::ifstream in(tmp_file.c_str()); 515 std::remove(tmp_file.c_str()); 519 std::remove(tmp_file.c_str()); 525 static void FindToolDumpPrintout(std::string name_predicate, std::string tmp_file) { 537 args.push_back(tmp_file); 553 std::ifstream in(tmp_file.c_str()); 561 std::remove(tmp_file.c_str());
|
/system/core/debuggerd/test/ |
dump_memory_test.cpp | 111 char tmp_file[256]; local 113 memcpy(tmp_file, data_template, sizeof(data_template)); 114 int tombstone_fd = mkstemp(tmp_file); 117 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); 118 tombstone_fd = mkstemp(tmp_file); 123 if (unlink(tmp_file) == -1) { [all...] |
tombstone_test.cpp | 54 char tmp_file[256]; local 56 memcpy(tmp_file, data_template, sizeof(data_template)); 57 int tombstone_fd = mkstemp(tmp_file); 60 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); 61 tombstone_fd = mkstemp(tmp_file); 66 if (unlink(tmp_file) == -1) {
|
/external/autotest/client/cros/faft/utils/ |
os_interface.py | 369 tmp_file = self.state_dir_file('part.tmp') 371 partition, tmp_file, size)) 372 data = self.read_file(tmp_file) 373 self.remove_file(tmp_file)
|
/external/chromium-trace/catapult/dependency_manager/dependency_manager/ |
dependency_manager_util_unittest.py | 156 tmp_file = tempfile.NamedTemporaryFile(delete=False) 157 tmp_file_name = tmp_file.name 158 tmp_file.write('Bad file!') 159 tmp_file.close()
|
/development/tools/checkstyle/ |
checkstyle.py | 259 tmp_file = open(tmp_file_name, 'w') 260 tmp_file.write(content) 261 tmp_file.close()
|
/external/valgrind/massif/ |
ms_print.in | 60 my $tmp_file = "$tmp_dir/ms_print.tmp.$$"; 395 # Print snapshot list header to $tmp_file. 397 open(TMPFILE, "> $tmp_file") 398 || die "Cannot open $tmp_file for writing\n"; 428 # Print the snapshot data to $tmp_file. 447 # snapshot list header to $tmp_file. 656 # Print snapshots, from $tmp_file. 658 open(TMPFILE, "< $tmp_file") 659 || die "Cannot open $tmp_file for reading\n"; 664 unlink($tmp_file); [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_urllib.py | 228 fd, tmp_file = tempfile.mkstemp() 229 tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/') 231 self.assertTrue(os.path.exists(tmp_file)) 236 os.unlink(tmp_file) 238 self.assertFalse(os.path.exists(tmp_file)) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_urllib.py | 228 fd, tmp_file = tempfile.mkstemp() 229 tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/') 231 self.assertTrue(os.path.exists(tmp_file)) 236 os.unlink(tmp_file) 238 self.assertFalse(os.path.exists(tmp_file)) [all...] |