/art/tools/ |
D | cpplint.py | 360 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument 385 error(filename, linenum, 'readability/nolint', 5, 700 def Check(self, error, filename, linenum): argument 723 error(filename, linenum, 'readability/fn_size', error_level, 746 def __init__(self, filename): argument 747 self._filename = filename 859 def Error(filename, linenum, category, confidence, message): argument 885 filename, linenum, message, category, confidence)) 888 filename, linenum, message, category, confidence)) 891 filename, linenum, message, category, confidence)) [all …]
|
D | generate-operator-out.py | 33 def Confused(filename, line_number, line): argument 34 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line)) 39 def ProcessFile(filename): argument 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/base/ |
D | scoped_flock.cc | 28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { in Init() argument 33 file_.reset(OS::OpenFileWithFlags(filename, O_CREAT | O_RDWR)); in Init() 35 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); in Init() 40 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); in Init() 46 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); in Init() 50 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); in Init() 52 PLOG(WARNING) << "Failed to stat, will retry: " << filename; in Init() 57 LOG(WARNING) << "File changed while locking, will retry: " << filename; in Init()
|
D | scoped_flock.h | 39 bool Init(const char* filename, std::string* error_msg);
|
/art/runtime/native/ |
D | dalvik_system_DexFile.cc | 289 static jbyte IsDexOptNeededForFile(const std::string& oat_filename, const char* filename, in CopyProfileFile() argument 302 << "' for file location '" << filename << "': " << error_msg; in CopyProfileFile() 314 const art::OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(filename, nullptr, in CopyProfileFile() 319 if (!DexFile::GetChecksum(filename, &location_checksum, &error_msg)) { in CopyProfileFile() 322 << filename << " for " << oat_filename << ": " << error_msg; in CopyProfileFile() 327 << " is up-to-date for " << filename; in CopyProfileFile() 334 << " needs to be relocated for " << filename; in CopyProfileFile() 340 << " is out of date for " << filename; in CopyProfileFile() 346 if (ClassLinker::VerifyOatAndDexFileChecksums(oat_file.get(), filename, location_checksum, in CopyProfileFile() 350 << " is up-to-date for " << filename; in CopyProfileFile() [all …]
|
D | java_lang_Runtime.cc | 47 ScopedUtfChars filename(env, javaFilename); in Runtime_nativeLoad() local 48 if (filename.c_str() == NULL) { in Runtime_nativeLoad() 74 bool success = vm->LoadNativeLibrary(filename.c_str(), classLoader, &detail); in Runtime_nativeLoad()
|
D | dalvik_system_VMDebug.cc | 201 std::string filename; in VMDebug_dumpHprofData() local 207 filename = chars.c_str(); in VMDebug_dumpHprofData() 209 filename = "[fd]"; in VMDebug_dumpHprofData() 222 hprof::DumpHeap(filename.c_str(), fd, false); in VMDebug_dumpHprofData()
|
/art/runtime/ |
D | common_runtime_test.cc | 247 std::string filename(dirpath); in ClearDirectory() local 248 filename.push_back('/'); in ClearDirectory() 249 filename.append(e->d_name); in ClearDirectory() 250 int stat_result = lstat(filename.c_str(), &s); in ClearDirectory() 251 ASSERT_EQ(0, stat_result) << "unable to stat " << filename; in ClearDirectory() 253 ClearDirectory(filename.c_str()); in ClearDirectory() 254 int rmdir_result = rmdir(filename.c_str()); in ClearDirectory() 255 ASSERT_EQ(0, rmdir_result) << filename; in ClearDirectory() 257 int unlink_result = unlink(filename.c_str()); in ClearDirectory() 258 ASSERT_EQ(0, unlink_result) << filename; in ClearDirectory() [all …]
|
D | zip_archive.cc | 90 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { in Open() argument 91 DCHECK(filename != nullptr); in Open() 94 const int32_t error = OpenArchive(filename, &handle); in Open() 105 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument 106 DCHECK(filename != nullptr); in OpenFromFd() 110 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd()
|
D | monitor_android.cc | 82 const char* filename; in LogContentionEvent() local 84 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent() 85 cp = EventLogWriteString(cp, filename, strlen(filename)); in LogContentionEvent() 93 } else if (strcmp(filename, owner_filename) == 0) { in LogContentionEvent()
|
D | mem_map.h | 71 const char* filename, std::string* error_msg) { in MapFile() argument 72 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile() 84 off_t start, bool reuse, const char* filename,
|
D | zip_archive.h | 61 static ZipArchive* Open(const char* filename, std::string* error_msg); 62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
|
D | dex_file.cc | 53 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument 55 ScopedFd fd(open(filename, O_RDONLY, 0)); in OpenAndReadMagic() 57 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); in OpenAndReadMagic() 62 *error_msg = StringPrintf("Failed to find magic in '%s'", filename); in OpenAndReadMagic() 66 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename, in OpenAndReadMagic() 73 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { in GetChecksum() argument 79 const char* file_part = filename; in GetChecksum() 82 if (DexFile::IsMultiDexLocation(filename)) { in GetChecksum() 83 file_part_storage = GetBaseLocation(filename); in GetChecksum() 85 zip_entry_name = filename + file_part_storage.size() + 1; in GetChecksum() [all …]
|
D | utils.cc | 1255 std::string* filename, std::string* error_msg) { in GetDalvikCacheFilename() argument 1266 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str()); in GetDalvikCacheFilename() 1279 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { in InsertIsaDirectory() argument 1282 size_t pos = filename->rfind('/'); in InsertIsaDirectory() 1283 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; in InsertIsaDirectory() 1284 filename->insert(pos, "/", 1); in InsertIsaDirectory() 1285 filename->insert(pos + 1, GetInstructionSetString(isa)); in InsertIsaDirectory() 1291 std::string filename(location); in GetSystemImageFilename() local 1292 InsertIsaDirectory(isa, &filename); in GetSystemImageFilename() 1293 return filename; in GetSystemImageFilename()
|
D | oat_file.h | 49 static OatFile* Open(const std::string& filename, 308 explicit OatFile(const std::string& filename, bool executable);
|
D | oat_file.cc | 67 OatFile* OatFile::Open(const std::string& filename, in Open() argument 73 CHECK(!filename.empty()) << location; in Open() 82 ret.reset(OpenDlopen(filename, location, requested_base, error_msg)); in Open() 90 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); in Open()
|
/art/compiler/llvm/ |
D | llvm_compilation_unit.cc | 154 std::string filename(StringPrintf("%s/Art%zu.bc", DumpDirectory().c_str(), cunit_id_)); in DumpBitcodeToFile() local 155 std::unique_ptr<File> output(OS::CreateEmptyFile(filename.c_str())); in DumpBitcodeToFile() 157 LOG(INFO) << ".bc file written successfully: " << filename; in DumpBitcodeToFile() 181 std::string filename(StringPrintf("%s/Art%zu.o", DumpDirectory().c_str(), cunit_id_)); in Materialize() local 182 std::unique_ptr<File> output(OS::CreateEmptyFile(filename.c_str())); in Materialize() 184 LOG(INFO) << ".o file written successfully: " << filename; in Materialize()
|
D | compiler_llvm.h | 72 void SetBitcodeFileName(const std::string& filename) { in SetBitcodeFileName() argument 73 bitcode_filename_ = filename; in SetBitcodeFileName()
|
D | compiler_llvm.cc | 237 const std::string& filename) { in compilerLLVMSetBitcodeFileName() argument 238 ContextOf(driver)->SetBitcodeFileName(filename); in compilerLLVMSetBitcodeFileName()
|
/art/compiler/sea_ir/debug/ |
D | dot_gen.h | 102 void DumpSea(SeaGraph* graph, std::string filename, in DumpSea() argument 104 LOG(INFO) << "Starting to write SEA string to file " << filename << std::endl; in DumpSea() 108 art::File* file = art::OS::CreateEmptyFile(filename.c_str()); in DumpSea()
|
/art/compiler/ |
D | compiler.cc | 84 std::string const& filename); 165 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { in SetBitcodeFileName() argument 171 set_bitcode_file_name(driver, filename); in SetBitcodeFileName()
|
D | compiler.h | 90 void SetBitcodeFileName(const CompilerDriver& driver, const std::string& filename) { in SetBitcodeFileName() argument 92 UNUSED(filename); in SetBitcodeFileName()
|
/art/runtime/hprof/ |
D | hprof.h | 24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
|
/art/test/099-vmdebug/src/ |
D | Main.java | 120 public static void startMethodTracing(String filename, int bufferSize, int flags, in startMethodTracing() argument 122 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled, in startMethodTracing()
|
/art/test/099-vmdebug/ |
D | expected.txt | 14 Test tracing with empty filename
|