Home
last modified time | relevance | path

Searched refs:tmp_file (Results 1 – 23 of 23) sorted by relevance

/aosp12/bionic/linker/
H A Dlinker_config_test.cpp131 TemporaryFile tmp_file; in run_linker_config_smoke_test() local
132 close(tmp_file.fd); in run_linker_config_smoke_test()
133 tmp_file.fd = -1; in run_linker_config_smoke_test()
150 ASSERT_TRUE(Config::read_binary_config(tmp_file.path, in run_linker_config_smoke_test()
247 TemporaryFile tmp_file; in TEST() local
248 close(tmp_file.fd); in TEST()
249 tmp_file.fd = -1; in TEST()
265 ASSERT_EQ(std::string(tmp_file.path) + ":6: " in TEST()
293 TemporaryFile tmp_file; in TEST() local
294 close(tmp_file.fd); in TEST()
[all …]
/aosp12/system/extras/simpleperf/
H A Dcmd_kmem_test.cpp46 TemporaryFile tmp_file; in KmemReportRawFile() local
47 close(tmp_file.release()); in KmemReportRawFile()
48 std::vector<std::string> args = {"report", "-i", perf_data, "-o", tmp_file.path}; in KmemReportRawFile()
51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile()
98 TemporaryFile tmp_file; in TEST() local
100 ASSERT_TRUE(RunKmemRecordCmd({"--slab"}, tmp_file.path)); in TEST()
102 KmemReportRawFile(tmp_file.path, {}, &result); in TEST()
108 TemporaryFile tmp_file; in TEST() local
110 ASSERT_TRUE(RunKmemRecordCmd({"--slab", "-g"}, tmp_file.path)); in TEST()
112 KmemReportRawFile(tmp_file.path, {"-g"}, &result); in TEST()
H A Dread_elf_test.cpp179 TemporaryFile tmp_file; in TEST() local
180 ASSERT_EQ(ElfStatus::READ_FAILED, IsValidElfPath(tmp_file.path)); in TEST()
181 ASSERT_TRUE(android::base::WriteStringToFile("wrong format for elf", tmp_file.path)); in TEST()
182 ASSERT_EQ(ElfStatus::FILE_MALFORMED, IsValidElfPath(tmp_file.path)); in TEST()
H A Dcmd_report_test.cpp49 TemporaryFile tmp_file; in ReportRaw() local
51 "-o", tmp_file.path}; in ReportRaw()
54 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); in ReportRaw()
549 TemporaryFile tmp_file; in TEST_F() local
550 ASSERT_TRUE(RecordCmd()->Run({"-p", pid, "-g", "-o", tmp_file.path, "sleep", SLEEP_SEC})); in TEST_F()
551 ReportRaw(tmp_file.path, {"-g"}); in TEST_F()
H A Dcmd_stat_test.cpp150 TemporaryFile tmp_file; in TEST() local
152 {"--group", "instructions:u,instructions:k", "-o", tmp_file.path, "sleep", "1"})); in TEST()
154 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &s)); in TEST()
170 TemporaryFile tmp_file; in TEST() local
172 {"--interval", "500.0", "--duration", "1.2", "-o", tmp_file.path, "sleep", "2"})); in TEST()
174 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &s)); in TEST()
H A Dcmd_trace_sched.cpp123 TemporaryFile tmp_file; in Run() local
125 if (!RecordSchedEvents(tmp_file.path)) { in Run()
128 record_file_ = tmp_file.path; in Run()
H A Denvironment.cpp857 std::unique_ptr<TemporaryFile> tmp_file(new TemporaryFile(tmp_dir_)); in CreateTempFile() local
858 CHECK_NE(tmp_file->fd, -1) << "failed to create tmpfile under " << tmp_dir_; in CreateTempFile()
860 tmp_file->DoNotRemove(); in CreateTempFile()
861 files_to_delete_.push_back(tmp_file->path); in CreateTempFile()
863 return tmp_file; in CreateTempFile()
H A Dcmd_record.cpp1643 auto tmp_file = ScopedTempFiles::CreateTempFile(); in MergeMapRecords() local
1644 auto reader = MoveRecordFile(tmp_file->path); in MergeMapRecords()
1678 auto tmp_file = ScopedTempFiles::CreateTempFile(); in PostUnwindRecords() local
1679 auto reader = MoveRecordFile(tmp_file->path); in PostUnwindRecords()
1697 auto tmp_file = ScopedTempFiles::CreateTempFile(); in JoinCallChains() local
1698 auto reader = MoveRecordFile(tmp_file->path); in JoinCallChains()
/aosp12/system/libziparchive/
H A Dzip_archive_test.cc396 TemporaryFile tmp_file; in TEST() local
397 ASSERT_NE(-1, tmp_file.fd); in TEST()
499 TemporaryFile tmp_file; in TEST() local
500 ASSERT_NE(-1, tmp_file.fd); in TEST()
525 TemporaryFile tmp_file; in TEST() local
526 ASSERT_NE(-1, tmp_file.fd); in TEST()
566 TemporaryFile tmp_file; in TEST() local
567 ASSERT_NE(-1, tmp_file.fd); in TEST()
579 TemporaryFile tmp_file; in TEST() local
777 TemporaryFile tmp_file; in ExtractEntryToMemory() local
[all …]
/aosp12/art/test/661-oat-writer-layout/
H A Dparse_oatdump_offsets.sh26 tmp_file="$(mktemp)"
34 echo $line $found_method >> "$tmp_file"
38 sort "$tmp_file"
/aosp12/art/tools/
H A Dtest_presubmit.py112 tmp_file = tempfile.mktemp()
116 success = run_tool(tool_dict, tmp_file)
120 print("$> %s" %(" ".join(command_line_for_tool(tool_dict, tmp_file))), file=sys.stderr)
122 if run_diff(f, tool_dict, tmp_file):
/aosp12/art/dexlayout/
H A Ddexlayout_test.cc291 ScratchFile tmp_file; in DexFileOutputExec() local
292 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileOutputExec()
384 ScratchFile tmp_file; in DexFileLayoutExec() local
385 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileLayoutExec()
413 ScratchFile tmp_file; in DexFileLayoutFixedPointExec() local
414 const std::string& tmp_name = tmp_file.GetFilename(); in DexFileLayoutFixedPointExec()
476 ScratchFile tmp_file; in UnreferencedCatchHandlerExec() local
712 ScratchFile tmp_file; in TEST_F() local
713 const std::string& tmp_name = tmp_file.GetFilename(); in TEST_F()
750 ScratchFile tmp_file; in TEST_F() local
[all …]
/aosp12/system/core/storaged/
H A Dstoraged.cpp244 string tmp_file = proto_file + "_tmp"; in flush_proto_data() local
245 unique_fd fd(TEMP_FAILURE_RETRY(open(tmp_file.c_str(), in flush_proto_data()
250 PLOG(ERROR) << "Faied to open tmp file: " << tmp_file; in flush_proto_data()
265 PLOG(ERROR) << "Faied to write tmp file: " << tmp_file; in flush_proto_data()
288 PLOG(ERROR) << "Faied to write tmp file: " << tmp_file; in flush_proto_data()
294 rename(tmp_file.c_str(), proto_file.c_str()); in flush_proto_data()
/aosp12/system/core/debuggerd/libdebuggerd/test/
H A Dtombstone_test.cpp47 char tmp_file[256]; in SetUp() local
49 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp()
50 int tombstone_fd = mkstemp(tmp_file); in SetUp()
53 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp()
54 tombstone_fd = mkstemp(tmp_file); in SetUp()
59 if (unlink(tmp_file) == -1) { in SetUp()
H A Ddump_memory_test.cpp143 char tmp_file[256]; in SetUp() local
145 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp()
146 int tombstone_fd = mkstemp(tmp_file); in SetUp()
149 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp()
150 tombstone_fd = mkstemp(tmp_file); in SetUp()
155 if (unlink(tmp_file) == -1) { in SetUp()
/aosp12/art/test/etc/
H A Ddefault-build237 local tmp_file="$(mktemp)"
238 "$ZIPALIGN" -f "$ZIP_ALIGN_BYTES" "$zip_target" "$tmp_file"
240 mv "$tmp_file" "$zip_target"
/aosp12/art/libartbase/base/
H A Dflags_test.cc33 TestFlag(ScratchFile* tmp_file, FlagType flag_type) { in TestFlag() argument
34 tmp_file_.reset(tmp_file); in TestFlag()
/aosp12/packages/modules/adb/
H A Dtest_device.py931 with tempfile.NamedTemporaryFile() as tmp_file:
932 tmp_file.write(b'\0' * 1024 * 1024)
933 tmp_file.flush()
949 with tempfile.NamedTemporaryFile() as tmp_file:
950 tmp_file.write(b'\0' * 1024 * 1024)
951 tmp_file.flush()
956 self.device.push(local=tmp_file.name, remote=remote_path)
965 with tempfile.NamedTemporaryFile() as tmp_file:
966 tmp_file.write('\0' * 1024 * 1024)
967 tmp_file.flush()
[all …]
/aosp12/system/core/debuggerd/
H A Ddebuggerd_test.cpp1179 FILE* tmp_file = tmpfile(); in seccomp_fork_impl() local
1180 if (!tmp_file) { in seccomp_fork_impl()
1184 unique_fd tmp_fd(TEMP_FAILURE_RETRY(dup(fileno(tmp_file)))); in seccomp_fork_impl()
/aosp12/art/dex2oat/
H A Ddex2oat.cc2649 std::unique_ptr<File> tmp_file(OS::CreateEmptyFile(tmp_file_name.c_str())); in SaveDexInput() local
2650 if (tmp_file.get() == nullptr) { in SaveDexInput()
2656 UNUSED(tmp_file->WriteFully(dex_file->Begin(), dex_file->Size())); in SaveDexInput()
2657 UNUSED(tmp_file->Flush()); in SaveDexInput()
2658 UNUSED(tmp_file->Close()); in SaveDexInput()
/aosp12/system/incremental_delivery/incfs/tests/
H A Dincfs_test.cpp330 const TemporaryFile tmp_file; in TEST_F() local
331 auto control{createControl(tmp_file.fd, -1, -1, -1)}; in TEST_F()
/aosp12/build/make/tools/releasetools/
H A Dcommon.py700 tmp_file = MakeTempFile(os.path.basename(fn))
701 with open(tmp_file, 'wb') as f:
703 return tmp_file
/aosp12/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...