/aosp12/bionic/linker/ |
H A D | linker_config_test.cpp | 131 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 D | cmd_kmem_test.cpp | 46 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 D | read_elf_test.cpp | 179 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 D | cmd_report_test.cpp | 49 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 D | cmd_stat_test.cpp | 150 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 D | cmd_trace_sched.cpp | 123 TemporaryFile tmp_file; in Run() local 125 if (!RecordSchedEvents(tmp_file.path)) { in Run() 128 record_file_ = tmp_file.path; in Run()
|
H A D | environment.cpp | 857 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 D | cmd_record.cpp | 1643 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 D | zip_archive_test.cc | 396 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 D | parse_oatdump_offsets.sh | 26 tmp_file="$(mktemp)" 34 echo $line $found_method >> "$tmp_file" 38 sort "$tmp_file"
|
/aosp12/art/tools/ |
H A D | test_presubmit.py | 112 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 D | dexlayout_test.cc | 291 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 D | storaged.cpp | 244 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 D | tombstone_test.cpp | 47 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 D | dump_memory_test.cpp | 143 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 D | default-build | 237 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 D | flags_test.cc | 33 TestFlag(ScratchFile* tmp_file, FlagType flag_type) { in TestFlag() argument 34 tmp_file_.reset(tmp_file); in TestFlag()
|
/aosp12/packages/modules/adb/ |
H A D | test_device.py | 931 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 D | debuggerd_test.cpp | 1179 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 D | dex2oat.cc | 2649 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 D | incfs_test.cpp | 330 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 D | common.py | 700 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 D | google-style-checker_deploy.jar | META-INF/
META-INF/MANIFEST.MF
build-data.properties
com/
com ... |