Home
last modified time | relevance | path

Searched refs:TempFile (Results 1 – 25 of 61) sorted by relevance

123

/external/perfetto/src/base/
Dtemp_file.cc34 TempFile TempFile::Create() { in Create()
35 TempFile temp_file; in Create()
49 TempFile TempFile::CreateUnlinked() { in CreateUnlinked()
50 TempFile temp_file = TempFile::Create(); in CreateUnlinked()
55 TempFile::TempFile() = default;
57 TempFile::~TempFile() { in ~TempFile()
61 ScopedFile TempFile::ReleaseFD() { in ReleaseFD()
66 void TempFile::Unlink() { in Unlink()
73 TempFile::TempFile(TempFile&&) noexcept = default;
74 TempFile& TempFile::operator=(TempFile&&) = default;
Dtemp_file_unittest.cc37 TempFile tf = TempFile::Create(); in TEST()
45 TempFile moved_tf(std::move(tf)); in TEST()
52 TempFile moved_tf2 = std::move(moved_tf); in TEST()
69 TempFile tf = TempFile::CreateUnlinked(); in TEST()
81 TempFile tf = TempFile::Create(); in TEST()
91 TempFile tf = TempFile::CreateUnlinked(); in TEST()
/external/perfetto/include/perfetto/base/
Dtemp_file.h27 class TempFile {
29 static TempFile CreateUnlinked();
30 static TempFile Create();
32 TempFile(TempFile&&) noexcept;
33 TempFile& operator=(TempFile&&);
34 ~TempFile();
49 TempFile();
50 TempFile(const TempFile&) = delete;
51 TempFile& operator=(const TempFile&) = delete;
/external/catch2/include/internal/
Dcatch_output_redirect.h71 class TempFile {
73 TempFile(TempFile const&) = delete;
74 TempFile& operator=(TempFile const&) = delete;
75 TempFile(TempFile&&) = delete;
76 TempFile& operator=(TempFile&&) = delete;
78 TempFile();
79 ~TempFile();
106 TempFile m_stdoutFile;
107 TempFile m_stderrFile;
Dcatch_output_redirect.cpp65 TempFile::TempFile() { in TempFile() function in Catch::TempFile
78 TempFile::TempFile() { in TempFile() function in Catch::TempFile
87 TempFile::~TempFile() { in ~TempFile()
98 FILE* TempFile::getFile() { in getFile()
102 std::string TempFile::getContents() { in getContents()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DCaching.cpp73 sys::fs::TempFile TempFile; in localCache() member
78 sys::fs::TempFile TempFile, std::string EntryPath, in localCache()
81 TempFile(std::move(TempFile)), EntryPath(std::move(EntryPath)), in localCache()
90 MemoryBuffer::getOpenFile(TempFile.FD, TempFile.TmpName, in localCache()
95 TempFile.TmpName + ": " + in localCache()
107 Error E = TempFile.keep(EntryPath); in localCache()
118 consumeError(TempFile.discard()); in localCache()
125 TempFile.TmpName + " to " + EntryPath + ": " + in localCache()
136 Expected<sys::fs::TempFile> Temp = sys::fs::TempFile::create( in localCache()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer_unittest.cc84 base::TempFile tmp = base::TempFile::Create(); in TEST()
111 base::TempFile tmp = base::TempFile::Create(); in TEST()
145 base::TempFile tmp = base::TempFile::Create(); in TEST()
157 base::TempFile tmp = base::TempFile::Create(); in TEST()
172 base::TempFile tmp = base::TempFile::Create(); in TEST()
226 base::TempFile tmp = base::TempFile::Create(); in TEST()
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/
DTempFilesServer.java52 private final List<TempFile> tempFiles;
56 this.tempFiles = new ArrayList<TempFile>(); in ExampleManager()
64 for (TempFile file : this.tempFiles) { in clear()
75 public TempFile createTempFile(String filename_hint) throws Exception { in createTempFile()
/external/tensorflow/tensorflow/lite/tools/accuracy/
Dfile_reader_stage_test.cc28 class TempFile { class
30 TempFile() { in TempFile() function in tensorflow::metrics::__anon60dffe840111::TempFile
50 ~TempFile() { in ~TempFile()
62 TempFile file; in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DFileOutputBuffer.cpp37 OnDiskBuffer(StringRef Path, fs::TempFile Temp, in OnDiskBuffer()
66 fs::TempFile Temp;
115 Expected<fs::TempFile> FileOrErr = in createOnDiskBuffer()
116 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer()
119 fs::TempFile File = std::move(*FileOrErr); in createOnDiskBuffer()
DPath.cpp1110 TempFile::TempFile(StringRef Name, int FD) : TmpName(Name), FD(FD) {} in TempFile() function in llvm::sys::fs::TempFile
1111 TempFile::TempFile(TempFile &&Other) { *this = std::move(Other); } in TempFile() function in llvm::sys::fs::TempFile
1112 TempFile &TempFile::operator=(TempFile &&Other) { in operator =()
1119 TempFile::~TempFile() { assert(Done); } in ~TempFile()
1121 Error TempFile::discard() { in discard()
1145 Error TempFile::keep(const Twine &Name) { in keep()
1190 Error TempFile::keep() { in keep()
1213 Expected<TempFile> TempFile::create(const Twine &Model, unsigned Mode) { in create()
1220 TempFile Ret(ResultPath, FD); in create()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/verify-uselistorder/
Dverify-uselistorder.cpp72 struct TempFile { struct
108 bool TempFile::init(const std::string &Ext) { in init()
124 bool TempFile::writeBitcode(const Module &M) const { in writeBitcode()
137 bool TempFile::writeAssembly(const Module &M) const { in writeAssembly()
150 std::unique_ptr<Module> TempFile::readBitcode(LLVMContext &Context) const { in readBitcode()
171 std::unique_ptr<Module> TempFile::readAssembly(LLVMContext &Context) const { in readAssembly()
354 TempFile F; in verifyBitcodeUseListOrder()
366 TempFile F; in verifyAssemblyUseListOrder()
/external/llvm/tools/verify-uselistorder/
Dverify-uselistorder.cpp73 struct TempFile { struct
109 bool TempFile::init(const std::string &Ext) { in init()
125 bool TempFile::writeBitcode(const Module &M) const { in writeBitcode()
138 bool TempFile::writeAssembly(const Module &M) const { in writeAssembly()
151 std::unique_ptr<Module> TempFile::readBitcode(LLVMContext &Context) const { in readBitcode()
172 std::unique_ptr<Module> TempFile::readAssembly(LLVMContext &Context) const { in readAssembly()
355 TempFile F; in verifyBitcodeUseListOrder()
367 TempFile F; in verifyAssemblyUseListOrder()
/external/perfetto/src/traced/probes/filesystem/
Dfs_mount_unittest.cc55 base::TempFile tmp_file = base::TempFile::Create(); in TEST()
/external/perfetto/src/tracing/ipc/
Dposix_shared_memory_unittest.cc70 base::TempFile tmp_file = base::TempFile::CreateUnlinked(); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DFileSystem.h774 class TempFile {
776 TempFile(StringRef Name, int FD);
781 static Expected<TempFile> create(const Twine &Model,
783 TempFile(TempFile &&Other);
784 TempFile &operator=(TempFile &&Other);
802 ~TempFile();
/external/python/cpython3/Lib/test/
Dtest_linecache.py40 class TempFile: class
50 class GetLineTestsGoodData(TempFile):
71 class GetLineTestsBadData(TempFile):
/external/syzkaller/pkg/osutil/
Dosutil.go207 func TempFile(prefix string) (string, error) { func
208 f, err := ioutil.TempFile("", prefix)
Dfileutil.go46 f, err := ioutil.TempFile("", "syzkaller")
/external/perfetto/src/ipc/
Dhost_impl_unittest.cc333 base::TempFile tx_file = base::TempFile::CreateUnlinked(); in TEST_F()
375 base::TempFile tx_file = base::TempFile::CreateUnlinked(); in TEST_F()
Dclient_impl_unittest.cc351 base::TempFile tx_file = base::TempFile::CreateUnlinked(); in TEST_F()
397 base::TempFile tx_file = base::TempFile::CreateUnlinked(); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DMachOUtils.h27 Optional<llvm::sys::fs::TempFile> File;
Ddsymutil.cpp534 auto &TempFile = *(TempFiles.back().File); in main() local
535 OS = std::make_shared<raw_fd_ostream>(TempFile.FD, in main()
537 OutputFile = TempFile.TmpName; in main()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java385 public static class DefaultTempFile implements TempFile {
429 private final List<TempFile> tempFiles;
436 this.tempFiles = new ArrayList<TempFile>(); in DefaultTempFileManager()
441 for (TempFile file : this.tempFiles) { in clear()
452 public TempFile createTempFile(String filename_hint) throws Exception { in createTempFile()
979 TempFile tempFile = this.tempFileManager.createTempFile(null); in getTmpBucket()
1097 TempFile tempFile = this.tempFileManager.createTempFile(filename_hint); in saveTmpFile()
1592 public interface TempFile {
1613 public TempFile createTempFile(String filename_hint) throws Exception;
/external/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/
DOptimizerDriver.cpp148 Expected<sys::fs::TempFile> Temp = in runPasses()
149 sys::fs::TempFile::create(OutputPrefix + "-input-%%%%%%%.bc"); in runPasses()

123