Searched refs:filename (Results 1 - 25 of 56) sorted by relevance

123

/art/runtime/hprof/
H A Dhprof.h24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
/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...]
H A Dscoped_flock.h42 // at filename, and blocks until it can do so.
54 bool Init(const char* filename,
59 // Calls Init(filename, flags, block, true, error_msg);
60 bool Init(const char* filename, int flags, bool block, std::string* error_msg);
61 // Calls Init(filename, O_CREAT | O_RDWR, true, errror_msg)
62 bool Init(const char* filename, std::string* error_msg);
H A Dfile_magic.h28 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg);
/art/tools/
H A Dcpplint.py364 def ParseNolintSuppressions(filename, raw_line, linenum, error):
372 filename: str, the name of the input file.
389 error(filename, linenum, 'readability/nolint', 5,
434 filename and line number on which that file was included.
726 def Check(self, error, filename, linenum):
731 filename: The name of the current file.
749 error(filename, linenum, 'readability/fn_size', error_level,
772 def __init__(self, filename):
773 self._filename = filename
885 def Error(filename, linenu
[all...]
H A Dgenerate-operator-out.py33 def Confused(filename, line_number, line):
34 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
39 def ProcessFile(filename):
40 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
102 Confused(filename, line_number, raw_line)
129 Confused(filename, line_number, raw_line)
157 Confused(filename, line_number, raw_line)
H A Danalyze-init-failures.py31 def Confused(filename, line_number, line):
32 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
37 def ProcessFile(filename):
38 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
64 Confused(filename, -1, raw_line)
/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 Dgenerate-operator-out.py33 def Confused(filename, line_number, line):
34 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
39 def ProcessFile(filename):
40 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
102 Confused(filename, line_number, raw_line)
129 Confused(filename, line_number, raw_line)
157 Confused(filename, line_number, raw_line)
H A Dcommon_runtime_test.cc154 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { argument
473 std::string filename(dirpath);
474 filename.push_back('/');
475 filename.append(e->d_name);
476 int stat_result = lstat(filename.c_str(), &s);
477 ASSERT_EQ(0, stat_result) << "unable to stat " << filename;
479 ClearDirectory(filename.c_str());
480 int rmdir_result = rmdir(filename.c_str());
481 ASSERT_EQ(0, rmdir_result) << filename;
548 std::string filename; local
563 std::string filename = GetTestDexFileName(name); local
[all...]
H A Dzip_archive.h77 static ZipArchive* Open(const char* filename, std::string* error_msg);
78 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
H A Dutils.cc827 std::string* filename, std::string* error_msg) {
840 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str());
848 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { argument
851 size_t pos = filename->rfind('/');
852 CHECK_NE(pos, std::string::npos) << *filename << " " << isa;
853 filename->insert(pos, "/", 1);
854 filename->insert(pos + 1, GetInstructionSetString(isa));
859 // filename = /system/framework/<isa>/boot.art
860 std::string filename(location);
861 InsertIsaDirectory(isa, &filename);
826 GetDalvikCacheFilename(const char* location, const char* cache_location, std::string* filename, std::string* error_msg) argument
865 FileExists(const std::string& filename) argument
870 FileExistsAndNotEmpty(const std::string& filename) argument
878 ReplaceFileExtension(const std::string& filename, const std::string& new_extension) argument
930 GetFileSizeBytes(const std::string& filename) argument
[all...]
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;
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 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
/art/compiler/
H A Dgenerate-operator-out.py33 def Confused(filename, line_number, line):
34 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
39 def ProcessFile(filename):
40 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
102 Confused(filename, line_number, raw_line)
129 Confused(filename, line_number, raw_line)
157 Confused(filename, line_number, raw_line)
/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/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/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/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...]
/art/runtime/jit/
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/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/595-profile-saving/src/
H A DMain.java64 String filename);
63 getProfileInfoDump( String filename) argument

Completed in 419 milliseconds

123