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

12

/art/runtime/base/
H A Dfile_magic.cc33 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
35 File fd(filename, O_RDONLY, /* check_usage */ false);
37 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno));
42 *error_msg = StringPrintf("Failed to find magic in '%s'", filename);
46 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename,
H A Dscoped_flock.cc31 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { argument
32 return Init(filename, O_CREAT | O_RDWR, true, error_msg);
35 bool ScopedFlock::Init(const char* filename, int flags, bool block, std::string* error_msg) { argument
36 return Init(filename, flags, block, true, error_msg);
39 bool ScopedFlock::Init(const char* filename, argument
51 file_.reset(OS::OpenFileWithFlags(filename, flags, check_usage));
53 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno));
63 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno));
69 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno));
73 int stat_result = TEMP_FAILURE_RETRY(stat(filename,
[all...]
/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 Dmem_map.h86 const char* filename,
96 filename,
116 const char* filename,
80 MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, const char* filename, std::string* error_msg) argument
H A Dzip_archive.cc202 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { argument
203 DCHECK(filename != nullptr);
206 const int32_t error = OpenArchive(filename, &handle);
217 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument
218 DCHECK(filename != nullptr);
222 const int32_t error = OpenArchiveFd(fd, filename, &handle);
H A Dimage.h307 std::string filename = image; local
308 if (filename.length() <= 3) {
309 filename += "." + extension;
311 filename.replace(filename.length() - 3, 3, extension);
313 return filename;
/art/test/595-profile-saving/
H A Dprofile-saving.cc73 JNIEnv* env, jclass cls, jstring filename, jint method_index) {
74 ScopedUtfChars filename_chars(env, filename);
72 Java_Main_presentInProfile( JNIEnv* env, jclass cls, jstring filename, jint method_index) argument
/art/runtime/base/unix_file/
H A Dfd_file_test.cc192 std::string filename = tmp.GetFilename(); local
195 FdFile file(filename, O_RDWR, false);
206 EXPECT_FALSE(art::OS::FileExists(filename.c_str())) << filename;
/art/test/570-checker-osr/src/
H A DDeoptimizationController.java92 public static void startMethodTracing(String filename, int bufferSize, int flags, argument
94 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
/art/test/802-deoptimization/src/
H A DDeoptimizationController.java89 public static void startMethodTracing(String filename, int bufferSize, int flags, argument
91 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
/art/profman/
H A Dprofile_assistant.cc77 static bool InitFlock(const std::string& filename, ScopedFlock& flock, std::string* error) { argument
78 return flock.Init(filename.c_str(), O_RDWR, /* block */ true, error);
H A Dprofile_assistant_test.cc155 bool GenerateTestProfile(const std::string& filename) { argument
159 argv_str.push_back("--generate-test-profile=" + filename);
164 bool GenerateTestProfileWithInputDex(const std::string& filename) { argument
168 argv_str.push_back("--generate-test-profile=" + filename);
177 const std::string& filename,
188 argv_str.push_back("--reference-profile-file=" + filename);
196 bool DumpClassesAndMethods(const std::string& filename, std::string* file_contents) { argument
202 argv_str.push_back("--profile-file=" + filename);
176 CreateProfile(std::string profile_file_contents, const std::string& filename, const std::string& dex_location) argument
/art/test/545-tracing-and-jit/src/
H A DMain.java239 public static void startMethodTracing(String filename, int bufferSize, int flags, argument
241 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
/art/test/595-profile-saving/src/
H A DMain.java64 String filename);
63 getProfileInfoDump( String filename) argument
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DDexRandomAccessFile.java43 * @param filename The file to open.
46 public DexRandomAccessFile(String filename, String mode) argument
48 super(filename, mode);
/art/compiler/debug/dwarf/
H A Ddebug_line_opcode_writer.h141 void DefineFile(const char* filename, argument
146 strlen(filename) + 1 +
154 this->PushString(filename);
/art/compiler/utils/
H A Dassembler_thumb_test.cc101 const char* filename = file.GetFilename().c_str(); local
103 std::ofstream out(filename);
126 snprintf(cmd, sizeof(cmd), "%sas %s -o %s.o", toolsdir.c_str(), filename, filename);
132 snprintf(cmd, sizeof(cmd), "%sobjcopy -N '$d' %s.o %s.oo", toolsdir.c_str(), filename, filename);
139 toolsdir.c_str(), filename);
171 snprintf(buf, sizeof(buf), "%s.o", filename);
174 snprintf(buf, sizeof(buf), "%s.oo", filename);
/art/dexlayout/
H A Ddexlayout_test.cc354 bool UnreferencedCatchHandlerExec(std::string* error_msg, const char* filename) { argument
362 WriteFileBase64(filename, input_dex.c_str());
/art/test/099-vmdebug/src/
H A DMain.java104 System.out.println("Test tracing with empty filename");
278 public static void startMethodTracing(String filename, int bufferSize, int flags, argument
280 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
/art/cmdline/
H A Dcmdline.h44 std::string* filename) {
75 *filename = system_filename;
78 *filename = cache_filename;
156 const char* filename = output_name_.c_str(); local
157 out_.reset(new std::ofstream(filename));
159 fprintf(stderr, "Failed to open output filename %s\n", filename);
43 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument
/art/runtime/jit/
H A Dprofile_compilation_info_test.cc86 const std::string& filename,
102 if (!file_profile.Load(filename, false)) {
109 return info.Save(filename, nullptr);
112 // Saves the given art methods to a profile backed by 'filename' and adds
116 const std::string& filename,
162 return info.Save(filename, nullptr);
85 SaveProfilingInfo( const std::string& filename, const std::vector<ArtMethod*>& methods, const std::set<DexCacheResolvedClasses>& resolved_classes) argument
115 SaveProfilingInfoWithFakeInlineCaches( const std::string& filename, const std::vector<ArtMethod*>& methods, SafeMap<ArtMethod*, ProfileMethodInfo>* profile_methods_map) argument
H A Djit.cc328 void Jit::StartProfileSaver(const std::string& filename, argument
332 filename,
H A Dprofile_saver.cc246 const std::string& filename = it.first; local
265 filename,
304 const std::string& filename = it.first; local
314 if (!info.Load(filename, /*clear_if_invalid*/ true)) {
315 LOG(WARNING) << "Could not forcefully load profile " << filename;
323 auto profile_cache_it = profile_cache_.find(filename);
336 VLOG(profiler) << "Not enough information to save to: " << filename
350 if (info.Save(filename, &bytes_written)) {
369 LOG(WARNING) << "Could not save profiling info to " << filename;
622 const std::string& filename local
[all...]
/art/runtime/native/
H A Ddalvik_system_DexFile.cc456 const char* filename,
460 if ((filename == nullptr) || !OS::FileExists(filename)) {
461 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist";
463 const char* message = (filename == nullptr) ? "<empty file name>" : filename;
487 OatFileAssistant oat_file_assistant(filename, target_instruction_set, false);
500 ScopedUtfChars filename(env, javaFilename);
519 OatFileAssistant oat_file_assistant(filename.c_str(), target_instruction_set,
530 ScopedUtfChars filename(en
455 GetDexOptNeeded(JNIEnv* env, const char* filename, const char* instruction_set, const char* compiler_filter_name, bool profile_changed) argument
559 const char* filename = filename_utf.c_str(); local
[all...]
H A Ddalvik_system_VMDebug.cc232 std::string filename; local
238 filename = chars.c_str();
240 filename = "[fd]";
253 hprof::DumpHeap(filename.c_str(), fd, false);
521 std::string filename; local
527 filename = chars.c_str();
530 Runtime::Current()->AttachAgent(filename);

Completed in 4389 milliseconds

12