/art/runtime/base/ |
H A D | scoped_flock.cc | 28 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;
|
/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 | zip_archive.cc | 91 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 D | mem_map.h | 78 const char* filename, std::string* error_msg) { 80 nullptr, byte_count, prot, flags, fd, start, false, filename, error_msg); 91 off_t start, bool reuse, const char* filename, 77 MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, const char* filename, std::string* error_msg) argument
|
H A D | common_runtime_test.cc | 372 std::string filename(dirpath); 373 filename.push_back('/'); 374 filename.append(e->d_name); 375 int stat_result = lstat(filename.c_str(), &s); 376 ASSERT_EQ(0, stat_result) << "unable to stat " << filename; 378 ClearDirectory(filename.c_str()); 379 int rmdir_result = rmdir(filename.c_str()); 380 ASSERT_EQ(0, rmdir_result) << filename; 382 int unlink_result = unlink(filename.c_str()); 383 ASSERT_EQ(0, unlink_result) << filename; 444 std::string filename; local 458 std::string filename = GetTestDexFileName(name); local [all...] |
H A D | mem_map.cc | 451 int fd, off_t start, bool reuse, const char* filename, 472 return new MemMap(filename, nullptr, 0, nullptr, 0, prot, false); 498 static_cast<int64_t>(page_aligned_offset), filename, 506 return new MemMap(filename, actual + page_offset, byte_count, actual, page_aligned_byte_count, 450 MapFileAtAddress(uint8_t* 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 D | oat_file.cc | 102 OatFile* OatFile::Open(const std::string& filename, argument 109 CHECK(!filename.empty()) << location; 120 ret.reset(OpenDlopen(filename, location, requested_base, abs_dex_location, error_msg)); 142 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); 144 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno)); 532 // changes. If it does (i.e. some symlink used by the filename changes) we may return
|
H A D | dex_file.cc | 59 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { argument 61 ScopedFd fd(open(filename, O_RDONLY, 0)); 63 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); 68 *error_msg = StringPrintf("Failed to find magic in '%s'", filename); 72 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename, 79 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { argument 85 const char* file_part = filename; 88 if (DexFile::IsMultiDexLocation(filename)) { 89 file_part_storage = GetBaseLocation(filename); 91 zip_entry_name = filename 130 Open(const char* filename, const char* location, std::string* error_msg, std::vector<std::unique_ptr<const DexFile>>* dex_files) argument 156 ContainsClassesDex(int fd, const char* filename) argument 166 MaybeDex(const char* filename) argument [all...] |
H A D | utils.cc | 1334 std::string* filename, std::string* error_msg) { 1345 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str()); 1358 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { argument 1361 size_t pos = filename->rfind('/'); 1362 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; 1363 filename->insert(pos, "/", 1); 1364 filename->insert(pos + 1, GetInstructionSetString(isa)); 1369 // filename = /system/framework/<isa>/boot.art 1370 std::string filename(location); 1371 InsertIsaDirectory(isa, &filename); 1333 GetDalvikCacheFilename(const char* location, const char* cache_location, std::string* filename, std::string* error_msg) argument [all...] |
/art/test/802-deoptimization/src/ |
H A D | DeoptimizationController.java | 82 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 84 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/art/test/099-vmdebug/src/ |
H A D | Main.java | 87 System.out.println("Test tracing with empty filename"); 230 public static void startMethodTracing(String filename, int bufferSize, int flags, argument 232 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled,
|
/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/utils/ |
H A D | assembler_thumb_test.cc | 82 const char* filename = file.GetFilename().c_str(); local 84 std::ofstream out(filename); 107 snprintf(cmd, sizeof(cmd), "%sas %s -o %s.o", toolsdir.c_str(), filename, filename); 112 snprintf(cmd, sizeof(cmd), "%sobjcopy -N '$d' %s.o %s.oo", toolsdir.c_str(), filename, filename); 118 toolsdir.c_str(), filename); 151 snprintf(buf, sizeof(buf), "%s.o", filename); 154 snprintf(buf, sizeof(buf), "%s.oo", filename);
|
/art/compiler/dwarf/ |
H A D | debug_line_opcode_writer.h | 135 void DefineFile(const char* filename, argument 140 strlen(filename) + 1 + 148 this->PushString(filename);
|
/art/cmdline/ |
H A D | cmdline.h | 42 std::string* filename) { 73 *filename = system_filename; 76 *filename = cache_filename; 153 const char* filename = output_name_.c_str(); local 154 out_.reset(new std::ofstream(filename)); 156 fprintf(stderr, "Failed to open output filename %s\n", filename); 41 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument
|
/art/runtime/native/ |
H A D | dalvik_system_DexFile.cc | 301 static jint GetDexOptNeeded(JNIEnv* env, const char* filename, argument 304 if ((filename == nullptr) || !OS::FileExists(filename)) { 305 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist"; 307 const char* message = (filename == nullptr) ? "<empty file name>" : filename; 323 OatFileAssistant oat_file_assistant(filename, target_instruction_set, false, pkgname); 355 ScopedUtfChars filename(env, javaFilename); 367 return GetDexOptNeeded(env, filename.c_str(), pkgname.c_str(), 374 ScopedUtfChars filename(en [all...] |
H A D | dalvik_system_VMDebug.cc | 211 std::string filename; local 217 filename = chars.c_str(); 219 filename = "[fd]"; 232 hprof::DumpHeap(filename.c_str(), fd, false);
|
/art/runtime/gc/space/ |
H A D | image_space.cc | 274 static bool ReadSpecificImageHeader(const char* filename, ImageHeader* image_header) { argument 275 std::unique_ptr<File> image_file(OS::OpenFileForReading(filename)); 333 static ImageHeader* ReadSpecificImageHeader(const char* filename, std::string* error_msg) { argument 335 if (!ReadSpecificImageHeader(filename, hdr.get())) { 336 *error_msg = StringPrintf("Unable to read image header for %s", filename);
|
/art/patchoat/ |
H A D | patchoat.cc | 54 std::string* filename) { 85 *filename = system_filename; 88 *filename = cache_filename; 101 CHECK(!image_location.empty()) << "image file must have a filename."; 190 CHECK(!image_location.empty()) << "image file must have a filename."; 392 LOG(ERROR) << "No output oat filename specified, needs filename for when we are PIC"; 820 UsageError(" --input-oat-file=<file.oat>: Specifies the exact filename of the oat file to be"); 1099 "--patched-image-filename or --patched-image-location may be used."); 1131 Usage("Unable to find filename fo 53 LocationToFilename(const std::string& location, InstructionSet isa, std::string* filename) argument [all...] |
/art/runtime/hprof/ |
H A D | hprof.cc | 1214 // Otherwise, "filename" is used to create an output file. 1215 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { argument 1216 CHECK(filename != nullptr); 1226 Hprof hprof(filename, fd, direct_to_ddms);
|