Searched refs:filename (Results 1 - 25 of 51) 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.cc29 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument
31 ScopedFd fd(open(filename, O_RDONLY, 0));
33 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno));
38 *error_msg = StringPrintf("Failed to find magic in '%s'", filename);
42 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename,
H A Dscoped_flock.h33 // at filename, and blocks until it can do so.
42 bool Init(const char* filename, int flags, bool block, std::string* error_msg);
43 // Calls Init(filename, O_CREAT | O_RDWR, true, errror_msg)
44 bool Init(const char* filename, std::string* error_msg);
H A Dscoped_flock.cc28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { argument
29 return Init(filename, O_CREAT | O_RDWR, true, error_msg);
32 bool ScopedFlock::Init(const char* filename, int flags, bool block, std::string* error_msg) { argument
37 file_.reset(OS::OpenFileWithFlags(filename, flags));
39 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno));
49 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno));
55 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno));
59 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat));
61 PLOG(WARNING) << "Failed to stat, will retry: " << filename;
73 LOG(WARNING) << "File changed while locking, will retry: " << filename;
[all...]
H A Dfile_magic.h28 ScopedFd 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)
H A Dstream-trace-converter.py158 def ProcessFile(self, filename):
159 input = open(filename, 'rb') # Input file
160 header = open(filename + '.header', 'w') # Header part
161 body = open(filename + '.body', 'wb') # Body part
/art/runtime/
H A Dzip_archive.cc91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { argument
92 DCHECK(filename != nullptr);
95 const int32_t error = OpenArchive(filename, &handle);
106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument
107 DCHECK(filename != nullptr);
111 const int32_t error = OpenArchiveFd(fd, filename, &handle);
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 Dcommon_runtime_test.cc82 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { argument
398 std::string filename(dirpath);
399 filename.push_back('/');
400 filename.append(e->d_name);
401 int stat_result = lstat(filename.c_str(), &s);
402 ASSERT_EQ(0, stat_result) << "unable to stat " << filename;
404 ClearDirectory(filename.c_str());
405 int rmdir_result = rmdir(filename.c_str());
406 ASSERT_EQ(0, rmdir_result) << filename;
480 std::string filename; local
495 std::string filename = GetTestDexFileName(name); local
[all...]
H A Dzip_archive.h61 static ZipArchive* Open(const char* filename, std::string* error_msg);
62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
H A Dmem_map.h89 const char* filename,
99 filename,
119 const char* filename,
83 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/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/native/
H A Ddalvik_system_DexFile.cc351 const char* filename,
355 if ((filename == nullptr) || !OS::FileExists(filename)) {
356 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist";
358 const char* message = (filename == nullptr) ? "<empty file name>" : filename;
382 OatFileAssistant oat_file_assistant(filename, target_instruction_set, profile_changed, false);
395 ScopedUtfChars filename(env, javaFilename);
414 OatFileAssistant oat_file_assistant(filename.c_str(), target_instruction_set,
452 ScopedUtfChars filename(en
350 GetDexOptNeeded(JNIEnv* env, const char* filename, const char* instruction_set, const char* compiler_filter_name, bool profile_changed) argument
481 const char* filename = filename_utf.c_str(); local
[all...]
/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.h42 std::string* filename) {
73 *filename = system_filename;
76 *filename = cache_filename;
154 const char* filename = output_name_.c_str(); local
155 out_.reset(new std::ofstream(filename));
157 fprintf(stderr, "Failed to open output filename %s\n", filename);
41 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument
/art/runtime/jit/
H A Doffline_profiling_info.cc76 bool ProfileCompilationInfo::MergeAndSave(const std::string& filename, argument
82 if (!flock.Init(filename.c_str(), O_RDWR | O_NOFOLLOW | O_CLOEXEC, /* block */ false, &error)) {
83 LOG(WARNING) << "Couldn't lock the profile file " << filename << ": " << error;
104 LOG(WARNING) << "Could not merge previous profile data from file " << filename;
113 << filename << ": " << error;
115 LOG(WARNING) << "Could not load profile data from file " << filename << ": " << error;
121 PLOG(WARNING) << "Could not clear profile file: " << filename;
129 VLOG(profiler) << "Successfully saved profile info to " << filename
130 << " Size: " << GetFileSizeBytes(filename);
132 *bytes_written = GetFileSizeBytes(filename);
[all...]
H A Dprofile_saver.cc188 ProfileCompilationInfo* ProfileSaver::GetCachedProfiledInfo(const std::string& filename) { argument
189 auto info_it = profile_cache_.find(filename);
191 info_it = profile_cache_.Put(filename, ProfileCompilationInfo());
243 const std::string& filename = it.first; local
261 ProfileCompilationInfo* info = GetCachedProfiledInfo(filename);
287 const std::string& filename = it.first; local
296 ProfileCompilationInfo* cached_info = GetCachedProfiledInfo(filename);
307 VLOG(profiler) << "Not enough information to save to: " << filename
317 if (cached_info->MergeAndSave(filename, &bytes_written, /*force*/ true)) {
335 LOG(WARNING) << "Could not save profiling info to " << filename;
[all...]
/art/profman/
H A Dprofile_assistant.cc72 static bool InitFlock(const std::string& filename, ScopedFlock& flock, std::string* error) { argument
73 return flock.Init(filename.c_str(), O_RDWR, /* block */ true, error);
H A Dprofman.cc87 UsageError(" --profile-file=<filename>: specify profiler output file to use for compilation.");
94 UsageError(" --reference-profile-file=<filename>: specify a reference profile.");
206 int DumpOneProfile(const std::string& banner, const std::string& filename, int fd, argument
208 if (!filename.empty()) {
209 fd = open(filename.c_str(), O_RDWR);
211 std::cerr << "Cannot open " << filename << strerror(errno);
/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/test/595-profile-saving/src/
H A DMain.java66 String filename);
65 getProfileInfoDump( String filename) argument

Completed in 453 milliseconds

123