Searched defs:filename (Results 1 - 22 of 22) sorted by relevance

/art/compiler/llvm/
H A Dcompiler_llvm.h72 void SetBitcodeFileName(const std::string& filename) { argument
73 bitcode_filename_ = filename;
H A Dcompiler_llvm.cc237 const std::string& filename) {
238 ContextOf(driver)->SetBitcodeFileName(filename);
236 compilerLLVMSetBitcodeFileName(const art::CompilerDriver& driver, const std::string& filename) argument
/art/runtime/base/
H A Dscoped_flock.cc28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { argument
33 file_.reset(OS::OpenFileWithFlags(filename, O_CREAT | O_RDWR));
35 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno));
40 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno));
46 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno));
50 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat));
52 PLOG(WARNING) << "Failed to stat, will retry: " << filename;
57 LOG(WARNING) << "File changed while locking, will retry: " << filename;
/art/runtime/
H A Dmonitor_android.cc82 const char* filename; local
84 TranslateLocation(m, pc, &filename, &line_number);
85 cp = EventLogWriteString(cp, filename, strlen(filename));
93 } else if (strcmp(filename, owner_filename) == 0) {
H A Dzip_archive.cc90 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { argument
91 DCHECK(filename != nullptr);
94 const int32_t error = OpenArchive(filename, &handle);
105 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument
106 DCHECK(filename != nullptr);
110 const int32_t error = OpenArchiveFd(fd, filename, &handle);
H A Dmem_map.h71 const char* filename, std::string* error_msg) {
72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg);
84 off_t start, bool reuse, const char* filename,
70 MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, const char* filename, std::string* error_msg) argument
H A Dcommon_runtime_test.cc247 std::string filename(dirpath);
248 filename.push_back('/');
249 filename.append(e->d_name);
250 int stat_result = lstat(filename.c_str(), &s);
251 ASSERT_EQ(0, stat_result) << "unable to stat " << filename;
253 ClearDirectory(filename.c_str());
254 int rmdir_result = rmdir(filename.c_str());
255 ASSERT_EQ(0, rmdir_result) << filename;
257 int unlink_result = unlink(filename.c_str());
258 ASSERT_EQ(0, unlink_result) << filename;
321 std::string filename; local
[all...]
H A Dmem_map.cc387 off_t start, bool reuse, const char* filename,
412 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false);
438 static_cast<int64_t>(page_aligned_offset), filename,
446 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count,
386 MapFileAtAddress(byte* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse, const char* filename, std::string* error_msg) argument
H A Doat_file.cc67 OatFile* OatFile::Open(const std::string& filename, argument
73 CHECK(!filename.empty()) << location;
82 ret.reset(OpenDlopen(filename, location, requested_base, error_msg));
90 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str()));
92 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno));
372 // changes. If it does (i.e. some symlink used by the filename changes) we may return
H A Ddex_file.cc53 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
55 ScopedFd fd(open(filename, O_RDONLY, 0));
57 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno));
62 *error_msg = StringPrintf("Failed to find magic in '%s'", filename);
66 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename,
73 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { argument
79 const char* file_part = filename;
82 if (DexFile::IsMultiDexLocation(filename)) {
83 file_part_storage = GetBaseLocation(filename);
85 zip_entry_name = filename
121 Open(const char* filename, const char* location, std::string* error_msg, std::vector<const DexFile*>* dex_files) argument
[all...]
H A Dutils.cc1255 std::string* filename, std::string* error_msg) {
1266 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str());
1279 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { argument
1282 size_t pos = filename->rfind('/');
1283 CHECK_NE(pos, std::string::npos) << *filename << " " << isa;
1284 filename->insert(pos, "/", 1);
1285 filename->insert(pos + 1, GetInstructionSetString(isa));
1290 // filename = /system/framework/<isa>/boot.art
1291 std::string filename(location);
1292 InsertIsaDirectory(isa, &filename);
1254 GetDalvikCacheFilename(const char* location, const char* cache_location, std::string* filename, std::string* error_msg) argument
[all...]
/art/test/099-vmdebug/src/
H A DMain.java77 System.out.println("Test tracing with empty filename");
120 public static void startMethodTracing(String filename, int bufferSize, int flags, argument
122 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
/art/compiler/
H A Dcompiler.cc84 std::string const& filename);
165 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { argument
171 set_bitcode_file_name(driver, filename);
H A Dcompiler.h90 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { argument
92 UNUSED(filename);
/art/compiler/sea_ir/debug/
H A Ddot_gen.h101 // Saves to @filename the .dot representation of @graph with the options @options.
102 void DumpSea(SeaGraph* graph, std::string filename, argument
104 LOG(INFO) << "Starting to write SEA string to file " << filename << std::endl;
108 art::File* file = art::OS::CreateEmptyFile(filename.c_str());
/art/compiler/utils/
H A Dassembler_thumb_test.cc152 const char* filename = file.GetFilename().c_str(); local
154 std::ofstream out(filename);
177 snprintf(cmd, sizeof(cmd), "%s%sas %s -o %s.o", toolsdir.c_str(), TOOL_PREFIX, filename, filename);
183 filename, filename);
189 toolsdir.c_str(), TOOL_PREFIX, filename);
222 snprintf(buf, sizeof(buf), "%s.o", filename);
225 snprintf(buf, sizeof(buf), "%s.oo", filename);
/art/runtime/native/
H A Ddalvik_system_VMDebug.cc201 std::string filename; local
207 filename = chars.c_str();
209 filename = "[fd]";
222 hprof::DumpHeap(filename.c_str(), fd, false);
H A Ddalvik_system_DexFile.cc289 static jbyte IsDexOptNeededForFile(const std::string& oat_filename, const char* filename, argument
302 << "' for file location '" << filename << "': " << error_msg;
314 const art::OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(filename, nullptr,
319 if (!DexFile::GetChecksum(filename, &location_checksum, &error_msg)) {
322 << filename << " for " << oat_filename << ": " << error_msg;
327 << " is up-to-date for " << filename; local
334 << " needs to be relocated for " << filename; local
340 << " is out of date for " << filename; local
346 if (ClassLinker::VerifyOatAndDexFileChecksums(oat_file.get(), filename, location_checksum,
350 << " is up-to-date for " << filename; local
358 << " needs to be relocated for " << filename; local
364 << " is out of date for " << filename; local
372 << " does not contain " << filename; local
378 IsDexOptNeededInternal(JNIEnv* env, const char* filename, const char* pkgname, const char* instruction_set, const jboolean defer) argument
[all...]
/art/runtime/gc/space/
H A Dimage_space.cc238 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { argument
239 std::unique_ptr<File> image_file(OS::OpenFileForReading(filename));
297 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { argument
299 if (!ReadSpecificImageHeader(filename, hdr.get())) {
300 *error_msg = StringPrintf("Unable to read image header for %s", filename);
/art/patchoat/
H A Dpatchoat.cc70 std::string* filename) {
101 *filename = system_filename;
104 *filename = cache_filename;
117 CHECK(!image_location.empty()) << "image file must have a filename.";
206 CHECK(!image_location.empty()) << "image file must have a filename.";
408 LOG(ERROR) << "No output oat filename specified, needs filename for when we are PIC";
797 UsageError(" --input-oat-file=<file.oat>: Specifies the exact filename of the oat file to be");
1076 "--patched-image-filename or --patched-image-location may be used.");
1108 Usage("Unable to find filename fo
69 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument
[all...]
/art/oatdump/
H A Doatdump.cc67 " --oat-file=<file.oat>: specifies an input oat filename.\n"
71 " --image=<file.art>: specifies an input image filename.\n"
1745 const char* filename = option.substr(strlen("--output=")).data(); local
1746 out.reset(new std::ofstream(filename));
1748 fprintf(stderr, "Failed to open output filename %s\n", filename);
/art/runtime/hprof/
H A Dhprof.cc1097 // Otherwise, "filename" is used to create an output file.
1098 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { argument
1099 CHECK(filename != NULL);
1102 Hprof hprof(filename, fd, direct_to_ddms);

Completed in 700 milliseconds