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

12

/art/runtime/hprof/
H A Dhprof.h24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
/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;
H A Dscoped_flock.h33 // at filename, and blocks until it can do so.
39 bool Init(const char* filename, std::string* error_msg);
/art/tools/
H A Dcpplint.py360 def ParseNolintSuppressions(filename, raw_line, linenum, error):
368 filename: str, the name of the input file.
385 error(filename, linenum, 'readability/nolint', 5,
430 filename and line number on which that file was included.
700 def Check(self, error, filename, linenum):
705 filename: The name of the current file.
723 error(filename, linenum, 'readability/fn_size', error_level,
746 def __init__(self, filename):
747 self._filename = filename
859 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')
98 Confused(filename, line_number, raw_line)
122 Confused(filename, line_number, raw_line)
149 Confused(filename, line_number, raw_line)
/art/runtime/
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 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 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.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.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 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 Doat_file.h49 static OatFile* Open(const std::string& filename,
308 explicit OatFile(const std::string& filename, bool executable);
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...]
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
/art/runtime/native/
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...]
H A Djava_lang_Runtime.cc47 ScopedUtfChars filename(env, javaFilename);
48 if (filename.c_str() == NULL) {
74 bool success = vm->LoadNativeLibrary(filename.c_str(), classLoader, &detail);
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);
/art/compiler/llvm/
H A Dcompiler_llvm.h72 void SetBitcodeFileName(const std::string& filename) { argument
73 bitcode_filename_ = filename;
H A Dllvm_compilation_unit.cc154 std::string filename(StringPrintf("%s/Art%zu.bc", DumpDirectory().c_str(), cunit_id_));
155 std::unique_ptr<File> output(OS::CreateEmptyFile(filename.c_str()));
157 LOG(INFO) << ".bc file written successfully: " << filename;
181 std::string filename(StringPrintf("%s/Art%zu.o", DumpDirectory().c_str(), cunit_id_));
182 std::unique_ptr<File> output(OS::CreateEmptyFile(filename.c_str()));
184 LOG(INFO) << ".o file written successfully: " << 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/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/
H A Dcompiler.h90 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { argument
92 UNUSED(filename);
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);
/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,

Completed in 2738 milliseconds

12