/art/runtime/base/ |
H A D | file_magic.cc | 33 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 D | scoped_flock.cc | 31 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 D | monitor_android.cc | 82 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 D | mem_map.h | 86 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 D | zip_archive.cc | 202 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 D | image.h | 307 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 D | profile-saving.cc | 73 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 D | fd_file_test.cc | 192 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 D | DeoptimizationController.java | 92 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 D | DeoptimizationController.java | 89 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 91 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/art/profman/ |
H A D | profile_assistant.cc | 77 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 D | profile_assistant_test.cc | 155 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 D | Main.java | 239 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 D | Main.java | 64 String filename); 63 getProfileInfoDump( String filename) argument
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
H A D | DexRandomAccessFile.java | 43 * @param filename The file to open. 46 public DexRandomAccessFile(String filename, String mode) argument 48 super(filename, mode);
|
/art/compiler/debug/dwarf/ |
H A D | debug_line_opcode_writer.h | 141 void DefineFile(const char* filename, argument 146 strlen(filename) + 1 + 154 this->PushString(filename);
|
/art/compiler/utils/ |
H A D | assembler_thumb_test.cc | 101 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 D | dexlayout_test.cc | 354 bool UnreferencedCatchHandlerExec(std::string* error_msg, const char* filename) { argument 362 WriteFileBase64(filename, input_dex.c_str());
|
/art/test/099-vmdebug/src/ |
H A D | Main.java | 104 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 D | cmdline.h | 44 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 D | profile_compilation_info_test.cc | 86 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 D | jit.cc | 328 void Jit::StartProfileSaver(const std::string& filename, argument 332 filename,
|
H A D | profile_saver.cc | 246 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 D | dalvik_system_DexFile.cc | 456 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 D | dalvik_system_VMDebug.cc | 232 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);
|