Searched defs:file (Results 1 - 16 of 16) sorted by last modified time

/art/compiler/dex/
H A Dmir_graph.cc5 * you may not use this file except in compliance with the License.
711 FILE* file; local
716 file = fopen(fname.c_str(), "w");
717 if (file == NULL) {
720 fprintf(file, "digraph G {\n");
722 fprintf(file, " rankdir=TB\n");
733 fprintf(file, " entry_%d [shape=Mdiamond];\n", bb->id);
735 fprintf(file, " exit_%d [shape=Mdiamond];\n", bb->id);
737 fprintf(file, " block%04x_%d [shape=record,label = \"{ \\\n",
740 fprintf(file, " {bloc
[all...]
/art/compiler/
H A Delf_fixup.cc5 * you may not use this file except in compliance with the License.
29 bool ElfFixup::Fixup(File* file, uintptr_t oat_data_begin) { argument
30 UniquePtr<ElfFile> elf_file(ElfFile::Open(file, true, false));
38 LOG(WARNING) << "Failed fo fixup .dynamic in " << file->GetPath();
42 LOG(WARNING) << "Failed fo fixup section headers in " << file->GetPath();
46 LOG(WARNING) << "Failed fo fixup program headers in " << file->GetPath();
50 LOG(WARNING) << "Failed fo fixup .dynsym in " << file->GetPath();
54 LOG(WARNING) << "Failed fo fixup .symtab in " << file->GetPath();
58 LOG(WARNING) << "Failed fo fixup .rel.dyn in " << file->GetPath();
232 // file i
[all...]
H A Delf_stripper.cc5 * you may not use this file except in compliance with the License.
30 bool ElfStripper::Strip(File* file) { argument
31 UniquePtr<ElfFile> elf_file(ElfFile::Open(file, true, false));
62 // - write new Elf32_Shdr section headers to end of file, updating Elf32_Ehdr
63 // - truncate rest of file
121 int result = ftruncate(file->Fd(), offset);
123 PLOG(ERROR) << "Failed to truncate while stripping ELF file: " << file->GetPath();
H A Delf_writer.cc5 * you may not use this file except in compliance with the License.
47 void ElfWriter::GetOatElfInformation(File* file, argument
50 UniquePtr<ElfFile> elf_file(ElfFile::Open(file, false, false));
H A Dfile_output_stream.cc5 * you may not use this file except in compliance with the License.
26 FileOutputStream::FileOutputStream(File* file) : OutputStream(file->GetPath()), file_(file) {} argument
/art/compiler/sea_ir/code_gen/
H A Dcode_gen.h5 * you may not use this file except in compliance with the License.
93 void Write(std::string file) { argument
/art/compiler/sea_ir/debug/
H A Ddot_gen.h5 * you may not use this file except in compliance with the License.
97 // Stores options for turning a SEA IR graph to a .dot file.
104 LOG(INFO) << "Starting to write SEA string to file " << filename << std::endl;
107 // TODO: UniquePtr to close file properly. Switch to BufferedOutputStream.
108 art::File* file = art::OS::CreateEmptyFile(filename.c_str()); local
109 art::FileOutputStream fos(file);
113 LOG(INFO) << "Written SEA string to file.";
/art/runtime/base/
H A Dlogging.cc5 * you may not use this file except in compliance with the License.
118 LogMessageData::LogMessageData(const char* file, int line, LogSeverity severity, int error) argument
119 : file(file),
123 const char* last_slash = strrchr(file, '/');
124 file = (last_slash == NULL) ? file : last_slash + 1;
H A Dlogging.h5 * you may not use this file except in compliance with the License.
178 LogMessageData(const char* file, int line, LogSeverity severity, int error);
180 const char* const file; member in struct:art::LogMessageData
191 LogMessage(const char* file, int line, LogSeverity severity, int error) argument
192 : data_(new LogMessageData(file, line, severity, error)) {
/art/runtime/base/unix_file/
H A Dfd_file_test.cc5 * you may not use this file except in compliance with the License.
43 FdFile file; local
44 EXPECT_EQ(-1, file.Fd());
45 EXPECT_FALSE(file.IsOpened());
46 EXPECT_TRUE(file.GetPath().empty());
50 std::string good_path(GetTmpPath("some-file.txt"));
51 FdFile file; local
52 ASSERT_TRUE(file.Open(good_path, O_CREAT | O_WRONLY));
53 EXPECT_GE(file.Fd(), 0);
54 EXPECT_TRUE(file
[all...]
H A Dmapped_file_test.cc5 * you may not use this file except in compliance with the License.
35 good_path_ = GetTmpPath("some-file.txt");
57 MappedFile file; local
58 EXPECT_EQ(-1, file.Fd());
59 EXPECT_FALSE(file.IsOpened());
60 EXPECT_FALSE(file.IsMapped());
64 MappedFile file; local
65 ASSERT_TRUE(file.Open(good_path_, MappedFile::kReadOnlyMode));
66 EXPECT_GE(file.Fd(), 0);
67 EXPECT_TRUE(file
84 MappedFile file; local
96 MappedFile file; local
112 MappedFile file; local
131 MappedFile file; local
137 MappedFile file; local
143 MappedFile file; local
150 MappedFile file; local
178 MappedFile file; local
185 MappedFile file; local
193 MappedFile file; local
[all...]
H A Drandom_access_file_test.h5 * you may not use this file except in compliance with the License.
36 // backed by a temporary file.
66 UniquePtr<RandomAccessFile> file(MakeTestFile());
68 // Reading from the start of an empty file gets you zero bytes, however many
70 ASSERT_EQ(0, file->Read(buf, 0, 0));
71 ASSERT_EQ(0, file->Read(buf, 123, 0));
74 ASSERT_EQ(content.size(), file->Write(content.data(), content.size(), 0));
76 TestReadContent(content, file.get());
79 void TestReadContent(const std::string& content, RandomAccessFile* file) { argument
83 ASSERT_EQ(-EINVAL, file
[all...]
/art/runtime/
H A Delf_file.cc5 * you may not use this file except in compliance with the License.
43 ElfFile* ElfFile::Open(File* file, bool writable, bool program_header_only) { argument
45 if (!elf_file->Setup(file, writable, program_header_only)) {
51 bool ElfFile::Setup(File* file, bool writable, bool program_header_only) { argument
52 CHECK(file != NULL);
53 file_ = file;
69 PLOG(WARNING) << "Failed to get length of file: " << file_->GetPath() << " fd=" << file_->Fd();
100 // otherwise map entire file
102 LOG(WARNING) << "Failed to map ELF file: " << file_->GetPath();
117 LOG(WARNING) << "Failed to find PT_DYNAMIC program header in ELF file
[all...]
H A Dmethod_reference.h5 * you may not use this file except in compliance with the License.
29 MethodReference(const DexFile* file, uint32_t index) : dex_file(file), dex_method_index(index) { argument
H A Doat_file.cc5 * you may not use this file except in compliance with the License.
70 // open a generated dex file by name, remove the file, then open
71 // another generated dex file with the same name. http://b/10614658
82 UniquePtr<File> file(OS::OpenFileForReading(filename.c_str()));
83 if (file.get() == NULL) {
86 return OpenElfFile(file.get(), location, requested_base, false, executable);
89 OatFile* OatFile::OpenWritable(File* file, const std::string& location) { argument
91 return OpenElfFile(file, location, NULL, true, false);
105 OatFile* OatFile::OpenElfFile(File* file, argument
166 ElfFileOpen(File* file, byte* requested_base, bool writable, bool executable) argument
[all...]
H A Dzip_archive.cc5 * you may not use this file except in compliance with the License.
241 LOG(WARNING) << "Zip: size mismatch on inflated file ("
250 bool ZipEntry::ExtractToFile(File& file) { argument
252 int result = TEMP_FAILURE_RETRY(ftruncate(file.Fd(), length));
254 PLOG(WARNING) << "Zip: failed to ftruncate " << file.GetPath() << " to length " << length;
258 UniquePtr<MemMap> map(MemMap::MapFile(length, PROT_READ | PROT_WRITE, MAP_SHARED, file.Fd(), 0));
260 LOG(WARNING) << "Zip: failed to mmap space for " << file.GetPath();
385 * Get and test file length.
428 // need to read the last part of the file into a buffer, dig through
432 // We start by pulling in the last part of the file
[all...]

Completed in 240 milliseconds